Energy in SHM

A pendulum bob swinging past the bottom of its arc is moving fastest of all — pure kinetic energy, no height gained. A moment later, at the top of its swing, it hangs motionless for an instant — pure potential energy, no speed at all. Between these two extremes, at every point on the way, energy is quietly changing form: kinetic becoming potential, potential becoming kinetic, back and forth, forever (in the ideal case). What never changes is the total. This article makes that trade precise for simple harmonic motion. Starting from the SHM kinematics you already know — y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) and v=ωA2−y2v=\omega\sqrt{A^2-y^2} — we derive expressions for kinetic energy KK and potential energy UU at any displacement yy, show that their sum E=U+KE=U+K is a constant equal to 12mω2A2\tfrac12m\omega^2A^2, and read off what that constant equals at the two special points: the mean position and the extremes. The result is one of the cleanest conservation statements in all of mechanics, and a favourite source of numerical problems.

The core insight

In SHM, kinetic energy K=12mω2(A2−y2)K=\tfrac12m\omega^2(A^2-y^2) and potential energy U=12mω2y2U=\tfrac12m\omega^2y^2 continuously exchange into each other, but their sum E=12mω2A2E=\tfrac12m\omega^2A^2 stays constant at every instant and every displacement.

The core idea

Take a particle of mass mm executing SHM with amplitude AA and angular frequency ω\omega, so that y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) and v=ωA2−y2v=\omega\sqrt{A^2-y^2}.

Kinetic energy follows directly from K=12mv2K=\tfrac12mv^2 once vv is written in terms of displacement:

K=12mv2=12mω2(A2−y2)K = \frac12 mv^2 = \frac12 m\omega^2(A^2-y^2)

where: mm is the mass (kg), ω\omega is the angular frequency (rad/s), AA is the amplitude (m), and yy is the instantaneous displacement (m) from the mean position.

Potential energy is the elastic energy stored against the restoring force F=−ky=−mω2yF=-ky=-m\omega^2y. Integrating the work done against this force from 00 to yy gives U=∫0yky dy=12ky2U=\int_0^y ky\,dy=\tfrac12ky^2, and since k=mω2k=m\omega^2 for SHM:

U=12ky2=12mω2y2U = \frac12 ky^2 = \frac12 m\omega^2y^2

where: kk is the effective force constant (N/m), equal to mω2m\omega^2. Adding the two, the y2y^2 terms cancel and only A2A^2 survives:

E=U+K=12mω2y2+12mω2(A2−y2)=12mω2A2E = U+K = \frac12m\omega^2y^2+\frac12m\omega^2(A^2-y^2)=\frac12m\omega^2A^2

This total is independent of both yy and tt — it is the same number throughout the motion. That is conservation of mechanical energy, and it holds because the SHM restoring force is conservative (no friction or damping assumed). At the two special points the split is as extreme as it gets. At the mean position (y=0y=0) all the energy is kinetic: K=Kmax=12mω2A2=EK=K_{max}=\tfrac12m\omega^2A^2=E, and speed is maximum. At the extremes (y=±Ay=\pm A) all the energy is potential: U=Umax=12mω2A2=EU=U_{max}=\tfrac12m\omega^2A^2=E, and the particle is momentarily at rest — though its acceleration, and so the restoring force on it, is at its own maximum there. Plotted against yy (from −A-A to +A+A), U(y)U(y) is an upward parabola with its minimum at y=0y=0, and K(y)K(y) is a downward parabola with its maximum at y=0y=0 — mirror images of each other about the horizontal line EE. The two curves cross exactly where K=UK=U, at y=±A/2y=\pm A/\sqrt2.

Figure
Kinetic potential and total energy plotted against displacement for a particle in SHM
Energy versus displacement in SHM displacement y energy -A +A 0 E (total, constant) U(y), upward K(y), downward K = U at y = plus or minus A/sqrt2

Substituting the time dependence y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) gives K(t)=12mω2A2cos⁡2(ωt+ϕ0)K(t)=\tfrac12m\omega^2A^2\cos^2(\omega t+\phi_0) and U(t)=12mω2A2sin⁡2(ωt+ϕ0)U(t)=\tfrac12m\omega^2A^2\sin^2(\omega t+\phi_0), so both KK and UU oscillate at twice the frequency of the displacement itself (since sin⁡2θ\sin^2\theta and cos⁡2θ\cos^2\theta complete two cycles for every one cycle of sin⁡θ\sin\theta), even though the particle's own period is unchanged. Averaged over a full cycle, ⟨sin⁡2θ⟩=⟨cos⁡2θ⟩=12\langle\sin^2\theta\rangle=\langle\cos^2\theta\rangle=\tfrac12, so ⟨K⟩=⟨U⟩=E/2\langle K\rangle=\langle U\rangle=E/2 — on average the energy is split evenly, even though at any single instant it rarely is.

Derivation ATotal mechanical energy in SHM is constant

The goal is to show, starting only from the SHM displacement and velocity relations and the definitions of kinetic and potential energy, that the sum E=K+UE=K+U for a particle oscillating with amplitude AA and angular frequency ω\omega does not depend on the displacement yy or the time tt, and to identify what that constant value equals.

Step 1. Write kinetic energy in terms of displacement. From v=ωA2−y2v=\omega\sqrt{A^2-y^2}, K=12mv2=12mω2(A2−y2)K=\tfrac12mv^2=\tfrac12m\omega^2(A^2-y^2). This already shows KK is largest when y=0y=0 and falls to zero at y=±Ay=\pm A.

Step 2. Write potential energy in terms of displacement. The restoring force is F=−ky=−mω2yF=-ky=-m\omega^2y, so the work done by an external agent to stretch the system quasi-statically from 00 to yy is U=∫0yky dy=12ky2=12mω2y2U=\int_0^y ky\,dy=\tfrac12ky^2=\tfrac12m\omega^2y^2, using k=mω2k=m\omega^2.

Step 3. Add the two expressions. E=K+U=12mω2(A2−y2)+12mω2y2E=K+U=\tfrac12m\omega^2(A^2-y^2)+\tfrac12m\omega^2y^2. The two y2y^2 terms are equal and opposite in sign, so they cancel exactly, leaving E=12mω2A2E=\tfrac12m\omega^2A^2 — a quantity built only from the fixed constants mm, ω\omega and AA, with no yy remaining.

Step 4. Confirm it is constant in time too. Substituting y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) and v=Aωcos⁡(ωt+ϕ0)v=A\omega\cos(\omega t+\phi_0) gives K(t)+U(t)=12mω2A2[cos⁡2(ωt+ϕ0)+sin⁡2(ωt+ϕ0)]=12mω2A2K(t)+U(t)=\tfrac12m\omega^2A^2[\cos^2(\omega t+\phi_0)+\sin^2(\omega t+\phi_0)]=\tfrac12m\omega^2A^2, using sin⁡2θ+cos⁡2θ=1\sin^2\theta+\cos^2\theta=1. The same constant appears from the time-based route as from the displacement-based route, confirming EE is genuinely conserved throughout the motion, not just an algebraic coincidence at one instant.

Worked example

A body of mass 0.5 kg0.5\ \text{kg} executes SHM with amplitude 0.04 m0.04\ \text{m} and angular frequency ω=10 rad/s\omega=10\ \text{rad/s}. Find (a) the total energy, (b) the KE and PE when the displacement is 0.02 m0.02\ \text{m}, (c) the displacement at which KE equals PE, and (d) the maximum speed.

Step 1. Total energy: E=12mω2A2=12×0.5×102×(0.04)2=25×0.0016=0.04 JE=\tfrac12m\omega^2A^2=\tfrac12\times0.5\times10^2\times(0.04)^2=25\times0.0016=0.04\ \text{J}.

Step 2. At y=0.02 my=0.02\ \text{m}: U=12mω2y2=25×(0.02)2=25×0.0004=0.01 JU=\tfrac12m\omega^2y^2=25\times(0.02)^2=25\times0.0004=0.01\ \text{J}. By conservation, K=E−U=0.04−0.01=0.03 JK=E-U=0.04-0.01=0.03\ \text{J} — no need to recompute KK from scratch once EE and UU are known.

Step 3. Setting K=UK=U: 12mω2(A2−y2)=12mω2y2⇒A2−y2=y2⇒y=A2=0.041.414=0.0283 m\tfrac12m\omega^2(A^2-y^2)=\tfrac12m\omega^2y^2 \Rightarrow A^2-y^2=y^2 \Rightarrow y=\dfrac{A}{\sqrt2}=\dfrac{0.04}{1.414}=0.0283\ \text{m}. This point lies at about 71%71\% of the amplitude, not halfway — a common source of error.

Step 4. Maximum speed occurs at y=0y=0, where all the energy is kinetic: 12mvmax2=E⇒vmax=2E/m=2×0.04/0.5=0.16=0.4 m/s\tfrac12mv_{max}^2=E \Rightarrow v_{max}=\sqrt{2E/m}=\sqrt{2\times0.04/0.5}=\sqrt{0.16}=0.4\ \text{m/s}.

KE and PE are equal at y=±0.0283 my=\pm0.0283\ \text{m}, and the maximum speed is 0.4 m/s0.4\ \text{m/s}, both consistent with the total energy of 0.04 J0.04\ \text{J} found in Step 1.

Common traps

  • Believing energy is lost as the particle travels from an extreme to the mean position — in ideal (undamped) SHM, total mechanical energy EE is exactly conserved at every instant; only the KK–UU split changes.
  • Writing E=12mω2y2E=\tfrac12m\omega^2y^2, using the instantaneous displacement instead of the amplitude — total energy must use AA, since EE is constant while yy varies.
  • Assuming KK and UU oscillate at the same frequency as the displacement — they actually vary at twice the frequency, since both involve sin⁡2\sin^2 or cos⁡2\cos^2 terms.
  • Forgetting that at y=±Ay=\pm A the particle has zero velocity but maximum acceleration — zero KE does not mean zero force acting on it.
  • Trying to use E=12kA2E=\tfrac12kA^2 for a general SHM problem without first checking that k=mω2k=m\omega^2 is actually known or given — for a pendulum or any non-spring oscillator, express EE through mm and ω\omega instead, since there may be no physical spring constant to quote.

Ask the tutor: Want to see the full UU–KK–EE derivation worked through with a spring-and-mass example instead of a pendulum, or try a harder energy-split problem — ask your AI tutor for a step-by-step walkthrough.

Why does the total energy depend on A squared rather than just A?

Because E=12mω2A2E=\tfrac12m\omega^2A^2 comes from summing K=12mω2(A2−y2)K=\tfrac12m\omega^2(A^2-y^2) and U=12mω2y2U=\tfrac12m\omega^2y^2, and both terms carry a squared length — kinetic energy from v2v^2, potential energy from y2y^2. Squaring the amplitude is not a special rule for SHM; it is the same pattern as spring PE (12kx2\tfrac12kx^2) or gravitational free-fall KE (12mv2\tfrac12mv^2 with v2∝hv^2\propto h), where energy always scales with the square of a length or speed. Doubling AA quadruples EE, which is exactly why larger-amplitude oscillations demand disproportionately more energy to set up.

Does the total energy E change if I know the displacement y at some instant?

No — that is the entire point of conservation. E=12mω2A2E=\tfrac12m\omega^2A^2 depends only on the fixed quantities mm, ω\omega and AA, none of which change as the particle moves. Knowing yy at a particular instant only tells you how EE is currently split between KK and UU (via U=12mω2y2U=\tfrac12m\omega^2y^2 and K=E−UK=E-U); it never changes the value of EE itself. If a problem gives you EE and asks for KK or UU at some yy, always compute the one you're missing as a subtraction from EE, rather than rederiving both from scratch.

Is this the same total energy used for wave intensity, or something different?

Something different, and it is worth keeping the two apart. This article is about the mechanical energy of a single oscillating particle or body — a pendulum bob, a mass on a spring — and it stays fixed at 12mω2A2\tfrac12m\omega^2A^2 for that one oscillator. Wave intensity, by contrast, describes energy carried per unit area per unit time by a whole travelling disturbance made of many such oscillating particles, and depends additionally on the wave's speed and the medium's density. The SHM energy result derived here is a necessary building block for that later idea, but it is not itself a statement about waves or intensity, which stays out of scope for this topic.

Before this

Where this leads