Simple Harmonic Motion

Pull a mass on a spring and let go. It oscillates back and forth, slowing at the ends, fastest in the middle, repeating with metronomic regularity. This rhythm — simple harmonic motion — is one of the most important patterns in all of physics, appearing everywhere from atoms to bridges to the cycles of light itself.
The defining condition
Simple harmonic motion (SHM) happens whenever the restoring force on an object is directly proportional to its displacement and points back toward equilibrium. A spring is the classic example, governed by Hooke’s law:
The minus sign is everything: it says the force always pulls the mass back toward the center. Stretch the spring and it pulls in; compress it and it pushes out. The constant k is the stiffness. This single relationship guarantees the smooth, repeating oscillation we call harmonic.
Describing the motion
Because the force is proportional to displacement, the resulting motion is a sine wave in time. The position of the mass can be written as:
Here A is the amplitude (the maximum displacement), ω is the angular frequency, and φ is the phase, which sets where in the cycle the motion starts. The angular frequency connects to the everyday frequency f and period T by ω = 2π·f and T = 1/f.
The remarkable independence of amplitude
For an ideal mass on a spring, the period depends only on the mass and the stiffness — not on how far you pull it:
Pull it twice as far and it still takes exactly the same time to complete a cycle, because the larger restoring force exactly compensates for the longer distance. This amplitude-independence is what makes oscillators such reliable timekeepers.
SHM is the universal “small oscillation” behavior. Almost any system disturbed slightly from a stable equilibrium oscillates approximately harmonically, because near a minimum nearly every restoring force looks linear. That is why the same math describes springs, pendulums, atoms in a crystal, and electrical circuits.
The pendulum
A pendulum swinging through small angles is also a simple harmonic oscillator. For small swings its period is:
where L is the length and g is gravitational acceleration. Notice the mass does not appear — a heavy and a light pendulum of the same length keep the same time. This works only for small angles; for large swings the motion is no longer perfectly simple, and the period grows slightly. Understanding the role of g here connects to broader ideas in Newton’s laws of motion.
Energy in the oscillation
SHM is a continual trade between two forms of energy:
- Potential energy stored in the spring, greatest at the extremes where the mass momentarily stops.
- Kinetic energy of motion, greatest at the center where the mass moves fastest.
In an ideal system the total stays constant, sloshing endlessly between the two: E = ½·k·A². You can estimate the moving part with a kinetic energy calculator at any point in the swing.
Damping and resonance
Real oscillators lose energy to friction and air resistance, so their amplitude slowly decays — this is damping. Push a swing at just the right rhythm, however, and you feed energy in faster than it leaks out, building large amplitudes. This is resonance, and it explains everything from a wine glass shattering at the right pitch to the careful engineering needed to keep bridges from swaying dangerously in wind. Every oscillator has a natural frequency at which it most readily resonates, set by the same stiffness and mass that fix its period. Engineers either exploit this — as in the tuned circuits that pick out a single radio station — or design around it, adding damping to musical-hall floors, vehicle suspensions, and skyscrapers so that destructive resonances never have a chance to build.
Frequently asked questions
Why is it called “simple” harmonic motion?
“Simple” distinguishes the pure, single-frequency sinusoidal case from more complex oscillations built of many frequencies. It arises whenever the restoring force is exactly proportional to displacement.
Does a heavier mass on a spring oscillate more slowly?
Yes. Since T = 2π√(m/k), increasing the mass lengthens the period — the spring has more inertia to move. Curiously, for a pendulum the mass cancels out and does not affect the period.
Why does amplitude not change the period?
Because a larger amplitude brings both a longer distance to travel and a proportionally larger restoring force. The two effects cancel exactly for an ideal harmonic oscillator, leaving the period unchanged.