Physics I: Mechanics › Oscillations & gravitation › SHM energy
Energy in SHM
Energy sloshes between motion and spring — but the total never changes, and one number (the amplitude) fixes it.
Notation on this page: E is the total mechanical energy (joules), K = ½mv² kinetic, U = ½kx² spring potential, A the amplitude.
Before this lesson: Mass–spring, Simple pendulum
Where it comes from
Watch one swing of a mass on a spring and track the energy. At the turning points (x = ±A) the mass momentarily stops: all energy is spring potential, U = ½kA². At equilibrium (x = 0) the spring is relaxed but the mass flies: all energy is kinetic, K = ½mvmax². In between, it's a mixture — but the sum never changes:
Fastest at equilibrium (all energy is kinetic there), at rest at the turning points (all energy is potential). The trade is exact: whatever K loses, U gains, and E = ½kA² sits above it all, unchanging.
Derivation
We prove E is constant by writing K + U with the SHM position and velocity, then watching the time dependence cancel. The identity sin² + cos² = 1 does the final magic.
The shortcut version: evaluate E at a turning point, where v = 0 and x = A: E = 0 + ½kA². Since E is conserved, that one snapshot fixes it everywhere — the four-step proof above just confirms the conservation.
How to use it
The procedure, every time:
- Find E from the amplitude. E = ½kA² — amplitude in, energy out.
- Max speed from E. At equilibrium U = 0, so ½mvmax² = E → vmax = Aω = A√(k/m).
- Speed at any x. ½mv² = E − ½kx² → v = ±ω√(A² − x²).
- Amplitude from E. A = √(2E/k) — energy in, amplitude out.
- Pendulums too. Replace k with mg/L: E = ½(mg/L)smax².
The working forms
Worked examples
Four problems, easiest first. In each one, read every step — the why of each move is the lesson.
Example 1 — the basic move: k = 100 N/m, A = 0.10 m, m = 0.25 kg
- Total energy. E = ½kA² = 0.5 × 100 × 0.10² = 0.50 J.
- Max speed. ω = √(k/m) = √(100/0.25) = 20 rad/s; vmax = Aω = 0.10 × 20 = 2.0 m/s.
- Cross-check via kinetic. ½mvmax² = 0.5 × 0.25 × 4.0 = 0.50 J ✓ — matches E, as it must at equilibrium.
Your turn — k = 200 N/m, A = 0.050 m, m = 0.10 kg. Find E and vmax.
Answer: E = 0.25 J, vmax ≈ 2.24 m/s. E = 0.5 × 200 × 0.0025 = 0.25 J. ω = √(200/0.10) = √2000 ≈ 44.7 rad/s; vmax = 0.050 × 44.7 ≈ 2.24 m/s. Check: 0.5 × 0.10 × 5.0 = 0.25 J ✓.
Example 2 — speed mid-swing: same oscillator, at x = A/2
- Energy left for motion. U = ½kx² = 0.5 × 100 × 0.050² = 0.125 J; K = E − U = 0.50 − 0.125 = 0.375 J.
- Speed. v = √(2K/m) = √(0.75/0.25) = √3 ≈ 1.73 m/s.
- The pattern. v = ω√(A² − x²) = 20√(0.01 − 0.0025) = 20 × 0.0866 ≈ 1.73 m/s — that is (√3/2)vmax ≈ 0.866 × 2.0 ✓
Your turn — same oscillator: speed at x = A/√2?
Answer: v = vmax/√2 ≈ 1.41 m/s. U = ½k(A²/2) = E/2, so K = E/2 and v = vmax/√2. At x = A/√2 the energy is split exactly evenly: 0.25 J kinetic, 0.25 J potential.
Example 3 — working backwards: E = 2.0 J, k = 50 N/m. Find A.
- Rearrange first. E = ½kA² → A = √(2E/k).
- Substitute. A = √(4.0/50) = √0.08 ≈ 0.283 m.
- Sanity check. ½ × 50 × 0.08 = 2.0 J ✓ — and a soft 50 N/m spring needs a big 28 cm swing to hold 2 J. Plausible.
Your turn — E = 1.0 J, k = 800 N/m. Find A.
Answer: 0.050 m. A = √(2.0/800) = √0.0025 = 0.050 m. A stiff spring packs 1 J into just 5 cm of swing.
Example 4 — judgment call: same energy, stiffer spring
- Amplitudes. A = √(2E/k): k = 100 → A = 0.10 m; k = 400 → A = √(1.0/400) = 0.050 m — halved.
- Top speeds. vmax = √(2E/m) — no k! Both give 2.0 m/s (m = 0.25 kg).
- The lesson. Same energy means same top speed regardless of stiffness; the stiffer spring just achieves it in a shorter, snappier swing (higher ω, smaller A).
Your turn — same E, but the mass doubles (same k). What happens to A? To vmax?
Answer: A unchanged; vmax drops by 1/√2. A = √(2E/k) has no m. vmax = √(2E/m): double m → vmax/√2 ≈ 0.707×. Same swing size, lazier flyby.
Memorization tips
- Chant it: “E equals one-half k A squared.” Amplitude in, energy out — and it never changes.
- The A² rule: double the swing, quadruple the energy. Energy punishes big amplitudes quadratically.
- A, not x: ½kA² is the constant total; ½kx² is the potential right now. Mixing them is the #1 error.
- The two snapshots: turning point → E = ½kA² (all potential); equilibrium → E = ½mvmax² (all kinetic). Either snapshot rebuilds the formula.
- vmax = Aω: the bridge between the energy picture and the motion picture.
- Real-world asterisk: damping steals a little E each cycle, so A slowly shrinks — but the ½kA² bookkeeping still works swing to swing.
Final challenge
Five mixed questions — energy splits, scalings, and the traps, all in one. Score 5/5 and SHM energy is yours.
← Back to the Physics I formula sheet
How to learn a formula here
- Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
- Work the examples with the answers covered, then uncover one step at a time and compare.
- Finish with the final challenge — five mixed questions including the classic traps.
- Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.
Frequently asked questions
Is the total energy of an oscillator really constant?
For ideal SHM, yes: E = ½kA² never changes. Real oscillators lose a little to friction and air drag each cycle (damping), so the amplitude slowly decays — but over one swing the constant-E picture is excellent.
What is the energy of a pendulum in SHM terms?
The same idea with k replaced by mg/L: E = ½(mg/L)smax², or in angles E = ½mgL(θmax)² for small swings. Maximum kinetic energy at the bottom equals maximum gravitational potential at the turning points.
Why is it ½kA² and not ½kx²?
½kx² is the potential energy at one instant — it varies as the mass moves. ½kA² uses the amplitude A (a constant) and gives the total energy, which never varies.
Does the total energy depend on the mass?
Not directly: E = ½kA² has no m in it. But the mass sets how that energy splits into speed — vmax = A√(k/m) — so a heavier mass moves slower with the same energy.
Where is the kinetic energy maximum? The potential?
Kinetic is maximum at equilibrium (x = 0), where the speed peaks; potential ½kx² is maximum at the turning points (x = ±A), where the mass momentarily stops. They trade off so the sum stays ½kA².
More from the codex
Physics I formula sheet
All the mechanics formulas — kinematics, forces, energy — printable and quiz-ready.
Open sheet → LiveFormula Sheet Builder
Mix and match any sections into your own printable sheet.
Open tool → LivePrompt Simulator
Practice prompt engineering with deterministic scoring.
Open tool →Support the codex
This page is free, with no account and no ads. If it helped you learn, consider supporting the indie dev behind it.
Questions or a bug to report? Email [email protected].