
Physics I course sequence · Interactive lesson
Energy in simple harmonic motion
Solving for x(t) answers every question about an oscillator, but most questions never mention the clock. This topic turns the equation of motion into an energy budget you can read at a glance: how fast the mass moves at a given point, how far it swings after a push, and whether a real oscillator's readings still add up to one total.
UPI-14.04 · Lesson 4 of 8 in this unit. Position is not a completion score.Build the model
Integrate the equation of motion once and you get a budget the clock cannot change.
The key idea
The mechanical energy of a simple harmonic oscillator is E = ½mv² + ½kx², kinetic energy plus the spring's potential energy; with no dissipation it stays fixed at ½kA² while the two parts trade places.
Example. A 0.40 kg glider on a 160 N m⁻¹ spring swinging 5.0 cm each way has E = ½ × 160 × 0.050² = 0.20 J; passing x = 4.0 cm it holds 0.128 J in the spring and 0.072 J as motion, so it moves at 0.60 m s⁻¹.
The complete physical model and assumptions
For a mass on an ideal spring, energy conservation is not an extra principle laid on top of simple harmonic motion; it is the equation of motion integrated once. Multiply m dv/dt = −kx by v and both sides become exact time derivatives, so ½mv² + ½kx² cannot change. That one number fixes the amplitude, A = √(2E/k), and the top speed, √(2E/m), and gives the speed at any position without solving for x(t). The total never moves, but its two parts trade places twice per cycle, each averaging E/2. Plotted with x across and v up, a motion of fixed energy is a closed ellipse and more energy means a larger one, so a single snapshot of position and speed pins down the whole oscillation. The model rests on two assumptions. No force may add or remove energy: let friction act and E drains, the ellipse becomes an inward spiral, and an amplitude worked out from the energy is true only for the current cycle. And U must really be ½kx², which is exact for an ideal spring but only an approximation near the bottom of any other potential well. Beyond that, energy is still conserved and still gives the speed at each position, but the motion is no longer sinusoidal and its period starts to depend on amplitude.
1Multiply Newton's law by v and a conserved quantity appears
The equation of motion m dv/dt = −kx is written in terms of time. Multiply both sides by v = dx/dt. By the chain rule the left side becomes mv dv/dt = d/dt(½mv²), and the right side becomes −kx dx/dt = −d/dt(½kx²). Collect them and d/dt(½mv² + ½kx²) = 0: the combination is frozen for as long as the motion obeys Hooke's law. Work gives the same ½kx². As the mass moves from x₁ to x₂, the spring does work W = ∫ −kx dx over that interval, which equals ½kx₁² − ½kx₂² and depends only on the endpoints, so it defines a potential energy U(x) = ½kx² with U = 0 at equilibrium. Nothing here used the sinusoidal solution. That is why energy can answer questions about position and speed that never mention t, and why the same multiplication, with any extra force F included, returns dE/dt = Fv: the power that force feeds in or drains out.
2The energy changes hands twice every cycle
Substitute x = A cos(ωt + φ) and v = −ωA sin(ωt + φ). Using mω² = k, U = ½kA² cos²(ωt + φ) and K = ½kA² sin²(ωt + φ), and because cos² + sin² = 1 the sum is ½kA² at every instant. Rewrite cos²θ as ½(1 + cos 2θ) and each part is seen to oscillate at 2ω about E/2: the energy exchange repeats every half period, never dips below zero, and averages E/2 for each part. Differentiate to get the rate of exchange: dU/dt = −ωE sin[2(ωt + φ)]. Its largest size, ωE, comes where x = ±A/√2, not at equilibrium, where the spring exerts no force, nor at a turning point, where the mass is momentarily still. A 0.40 kg glider on a 160 N m⁻¹ spring with a 5.0 cm amplitude has ω = 20 rad s⁻¹ and E = 0.20 J, so the spring passes energy to the glider at up to 4.0 W, and U runs from E to 0 and back in T/2 = 0.157 s.
3Speed from position, without a clock
Set ½mv² + ½kx² equal to its value at a turning point, ½kA², and solve: v² = (k/m)(A² − x²), so v = ±ω√(A² − x²). Energy tells you the speed at a place but not the direction, which is why the sign stays open; the mass passes each interior point twice per cycle, once each way. The relation is lopsided. Well out from the centre, at x = 0.6A, the mass keeps √(1 − 0.36) = 80% of its top speed, and the speed collapses only in the last stretch: at x = 0.9A it is √0.19 = 44% of ωA, and at 0.99A it is 14%. Because the mass lingers where it is slow, it spends most of each cycle near the ends. So the time average of K over a cycle is E/2, less than the 2E/3 you get by averaging K = E(1 − x²/A²) evenly over every position between −A and +A.
4Read the motion off the energy diagram
Draw U(x) = ½kx² as a parabola and E as a horizontal line. At any x, the height of the parabola is U and the gap from the parabola up to the line is K = E − U. Kinetic energy cannot be negative, so motion is allowed only where the line lies above the curve, and the two crossings, where U(x) = E, are the turning points x = ±A. The slope of the curve gives the force, F = −dU/dx = −kx, always pointing downhill toward equilibrium, and the curvature d²U/dx² = k together with the mass sets ω = √(k/m). Raise the line and the crossings spread, but only as √E, because U climbs as x². A tap on a moving mass raises its line without touching the parabola, so the diagram shows at once how far the next swing will reach, and a slow loss to friction lowers the line cycle by cycle, pulling both turning points in toward the centre.
5Phase space: every energy is an ellipse
Plot the state as a point with x across and v up. Dividing ½mv² + ½kx² = E through by E gives x²/A² + v²/(ωA)² = 1, an ellipse with semi-axes A and ωA, so a whole oscillation is one closed curve. The point runs clockwise: at x = +A it has v = 0, then v turns negative as the mass heads back, so the point drops below the axis on its way to x = 0. Different energies give nested ellipses that never cross, because a state (x, v) has one energy and one future. This is the fastest route from a snapshot to the amplitude. A glider with ω = 20 rad s⁻¹ caught at x₀ = 3.0 cm moving at 0.80 m s⁻¹ has v₀/ω = 4.0 cm, so it lies on the ellipse with A = √(3.0² + 4.0²) cm = 5.0 cm. Plot momentum p = mv instead of v and the area enclosed, π × A × mωA, equals E × T, the energy times the period.
6Where the energy picture stops being SHM
Two assumptions sit under E = ½kA², and real oscillators break both. The first is that nothing removes energy. Add a drag force −bv and the multiplication by v gives dE/dt = −bv², which is never positive: E drains fastest where the mass moves fastest, and the phase-space point spirals inward instead of closing its ellipse. Because E ∝ A², losses look larger in energy than in amplitude; an amplitude that shrinks by 5% each cycle means 1 − 0.95² = 9.75% of the energy gone per cycle. The second assumption is that U is exactly ½kx². A real spring stiffens or yields at large stretch, and a pendulum's U = mgL(1 − cos θ) falls below the parabola ½mgLθ², by 2.3% at θ = 30° and 8.8% at 60°. Energy is still conserved, so K = E − U(x) still gives the speed. What fails is the sinusoid, and with it the amplitude-independent period: a 30° swing already takes about 1.7% longer than 2π√(L/g).
Key equations
Read the units, assumptions and limits before substituting.
Total mechanical energy
E = ½mv² + ½kx² = ½kA² = ½mω²A²
One number sets the size of the motion. Invert it for the amplitude, A = √(2E/k), and for the top speed, ωA = √(2E/m).
E in J, m in kg, k in N m⁻¹, x and A in m, v in m s⁻¹, ω = √(k/m) in rad s⁻¹Conservation as a first integral
d/dt(½mv² + ½kx²) = v(m dv/dt + kx) = 0
It links x and v at the same instant without solving for x(t). If another force F acts, the same step gives dE/dt = Fv, the power it delivers.
holds whenever m dv/dt = −kx, so no friction, drag or driving force acts on the massSpeed at a position
v = ±ω√(A² − x²)
The speed wherever the mass is, from its position alone, with x = ±A the only places it is momentarily at rest.
v in m s⁻¹, ω in rad s⁻¹, x and A in m; the sign is the direction of travel, which energy cannot supplyThe split over time
U = E cos²(ωt + φ), K = E sin²(ωt + φ)
Each part averages E/2 over a cycle, and energy changes hands fastest, at a rate ωE, as the mass passes x = ±A/√2.
for x = A cos(ωt + φ), with t in s and φ in rad; each part swings between 0 and E at angular frequency 2ωPhase-space ellipse
x²/A² + v²/(ωA)² = 1
A snapshot fixes the ellipse: A = √(x₀² + v₀²/ω²). Put momentum p = mv on the vertical axis and the enclosed area is exactly E × T.
semi-axes A in m and ωA in m s⁻¹; every energy is its own ellipse, traced clockwise once per period TReading an energy diagram
K(x) = E − U(x) ≥ 0, turning points where U(x) = E
Motion is confined to where the E line lies above the curve. This reading survives when U is not a parabola; the sinusoid does not.
U(x) and E in J, x in m; for the spring, U = ½kx² puts the turning points at x = ±AInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. At ωt = 60° the glider is halfway out, yet U is only a quarter of E; try 45° for the even split at x = A/√2. Then drag the mass heavier: the energy diagram does not move, since E = ½kA² has no m in it, but the ellipse flattens and the top speed falls.
Live results
- TOTAL E = ½kA²
- 0.128 J
- POTENTIAL U = ½kx²
- 0.032 J
- KINETIC K = ½mv²
- 0.096 J
- SPEED |v|
- 0.62 m s⁻¹
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Amplitude A: 8.0 cm; Point in the cycle ωt: 60 °; Glider mass m: 0.50 kg
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The tempting mistake is to treat energy as if it were linear in displacement: halfway to a turning point, half the energy must be potential. It is not, because U = ½kx² grows as the square of x. At x = A/2 the spring holds (½)² = ¼ of E, the motion holds ¾, and the mass is still moving at √¾ = 87% of its top speed rather than half of it. The energy splits evenly much further out, where x²/A² = ½, at x = A/√2 = 0.71A. The same squaring trips the reverse question: doubling an oscillator's amplitude doubles its top speed but quadruples its energy, so twice the swing needs four times the work to start it.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A 0.250 kg glider on a level air track is attached to a spring of stiffness 36.0 N m⁻¹. It is pulled 8.00 cm from equilibrium and released from rest. Find the total energy and the top speed, then the energy split and the speed as the glider passes x = 4.00 cm.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Released from rest, all the energy starts in the spring: E = ½kA² = ½ × 36.0 × (0.0800)² = 0.1152 J.
- At equilibrium U = 0, so ½mvₘₐₓ² = E and vₘₐₓ = √(2E/m) = √(2 × 0.1152 ÷ 0.250) = √0.9216 = 0.960 m s⁻¹. Check with ω = √(k/m) = √144 = 12.0 rad s⁻¹: ωA = 12.0 × 0.0800 = 0.960 m s⁻¹.
- At x = 0.0400 m the spring holds U = ½ × 36.0 × (0.0400)² = 0.0288 J, so the motion holds K = E − U = 0.1152 − 0.0288 = 0.0864 J.
- Speed there: v = √(2K/m) = √(2 × 0.0864 ÷ 0.250) = √0.6912 = 0.831 m s⁻¹, the same as ω√(A² − x²) = 12.0 × √(0.00640 − 0.00160) = 0.831 m s⁻¹.
- Halfway out, U is only 25% of E and the glider keeps 86.6% of its top speed; the energy would split evenly at x = A/√2 = 5.66 cm.
Answer. E = 0.115 J and vₘₐₓ = 0.960 m s⁻¹; at x = 4.00 cm, U = 0.0288 J, K = 0.0864 J and v = 0.831 m s⁻¹.
MediumExample 2
A 0.800 kg glider on a spring of stiffness 50.0 N m⁻¹ oscillates without friction with amplitude 12.0 cm. As it passes x = +6.00 cm moving away from equilibrium, a sharp tap along its direction of motion raises its speed by 0.200 m s⁻¹, so briefly that its position does not change. Find the speed just before the tap, the energy the tap adds, and the new amplitude and top speed.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Before the tap: E₀ = ½kA₀² = ½ × 50.0 × (0.120)² = 0.3600 J, and ω = √(50.0 ÷ 0.800) = 7.906 rad s⁻¹.
- Speed at x = 0.0600 m: v₁ = ω√(A₀² − x²) = 7.906 × √(0.01440 − 0.00360) = 7.906 × 0.10392 = 0.8216 m s⁻¹.
- The tap changes v but not x, so the spring's U = ½ × 50.0 × (0.0600)² = 0.0900 J is untouched. The speed becomes v₂ = 1.0216 m s⁻¹, and K rises from ½ × 0.800 × 0.8216² = 0.2700 J to ½ × 0.800 × 1.0216² = 0.4175 J, an increase of 0.1475 J.
- New energy E = 0.3600 + 0.1475 = 0.5075 J, so A = √(2E/k) = √(2 × 0.5075 ÷ 50.0) = 0.142 m and vₘₐₓ = √(2E/m) = √(2 × 0.5075 ÷ 0.800) = 1.13 m s⁻¹. The period is unchanged, because ω depends only on k and m.
- In phase space the tap moves the state point straight up at fixed x, from the 0.360 J ellipse to a larger 0.507 J one. The extra 0.200 m s⁻¹ delivered 0.147 J, not ½ × 0.800 × 0.200² = 0.016 J, because ½m(v₂² − v₁²) = m × 0.200 × (v₁ + v₂)/2: a push pays more into a mass that is already moving.
Answer. v₁ = 0.822 m s⁻¹; the tap adds 0.147 J, raising E to 0.507 J, the amplitude to 14.2 cm and the top speed to 1.13 m s⁻¹.
HardExample 3
A motion sensor follows a 0.500 kg glider on a horizontal spring of unknown stiffness. Passing x = 2.00 cm it reads 0.680 m s⁻¹, and passing x = 5.00 cm it reads 0.520 m s⁻¹; its speeds are good to ±0.002 m s⁻¹. Assuming frictionless SHM, find k, the amplitude and the energy, predict the speed at x = 6.50 cm, and decide what a reading of 0.300 m s⁻¹ there would mean.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Energy per unit mass turns ½mv² + ½kx² = ½kA² into v² = ω²A² − ω²x²: plotted against x², the squared speed is a straight line with slope −ω² and intercept ω²A².
- Two readings fix that line. Subtract them: ω² = (v₁² − v₂²)/(x₂² − x₁²) = (0.4624 − 0.2704)/(0.002500 − 0.000400) = 0.1920/0.002100 = 91.43 s⁻², so ω = 9.562 rad s⁻¹ and k = mω² = 0.500 × 91.43 = 45.7 N m⁻¹.
- Amplitude from the first reading: A² = x₁² + v₁²/ω² = 0.000400 + 0.4624/91.43 = 0.005457 m², so A = 0.0739 m. Then E = ½kA² = ½ × 45.71 × 0.005457 = 0.1247 J, and ½mv₁² + ½kx₁² = 0.1156 + 0.0091 = 0.1247 J agrees.
- Prediction at x = 0.0650 m: v = ω√(A² − x²) = 9.562 × √(0.005457 − 0.004225) = 9.562 × 0.03510 = 0.336 m s⁻¹. Carrying ±0.002 m s⁻¹ through the two readings that set ω and A makes this 0.336 ± 0.007 m s⁻¹, since extrapolating beyond them amplifies their errors.
- Two points always fit a two-parameter model, so the third reading is the real test. A reading of 0.300 m s⁻¹ gives ½ × 0.500 × 0.300² + ½ × 45.71 × 0.0650² = 0.0225 + 0.0966 = 0.1191 J, 4.5% below 0.1247 J, and its gap of 0.036 m s⁻¹ is about five combined uncertainties. A conservative oscillator must return the same E at every point, so friction or a non-linear spring is at work.
Answer. k = 45.7 N m⁻¹, A = 7.39 cm, E = 0.125 J; the model predicts 0.336 ± 0.007 m s⁻¹ at 6.50 cm, so a reading of 0.300 m s⁻¹, 4.5% short in energy, would falsify frictionless SHM.
Quick check
Select an answer and explain it before checking.
Review & continue
The mechanical energy of a simple harmonic oscillator is E = ½mv² + ½kx², kinetic energy plus the spring's potential energy; with no dissipation it stays fixed at ½kA² while the two parts trade places.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics I completion tasks.