Energy in Simple Harmonic Motion

April 12, 2026

Problem

Show how kinetic and potential energy oscillate during SHM, and that their sum stays constant.

Explanation

In SHM, kinetic energy (KE) and potential energy (PE) oscillate out of phase with each other, both at twice the frequency of the position. But their sum is constant — that's energy conservation.

The Math

For x(t)=Acos(ωt)x(t) = A\cos(\omega t) and v(t)=Aωsin(ωt)v(t) = -A\omega\sin(\omega t):

PE(t)=12kx2=12kA2cos2(ωt)\text{PE}(t) = \tfrac{1}{2}k\,x^{2} = \tfrac{1}{2}k A^{2}\cos^{2}(\omega t)

KE(t)=12mv2=12mA2ω2sin2(ωt)=12kA2sin2(ωt)\text{KE}(t) = \tfrac{1}{2}m\,v^{2} = \tfrac{1}{2}m A^{2}\omega^{2}\sin^{2}(\omega t) = \tfrac{1}{2}k A^{2}\sin^{2}(\omega t)

(In the last step we used mω2=km\omega^{2} = k, the SHM definition.)

Adding them:

Etotal=PE+KE=12kA2(cos2ωt+sin2ωt)=12kA2E_{\text{total}} = \text{PE} + \text{KE} = \tfrac{1}{2}k A^{2}\bigl(\cos^{2}\omega t + \sin^{2}\omega t\bigr) = \tfrac{1}{2}k A^{2}

The trig identity sin2+cos2=1\sin^{2} + \cos^{2} = 1 does the magic. The total mechanical energy is 12kA2\tfrac{1}{2}kA^{2} at every instant — it depends only on the amplitude.

Step-by-Step Solution

Given: m=2  kgm = 2\;\text{kg}, k=50  N/mk = 50\;\text{N/m}, A=0.2  mA = 0.2\;\text{m}, ω=5  rad/s\omega = 5\;\text{rad/s}.

Find: Total energy, max KE, max PE, and energy at t=T/8t = T/8.


Step 1 — Compute the total energy.

E=12kA2=12(50)(0.04)=1.000  JE = \tfrac{1}{2}k A^{2} = \tfrac{1}{2}(50)(0.04) = 1.000\;\text{J}

Step 2 — Maximum potential energy.

Reached at the extremes (x=±Ax = \pm A, v=0v = 0):

PEmax=12kA2=1.000  J\text{PE}_{\max} = \tfrac{1}{2}k A^{2} = 1.000\;\text{J}

All the energy is potential.

Step 3 — Maximum kinetic energy.

Reached at the center (x=0x = 0, v=±Aωv = \pm A\omega):

KEmax=12m(Aω)2=12(2)(1)2=1.000  J\text{KE}_{\max} = \tfrac{1}{2}m(A\omega)^{2} = \tfrac{1}{2}(2)(1)^{2} = 1.000\;\text{J}

Same as PEmax\text{PE}_{\max} — they trade off perfectly.

Step 4 — Energy split at t=T/8t = T/8.

At t=T/8=2π/(8ω)t = T/8 = 2\pi/(8\omega), ωt=π/4\omega t = \pi/4. So:

x=Acos(π/4)=A220.1414  mx = A\cos(\pi/4) = A \cdot \dfrac{\sqrt 2}{2} \approx 0.1414\;\text{m}

v=Aωsin(π/4)=1220.7071  m/sv = -A\omega\sin(\pi/4) = -1 \cdot \dfrac{\sqrt 2}{2} \approx -0.7071\;\text{m/s}

Energy components:

PE=12(50)(0.0200)=0.500  J\text{PE} = \tfrac{1}{2}(50)(0.0200) = 0.500\;\text{J}

KE=12(2)(0.5)=0.500  J\text{KE} = \tfrac{1}{2}(2)(0.5) = 0.500\;\text{J}

At T/8T/8, the energy is exactly half PE and half KE — the two are equal there.

Step 5 — Verify the sum.

PE+KE=0.500+0.500=1.000  J=Etotal    \text{PE} + \text{KE} = 0.500 + 0.500 = 1.000\;\text{J} = E_{\text{total}} \;\;\checkmark

The total is unchanged.

Step 6 — Average values over one period.

A useful fact for many physics problems: averaged over one full cycle, sin2=cos2=1/2\langle\sin^{2}\rangle = \langle\cos^{2}\rangle = 1/2. So:

PE=KE=Etotal2=14kA2\langle \text{PE}\rangle = \langle \text{KE}\rangle = \dfrac{E_{\text{total}}}{2} = \tfrac{1}{4}kA^{2}

On average, half the energy is potential and half is kinetic — even though at any instant they can be anything from 0 to EtotalE_{\text{total}}.


Answer:

  Etotal=12kA2=1.000  J  at every instant  \boxed{\;E_{\text{total}} = \tfrac{1}{2}kA^{2} = 1.000\;\text{J}\;\text{at every instant}\;}

KE and PE oscillate at twice the frequency of x(t)x(t), π/2\pi/2 out of phase from each other. Their sum is exactly 12kA2\tfrac{1}{2}kA^{2} forever. At the extremes, all the energy is PE; at the center, all is KE; halfway between, it's split 50/50.

Try It

  • Watch the bar graph beside the oscillator — KE (cyan) and PE (pink) trade off.
  • The green total bar stays the same height — that's energy conservation.
  • Adjust the amplitude: doubling it quadruples the total energy (EA2E \propto A^{2}).

Interactive Visualization

Parameters

0.20
2.00
50.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Energy in Simple Harmonic Motion | MathSpin