Simple Harmonic Motion
Pull a block on a spring 2 cm to the side and release it; time the round trip. Now pull it 8 cm — four times as far — and time it again. Same answer. The big swing and the small wiggle complete their cycles in exactly the same time, a property called isochronism, and it is strange enough that it took humanity until the 1650s to notice it, trust it, and build the first accurate clocks around it. Every mechanical watch since is a bet that this equality never fails. You arrive with both ingredients in hand: Newton's second law tells you how force makes acceleration, and Hooke's law hands you a force that grows with displacement and always points back toward equilibrium. Put them together and something remarkable happens — the equation picks the solution for you. Only one family of functions has an acceleration proportional to minus itself: sines and cosines. The mass must move sinusoidally, at a frequency that the spring and the mass agree on before you ever touch the system. How hard you pull sets the amplitude and the top speed; it has no vote on the timing. And this is far more than a story about springs. Expand any smooth potential energy about a stable equilibrium and the leading behaviour is always quadratic — which means every stable system in nature, displaced gently, is this system. Molecular bonds, pendulums, quartz crystals, electrical circuits, the modes of a laser field: all of them run on the equation derived here. Master simple harmonic motion and you own the template for every oscillation in physics.
- A linear restoring force turns Newton's second law into : acceleration proportional to minus the displacement.
- The motion is sinusoidal, , with angular frequency set entirely by the hardware.
- The period is independent of amplitude (isochronism) — a small wiggle and a large swing take the same time.
- The maximum speed occurs at the equilibrium crossing; the maximum acceleration occurs at the turning points.
- Energy sloshes losslessly between potential and kinetic forms: , and over a cycle each form averages to exactly half the total.
- Near a stable equilibrium every smooth potential looks parabolic, so every stable system oscillates harmonically for small displacements, with .
- Key idea: a linear restoring force gives , whose sinusoidal solution oscillates at one amplitude-independent frequency — and this is the universal small-displacement limit of any stable equilibrium.
A linear restoring force gives the equation , whose sinusoidal solution oscillates at one amplitude-independent frequency — and this is the universal small-displacement limit of any stable equilibrium.
Where this lives today
The harmonic oscillator is the most manufactured physical system in history — you probably own dozens. Every quartz watch and every phone contains a tiny tuning-fork crystal oscillating at exactly 32,768 Hz ( cycles, halved fifteen times by digital logic, equals one tick per second); its stability comes precisely from isochronism, the period's refusal to care about amplitude as the drive level wanders. MEMS accelerometers and gyroscopes are literal micromachined spring–mass systems, and atomic force microscope cantilevers are springs whose resonant frequency shifts measurably when a few atoms' worth of force acts on the tip. At larger scales, the 660-tonne tuned mass damper hanging in Taipei 101 is a giant pendulum-spring oscillator deliberately tuned to the tower's sway frequency so it drinks energy out of wind-driven oscillations. And aboard the ISS, where a bathroom scale reads zero, astronauts strap into a Body Mass Measurement Device — a chair on a calibrated spring — and their mass is computed from the measured period via : equation (4) of this article, run backwards, as a medical instrument.
The physical picture
Watch one full cycle of the archetype — a block on a frictionless spring. At the far right turning point, , the block is momentarily at rest but the stretched spring is pulling its hardest — maximum force, maximum acceleration, zero speed. The block accelerates left, gaining speed as the pull weakens, and by the time it reaches the natural length the force has died to zero — but the block is now moving at top speed and inertia carries it straight through. On the far side the compressed spring pushes back, braking the block until it stalls at , and the whole story runs in reverse. The motion is an endless argument between the spring's eagerness to restore and the mass's reluctance to stop, and neither ever wins.
The deepest way to see why the result is a sinusoid is to borrow a circle. Let a point travel at constant angular rate around a circle of radius , and shine light from above so the point casts a shadow on a horizontal axis. The shadow's position is — exactly the oscillator's motion. Uniform circular motion viewed edge-on is simple harmonic motion: the radius is the amplitude, the rotation rate is the angular frequency, and one lap of the circle is one period of the oscillation. Every formula in this article can be read off that picture.
Unroll one full period and plot all three kinematic quantities together, and the choreography of the cycle becomes explicit: displacement, velocity, and acceleration are the same sinusoid marching a quarter-cycle apart. Speed peaks exactly where the displacement — and with it the force — is zero, while acceleration peaks at the turning points, always pointing opposite to the displacement.
The math: from force law to timetable
Take a frictionless horizontal track, displacement measured from the spring's natural length. The only horizontal force is the spring's, so Newton's second law reads
where: — mass of the block (kg); — spring constant (N/m); — angular frequency (rad/s), fixed by the hardware before the motion even starts. (You will often see it written and called the natural frequency — the subscript earns its keep once damping and driving forces enter the story.) Read the structure before solving anything: the equation contains exactly one knob, — stiffness over inertia, the spring's eagerness divided by the block's reluctance. No amplitude appears anywhere in it, which means the isochronism of the overview is already guaranteed at the level of the equation itself. Every measurable in this article — period, frequency, peak speed, peak acceleration — will be built from this single .
We are deriving the complete general solution of — not guessing a cosine and checking it, but constructing the answer so we know nothing has been missed. The strategy is the standard weapon for every linear constant-coefficient equation in physics: try an exponential , find which exponents the equation permits, and superpose the allowed solutions. The step to watch is the very last one — counting constants. A second-order equation must carry exactly two arbitrary constants; if our final answer had one or three, we would know we had lost or invented solutions along the way.
Step 1. Try , so that . Substituting into (1) gives , and since never vanishes, the bracket must: . Why an exponential: differentiation maps to a multiple of itself, so a differential equation collapses into an algebraic one for — this single trick solves every linear ODE with constant coefficients.
Step 2. The roots are purely imaginary: . Why this matters physically: imaginary roots happen because makes positive — the force pushes back. Flip the sign of the force (a bead balanced on a dome, ) and the roots become real, , giving runaway exponentials instead of oscillation. The sign of the stiffness decides between vibrating and toppling.
Step 3. Superpose the two independent solutions and demand that be real. Euler's formula converts the complex pair into a real pair:
where: — real constants fixed by the initial position and velocity: and . Why two constants: the equation is second order, so two numbers — where the mass starts and how fast it is moving — must pin down the entire future. Two constants for two initial conditions: the solution is complete, not a lucky guess.
Step 4. Fold the two terms into a single cosine using , , which gives the form used everywhere in practice, together with its derivatives:
where: — the amplitude, the maximum displacement; — the phase constant, encoding where in the cycle the clock started. Note holds at every instant — the acceleration is a live, continuously updated copy of the displacement, flipped and rescaled.
Step 5. Read off the period. The cosine repeats when its argument grows by : , so
where: — period (s); — ordinary frequency (Hz), cycles per second, related to the angular frequency by . Neither contains : the period is amplitude-independent. Verified: substituting (3) into (1) gives identically; the two-constant count matches the order of the equation. Matches Morin Ch. 4 and Taylor Ch. 5.
Why does the amplitude cancel? Double the pull: the typical force doubles, so the typical acceleration doubles — but the block also has twice the distance to cover, and the two effects cancel exactly when the force law is linear. Bend the force law even slightly (a cubic spring, a large-angle pendulum) and the cancellation breaks, the period starts to drift with amplitude, and the system is no longer a good clock.
Which formula answers which question
| you want | use | notes |
|---|---|---|
| position, speed, acceleration at time | eq. (3) | need and from initial conditions |
| the timing — period or frequency | , eq. (4) | amplitude never enters |
| peak speed / peak acceleration | , , eq. (5) | one power of apart |
| speed at a given position | from energy conservation, eq. (7) | |
| stiffness from a stopwatch | eq. (4) run backwards | |
| frequency of any stable system | , eq. (11) | the universality result |
Go deeper · Derivation B · 2 minMaximum speed two ways, and where the energy lives
The target is the oscillator's complete energy story: the peak speed , the conserved total , and how that total divides between kinetic and potential forms over a cycle. The strategy is deliberately redundant — we compute first by calculus from the explicit solution, then again from energy conservation without ever touching the solution, and demand the two answers agree. Getting the same formula from two independent routes is the cheapest error-detector in physics; watch also for the factor , which quietly converts between the kinetic and potential bookkeeping throughout.
Step 1. Calculus route. From (3), is largest when the sine hits — which is exactly when the cosine, and hence , is zero:
where: — speed at the equilibrium crossing; — acceleration magnitude at the turning points, where the force peaks. Speed and force peak a quarter-cycle apart — one is maximal exactly where the other vanishes.
Step 2. Energy route. At a turning point the block is at rest and the spring holds all the energy: . At the equilibrium crossing the spring is relaxed and the block holds all of it: . Equate the two:
Why this cross-check counts: differentiation and energy bookkeeping are logically independent arguments, and they land on the same formula — exactly the kind of two-route verification working physicists live by.
Step 3. Now prove the total really is conserved at every instant, not just at the two special points. Define and differentiate:
Why the bracket vanishes: is the equation of motion itself — energy conservation is not an extra assumption but a direct consequence of the force law being derivable from the potential . So at every instant, and solving for the speed gives at any position.
Step 4. Finally, average over a cycle. Inserting (3) into each energy gives and , using . Over a full period , so
where: — the time average over one period. The oscillator splits its budget exactly in half between motion and configuration — the classical seed of the equipartition idea that later blooms in statistical mechanics. Verified: as required; energy split matches Goldstein Ch. 6 and Landau & Lifshitz §21.
Notice one subtlety in the energy movie: each form of energy peaks twice per cycle — the block passes equilibrium once moving left and once moving right — so kinetic and potential energy oscillate at frequency , twice the frequency of the motion itself.
The vertical spring — gravity moves home, not the clock
Hang the same block from the same spring. Gravity stretches it to a new equilibrium , and measuring displacement from that point, the net force is . The constant gravity term cancels exactly: the block oscillates about the shifted equilibrium with the same and the same period. A spring oscillator ticks at the same rate on Earth, on the Moon, and in free fall — which is precisely why astronauts measure their body mass with one.
Two more languages for the same motion
The sinusoid can be dressed in two other costumes, and both become indispensable one article downstream. First, the complex exponential. Since , the whole two-constant solution compresses into a single complex number:
where: — the complex amplitude, packing both the amplitude and the phase into one symbol; — the imaginary unit. The payoff is that differentiation becomes multiplication by : the differential equation turns into algebra. For the undamped oscillator this is elegant; for the damped and driven oscillators it is the difference between a page of trigonometry and three lines. Second, the phase-space portrait. Divide the conservation law (7) by and the trajectory in the plane becomes
where: the motion traces a closed ellipse with semi-axes and , traversed clockwise once per period. Closed curve = perfectly repeating motion = perfectly conserved energy; when damping enters, this ellipse will spiral into the origin, and the picture makes the energy loss visible at a glance.
Why the oscillator is everywhere
Here is the result that promotes this article from "springs" to "physics." Nature's potentials are not parabolas — molecular bonds, gravitational wells, and chemical landscapes are lopsided, saturating, complicated curves. But zoom in on the bottom of any smooth valley and it looks parabolic. That single geometric fact is why the harmonic oscillator is the most reused calculation in science.
Go deeper · Derivation C · 1 minUniversality — every stable equilibrium oscillates harmonically
We are proving the claim that licenses everything else in this article: a particle displaced slightly from any stable equilibrium of any smooth potential executes simple harmonic motion, with a frequency read off from the curvature of the potential. The strategy is a Taylor expansion of about the equilibrium point, keeping terms honestly and watching each one die for a stated reason. The point to watch is the word stable: the argument needs , and its failure modes — zero or negative curvature — are physically meaningful, not edge-case pedantry.
Step 1. Expand the potential about the equilibrium :
Why we may: smoothness of is the only assumption — the expansion is Taylor's theorem, not physics.
Step 2. The constant has no gradient and exerts no force — drop it. The linear term vanishes because is an equilibrium: the force there is by definition. The first term that survives with any influence is the quadratic one:
where: — the small excursion from equilibrium; — the effective stiffness, which is nothing but the curvature of the potential at its minimum. Stability is the statement — the valley curves upward — so is a genuine positive spring constant.
Step 3. Differentiate to get the force and apply Newton's law:
Why this is the punchline: the equation is (1) all over again, with the potential's curvature standing in for the spring constant. Nothing about springs was used — only the existence of a smooth minimum.
Step 4. Read off the universal small-oscillation frequency:
where: — the second derivative of the potential evaluated at the minimum (N/m). Sharper valley, faster vibration; flatter valley, slower. When (a quartic-bottomed valley) the harmonic term is absent, the leading force is cubic, and the period becomes amplitude-dependent — the approximation, not the oscillation, is what fails. Verified: for equation (11) returns ; for the pendulum, has and inertia , giving — both standard results. Matches Landau & Lifshitz §21.
One equation, many costumes
The same three-symbol equation runs systems that share not a single atom of hardware. In each row of the table, identify what plays "displacement," what resists change (the inertia), and what pushes back (the stiffness) — then every result of this article transfers wholesale.
| system | "displacement" | "mass" | "stiffness" | frequency |
|---|---|---|---|---|
| block on spring | extension | |||
| simple pendulum (small angle) | angle | |||
| diatomic molecule | bond stretch | reduced mass | bond curvature | |
| LC circuit | charge | inductance | inverse capacitance |
The molecular row is infrared spectroscopy in miniature: measure the vibration frequency of a bond and you have measured the curvature of the interatomic potential — a probe of quantum chemistry executed with this article's classical formula. The LC row is why radios tune: the circuit oscillates at , with charge sloshing between capacitor and inductor exactly as energy sloshes between spring and mass. Same equation, same solutions, same isochronism.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| larger (linear regime) | unchanged, | isochronism: amplitude buys speed and energy, never time |
| stiffer spring, | frequency doubles — stiffness accelerates the clock | |
| heavier block, | inertia slows the clock | |
| vertical spring | same , equilibrium shifts by | gravity relocates the center of oscillation, not the period |
| any stable equilibrium, small | SHM with | the parabola at the bottom of every smooth valley — universality |
| damping switched on, limit | eq. (1) | SHM is the idealized zero-friction limit; real amplitudes decay |
| nonlinear force | depends on | isochronism is a property of linearity, not of springs |
Worked examples
1 · The standard setup (confidence builder)
A 0.50 kg block on a frictionless table is attached to a spring with , pulled from equilibrium, and released. Find , , , and .
Step 1. Angular frequency from the hardware: .
Step 2. Period: — about three cycles per second.
Step 3. Frequency: .
Step 4. Maximum speed: .
Step 5. Energy cross-check: , so ✓. Note what happens if the block is instead pulled 16 cm: the period stays s to the digit, while doubles to 3.2 m/s.
2 · Reading the hardware off a stopwatch (exam level)
A 1.2 kg block hanging from an unknown spring completes 15 full oscillations in 9.0 s at amplitude . Find the spring constant, the maximum speed, the maximum acceleration, and the block's speed when it is 2.5 cm from equilibrium.
Step 1. Period from the timing: , so .
Step 2. Invert equation (4) for the stiffness: . (That the spring hangs vertically is irrelevant — gravity shifts the equilibrium, not the period.)
Step 3. Maximum speed: , at the equilibrium crossing.
Step 4. Maximum acceleration: — over half a , at the turning points.
Step 5. Speed at half amplitude, from energy conservation: .
Step 6. Sanity check Step 5: at half the displacement the spring holds only a quarter of the energy (), so the kinetic energy is and ✓ — the block is still moving at 87% of top speed halfway out.
Origins · 1 minChristiaan Huygens and how this was discovered
Huygens turned isochronism into technology. In 1656–57 he built the first pendulum clock, improving timekeeping accuracy roughly a hundredfold overnight, and in Horologium Oscillatorium (1673) — arguably the finest mechanics book before Newton's Principia — he analyzed oscillating systems with full mathematical rigor, deriving the pendulum period and inventing the cycloidal cheeks that make a pendulum truly isochronous at all amplitudes. In 1675 he devised the spiral balance spring, a literal Hooke's-law oscillator that made portable watches viable; Hooke claimed priority, and the ensuing quarrel echoed for decades. Every mechanical watch running today still beats to Huygens' spring–mass rhythm.
Going further
Texts. Morin, Introduction to Classical Mechanics, Ch. 4 (Oscillations) · Taylor, Classical Mechanics, Ch. 5 · Goldstein, Classical Mechanics, 3rd ed., Ch. 6 · Landau & Lifshitz, Mechanics (Vol. 1), §21–23.
Provenance. Equation of motion and solution from Morin Ch. 4 and Taylor Ch. 5; energy conservation and equipartition from Goldstein Ch. 6; universality of small oscillations from Landau & Lifshitz §21. A verifier should recompute: (1) and ; (2) that satisfies ; (3) the energy split using ; (4) the pendulum and LC analogues and . No empirical constants are quoted beyond standard textbook relations. Worked-example numbers on this page ( rad/s, s, m/s; N/m, m/s, , m/s at ) are illustrative arithmetic recomputed from the boxed formulas.
Builds on: Newton's Second Law · Taylor Series Expansion · Second-Order Linear ODEs. Leads to: Amplitude, Phase, and Angular Frequency · Energy in Harmonic Motion · Small Oscillations About Equilibrium · Complex Exponential Representation of Oscillations · The Simple Pendulum · Damped Harmonic Oscillator.
If the velocity is zero at the turning point, why doesn't the block just stay there?
Zero velocity is not zero force. At the spring is at maximum stretch, so the restoring force — and with it the acceleration — is at its largest magnitude of the whole cycle. The block is momentarily at rest but is being yanked back toward equilibrium as hard as it ever will be, so it immediately picks up speed again. Compare a ball thrown straight up: at the top its velocity is zero but gravity is still acting, and down it comes. "At rest" and "in equilibrium" mean different things — the block is only in equilibrium at , which is precisely the one point where it is never at rest (it crosses at top speed).
Why doesn't the period depend on amplitude? Pulling farther really feels like it should take longer
Pull the block twice as far and it does have twice the distance to cover — but the linear force law hands it exactly twice the force, hence twice the acceleration and twice the typical speed, everywhere along the path. Twice the distance at twice the speed takes the same time; the cancellation is exact, not approximate. The proof is that simply never appears in — the timing was decided before you chose how far to pull. But the cancellation is a property of linearity: for a large-angle pendulum or a stiffening spring the force law bends, the balance breaks, and the period does start to drift with amplitude.
What is the difference between ω and f, and how do I know which one a formula wants?
They count the same motion in different units: counts cycles per second (Hz), counts radians of phase per second, and one cycle is radians, so . The circle picture makes it concrete: is laps per second, is the angular speed of the point running the circle. Formulas born from the differential equation — , , — always want , because derivatives of pull down factors of , not . Lab instruments and musical pitch quote . The classic exam slip is computing rad/s and reporting "20 Hz"; the honest value is Hz.
How do we know x = A cos(ωt + φ) is the whole answer and not just one solution among many?
Because of the constant-counting argument, which is the quiet backbone of the characteristic-root derivation. A second-order equation needs exactly two pieces of initial data — position and velocity — to determine the future, so its general solution carries exactly two free constants. The exponential method produced two independent solutions ( and , repackaged as cosine and sine), and the combination has precisely the two knobs and . Any initial condition can be matched, and the uniqueness theorem for linear ODEs guarantees that a solution matching given initial data is the solution. Nothing is missing.
Why does hanging the spring vertically not change the period? Gravity is obviously pulling on the block
Gravity is a constant force, and a constant force cannot change the stiffness — it can only relocate the point where forces balance. The new equilibrium sits at , where spring pull equals weight; measure displacement from there and the mathematics returns exactly , the gravity term having cancelled against the pre-stretch. The block oscillates about the new home at the old frequency. The general lesson: adding any constant force to a harmonic oscillator shifts the center of oscillation and changes nothing else. This is also why the ISS body-mass chair works identically in orbit — the period never cared about the local gravity in the first place.
What's the point of the complex exponential form if the position is a real number?
It is a bookkeeping device that converts calculus into algebra. Differentiating just multiplies it by , so a differential equation becomes a polynomial equation, and the two real constants (, ) travel together inside one complex number . You do the whole computation in complex form and take the real part at the end — legitimate because the equation is linear with real coefficients, so real and imaginary parts separately satisfy it. For the undamped oscillator the saving is modest; for damped and driven oscillators it is decisive, which is why the complex-exponential article is the next stop on this track. Electrical engineers call the same trick phasors and run all of AC circuit theory on it.
At x = A/2 the block is halfway out — why is the kinetic energy 3/4 of the total and not 1/2?
Because potential energy grows with the square of displacement, not linearly. At half the amplitude the spring stores — a quarter of the total, not half. Conservation hands the remaining three quarters to the kinetic term, so : the block still moves at 87% of top speed halfway to the turning point. The lesson generalizes: the oscillator spends most of its time near the turning points, where it crawls, yet carries most of its speed through a narrow zone around equilibrium. The quadratic energy landscape, not linear intuition, sets the split.
Real springs aren't perfectly linear — so is SHM ever exactly true, and when does the approximation break?
For a real spring, exactness is an idealization; the honest statement is that SHM is the leading behaviour for small enough displacements, with corrections controlled by the next terms of the Taylor expansion of the potential. How small is "small enough" depends on the system: a pendulum at has its period wrong by only about (the correction is ), while a molecular bond stretched a few percent of its length is already visibly anharmonic. The breakdown signature is always the same — the period starts depending on amplitude and the motion picks up overtones at , . The anharmonic pendulum article on this track quantifies exactly this failure.