← Differential equations

Simple harmonic motion

A mass on a spring: mx″ + kx = 0.

Start this lesson

An undamped spring obeys mx″ + kx = 0. The solution oscillates as x = A cos(ωt) + B sin(ωt), with angular frequency ω = √(k/m) and period T = 2π/ω. A stiffer spring (bigger k) vibrates faster; a heavier mass vibrates slower.

Example: m = 2 kg, k = 18 N/m

  1. ω = √(18/2) = 3
  2. T = 2π/3 ≈ 2.094 s — Period

Why it works: The spring pulls back in proportion to how far it is stretched, which makes the motion swing back and forth like sine and cosine.

Tip: The amplitude depends on how far you pull it, but the period does not.