Skip to main content

Physics III course sequence · Interactive lesson

Energy in simple harmonic motion

Time is not the only route through an oscillation. Draw the parabolic well, lay one horizontal line across it at the total energy, and the turning points, the speed at every displacement and the share still held as motion all read straight off the picture.

UPIII-01.04 · Lesson 4 of 9 in this unit. Position is not a completion score.
Starting model: Energy in simple harmonic motionThe fixed parabolic well U(x) = ½mω²x² of a 0.50 kg oscillator, cut by the horizontal total-energy line E = ½mω²A². Open circles mark the turning points ±A. The dashed bar is U at the marker and the solid bar above it is K. Here x = 0.100 m, E = 0.640 J, U = 0.160 J and K = 0.480 J.U(x) = ½mω²x², m = 0.50 kgE = 0.640 Jenergy / JKU−A+Ax = 0
Start with a picture. Change the model in the lab below.
1

Build the model

One horizontal line across a parabola settles the whole motion.

The key idea

The total mechanical energy of a simple harmonic oscillator is the constant sum E = ½mv² + ½mω²x², equal to ½mω²A², which the motion keeps converting between kinetic and potential form without changing the total.

Example. A 0.50 kg mass oscillating at ω = 8.0 rad s⁻¹ with A = 0.20 m holds E = ½ × 0.50 × 8.0² × 0.20² = 0.64 J — all kinetic at x = 0, where v = ωA = 1.6 m s⁻¹, and all potential at x = ±0.20 m.

The complete physical model and assumptions

A linear restoring force F = −mω²x does work that depends only on where the mass is and never on how it got there, so integrating it gives a potential energy U(x) = ½mω²x²: a parabolic well whose curvature mω² is the whole of the oscillator's stiffness. Adding the kinetic energy is not merely convenient, it is forced — multiply d²x/dt² = −ω²x by m dx/dt and both sides become time derivatives, so d/dt(½mv² + ½mω²x²) = 0 and E is a first integral of the equation of motion, fixed once and for all by the initial conditions. Evaluate E where the mass turns round, v = 0 and x = ±A, and it becomes ½mω²A²; rearrange the same constant and it hands back the speed at any displacement, v = ±ω√(A² − x²), with no clock involved. The split is never static: because both terms are quadratic in quantities that reverse sign twice per cycle, K and U each sweep from 0 to E at angular frequency 2ω about a shared average of ½E. All of it rests on two idealisations — a well that is exactly quadratic, and no dissipation. Let the well pick up a quartic term and E survives while ½mω²A² and the pure 2ω exchange do not; let a drag force −bv act and dE/dt = −bv², so the energy line slides down and the turning points creep inwards.

1Integrate the restoring force into a well

Simple harmonic motion is defined by a restoring force proportional to displacement, F(x) = −mω²x. That force depends on position alone, so the work it does between two points is path-independent and a potential energy exists. Take U = 0 at the equilibrium point and the work you must do against the force to reach x is U(x) = ∫₀ˣ mω²s ds = ½mω²x². The result is a parabola, and its curvature d²U/dx² = mω² is constant — that constant is the entire content of the harmonic assumption, since a well of any other shape would not give a force linear in x. Put numbers on it: m = 0.50 kg and ω = 8.0 rad s⁻¹ give mω² = 32 N m⁻¹, so U(0.20 m) = ½ × 32 × 0.20² = 0.64 J. Dimensions agree, kg × s⁻² × m² = kg m² s⁻² = J.

2Energy is the first integral of the equation of motion

You do not have to assume that E is conserved; the differential equation says so. Start from d²x/dt² = −ω²x, multiply both sides by m dx/dt, and read each side as a time derivative: m(dx/dt)(d²x/dt²) = d/dt(½mv²) on the left, and −mω²x(dx/dt) = −d/dt(½mω²x²) on the right. Bring them together and d/dt(½mv² + ½mω²x²) = 0, so E = ½mv² + ½mω²x² is constant along every solution. That move — multiply a second-order equation by the velocity and integrate once — is what physicists mean by a first integral, and it is worth more than the answer here: one constant of integration now stands in for one of the two you would otherwise fix from initial conditions. Release the 0.50 kg mass from rest at 0.20 m and E = 0.64 J; launch it through x = 0 at 1.6 m s⁻¹ instead and E = 0.64 J again, so the two motions share an amplitude even though their phase constants differ.

3Read the amplitude straight off the energy

Evaluate the constant where it is easiest. At a turning point the mass is momentarily at rest, v = 0 and x = ±A, so the kinetic term vanishes and E = ½mω²A². Everything else follows from that one line. Inverting it gives the amplitude an energy buys, A = √(2E/(mω²)); evaluating the constant at x = 0 instead, where U vanishes, gives ½mvₘₐₓ² = E and so vₘₐₓ = ωA, the same maximum speed the time-domain solution produces. The quadratic dependence is the headline. Pull the 0.50 kg, 8.0 rad s⁻¹ oscillator to 0.40 m rather than 0.20 m and the store rises from 0.64 J to 2.56 J — four times the energy for twice the displacement, and at exactly the same period, because the amplitude never enters ω. Check the limit: A → 0 sends E → 0, as an oscillator sitting at rest at the bottom of its well must.

4Speed from position, with no clock in sight

Set ½mv² + ½mω²x² = ½mω²A² and solve for the speed: v(x) = ±ω√(A² − x²). This is the practical payoff of the energy route. Asked for the speed at a stated displacement, the time-domain solution would have you invert x = A cos(ωt + φ) for t and substitute; the energy equation answers in one step. Three checks before trusting it: at x = 0 it gives ωA, the known maximum; at x = ±A it gives zero; and rad s⁻¹ × m is m s⁻¹. What it will not give is direction, because squaring destroyed the sign — energy knows speed, phase knows which way. With A = 0.20 m and ω = 8.0 rad s⁻¹, the speed at x = 0.10 m is 8.0√(0.20² − 0.10²) = 1.39 m s⁻¹, which is 0.866 vₘₐₓ while the kinetic share is ¾E = 0.48 J. Kinetic and potential energies are equal not at A/2 but at x = A/√2 = 0.141 m, where v = 1.13 m s⁻¹.

5Both halves oscillate at twice the frequency

Put x = A cos(ωt + φ) and v = −ωA sin(ωt + φ) back into the two terms. U(t) = ½mω²A²cos²(ωt + φ) and K(t) = ½mω²A²sin²(ωt + φ), and the double-angle identities turn these into U(t) = ½E[1 + cos(2ωt + 2φ)] and K(t) = ½E[1 − cos(2ωt + 2φ)]. Each runs from 0 to E about a mean of ½E at angular frequency 2ω, so the energy curves have period T/2 while the displacement has period T. The reason is that both terms are quadratic: squaring a quantity that changes sign twice per cycle produces a shape that peaks twice per cycle. Their sum is E at every instant, which is why the total never oscillates at all. Averaging over a whole period with (1/T)∫₀ᵀ cos²(ωt + φ) dt = ½ gives ⟨K⟩ = ⟨U⟩ = ½E. For the 0.50 kg oscillator with A = 0.20 m and ω = 8.0 rad s⁻¹, T = 0.785 s, the energy curves repeat every 0.393 s, and each averages 0.32 J.

6What a constant total quietly assumes

Two idealisations are hiding in ½mω²A². The first is that the well is exactly quadratic. A real restoring force carries higher terms, U(x) = ½mω²x² + ¼βx⁴ being the first correction for a symmetric well. Energy is still conserved, but E is no longer ½mω²A², the exchange is no longer a pure 2ω sinusoid, and the frequency acquires an amplitude-dependent fractional shift whose leading term is the dimensionless 3βA²/(8mω²) — the tell-tale sign of an anharmonic oscillator, and the reason the harmonic result is always quoted with a small-amplitude caveat. The second is that nothing dissipates. Repeat the first-integral calculation with a drag force −bv added and dE/dt = v(−bv) = −bv² ≤ 0, strictly negative whenever the mass is moving. For light damping E decays as e(−bt/m) while the amplitude, going as √E, decays as e(−bt/2m): the store empties at twice the exponential rate of the swing, which is why a struck oscillator falls quiet long before it looks still. Setting b → 0 returns the constant total, which is the correspondence check the damped model must pass.

2

Key equations

Read the units, assumptions and limits before substituting.

Potential energy of a linear restoring force

U(x) = ∫₀ˣ mω²s ds = ½mω²x²

The well is a parabola of fixed curvature mω², the one number that makes the motion harmonic.

m in kg, ω in rad s⁻¹, x and s in m, U in J; U = 0 chosen at the equilibrium point

The conserved total

E = ½mv² + ½mω²x²

A first integral of the motion: one constant replaces integrating the second-order equation again.

v in m s⁻¹, E in J; dE/dt = 0 along every solution of d²x/dt² = −ω²x

Amplitude fixes the total

E = ½mω²A²

E goes as A², so doubling the pull quadruples the store at unchanged ω and unchanged period.

A in m is the turning-point displacement, where v = 0; E in J

Speed from displacement

v(x) = ±ω√(A² − x²)

Speed anywhere without a clock. The sign needs the phase, which the energy alone cannot supply.

x in m with |x| ≤ A; v in m s⁻¹, ω in rad s⁻¹, A in m

The exchange runs at 2ω

U(t) = ½E[1 + cos(2ωt + 2φ)]

U and K each swing between 0 and E about ½E, with period T/2 rather than T.

φ in rad is the phase constant, t in s, U and E in J, ω in rad s⁻¹

Averages over a whole cycle

⟨K⟩ = ⟨U⟩ = ½E

Follows from ⟨cos²⟩ = ½, and it is how an oscillator's energy is quoted when the instant is irrelevant.

⟨ ⟩ means (1/T)∫₀ᵀ … dt over one full period T in s; K, U and E in J
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

0.20 m
0.12 to 0.24 m; steps of 0.01.
8.0 rad s⁻¹
6 to 9 rad s⁻¹; steps of 0.5.
60 °
0 to 360 °; steps of 5.

Try this. Hold ω at 8.0 rad s⁻¹ and drag A from 0.12 m to 0.24 m: the turning points move out twice as far while the energy line climbs from 0.230 J to 0.922 J, four times as high, because E goes as A². Then sweep the phase and watch the solid kinetic part complete two cycles per round trip.

Live results

TOTAL ENERGY E
0.640 J
POTENTIAL U(x)
0.160 J
KINETIC K(x)
0.480 J
SPEED |v|
1.386 m s⁻¹

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics III modelThe fixed parabolic well U(x) = ½mω²x² of a 0.50 kg oscillator, cut by the horizontal total-energy line E = ½mω²A². Open circles mark the turning points ±A. The dashed bar is U at the marker and the solid bar above it is K. Here x = 0.100 m, E = 0.640 J, U = 0.160 J and K = 0.480 J.U(x) = ½mω²x², m = 0.50 kgE = 0.640 Jenergy / JKU−A+Ax = 0
The fixed parabolic well U(x) = ½mω²x² of a 0.50 kg oscillator, cut by the horizontal total-energy line E = ½mω²A². Open circles mark the turning points ±A. The dashed bar is U at the marker and the solid bar above it is K. Here x = 0.100 m, E = 0.640 J, U = 0.160 J and K = 0.480 J.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. Amplitude A: 0.20 m; Angular frequency ω: 8.0 rad s⁻¹; Phase ωt + φ: 60 °

Baseline 0.20; choose 0.12 to 0.24, in steps of 0.01.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

Catch the common trap

Because U goes as x², the store is not half converted at half the amplitude. At x = A/2 the potential energy is only E/4 and the kinetic energy is 3E/4; the displacement where the two are equal is x = A/√2 ≈ 0.707A, reached a time T/8 after a turning point and not T/4. The same square drives the second surprise: K and U each complete a full cycle in T/2, because v² and x² are blind to the sign of v and of x. A student who sketches K on the same axes as x, rising and falling with the same period, has drawn an oscillator that does not exist.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

A 0.25 kg glider on a frictionless air track moves in SHM with angular frequency 6.0 rad s⁻¹ and amplitude 0.12 m. Find its total mechanical energy, its maximum speed, and its speed as it passes x = 0.060 m.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 4 steps revealed.

MediumExample 2

A 0.80 kg mass oscillates harmonically at ω = 5.0 rad s⁻¹ with total mechanical energy 0.144 J. Find the amplitude, the displacement at which the kinetic energy is three times the potential energy, the speed there, and how long after leaving a turning point it first arrives.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

HardExample 3

A 0.60 kg mass moves in SHM with period 0.400 s and amplitude 0.150 m. Find the total energy, the period and mean value of the kinetic-energy curve, the first instant after release from rest at x = +A at which K = U, and the new total if the amplitude is doubled.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

6

Quick check

Select an answer and explain it before checking.

A 0.40 kg block moves in SHM with amplitude 0.10 m and ω = 12 rad s⁻¹. What is its kinetic energy as it passes x = 0.050 m?
7

Review & continue

The total mechanical energy of a simple harmonic oscillator is the constant sum E = ½mv² + ½mω²x², equal to ½mω²A², which the motion keeps converting between kinetic and potential form without changing the total.

  • 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 III completion tasks.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.