Dove's LibraryDove's Library

7.4 - Energy of Simple Harmonic Oscillators

Conservation of Energy in SHM

The total energy of a system in simple harmonic motion is the sum of kinetic and potential:
Etotal=K+UE_{\text{total}} = K + U
In ideal SHM, that total stays constant through the whole oscillation. Energy keeps sloshing back and forth between kinetic and potential forms, but the sum never changes.
On the AP equation sheet the pieces are K=12mv2K = \frac{1}{2}mv^2, Us=12k(Δx)2U_s = \frac{1}{2}k(\Delta x)^2 for a spring, and ΔUg=mgΔy\Delta U_g = mg\Delta y for gravity. For a block on a horizontal spring:
Etotal=U+K=12kx2+12mv2E_{\text{total}} = U + K = \frac{1}{2}kx^2 + \frac{1}{2}mv^2
The total is constant because the only force doing work on the block is the spring force, which is conservative. Energy just moves back and forth between KK and UU inside the block-spring system.
This only applies to undamped systems. In damped harmonic motion, outside forces (friction, air resistance) bleed energy away over time and the amplitude shrinks.

Energy Transfer in SHM

The core pattern: kinetic energy peaks exactly when potential energy bottoms out, and potential energy peaks exactly when kinetic energy bottoms out.

Energy in a Pendulum

7.4 - Energy of Simple Harmonic Oscillators
At maximum displacement (the extremes): UU is at its maximum, K=0K = 0, the velocity is zero (an instantaneous stop before reversing), and the force and acceleration are at their largest magnitude.
At the equilibrium position: U=0U = 0 (choosing equilibrium as the reference), KK is at its maximum, the velocity is at its maximum, and the restoring force is zero. (The net force isn’t quite zero at the bottom: the string pulls up harder than gravity pulls down, which supplies the centripetal force that curves the bob’s path.)

Energy in a Mass-Spring System

7.4 - Energy of Simple Harmonic Oscillators
At maximum displacement (x=±Ax = \pm A): the spring PE is at its maximum, K=0K = 0, the velocity is zero, and the spring force and acceleration are at their largest.
At equilibrium (x=0x = 0): the spring PE is zero, KK is at its maximum, the velocity is at its maximum, and the net force is zero.
Vertical springs. For a mass hanging on a spring, count both the spring’s potential energy and the gravitational potential energy. Their sum is smallest at the equilibrium position, so KK is still largest there. If you measure yy from equilibrium and call the total potential energy zero there, the two potential energies add up to exactly 12ky2\frac{1}{2}ky^2, so Etotal=12kA2E_{\text{total}} = \frac{1}{2}kA^2 still works.

Total Energy Equations

Mass-spring system. The total mechanical energy is:
Etotal=12kA2E_{\text{total}} = \frac{1}{2}kA^2
where kk is the spring constant (N/m) and AA is the amplitude (m). This is the maximum potential energy stored when the spring is pulled or pushed all the way out to the amplitude.
Simple pendulum. The total mechanical energy is:
Etotal=mgL(1−cos⁡θ)E_{\text{total}} = mgL(1 - \cos\theta)
where mm is the mass (kg), gg is gravitational acceleration (m/s²), LL is the pendulum length (m), and θ\theta is the maximum angular displacement (rad).
Where the height term comes from: the height hh the bob rises above its lowest point is, by geometry,
h=L−Lcos⁡θ=L(1−cos⁡θ)h = L - L\cos\theta = L(1 - \cos\theta)
so Etotal=mgh=mgL(1−cos⁡θ)E_{\text{total}} = mgh = mgL(1 - \cos\theta).
Example. A 0.30 kg pendulum bob on a 0.90 m string is pulled back to 12° and released. Find its total energy and its speed at the bottom.
Etotal=mgL(1−cos⁡θ)=(0.30 kg)(10 m/s2)(0.90 m)(1−cos⁡12∘)=0.059 JE_{\text{total}} = mgL(1 - \cos\theta) = (0.30 \text{ kg})(10 \text{ m/s}^2)(0.90 \text{ m})(1 - \cos 12^\circ) = 0.059 \text{ J}
At the bottom all of that energy is kinetic:
vmax=2Etotalm=2gL(1−cos⁡θ)=0.63 m/sv_{\text{max}} = \sqrt{\frac{2E_{\text{total}}}{m}} = \sqrt{2gL(1 - \cos\theta)} = 0.63 \text{ m/s}
The SHM shortcut agrees. The amplitude along the arc is A=Lθ=(0.90 m)(0.209 rad)=0.188A = L\theta = (0.90 \text{ m})(0.209 \text{ rad}) = 0.188 m, and ω=gL=3.33\omega = \sqrt{\frac{g}{L}} = 3.33 rad/s, so vmax=Aω=0.63v_{\text{max}} = A\omega = 0.63 m/s. At 12° the small-angle model is very close to the exact answer.

Example Problem

An object on a spring with spring constant kk oscillates in SHM with amplitude AA and frequency ff. Derive an expression for the object’s kinetic energy as a function of time.

Solution

For an object starting at maximum amplitude, the position function is:
x(t)=Acos⁡(2πft)=Acos⁡(ωt)x(t) = A\cos(2\pi ft) = A\cos(\omega t)
At any instant, conservation of energy gives:
Etotal=K+U⇒12kA2=K+12kx2E_{\text{total}} = K + U \quad\Rightarrow\quad \frac{1}{2}kA^2 = K + \frac{1}{2}kx^2
Solving for kinetic energy:
K=12kA2−12kx2=12k(A2−x2)K = \frac{1}{2}kA^2 - \frac{1}{2}kx^2 = \frac{1}{2}k(A^2 - x^2)
Substituting x(t)=Acos⁡(ωt)x(t) = A\cos(\omega t):
K(t)=12k(A2−A2cos⁡2(ωt))=12kA2(1−cos⁡2(ωt))K(t) = \frac{1}{2}k\left(A^2 - A^2\cos^2(\omega t)\right) = \frac{1}{2}kA^2\left(1 - \cos^2(\omega t)\right)
and using the identity sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1, so 1−cos⁡2θ=sin⁡2θ1 - \cos^2\theta = \sin^2\theta:
K(t)=12kA2sin⁡2(ωt)=12kA2sin⁡2(2πft)K(t) = \frac{1}{2}kA^2\sin^2(\omega t) = \frac{1}{2}kA^2\sin^2(2\pi ft)
Sanity check: at t=0t = 0, K(0)=0K(0) = 0, which is right, since the object starts at maximum displacement with zero velocity. And when ωt=π2\omega t = \frac{\pi}{2}, K=12kA2K = \frac{1}{2}kA^2, the maximum kinetic energy, which happens at equilibrium.
The same substitution gives the potential energy, U(t)=12kx2=12kA2cos⁡2(ωt)U(t) = \frac{1}{2}kx^2 = \frac{1}{2}kA^2\cos^2(\omega t). Add them:
K+U=12kA2(sin⁡2(ωt)+cos⁡2(ωt))=12kA2K + U = \frac{1}{2}kA^2\left(\sin^2(\omega t) + \cos^2(\omega t)\right) = \frac{1}{2}kA^2
The total never changes, which is conservation of energy falling right out of the math. Also, sin⁡2\sin^2 and cos⁡2\cos^2 repeat every half period, so KK and UU each go through two full cycles of their own during one period TT. KK peaks every time the object passes equilibrium, going either way, and UU peaks at both turning points.

Second Example Problem

A 0.40 kg object oscillates on a spring with k=120k = 120 N/m and amplitude 0.15 m. Find (a) the total mechanical energy, (b) the maximum speed, and (c) the speed when the object is 0.10 m from equilibrium.

Solution

(a) Total mechanical energy:
Etotal=12kA2=12(120)(0.15)2=1.35 JE_{\text{total}} = \frac{1}{2}kA^2 = \frac{1}{2}(120)(0.15)^2 = 1.35 \text{ J}
(b) Maximum speed. At equilibrium, all the energy is kinetic:
12mvmax2=Etotal⇒vmax=2Etotalm=2(1.35)0.40=2.60 m/s\frac{1}{2}mv_{\text{max}}^2 = E_{\text{total}} \quad\Rightarrow\quad v_{\text{max}} = \sqrt{\frac{2E_{\text{total}}}{m}} = \sqrt{\frac{2(1.35)}{0.40}} = 2.60 \text{ m/s}
(c) Speed at x=0.10x = 0.10 m. Use energy conservation:
12kA2=12mv2+12kx2\frac{1}{2}kA^2 = \frac{1}{2}mv^2 + \frac{1}{2}kx^2v=km(A2−x2)=1200.40(0.152−0.102)=300(0.0125)=1.94 m/sv = \sqrt{\frac{k}{m}(A^2 - x^2)} = \sqrt{\frac{120}{0.40}(0.15^2 - 0.10^2)} = \sqrt{300(0.0125)} = 1.94 \text{ m/s}
Energy bar charts. Here’s the energy split at three points in this example: the turning point, x=0.10x = 0.10 m, and equilibrium. The KK bar and the UsU_s bar always add up to the same 1.35 J. At x=0.10x = 0.10 m, Us=12(120)(0.10)2=0.60U_s = \frac{1}{2}(120)(0.10)^2 = 0.60 J, which leaves K=1.35−0.60=0.75K = 1.35 - 0.60 = 0.75 J (the same as 12(0.40)(1.94)2\frac{1}{2}(0.40)(1.94)^2).
7.4 - Energy of Simple Harmonic Oscillators
Energy vs. position graph. Plotting Us=12kx2U_s = \frac{1}{2}kx^2 gives a parabola with its minimum (zero) at equilibrium. K=Etotal−UsK = E_{\text{total}} - U_s is whatever’s left under the total-energy line, so it’s an upside-down parabola. The object can only be where K≥0K \ge 0, between the turning points x=±Ax = \pm A, where the UsU_s parabola meets the total-energy line.
7.4 - Energy of Simple Harmonic Oscillators
KK and UsU_s are equal where 12kx2=12(12kA2)\frac{1}{2}kx^2 = \frac{1}{2}\left(\frac{1}{2}kA^2\right), which is x=±A2=±0.11x = \pm\frac{A}{\sqrt{2}} = \pm 0.11 m, not halfway out at 0.075 m. Energy depends on x2x^2, so half the energy doesn’t mean half the distance.
Follow-up: doubling the amplitude. Suppose the same object is started with an amplitude of 0.30 m instead:
Etotal=12kA2=12(120 N/m)(0.30 m)2=5.4 JE_{\text{total}} = \frac{1}{2}kA^2 = \frac{1}{2}(120 \text{ N/m})(0.30 \text{ m})^2 = 5.4 \text{ J}
Twice the amplitude means four times the energy (Etotal∝A2E_{\text{total}} \propto A^2), because the maximum potential energy 12kA2\frac{1}{2}kA^2 is set by how far the spring gets stretched. The maximum speed doubles to 5.2 m/s (vmax∝Etotalv_{\text{max}} \propto \sqrt{E_{\text{total}}}), but the period doesn’t change: T=2π0.40 kg120 N/m=0.36T = 2\pi\sqrt{\frac{0.40 \text{ kg}}{120 \text{ N/m}}} = 0.36 s either way.

Common Mistakes

  1. Mixing up where the energy peaks. Maximum PE happens at maximum displacement (where v=0v = 0), and maximum KE happens at equilibrium (where displacement is zero).
  1. Forgetting to square in the spring PE. It’s U=12kx2U = \frac{1}{2}kx^2, not 12kx\frac{1}{2}kx.
  1. Using the wrong amplitude. In Etotal=12kA2E_{\text{total}} = \frac{1}{2}kA^2, the AA is the amplitude (maximum displacement), not just any position xx.
  1. Botching the pendulum height. It’s h=L(1−cos⁡θ)h = L(1 - \cos\theta), not Lcos⁡θL\cos\theta or LθL\theta. You have to get it from the geometry.
  1. Thinking ideal SHM loses energy. In ideal (undamped) SHM the total mechanical energy is constant. Only damped motion loses energy over time.
  1. Setting the wrong reference point. For a pendulum, the PE reference is usually the lowest point. For a spring, the equilibrium position is where PE = 0.
  1. Missing when to use energy conservation. If you’re asked for the velocity at some position, Etotal=K+UE_{\text{total}} = K + U is usually the fastest route.
  1. Forgetting KE is never negative. Velocity can be positive or negative, but K=12mv2K = \frac{1}{2}mv^2 can’t be. Its minimum is zero, at the turning points. The function K(t)=12kA2sin⁡2(ωt)K(t) = \frac{1}{2}kA^2\sin^2(\omega t) never goes below zero.
  1. Confusing where max displacement and max velocity happen. They’re at different places: max displacement at the extremes, max velocity at equilibrium.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.