STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Simple harmonic motion, explained with examples

Simple harmonic motion (SHM) describes oscillations such as a mass bouncing on a spring or a pendulum swinging. It is one of the most mathematical topics in A level Physics, and it links mechanics to waves.

On this page
  1. The defining condition
  2. Key quantities
  3. Displacement, velocity and acceleration
  4. The mass-spring system
  5. The simple pendulum
  6. Worked examples
  7. Measuring the period accurately
  8. Energy in SHM
  9. Damping and resonance
  10. Common mistakes
  11. Practice questions
  12. Frequently asked questions
  13. Key takeaways
  14. Related guides

The defining condition

An object moves with simple harmonic motion when its acceleration is directly proportional to its displacement from the equilibrium position, and always directed towards that position. In symbols:

a = −ω²x

Here x is the displacement from equilibrium, ω is the angular frequency in rad/s, and the minus sign shows that the acceleration always points back towards equilibrium. The further the object is displaced, the harder it is pulled back. This restoring behaviour is what makes SHM so common in nature.

Key quantities

An important property of SHM is that the period does not depend on the amplitude. A pendulum swinging through a small arc or a slightly larger arc takes the same time per swing. Oscillators like this are called isochronous, which is why pendulums were used in clocks.

Displacement, velocity and acceleration

If timing starts at maximum displacement, the motion is described by:

The maximum speed is vmax = ωA, reached as the object passes through equilibrium. The maximum acceleration is amax = ω²A, at the extremes of the motion where the object is momentarily at rest. On graphs against time, velocity is a quarter of a cycle (π/2) ahead of displacement, and acceleration is exactly out of phase (π) with displacement.

The mass-spring system

For a mass m on a spring of spring constant k, T = 2π√(m/k). A heavier mass oscillates more slowly; a stiffer spring oscillates faster. This is true whether the spring is horizontal or vertical.

The simple pendulum

For a simple pendulum of length L, T = 2π√(L/g). This only holds for small angles, below about 10°, where sin θ ≈ θ in radians. The period does not depend on the mass of the bob. Measuring T for different lengths and plotting T² against L gives a straight line with gradient 4π²/g, a classic way to measure g.

Worked examples

Example 1: maximum speed and acceleration

A mass oscillates with amplitude 0.04 m and period 0.5 s. Find its maximum speed and maximum acceleration.

Example 2: speed at a displacement

For the same oscillator, find the speed when x = 0.02 m.

Example 3: a mass on a spring

A 0.25 kg mass hangs from a spring with k = 40 N/m. Find the period and frequency.

Example 4: a pendulum

Find the length of a pendulum with a period of exactly 2 s. (g = 9.81 m/s²)

Example 5: displacement at a time

An oscillator has A = 5 cm and f = 2 Hz and starts at maximum displacement. Find x at t = 0.1 s.

Measuring the period accurately

In practical work, time 10 or 20 complete oscillations and divide, rather than timing one, because reaction time is then a much smaller fraction of the total. Start timing as the object passes through equilibrium, where it moves fastest and the moment is easiest to judge. Use a fiducial marker, such as a pin, at the equilibrium position. Repeat each measurement and take a mean.

Energy in SHM

In an undamped oscillator, the total energy stays constant, continually swapping between kinetic and potential energy. At equilibrium, kinetic energy is maximum and potential energy is zero. At maximum displacement, kinetic energy is zero and potential energy is maximum. The total energy is E = ½mω²A², so doubling the amplitude quadruples the energy. Graphs of kinetic and potential energy against displacement are parabolas; against time, each completes two cycles for every one oscillation.

Damping and resonance

In real systems, friction and air resistance remove energy, so the amplitude decreases over time. This is damping. Light damping lets the system oscillate with slowly decreasing amplitude. Critical damping returns the system to equilibrium in the shortest time without oscillating, as in car suspension. Heavy damping returns it very slowly.

When a system is driven by a periodic force, it oscillates at the driving frequency. If the driving frequency matches the system's natural frequency, the amplitude becomes very large: this is resonance. Resonance is useful in musical instruments and microwave ovens, but dangerous in bridges and buildings. More damping lowers and broadens the resonance peak.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. An oscillator has frequency 5 Hz. Find ω.

Show answer
ω = 2π × 5 ≈ 31.4 rad/s.

Q2. A mass-spring system has T = 1.2 s. The mass is quadrupled. Find the new period.

Show answer
T ∝ √m, so T doubles to 2.4 s.

Q3. A pendulum is 0.50 m long. Find its period. (g = 9.81 m/s²)

Show answer
2π√(0.50/9.81) ≈ 1.42 s.

Q4. Where in the motion is the acceleration zero?

Show answer
At the equilibrium position, where x = 0.

Q5. The amplitude of an oscillator is halved. What happens to its total energy?

Show answer
E ∝ A², so it falls to one quarter.

Frequently asked questions

Is SHM in AS or A level Physics?

In most specifications, including AQA, Edexcel and OCR, SHM is a second-year (A level) topic. Check your board.

Is SHM on the AP Physics exams?

Yes. Simple harmonic motion is in AP Physics 1 and AP Physics C: Mechanics, with mass-spring systems and pendulums.

Key takeaways