Energy in Simple Harmonic Motion
Pluck the low A string of a guitar and it rings for several seconds — at 110 vibrations per second, that is close to a thousand full swings before the note fades. Nothing keeps pushing the string. What sustains the sound is a nearly lossless trade: the energy you deposited with your fingertip sloshes back and forth between motion (the string sweeping through its straight shape at maximum speed) and stretch (the string paused, taut, at the edges of its arc), and the total barely leaks at all. Every clock pendulum, every swaying bridge, every vibrating atom in a crystal is running the same two-reservoir economy. You already know the motion: solves the simple harmonic oscillator. The next question is where the energy lives at each instant, and its answer is astonishingly clean. Because the restoring force is conservative, the sum never changes; substituting the sinusoid shows the two pieces are and shares of a fixed total , set by the amplitude alone. Mastering this budget buys you real power. Speed-at-a-given-position problems collapse to one line, the period drops out of an integral without ever solving the differential equation, and the time-averages open the door to the virial theorem, the quality factor of damped oscillators, and — through the phase-space area — to adiabatic invariants and the quantized energy ladder of the quantum oscillator.
- The total mechanical energy of a simple harmonic oscillator is constant: — fixed by stiffness and amplitude, independent of time.
- Kinetic and potential energy oscillate in antiphase as and , each peaking twice per period: energy sloshes at , double the displacement frequency.
- Averaged over a cycle, — the virial theorem specialized to a quadratic potential.
- Energy conservation solved for velocity, , answers "how fast at position " in one line and yields the period by direct integration.
- The orbit is an ellipse of area — the action, an adiabatic invariant and the seed of Bohr–Sommerfeld quantization.
- Because , doubling the amplitude quadruples the energy — the square law is the fingerprint of a quadratic well.
- Key idea: for a quadratic potential the total energy is fixed at ; kinetic and potential energy each swing between and at frequency , averaging to apiece.
Where this lives today
The energy ledger of the harmonic oscillator is now precision technology. Every MEMS gyroscope and timing resonator in a phone is a micromachined oscillator whose femtojoule energy budget must be topped up against dissipation each cycle; the figure of merit quoted on every datasheet, the quality factor , is nothing but this article's conserved divided by the energy lost per radian. The same bookkeeping runs the LIGO and Virgo mirror suspensions, engineered as pendulums with in the hundreds of millions precisely so that the thermal energy assigned to each mode by equipartition — the of equation (6) — stays spread thinly enough in frequency not to drown a gravitational wave. The sharpest 2026 frontier is the bottom of the energy ladder itself. Optomechanical and superconducting-circuit experiments now routinely cool nanogram-scale oscillators below one phonon of average excitation, exchange energy with them one quantum at a time, and verify that the classical phase-space ellipse of equation (8) dissolves into the quantum ground state of area — the zero-point energy sitting exactly where the classical ledger would read . The action of derivation C is the bridge: the classical area, measured in units of Planck's constant, literally counts the phonons.
The physical picture
Watch a child on a swing at the two special moments. At the highest point of the arc she hangs motionless for an instant — all the energy is stored as height, none as motion. Sweeping through the bottom she is fastest — all the energy is motion, none is storage. In between, the books are split. The total never changes; it only migrates between the two reservoirs, twice each way every full swing. A frictionless mass on a spring does exactly the same thing with "height" replaced by "stretch": the energy ledger of any harmonic oscillator has just these two columns, and the sum of each row is the same number. The cleanest way to see the whole story at once is the energy diagram: draw the potential well and rule a horizontal line at the total energy . The motion is confined to where the line sits above the parabola; the line meets the curve exactly at the turning points , and at any intermediate position the vertical gap between the line and the parabola is the kinetic energy.
Now let time run. Both reservoirs breathe sinusoidally, but because each depends on the square of a sinusoid, each completes a full fill-and-empty cycle in half a period. Watch only the kinetic energy and you see it peak twice per swing — once passing through equilibrium moving right, once moving left. The two curves are mirror images pivoting about the half-energy line, and their sum is a dead-flat constant:
Why does the total depend on the amplitude squared? Because the well is quadratic: push twice as far and the force you fight grows twice as large along a path twice as long, costing four times the work. That square law is why doubling a pendulum's swing quadruples the energy you must supply, and why a loudspeaker cone driven at twice the excursion radiates four times the acoustic power. Read in reverse, it is a diagnostic: measure how stored energy scales with amplitude and you learn whether the underlying well is really quadratic.
The energy ledger
Everything in this article flows from one bookkeeping identity. The kinetic energy of the mass is ; the work stored against the restoring force is the potential energy . The work–energy theorem then guarantees that their sum is a constant of the motion:
where: — total mechanical energy (joules); — the oscillating mass; — its velocity; — the spring constant or effective stiffness; — displacement from equilibrium. This single line already is the dynamics: differentiate it and Newton's law falls out; integrate it and the full motion follows. Conservation holds because is conservative — no friction, no drive. The cleanest way to evaluate the constant is to catch the oscillator where one reservoir is empty. At a turning point the mass is momentarily at rest, so the whole budget is potential:
where: — the amplitude, the maximum displacement. Energy depends only on stiffness and amplitude — not on the phase, not on the mass, not on the instant you look. A stiffer spring or a wider swing means more energy, quadratically. Catch it instead at equilibrium, where the spring is relaxed and the budget is all motion. The speed there is the maximum speed , so the same constant reads
where: — the angular frequency. Equations (2) and (3) agree precisely because ; checking that equality is the fastest sanity test of any SHM energy calculation. Form (3) travels better than (2): it survives into systems where "" is hidden (pendulums, circuits, molecules) but and are measurable. Now substitute the full solution , to see how the fixed total is split at every instant:
where: — the phase constant set by initial conditions. The two shares are and of the same angle, so their sum collapses to by the Pythagorean identity — conservation made visible. Each share, being the square of a sinusoid, never goes negative and repeats twice as fast as the motion itself. The half-angle identity makes the doubled tempo explicit:
where: the argument announces that energy oscillates at — kinetic energy peaks both times the mass crosses equilibrium each period, moving right and moving left. The constant offset is the mean value, which is exactly half of : averaging the cosine away over a full cycle,
where: — the average over one period. On time-average the two reservoirs hold equal shares — the virial theorem specialized to a quadratic potential ( for , with ). This equality is the classical seed of equipartition: couple the oscillator to a heat bath and each quadratic term claims of thermal energy. For problem-solving, the most-used consequence of (1) is what you get by solving it for the velocity at a given position:
where: the sign tracks the direction of travel. "How fast is the mass at ?" needs no differential equation — read the kinetic energy off the diagram as and convert. Note the shape: is maximal at , falls off as a quarter-circle, and hits zero exactly at . At half-amplitude the speed is still of maximum — the oscillator hurries through the middle and lingers near the edges.
Which equation answers which question
| you want | use | notes |
|---|---|---|
| the total energy from amplitude | , eq. (2) | needs the stiffness |
| the total energy from peak speed | , eq. (3) | best when is hidden |
| speed at a given position | , eq. (7) | one line, no ODE |
| instantaneous split of | eqs. (4)–(5) | energy oscillates at |
| cycle-averaged shares | , eq. (6) | virial for a quadratic well |
| period without solving the ODE | derivation B below | cancels — isochronism |
| energy from the phase-space orbit | , eq. (9) | adiabatic invariant |
We are proving the two headline claims at once: that really is constant for simple harmonic motion, and that the constant equals . The strategy is direct — differentiate the candidate constant and watch Newton's law kill the derivative, then evaluate the constant twice, once at a turning point and once with the full sinusoidal solution, to confirm the two routes agree. The step to watch is the factoring in Step 2: energy conservation is equivalent to the equation of motion, not an extra assumption layered on top, and the factored form shows exactly where that equivalence lives.
Step 1. Differentiate the energy with respect to time:
Why: chain rule on each quadratic term — and .
Step 2. Factor out the common velocity:
Why this factoring matters: the bracket is precisely the left side of the equation of motion . Energy is conserved if and only if the dynamics is exactly this — add a drag term to the bracket and you get instead, the damped oscillator's energy leak.
Step 3. Impose Newton's law : the bracket vanishes, so at every instant. is a constant of the motion.
Step 4. Evaluate the constant at a turning point, , :
Why a turning point: at maximum displacement the velocity passes through zero, so the kinetic column of the ledger is empty and the constant can be read off from the potential term alone.
Step 5. Cross-check with the full solution , :
Why the prefactors merge: makes both coefficients equal, and the Pythagorean identity then erases the time dependence exactly — not approximately, exactly. *Verified: given the equation of motion, and via ; matches Morin ch. 4 and Taylor ch. 5.*
Go deeper · Derivation B · 1 minThe period straight from the energy integral
The goal is the period extracted from energy conservation alone — no solving of the second-order differential equation, no guessing of sinusoids. The strategy: treat equation (1) as a first-order relation, solve it for , separate variables, and integrate the resulting time element over one quarter of a cycle. Watch two things: the quarter-cycle bookkeeping (from center to turning point is a quarter period, not a half), and the moment the amplitude cancels out of the integral — that cancellation is the isochronism of the harmonic oscillator, the property that made pendulum clocks possible. This same route, with replaced by any potential , computes the period of any one-dimensional oscillation, which is what makes it worth internalizing.
Step 1. Solve the energy equation for the speed, using :
Why the positive root suffices: we follow the quarter of the cycle in which the mass travels from toward , where the velocity stays positive throughout.
Step 2. Separate variables to isolate the time element:
Why this is progress: time now accumulates as a pure integral over position — the dynamics has been reduced to quadrature.
Step 3. Integrate from the center to the turning point, which spans one quarter of the period:
Step 4. Evaluate the integral:
Why the amplitude drops out: substituting rescales the integral to a pure number — the wider swing is exactly compensated by the higher speeds of equation (7). This is isochronism, and it is special to the quadratic well: for any other power law the period inherits an amplitude dependence, as the anharmonic pendulum shows.
Step 5. Assemble:
Verified: the arcsine integral equals and cancels, reproducing the standard SHM period; cross-checked against Landau–Lifshitz §11 and Morin ch. 4.
The phase-space view — energy as an area
There is a second geometry in which the energy budget becomes a picture: plot momentum against position. Squaring and adding and eliminates time entirely, leaving the orbit
where: — momentum. The state of the oscillator circulates clockwise around an ellipse with semi-axes and ; conservation of is the geometric statement that the point never leaves its ellipse. Larger energy, larger ellipse — and it is the area that keeps the score.
Go deeper · Derivation C · 1 minPhase-space area and the action
We are computing the area enclosed by the phase-space ellipse and showing it equals — the quantity called the action, . The strategy is pure geometry: identify the semi-axes of the ellipse from the parametric solution, apply the ellipse-area formula, and translate the result into energy using equation (3). The payoff justifies the effort twice over: is an adiabatic invariant (it stays fixed when the oscillator's parameters change slowly), and setting is the Bohr–Sommerfeld rule that first quantized the oscillator. Watch the units: position times momentum is energy times time — the dimensions of Planck's constant, which is no accident.
Step 1. Read off the semi-axes from the orbit equation (8):
Why these are the extremes: at the turning point all the energy is potential (, ); passing through equilibrium all of it is kinetic (, ).
Step 2. Apply the area formula for an ellipse, area (product of semi-axes):
Why the loop integral is the area: sweeps the upper rim forward and the lower rim backward, which is precisely the signed area enclosed by the orbit.
Step 3. Eliminate the amplitude in favor of the energy using , i.e. :
Why this form is the keeper: energy per unit frequency is what stays put under slow changes. Stiffen the spring gradually and rises in exact proportion to , keeping fixed — the oscillator climbs in energy while conserving its area. Imposing then gives , one Planck quantum per step, a whisker away from the exact quantum result . *Verified: direct integration reproduces the geometric answer; matches Goldstein §10 and Landau–Lifshitz §49.*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| zero amplitude | the mass rests at the well bottom with ; no oscillation, no budget | |
| turning points | all potential; the easiest place to evaluate the constant | |
| through equilibrium | all kinetic; agreement with tests | |
| anharmonic well | the law, the sloshing, and all fail beyond the quadratic approximation | |
| weak damping | energy decays slowly instead of holding; per cycle, the harmonic ledger still balances to leading order — the basis of the quality factor |
Worked examples
1 · A mass on a spring, audited three ways (confidence builder)
A mass on a spring with oscillates with amplitude . Find the total energy, the maximum speed, and the speed and kinetic energy at .
Step 1. The angular frequency: .
Step 2. Total energy from the amplitude, equation (2): . Cross-check via (3): . ✓
Step 3. Maximum speed at equilibrium: .
Step 4. Speed at half amplitude from equation (7): — still of , though the mass is halfway out.
Step 5. Kinetic energy there, two ways. From the ledger: . Directly: . ✓ At half the displacement the potential holds only a quarter of the energy — the quadratic well at work.
2 · An AFM cantilever against the thermal noise floor (exam level)
The tip of an atomic-force-microscope cantilever behaves as a harmonic oscillator with stiffness and resonance frequency . It is driven at amplitude at room temperature (). Find the stored energy, compare it with thermal energy, and estimate the cantilever's thermal jitter when the drive is off.
Step 1. Stored energy from equation (2): . Femtojoules sound tiny — the comparison in Step 2 is what gives the number meaning.
Step 2. Compare with the thermal scale: . The driven motion carries half a million times the thermal energy — which is exactly why a 10 nm AFM scan is crisp rather than fuzzy.
Step 3. Thermal jitter with the drive off. Equipartition — the thermodynamic echo of equation (6) — assigns the potential term its share: , so — a thousandth of the driven amplitude, and the fundamental resolution floor of the instrument. (Consistency: scaling the driven case by amplitude, predicts energy ratio — within a factor of 2 of Step 2, the factor being .)
Step 4. For flavor, the effective mass: , giving — a nanogram-scale mass crossing equilibrium at two centimetres per second, 300,000 times a second.
Origins · 1 minLord Rayleigh and how this was discovered
John William Strutt, third Baron Rayleigh, turned the energy view of oscillations into a working tool. His Theory of Sound (1877, begun on a houseboat trip up the Nile) is built on the insight this article develops: for any vibrating system, compute the maximum potential energy and the maximum kinetic energy of a guessed motion, set them equal, and the frequency falls out — no equations of motion required. That trick, now called the Rayleigh quotient, still anchors structural engineering and numerical eigenvalue analysis. Rayleigh ran physics from his private estate laboratory at Terling after succeeding Maxwell at the Cavendish, measured the electrical units to new precision, explained why the sky is blue, and shared in the discovery of argon — the work that won him the 1904 Nobel Prize. His dissipation function, the standard bookkeeping device for energy leaking out of oscillators, opens the road to the damped harmonic oscillator that follows this article.
Going further
References. Morin, Introduction to Classical Mechanics, ch. 4 (Oscillations) · Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §6.1 · Landau & Lifshitz, Mechanics, Vol. 1, §21–22 · Taylor, Classical Mechanics, ch. 5 · Rayleigh, The Theory of Sound, Vol. 1, ch. 4 (energy methods).
Provenance. Standard SHM energetics. A verifier should: (1) confirm from ; (2) check via ; (3) verify and the resulting equal averages; (4) reproduce from the energy integral; (5) recompute the ellipse area . Sources: Morin ch. 4, Goldstein §6.1 & §10, Landau–Lifshitz Vol. 1 §21–22 & §49, Taylor ch. 5. Worked-example numbers on this page ( J, m/s, m/s for the spring; fJ, , pm for the cantilever) are illustrative arithmetic recomputed from the boxed formulas.
Builds on: Simple Harmonic Motion · Amplitude, Phase, and Angular Frequency · Small Oscillations About Equilibrium. Leads to: Damped Harmonic Oscillator · Driven Oscillations · Resonance · Anharmonic Pendulum and Amplitude Dependence.
Why does the kinetic energy peak twice per period when the mass only completes one full swing?
Because the mass passes through equilibrium twice per cycle — once moving in each direction — and kinetic energy does not care about direction. Squaring the velocity erases the sign: , and repeats every half period of . The identity makes it explicit: energy oscillates at exactly , riding on a constant offset of . If you ever catch yourself writing , the negative values it predicts are the tell that something is wrong — kinetic energy can never dip below zero.
At half the amplitude, why is the kinetic energy 75% of the total rather than 50%?
Because the potential energy is quadratic in position, not linear. At the stored energy is — half the displacement costs only a quarter of the budget, leaving . The even split happens further out, at . A useful habit: positions come in as their squares, so "halfway out" in distance is only a quarter of the way up in energy. The same square law is why the speed at half amplitude is still of the maximum.
I averaged the potential energy over positions and got E/3, not E/2 — which is right?
Both, for different questions. Averaging uniformly over positions from to indeed gives . But the physical time-average is different because the oscillator does not spend equal time everywhere: equation (7) says it moves slowest near the turning points, so it lingers where is large. Weighting each position by the dwell time tips the average up from to exactly . The rule: in the virial statement (6) means an average over time along the actual motion, never over the track the motion covers.
Does E = ½kA² work for a pendulum, which has no spring?
Yes, once you identify the effective stiffness. For small swings a pendulum of length feels the restoring torque of gravity, equivalent to for the arc coordinate , so . You can check it against raw geometry: the bob rises by , and gives the same answer. Beyond small angles the well is no longer quadratic, and the whole harmonic ledger — the law, the sloshing, equal averages — picks up corrections; that story is the anharmonic pendulum's.
If the total energy is conserved, what exactly does damping change?
Damping adds a force that is not conservative, and the factored derivative in derivation A shows precisely what breaks: . Energy now leaks at a rate proportional to the speed squared — fastest at the equilibrium crossings, zero for an instant at the turning points. For weak damping the budget decays as while each individual cycle still balances approximately harmonically. The quality factor counts how many radians of oscillation fit into the decay: , the single number that summarizes an oscillator's energy retention.
Why does energy grow with the square of amplitude and not linearly?
Because both the force you fight and the distance you fight it over grow with amplitude. Stretching a spring from rest to means pushing against a force that ramps from to over a distance ; the work is the area of that force triangle, . Double the amplitude and the triangle doubles in both base and height — four times the area. The square law is the fingerprint of a quadratic well, and it is testable: if measured stored energy scales as anything other than , the restoring force is not Hooke's law, and anharmonic corrections are in play.
Is the ½ in ½kA² the same one-half as in ½mv²?
They share an origin: both come from integrating a linear function. Kinetic energy is the work accumulated from rest to speed ; elastic energy is the work accumulated from equilibrium to stretch . Each integrand ramps linearly from zero, and integrating a ramp always yields half of endpoint-force times distance. Historically the kinetic was attached by Coriolis in 1829 — before him "vis viva" was — precisely to make work and energy line up without stray factors of two.
What is the point of the phase-space ellipse — is it more than a pretty picture?
Considerably more. The ellipse's shape encodes the oscillator ( horizontally, vertically), but its area is a quantity with its own conservation law: change the oscillator's parameters slowly — stiffen the spring, shorten the pendulum — and and both drift, yet stays put. That adiabatic invariance is why a slowly shortened pendulum heats up (), and it is the classical shadow of quantum mechanics: states are allowed one ellipse per multiple of Planck's constant, , giving . Modern experiments that count phonons in cooled nanoresonators are, in effect, counting these areas.