Simple Harmonic Motion — Springs, Pendulums and x = A cos(ωt)

Simple harmonic motion: the mathematics of oscillation. Period formulas for springs and pendulums, energy, and real examples.

Quick answer

Simple harmonic motion is oscillation where the restoring force is proportional to displacement (F = −kx): springs, pendulums (small swings), and countless systems. Position follows a cosine curve in time.

T=2πmk,T=2πLg,x=Acos⁡(ωt)T = 2\pi\sqrt{\frac{m}{k}}, \quad T = 2\pi\sqrt{\frac{L}{g}}, \quad x = A\cos(\omega t)

Example: A 1 m pendulum has period T = 2π√(1/9.8) ≈ 2.0 s — the famous 'seconds pendulum' that ticks once per swing.

What you will learn

  • State the defining condition of SHM (F = −kx)
  • Use T = 2π√(m/k) and T = 2π√(L/g)
  • Describe position as x = A cos(ωt)
  • Explain energy exchange in oscillation

What makes motion 'simple harmonic'

Many systems oscillate — but simple harmonic motion (SHM) is the special, mathematically clean case defined by one rule:

F=−kxF = -kx

The restoring force is proportional to the displacement and points back toward equilibrium (the minus sign). Stretch a spring twice as far, get twice the pull-back. This single condition guarantees sinusoidal motion — and an astonishing number of systems obey it, at least approximately.

The spring-mass system

Hang a mass mm on a spring of stiffness kk, pull it down, and release. Hooke's law (F=−kxF = -kx) is exactly the SHM condition, giving:

T=2πmkT = 2\pi\sqrt{\frac{m}{k}}

Heavier mass → slower oscillation. Stiffer spring → faster. Notice what's missing: the amplitude. Pull it 2 cm or 10 cm — the period is identical (ideally). That amplitude-independence is SHM's signature and why springs make good timekeepers.

Mass hanging from a spring with the spring constant and displacement labeledmF = −kxkx
Spring-mass oscillator: Hooke's law provides the F = −kx restoring force.

The simple pendulum

A simple pendulum — mass on a light string of length LL — also qualifies, but only for small angles, where the restoring component of gravity is approximately proportional to displacement:

T=2πLg(small angles)T = 2\pi\sqrt{\frac{L}{g}} \qquad (\text{small angles})

Longer string → slower swing. Mass cancels out entirely. Clockmakers exploited this for centuries: to slow a clock, lengthen the pendulum.

Simple pendulum with length L, angle theta and bob labeledθmL
For small angles, the pendulum's restoring force is nearly proportional to displacement.

Position as a cosine

Solving F=−kxF = -kx with F=maF = ma yields a differential equation whose solution is:

x(t)=Acos⁡(ωt+ϕ)x(t) = A\cos(\omega t + \phi)

  • AA: amplitude — maximum displacement
  • ω=2πf\omega = 2\pi f: angular frequency — how fast phase advances
  • ϕ\phi: phase constant — where in the cycle you start

This is why SHM and uniform circular motion share mathematics: cosine is literally the shadow of circular motion projected onto a line.

Energy sloshing back and forth

In SHM, energy continuously trades forms:

  • At maximum displacement: all potential (12kA2\tfrac{1}{2}kA^2), instantaneously at rest.
  • At equilibrium: all kinetic (12mvmax⁡2\tfrac{1}{2}mv_{\max}^2), moving fastest.
  • Total mechanical energy stays 12kA2\tfrac{1}{2}kA^2 (no friction).

This exchange is why the mass moves fastest through the middle and momentarily stops at the turnarounds — the velocity profile is itself sinusoidal.

Small angles and idealizations

Real springs aren't perfectly Hookean at large stretch, real pendulums aren't point masses on massless strings, and air drag always steals energy. The SHM formulas are idealizations — superbly accurate for small oscillations, progressively worse beyond.

Physicists love SHM anyway because it's the universal first approximation: nearly any stable equilibrium, examined closely enough, looks like F=−kxF = -kx. Molecules vibrating, buildings swaying, LC circuits ringing — all SHM at heart.

Why it matters

SHM is the hydrogen atom of oscillations: the simple case that unlocks thousands of real systems. Master it once, recognize it everywhere.

Variables and units

SymbolNameUnitMeaning
TTPeriodsTime for one complete oscillation
AAAmplitudemMaximum displacement from equilibrium
ωωAngular frequencyrad/sPhase advance per second; ω = 2πf
kkSpring constantN/mSpring stiffness
LLLengthmPendulum string length

Common mistakes

✗ The period of a pendulum depends on the mass or the swing size.

For small angles, T = 2π√(L/g) — no mass, no amplitude. Galileo's great discovery: a heavy bob and a light bob swing together.

✗ All back-and-forth motion is simple harmonic.

SHM specifically requires restoring force proportional to displacement (F = −kx). A bouncing ball or a swing pushed hard are oscillations, but not SHM.

✗ The pendulum formula works at any angle.

It's a small-angle approximation (≲15°). At 60° the true period is about 7% longer — the approximation visibly breaks.

Real-world applications

  • Pendulum clocks kept the best time for 300 years because a pendulum's period is nearly independent of swing size.

  • Car suspensions are tuned spring-mass-damper systems — the spring sets the natural frequency, the shock absorber kills the bounce.

  • Seismometers detect earthquakes with a mass on a spring: the ground moves, inertia keeps the mass still, and the relative motion is recorded.

Frequently asked questions

What is ω (omega)?

Angular frequency — how fast the oscillation cycles in radians per second. ω = 2πf = 2π/T. It appears because the math of SHM is the math of circular motion projected onto one axis.

Why does 2π appear in the period formulas?

A full cycle is 2π radians of phase. The cosine completes one oscillation when its argument advances by 2π, hence T = 2π/ω.

Is a playground swing simple harmonic motion?

Approximately, for small swings — that's the whole point of the 'simple' qualifier. Large swings need the full nonlinear treatment, and the period grows slightly.

What is damping?

Damping is friction-like loss that shrinks the amplitude over time. Light damping barely changes the period; heavy damping can stop oscillation entirely (like a car's shock absorbers).