AP Physics C: Mechanics • Oscillations

Energy of Simple Harmonic Oscillators

How kinetic and potential energy trade back and forth while their sum remains perfectly constant.

A motion gauge with symbols for mass and movement.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of oscillatory motion has deep roots in the history of physics, stretching back to Galileo's famous observation that a swinging chandelier in the Cathedral of Pisa maintained a remarkably constant period regardless of its amplitude. This observation hinted at a profound underlying regularity in periodic motion, one that would eventually be formalized through the concept of simple harmonic motion (SHM). Understanding the energy stored in and exchanged by oscillating systems proved essential not only for designing accurate clocks and musical instruments but also for developing the broader framework of classical mechanics and, ultimately, quantum theory.

1583 • Galileo's Pendulum Observations

Galileo Galilei noted the isochronous property of pendulums — their period is nearly independent of amplitude for small swings — sparking systematic study of oscillatory systems.

1678 • Hooke's Law Published

Robert Hooke announced ut tensio, sic vis ("as the extension, so the force"), establishing the linear restoring-force model that defines ideal springs and underpins the mathematics of SHM.

1687 • Newton's Principia Mathematica

Isaac Newton's laws of motion provided the framework to derive the differential equation of SHM from Hooke's law, enabling a complete kinematic and energetic description of oscillators.

1788 • Lagrange's Mécanique Analytique

Joseph-Louis Lagrange reformulated mechanics using energy functions (kinetic and potential), making the energy approach to SHM central to analytical mechanics and generalizable to complex systems.

1900 • Planck's Quantized Oscillators

Max Planck modeled blackbody radiation by quantizing the energy of harmonic oscillators, directly linking the classical energy of SHM to the birth of quantum mechanics.

The central question this lesson addresses is: How is energy stored, transformed, and conserved in a simple harmonic oscillator? By the end, you will be able to write expressions for kinetic, potential, and total energy as functions of position and time, and you will understand the deep connection between energy conservation and the sinusoidal character of SHM — a connection that pervades every branch of physics from acoustics to quantum field theory.

SECTION 2

Core Principles & Definitions

Before diving into the energy expressions, it is important to establish the foundational ideas that govern the energetics of simple harmonic oscillators. Recall that SHM arises whenever a system experiences a linear restoring force proportional to displacement from equilibrium, F = −kx. The resulting motion is sinusoidal with angular frequency ω = √(k/m), and the system continuously converts energy between kinetic and potential forms without any net loss (in the ideal, undamped case). The following grid summarizes the four core principles that structure the energy analysis.

1

Elastic Potential Energy

The spring stores energy U = ½kx² whenever it is displaced from equilibrium. This energy is maximum at the turning points (x = ±A) and zero at the equilibrium position (x = 0).
2

Kinetic Energy

The moving mass carries kinetic energy K = ½mv². It is maximum at equilibrium where the speed is greatest, and zero at the turning points where the mass momentarily stops.
3

Total Mechanical Energy

In the absence of dissipative forces, the total mechanical energy E = K + U = ½kA² remains constant throughout the motion, depending only on the amplitude and spring constant.
4

Energy–Time Oscillation

Both K and U oscillate sinusoidally at twice the natural frequency of the displacement, because each involves the square of a sinusoidal function. Their sum is time-independent.
✦

KEY TAKEAWAY

Think of the energy in a simple harmonic oscillator as water sloshing between two connected tanks: one tank represents kinetic energy and the other potential energy. As water drains from one, it fills the other, but the total amount of water never changes. In exactly the same way, energy is shuttled back and forth between K and U at twice the oscillation frequency while the total energy E remains constant. This conservation principle is the single most powerful tool for solving SHM problems on the AP exam.

SECTION 3

Visualizing Energy Exchange in SHM

The diagram below shows a mass–spring system at five key positions across one half-cycle, along with energy bar charts illustrating how kinetic and potential energy trade off at each location. Pay careful attention to the relative heights of the K and U bars: their sum is always equal to the total energy E = ½kA².

Energy Distribution Across One Half-Cycle of SHMx = −Ax = −A/2x = 0x = +A/2x = +Aequilibriummwallmvmv_maxmvmEnergy Bar ChartsUKU=E, K=0UKU=¼E, K=¾EUKU=0, K=EUKU=¼E, K=¾EUKU=E, K=0Potential Energy (U)Kinetic Energy (K)
Five snapshots of a mass–spring system during one half-cycle. The bar charts below each snapshot show how potential energy U (pink) and kinetic energy K (cyan) trade off while their combined height stays constant. At x = ±A the mass is momentarily at rest (K = 0, U = E), and at x = 0 all energy is kinetic (K = E, U = 0).

Observe the symmetry in the diagram: the energy distribution at x = −A/2 is identical to that at x = +A/2, which reflects the fact that potential energy depends on x² and kinetic energy depends on v², both of which are even functions of displacement or velocity. At the halfway displacement x = A/2, the spring holds only one-quarter of the total energy because U = ½k(A/2)² = ¼(½kA²) = ¼E, leaving three-quarters for kinetic energy. This non-intuitive result — that halfway in position does not correspond to halfway in energy — is a favorite AP exam target.

SECTION 4

Mathematical Framework

The energy analysis of SHM begins with two fundamental expressions — one for kinetic energy and one for elastic potential energy — which can be written either as functions of position or as functions of time. Both representations are essential for the AP C exam, so we develop them systematically below.

Energy as a Function of Position

ELASTIC POTENTIAL ENERGY

U(x)=½kx2U(x) = ½ k x²

k = spring constant (N/m), x = displacement from equilibrium (m). This follows directly from integrating Hooke's law: U = −∫F dx = −∫(−kx) dx = ½kx².

KINETIC ENERGY

K(x)=½mv2=½k(A2−x2)K(x) = ½ m v² = ½ k (A² − x²)

m = mass (kg), v = velocity (m/s), A = amplitude (m). The second form comes from energy conservation: K = E − U = ½kA² − ½kx².

TOTAL MECHANICAL ENERGY

E=K+U=½kA2=½mω2A2=½mvm2axE = K + U = ½ k A² = ½ m ω² A² = ½ m v²_max

The total energy depends only on the amplitude A and the spring constant k (or equivalently on m, ω, and A). Since E is constant, it equals U at x = ±A (where K = 0) and equals K at x = 0 (where U = 0).

Energy as a Function of Time

For an oscillator with displacement x(t) = A cos(ωt + φ), the velocity is v(t) = −Aω sin(ωt + φ). Substituting into the energy expressions and applying the identity sin²θ + cos²θ = 1 yields:

POTENTIAL ENERGY VS TIME

U(t)=½kA2cos2(ωt+φ)U(t) = ½ k A² cos²(ωt + φ)

Using the double-angle identity, this can be rewritten as U(t) = ¼kA²[1 + cos(2ωt + 2φ)], confirming that U oscillates at angular frequency 2ω.

KINETIC ENERGY VS TIME

K(t)=½kA2sin2(ωt+φ)K(t) = ½ k A² sin²(ωt + φ)

Similarly K(t) = ¼kA²[1 − cos(2ωt + 2φ)]. The sum K + U = ½kA² is indeed time-independent, confirming conservation of energy.

💡

AP Exam Tip

The average kinetic energy and average potential energy over one full cycle are each exactly half the total energy: ⟨K⟩ = ⟨U⟩ = ½E = ¼kA². This result follows from the time-average of sin² and cos² being ½, and it appears frequently on both the MCQ and FRQ sections.

SECTION 5

Energy Graphs — Position and Time Dependence

Two complementary graphical representations are essential for mastering energy in SHM: the energy-versus-position plot and the energy-versus-time plot. The energy-versus-position graph shows U as a parabola opening upward, an inverted parabola for K, and a horizontal line for total energy E. The energy-versus-time graph instead shows two cos² curves (one for U, one for K) that are perfectly out of phase, summing to a flat line at E.

Energy vs. Position for a Simple Harmonic OscillatorxEnergy0−A+AEU = ½kx²K = E − UK_maxU_max½kA²Potential Energy (U)Kinetic Energy (K)Total Energy (E)
Energy vs. position for a mass–spring SHM system. The parabolic U curve (pink) and the inverted-parabola K curve (cyan) always sum to the constant total energy E (dashed amber line). The vertical dashed lines at x = ±A mark the turning points.

Several features of this graph deserve emphasis. First, the U(x) parabola and the K(x) curve intersect where U = K = E/2, which occurs at x = ±A/√2 ≈ ±0.707A — not at x = ±A/2 as many students initially guess. Second, the allowed range of motion is confined to −A ≤ x ≤ +A because the kinetic energy cannot be negative; the turning points where K = 0 are the classical boundaries of oscillation. Third, the curvature of U(x) is directly proportional to k: stiffer springs produce steeper parabolas and higher total energies for the same amplitude.

⚠

Common Misconception

Students often assume K = U at x = A/2. In fact, at x = A/2 the potential energy is only U = ½k(A/2)² = ¼(½kA²) = E/4, so K = 3E/4. The energies are equal only at x = ±A/√2, where x² = A²/2 makes U = E/2.

A spring cart on a rail connected to a cutaway fluid dashpot with a visible piston assembly.In the zero-damping spring model, kinetic and potential energies vary with position and time while total mechanical energy stays constant.

Undamped energy exchange. For m = 0.50 kg, k = 200 N/m and A = 0.10 m, total energy is 1 J and angular frequency is 20 rad/s. Kinetic and potential energies exchange at twice the displacement frequency.For m = 0.50 kg, k = 200 N/m and A = 0.10 m, total energy is 1 J and angular frequency is 20 rad/s. Kinetic and potential energies exchange at twice the displacement frequency.

SECTION 6

Worked Example

A 0.50 kg block is attached to a horizontal spring (k = 200 N/m) on a frictionless surface. The block is pulled 0.10 m from equilibrium and released from rest. Find (a) the total mechanical energy, (b) the maximum speed, (c) the speed when x = 0.060 m, and (d) the position at which kinetic and potential energy are equal.

Spring–Block Oscillator Energy Analysis

  1. 1

    Step 1 — Identify Given Values

    Mass m = 0.50 kg, spring constant k = 200 N/m, amplitude A = 0.10 m. The block is released from rest at x = A, so the initial phase gives x(0) = A cos(0) = A, consistent with v(0) = 0.
  2. 2

    Step 2 — Total Mechanical Energy (part a)

    At the release point, all energy is potential: E = ½kA² = ½(200)(0.10)² = ½(200)(0.01) = 1.0 J. This total energy is conserved throughout the motion.
    E = 1.0 J
  3. 3

    Step 3 — Maximum Speed (part b)

    Maximum speed occurs at x = 0 where all energy is kinetic: E = ½mv²_max, so v_max = √(2E/m) = √(2 × 1.0 / 0.50) = √4.0 = 2.0 m/s. Equivalently, v_max = Aω = A√(k/m) = 0.10 × √(200/0.50) = 0.10 × 20 = 2.0 m/s.
    v_max = 2.0 m/s
  4. 4

    Step 4 — Speed at x = 0.060 m (part c)

    Apply energy conservation: ½mv² + ½kx² = E. Solving for v: v = √[(2/m)(E − ½kx²)] = √[(2/0.50)(1.0 − ½(200)(0.060)²)]. Calculate ½kx² = ½(200)(0.0036) = 0.36 J. Therefore v = √[(2/0.50)(1.0 − 0.36)] = √[(4)(0.64)] = √2.56 = 1.6 m/s.
    v = 1.6 m/s at x = 0.060 m
  5. 5

    Step 5 — Position Where K = U (part d)

    When K = U, each equals E/2. Setting U = E/2: ½kx² = ½(½kA²), which simplifies to x² = A²/2, so x = ±A/√2 = ±0.10/√2 ≈ ±0.0707 m. Note this is about 70.7% of the amplitude, not 50%.
    x = ±A/√2 ≈ ±0.071 m

SECTION 7

Strengths, Limitations & Comparisons

The energy approach to SHM is remarkably powerful, but it has its domain of applicability. Understanding when the energy method excels and where it falls short will help you choose the most efficient solution strategy on the AP exam. The table below compares the energy method with the force/kinematics approach and highlights limitations of the ideal SHM model.

FeatureEnergy MethodForce / Kinematics Method
Speed at a given positionDirect: solve ½mv² = E − ½kx² in one stepMust solve x(t) first, then differentiate and eliminate t
Time to reach a positionNot directly available; must invert x(t)Direct from x(t) = A cos(ωt + φ)
Amplitude changesEasily handles energy added or removed (e.g., collisions)Must re-derive initial conditions and solve ODE again
Damped / driven oscillatorsProvides energy-loss rate; exact solution requires modified ODEFull differential equation approach required
Non-linear restoring forcesEnergy conservation still applies; U(x) is no longer parabolicEquation of motion becomes non-linear; analytical solutions rare

Comparison of energy and force/kinematics approaches for oscillator problems

🎯

STRATEGIC INSIGHT

On the AP Physics C exam, the energy method is your fastest tool whenever a problem asks for speed at a given position, maximum speed, or amplitude after an inelastic event (such as a bullet embedding in the block). Reserve the kinematic approach for problems that explicitly ask for time information. In engineering practice, this same philosophy holds: energy methods give scalar answers quickly, while force methods provide the full time-domain solution.

SECTION 8

Connection to Advanced Topics

The ideal SHM energy framework extends naturally into several advanced areas that you may encounter in later physics courses or in the more challenging AP C free-response problems. Two of the most important extensions are damped oscillations (where friction or drag dissipates energy) and quantum harmonic oscillators (where energy levels become discrete). The table below compares the ideal classical oscillator with these more general models.

PropertyIdeal (Undamped) SHMDamped SHMQuantum HO
Total energyConstant: E = ½kA²Decays: E(t) = E₀ e−bt/me^{−bt/m}Quantized: Eₙ = (n + ½)ℏω
AmplitudeConstant over timeDecreases exponentiallyProbabilistic; no sharp turning point
Energy spectrumContinuous — any A is allowedContinuous but decayingDiscrete, equally spaced levels
Ground-state energyE = 0 when A = 0Approaches 0 as t → ∞E₀ = ½ℏω ≠ 0 (zero-point energy)
AP C relevanceCore topic — heavily testedQualitative understanding expectedBeyond AP C scope; context for E&M / Modern

Classical ideal SHM vs. damped and quantum oscillators

For AP Physics C: Mechanics, you should be comfortable with the ideal model and qualitatively aware that real oscillators lose energy to dissipative forces. If a problem introduces a damping force F = −bv, the total mechanical energy is no longer conserved because the damping force does negative work on the system. The rate of energy loss is dE/dt = −bv², which you can derive by differentiating E = ½mv² + ½kx² and substituting ma = −kx − bv. This connection between the power dissipated and the damping coefficient b is a frequent AP C free-response target and illustrates how the ideal SHM energy framework generalizes gracefully.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A block oscillates on a horizontal spring with amplitude A. At which displacement from equilibrium is the kinetic energy of the block equal to its potential energy?
  • A. x = A/2
  • B. x = A/√2
  • C. x = A/4
  • D. x = 0
Show answer (B)
The correct answer is B. When K = U, each equals E/2. Setting ½kx² = ½(½kA²) gives x² = A²/2, so x = A/√2 ≈ 0.707A. Choice A (x = A/2) gives U = ¼E and K = ¾E, not equal energies — this is the most common student error. Choice C (x = A/4) gives U = E/16 and K = 15E/16. Choice D (x = 0) is the equilibrium point where U = 0 and K = E, not equal.

Question 2: BASIC CALCULATION

A 0.25 kg mass oscillates on a spring with spring constant k = 100 N/m and amplitude 0.080 m. What is the maximum speed of the mass?
  • A. 0.80 m/s
  • B. 1.2 m/s
  • C. 1.6 m/s
  • D. 3.2 m/s
Show answer (C)
The correct answer is C. Maximum speed occurs at x = 0: v_max = Aω = A√(k/m) = 0.080 × √(100/0.25) = 0.080 × √400 = 0.080 × 20 = 1.6 m/s. Choice A (0.80 m/s) results from using ω = √(k) without dividing by m. Choice B (1.2 m/s) does not correspond to a standard error but may arise from a computational mistake. Choice D (3.2 m/s) would result from doubling the correct answer, possibly by confusing v_max with 2Aω.

Question 3: INTERMEDIATE

A 2.0 kg block attached to a spring (k = 800 N/m) oscillates with an amplitude of 0.050 m. A second block of mass 2.0 kg is dropped onto the first block at the moment it passes through equilibrium. The blocks stick together. What is the new amplitude of oscillation?
  • A. 0.025 m
  • B. 0.035 m
  • C. 0.050 m
  • D. 0.071 m
Show answer (B)
The correct answer is B. At equilibrium, v_max = Aω = 0.050 × √(800/2.0) = 0.050 × 20 = 1.0 m/s. The collision is perfectly inelastic (momentum conserved): (2.0)(1.0) = (4.0)v', so v' = 0.50 m/s. The new angular frequency is ω' = √(800/4.0) = √200 ≈ 14.14 rad/s. The new amplitude is A' = v'/ω' = 0.50/14.14 ≈ 0.0354 m ≈ 0.035 m. Choice A (0.025 m) incorrectly halves the original amplitude, assuming amplitude scales inversely with mass. Choice C (0.050 m) assumes the amplitude is unchanged, ignoring the energy lost in the inelastic collision. Choice D (0.071 m) might result from conserving energy instead of momentum during the collision.

Question 4: APPLIED

10 pts
A mass m is attached to a spring of constant k on a frictionless surface. The mass is in SHM with amplitude A. At time t = 0 the displacement is x = A (released from rest). (a) Derive an expression for the speed v of the mass as a function of position x using energy conservation. (b) Find the displacement x at which the kinetic energy is three times the potential energy. (c) Using the time-dependent energy expressions, determine the earliest time at which K = 3U. (d) Is the time found in part (c) one-quarter of the period? Justify your answer.
Show answer
Part (a) — 3 points: • [1 pt] Write energy conservation: ½mv² + ½kx² = ½kA². • [1 pt] Solve for v²: v² = (k/m)(A² − x²). • [1 pt] Final expression: v = √(k/m) × √(A² − x²) = ω√(A² − x²). Part (b) — 3 points: • [1 pt] Set K = 3U: ½k(A² − x²) = 3 × ½kx². • [1 pt] Simplify: A² − x² = 3x², so A² = 4x². • [1 pt] Result: x = ±A/2. Part (c) — 2 points: • [1 pt] Use K(t) = ½kA²sin²(ωt) and U(t) = ½kA²cos²(ωt) (with φ = 0). Set sin²(ωt) = 3cos²(ωt), giving tan²(ωt) = 3, so tan(ωt) = √3, and ωt = π/3. • [1 pt] Earliest time: t = π/(3ω) = T/6. Part (d) — 2 points: • [1 pt] T/6 is NOT equal to T/4. • [1 pt] Justification: The mass reaches x = A/2 before it reaches x = 0 because it moves faster near equilibrium and slower near the turning points. The time to go from A to A/2 (T/6 of total period) is less than half the quarter-period time, confirming K = 3U occurs before the quarter-period mark.

Question 5: CRITICAL THINKING

7 pts
A block of mass m attached to a spring of constant k oscillates vertically. The spring hangs from a ceiling and has natural length L₀. (a) Show that the equilibrium extension of the spring is Δ = mg/k, and define a coordinate y measured from this new equilibrium. (b) Using the coordinate y, show that the total mechanical energy (kinetic + elastic potential + gravitational potential) can be written in the form E = ½mv² + ½ky² + C, where C is a constant, and identify C. (c) Explain why the energy analysis for the vertical spring–mass system in the y-coordinate is mathematically identical to the horizontal case, and state what role the constant C plays. (d) A student claims that the gravitational potential energy "breaks" energy conservation for a vertical oscillator. Critique this claim.
Show answer
Part (a) — 1 point: • [1 pt] At equilibrium, the net force is zero: kΔ = mg, so Δ = mg/k. Define y = x − Δ where x is measured from the natural length position. Part (b) — 3 points: • [1 pt] The elastic PE is ½k(Δ + y)² and gravitational PE is −mg(Δ + y) (taking the natural length position as reference). • [1 pt] Expanding: ½k(Δ² + 2Δy + y²) − mgΔ − mgy. Since mg = kΔ, the terms 2 × ½kΔy − mgy = kΔy − kΔy = 0 (the linear terms cancel). • [1 pt] Result: E = ½mv² + ½ky² + (½kΔ² − mgΔ) = ½mv² + ½ky² + C, where C = ½kΔ² − mgΔ = −½mg²/k. Part (c) — 2 points: • [1 pt] Since C is a constant, dE/dt = 0 reduces to d(½mv² + ½ky²)/dt = 0, which is identical to the horizontal case. The cross terms cancel, so gravity does not affect the oscillation dynamics in the y-coordinate. • [1 pt] C shifts the zero of total energy but does not affect the dynamics; it is an additive constant that drops out of all equations of motion. Part (d) — 1 point: • [1 pt] The student's claim is incorrect. Gravity is a conservative force, so including gravitational PE in the total energy preserves conservation. By shifting coordinates to the equilibrium position, gravity's contribution is absorbed into a constant that does not affect the oscillatory energy exchange between K and U. The energy analysis is fully valid for vertical oscillators.

SUMMARY

Summary — Energy of Simple Harmonic Oscillators

Summary

In an ideal (undamped) simple harmonic oscillator, energy continuously converts between elastic potential energy U = ½kx² and kinetic energy K = ½mv² while the total mechanical energy E = ½kA² remains constant. The maximum speed v_max = Aω = A√(k/m) occurs at equilibrium, while the mass is momentarily at rest at the turning points x = ±A. The position at which K = U is x = ±A/√2, not ±A/2 — a frequently tested distinction.

Expressed as functions of time, both K and U oscillate sinusoidally at twice the natural frequency (2ω), with their time averages each equal to ½E = ¼kA². The energy method is the most efficient tool for finding speeds at arbitrary positions and for analyzing collisions or sudden changes in an oscillating system. For vertical spring–mass systems, shifting the coordinate origin to the equilibrium position absorbs gravity into a constant, making the energy analysis identical to the horizontal case.

Varsity Tutors • AP Physics C: Mechanics • Energy of Simple Harmonic Oscillators