Another simple harmonic motion system is a pendulum. A simple pendulum consists of a mass on a string.
The forces applied to the mass are the force of gravity and the tension in the string. A component of the force of gravity provides the restoring torque. Applying Newton's second law for rotation:
St = Ia
mg L sin(q) = Ia
The negative sign is because the torque is opposite to the angular displacement.
For a system to undergo simple harmonic motion we must have the acceleration proportional to the negative of the displacement. We almost have that here. For small angles, however, we can use the smallangle approximation:
sin(q) = q
This gives, at small angles:
mgLq = Ia
a  =  

q 
A hallmark of simple harmonic motion is that a = w ^{2}q
So, the angular frequency is w  =  ( 

)  ^{½} 
For a simple pendulum the rotational inertia is given by:
I = mL^{2}
This gives w  =  ( 

)  ^{½} 
Note that this is independent of the mass of the pendulum.
The general equation giving the position of the pendulum as a function of time is:
q(t) = q_{max} cos(wt + f)