# Simple Harmonic Motion

The equation that fully describes simple harmonic motion is:

where:

- is the amplitude;
- is the frequency, and , where is the period;
- is the time variable;
- is the phase.

The choice of using cosine instead of sine is purely arbitrary, the important concept is that the motion is sinusoidal. In fact, the two functions are interchangeable, they only differ by a translation factor of , as the following relationship shows:

Let's now find the equations for velocity and acceleration, respectively by deriving once and twice the expression for :

Here is a graph where displacement, velocity and acceleration are plotted on the same axis: note how each one is just translated by on the right from its derivative (the phase is set to zero for convenience).

It is very important to note that the expression for the acceleration can be rewritten as:

This is a common and easily recognisable trademark of SHM; when solving problems, finding a relation such as where is some constant (it can also be , because of Newton's second Law ) undoubtedly tells you that the motion is simple harmonic.

You can also find the frequency straight away: (or in the second case).

This relationship shows that a **necessary** and **sufficient** condition for having simple harmonic motion is that the acceleration must be:

- proportional to the displacement,
- always directed opposite to the motion.

Here are some applications of simple harmonic motion:

## Mass on a spring[edit | edit source]

A mass on an ideal spring moves with simple harmonic motion. Let's start from Hook's law: ( is the spring constant).

For Newton's second Law:

which can be rearranged in the familiar SHM formula:

where the frequency is:

## Pendulum[edit | edit source]

The motion of a pendulum can be approximated to a simple harmonic motion, basing on the assumption that the angle of swing is small, so that .
Here is a diagram that shows the forces involved and the resultant acceleration, in a conveniently chosen coordinate system:
The tension cancels out the y-component of the weight, so the net force is:

(for small angles );

where is the angular frequency and is the length of the pendulum;

and we finally arrive to the characteristic equation of SHM:

from which we can work out the frequency (note: it does not depend on the mass!):