AP PHYSICS 1: ALGEBRA-BASED • OSCILLATIONS

Energy of Simple Harmonic Oscillators

Discover how kinetic and potential energy continuously trade places while total mechanical energy stays perfectly conserved.

Historical Context & Motivation

The study of oscillatory motion—objects moving back and forth about a stable equilibrium—is one of the oldest threads in the fabric of physics. Long before physicists could write energy equations, artisans and astronomers noticed that swinging pendulums and vibrating strings seemed to follow remarkably predictable patterns. The critical insight that these systems conserve and exchange distinct forms of energy took centuries to mature, drawing contributions from mechanics, mathematics, and thermodynamics.

1583
Galileo's Pendulum Observations
Galileo Galilei observed that a swinging chandelier in the Pisa cathedral completed each arc in approximately equal time intervals regardless of amplitude—a property now called isochronism. This hinted that something was conserved during the swing.
1678
Hooke's Law Published
Robert Hooke announced his spring law, ut tensio, sic vis (as the extension, so the force), establishing the linear restoring force that defines ideal simple harmonic motion.
1743
d'Alembert & Vibrating Strings
Jean le Rond d'Alembert applied Newton's laws to vibrating strings, extending oscillatory energy analysis beyond point masses and laying groundwork for wave mechanics.
1847
Helmholtz & Conservation of Energy
Hermann von Helmholtz formally articulated the principle of conservation of energy, giving physicists the theoretical framework to prove that the total mechanical energy in an ideal oscillator remains constant throughout its motion.

Together, these developments posed a compelling question: if a spring or pendulum neither speeds up nor slows down over its cycle (neglecting friction), where does the energy go at the extremes of motion, and where does it come from at the center? Answering that question is the purpose of this lesson.

Core Principles & Definitions

Before diving into equations, it is essential to establish the conceptual pillars that govern energy in a simple harmonic oscillator (SHO). An SHO is any system in which the net restoring force is directly proportional to the displacement from equilibrium and directed opposite to that displacement. The quintessential example is a mass on a frictionless spring, but small-angle pendulums and certain electrical circuits exhibit the same behavior. The following grid distills the foundational ideas you need.

1

Elastic Potential Energy

Energy stored in the deformation of the spring (or restoring mechanism). It is maximized when the oscillator is at its amplitude (maximum displacement) and zero at the equilibrium position.
2

Kinetic Energy

Energy of motion, proportional to the square of speed. It is maximized when the oscillator passes through equilibrium (zero displacement) and zero at the turning points.
3

Conservation of Mechanical Energy

In the absence of non-conservative forces (friction, air resistance), the sum of kinetic and potential energy remains constant throughout the oscillation cycle.
4

Amplitude Dependence

The total mechanical energy of an SHO is set by its amplitude: E = ½kA². Doubling the amplitude quadruples the total energy because energy scales with the square of amplitude.
5

Energy–Position Relationship

At any displacement x, the split between kinetic and potential energy can be determined exactly: U = ½kx² and K = ½k(A² − x²). This allows energy analysis without tracking time.
KEY TAKEAWAY
Think of energy in an SHO like water sloshing between two connected tanks. As one tank empties (kinetic energy drops to zero at the extremes), the other fills completely (potential energy reaches maximum). The total volume of water (total energy) never changes—it just redistributes. This perfect, lossless exchange is the hallmark of simple harmonic motion.

Visualizing the Energy Exchange

The diagram below illustrates how kinetic energy (K) and elastic potential energy (U) vary with position x for a mass–spring system oscillating between −A and +A. Notice how the two energy curves are mirror images that always sum to the same total energy E.

The purple parabola (U) shows elastic potential energy rising as the mass moves away from equilibrium. The cyan inverted parabola (K) shows kinetic energy peaking at x = 0. The dashed amber line (E) represents the constant total mechanical energy.

Several features of this graph deserve careful attention. First, both energy curves are parabolic—this is a direct consequence of the energy's quadratic dependence on x and v. Second, at every position the vertical distance from the x-axis to the U curve plus the vertical distance from U up to the total-energy line equals E. Third, the graph makes it visually obvious that when the displacement is x = ±A/√2 (roughly 71 % of amplitude), the kinetic and potential energies are exactly equal, each comprising half of the total energy. This is a commonly tested benchmark on the AP exam.

Mathematical Framework

The energy equations for a simple harmonic oscillator follow directly from Hooke's law (F = −kx) and the work–energy theorem. Because the spring force is conservative, we can define an elastic potential energy function, and the total mechanical energy is the sum of this potential energy and the kinetic energy of the oscillating mass.

ELASTIC POTENTIAL ENERGY
U = ½kx²
where k is the spring constant (N/m) and x is the displacement from the equilibrium position (m). This expression is derived by integrating the spring force: U = ∫₀ˣ kx′ dx′ = ½kx².
KINETIC ENERGY
K = ½mv²
where m is the mass (kg) and v is the instantaneous velocity (m/s).
TOTAL MECHANICAL ENERGY
E = K + U = ½mv² + ½kx² = ½kA²
Because energy is conserved, E can be evaluated at any convenient position. At x = ±A the mass momentarily stops (v = 0), so E = ½kA². At x = 0, all energy is kinetic: E = ½mvmax². Equating these gives vmax = A√(k/m) = Aω.
VELOCITY AT ARBITRARY POSITION
v = ±√(k/m) × √(A² − x²)
Derived by solving ½mv² + ½kx² = ½kA² for v. This is extremely useful: given the displacement, you can find the speed (and vice versa) without knowing the time.
💡 AP EXAM TIP
Many AP problems provide a position and ask for speed, or vice versa. Set up the energy conservation equation E = K + U and solve for the unknown. You almost never need to track time in energy problems—that is the power of conservation laws.

Energy as a Function of Time

While the position-based analysis in Section 4 is the most common on the AP exam, understanding how kinetic and potential energy evolve with time deepens your physical intuition and is frequently tested in graphical-analysis questions. If the displacement follows x(t) = A cos(ωt), the energies become:

POTENTIAL ENERGY VS. TIME
U(t) = ½kA² cos²(ωt)
Substituting x = A cos(ωt) into U = ½kx² yields a cos² function that oscillates between 0 and ½kA² with a period of T/2.
KINETIC ENERGY VS. TIME
K(t) = ½kA² sin²(ωt)
Since v = −Aω sin(ωt) and ½mω²A² = ½kA², kinetic energy becomes a sin² function. Notice that K + U = ½kA²(sin²(ωt) + cos²(ωt)) = ½kA², confirming conservation of energy.
Both the potential energy U(t) and the kinetic energy K(t) oscillate as squared trigonometric functions with a period of T/2—twice the frequency of the position function. They are always 180° out of phase with each other, and their sum equals the constant total energy E (dashed amber line).

A crucial observation from this time-domain plot is that the energy curves oscillate at twice the frequency of the displacement. While the mass completes one full oscillation (period T), each energy form completes two full cycles. This occurs because squaring either sin(ωt) or cos(ωt) converts a function of period T into one of period T/2. On the AP exam, if you are asked to identify the graph of kinetic or potential energy versus time, look for a curve that is always non-negative and oscillates with double the frequency of the displacement graph.

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, and (c) the speed when the block is 0.060 m from equilibrium.

Mass–Spring Energy Problem
1
Step 1 — Identify Given Valuesm = 0.50 kg, k = 200 N/m, A = 0.10 m. The block starts from rest at maximum displacement, so all initial energy is elastic potential energy.
2
Step 2 — Total Mechanical Energy (Part a)At x = A the velocity is zero, so E = Umax = ½kA² = ½(200)(0.10)² = ½(200)(0.010) = 1.0 J.
E = 1.0 J
3
Step 3 — Maximum Speed (Part b)At equilibrium (x = 0), all energy is kinetic: E = ½mvmax². Solving: vmax = √(2E/m) = √(2 × 1.0 / 0.50) = √4.0 = 2.0 m/s.
v_max = 2.0 m/s
4
Step 4 — Speed at x = 0.060 m (Part c)Apply conservation of energy: ½mv² + ½kx² = ½kA². Substituting: ½(0.50)v² + ½(200)(0.060)² = 1.0. Calculate U = ½(200)(0.0036) = 0.36 J. Then ½(0.50)v² = 1.0 − 0.36 = 0.64 J, so v² = 2(0.64)/0.50 = 2.56, giving v = 1.6 m/s.
v = 1.6 m/s
5
Step 5 — Check & ReflectAt x = 0.060 m the block has covered 60 % of the amplitude, yet it retains 64 % of its energy as kinetic energy—consistent with the parabolic shape of U(x). Also note that 1.6 m/s is 80 % of vmax, confirming that speed does not decrease linearly with displacement.

Common Pitfalls & Comparisons

Students frequently lose points on the AP exam by confusing properties of SHO energy with those of the displacement or by applying formulas outside their valid range. The table below highlights the most common pitfalls alongside the correct reasoning.

Common SHO Energy Misconceptions
Common MistakeCorrect Understanding
"Doubling the amplitude doubles the energy."Energy scales as A². Doubling amplitude quadruples total energy: E = ½kA².
"Speed decreases linearly from equilibrium to amplitude."Speed follows v = ω√(A² − x²), which is nonlinear. The mass moves fastest near the center and slows rapidly near the turning points.
"Energy depends on frequency or period."For a mass–spring system, E = ½kA². Frequency ω = √(k/m) depends on k and m but does not independently set the energy; only k and A do (though you can rewrite E = ½mω²A²).
"Kinetic and potential energy have the same period as displacement."Energy curves are squared trig functions that oscillate at 2ω, meaning their period is T/2—half the displacement period.
"At half the amplitude, the energy is split 50/50."At x = A/2, U = ½k(A/2)² = ¼(½kA²) = E/4. Thus K = 3E/4. The 50/50 split occurs at x = A/√2 ≈ 0.707A.
KEY TAKEAWAY
When working SHO energy problems, always start from the conservation equation E = K + U = ½kA² and solve for the unknown. Avoid memorizing special-case speed formulas—they all derive from this single relationship. Treat the energy equation as your universal translator between position and velocity.

Connections to Advanced Topics

The ideal SHO model assumes a perfectly linear restoring force and zero dissipation—conditions never fully realized in the physical world. Understanding where the model breaks down prepares you both for AP-level free-response questions about assumptions and for future coursework in mechanics and waves.

Ideal SHO vs. Real-World Oscillations
FeatureIdeal SHO (AP Physics 1)Advanced / Real-World
Energy conservationE = ½kA² = constant foreverIn damped oscillations, energy gradually converts to thermal energy; amplitude decays exponentially.
Restoring forceStrictly F = −kx (linear)Anharmonic oscillators have higher-order terms (F = −kx − αx³ + ...), changing the energy curves.
Frequency dependence on amplitudePeriod is independent of amplitudeIn nonlinear oscillators, period depends on amplitude (e.g., large-angle pendulum).
Driven systemsNot covered; only free oscillationExternal periodic forces inject energy, leading to resonance when driving frequency matches natural frequency.

Even though the AP Physics 1 exam focuses on the ideal case, free-response questions sometimes ask you to qualitatively predict what happens when friction is introduced. In that scenario, the total mechanical energy decreases over time while the amplitude shrinks, but the fundamental exchange between kinetic and potential energy still occurs within each cycle—it just occurs at progressively smaller scales. This concept bridges directly to damped and driven oscillations covered in AP Physics C and college-level mechanics courses.

Practice Problems

1
A block oscillates on a frictionless horizontal spring. At what displacement from equilibrium are the kinetic and potential energies of the block equal?
2
A 0.25 kg mass on a spring (k = 100 N/m) oscillates with an amplitude of 0.08 m. What is the maximum speed of the mass?
3
A block–spring system has total energy E. The block passes through a point where its speed is half its maximum speed. What is the kinetic energy of the block at this point?
PROBLEM 4APPLIED
A student wants to experimentally verify that the total mechanical energy of a horizontal mass–spring system remains constant during oscillation. The student has access to a motion sensor (records position and velocity vs. time), a spring with known spring constant k, a set of masses, and a low-friction track. (a) Describe a procedure the student should follow to collect the necessary data. Include specific measurements and how initial conditions should be set. (b) Describe how the student should analyze the data to test the hypothesis that total mechanical energy is conserved. (c) The student notices that the calculated total energy decreases slightly over many oscillation cycles. Identify one physical source of this energy loss and describe how the experimental setup could be modified to reduce it.
PROBLEM 5CRITICAL THINKING
Two identical mass–spring systems (same m and k) oscillate on frictionless surfaces. System 1 has amplitude A and System 2 has amplitude 2A. (a) Determine the ratio of the total energy of System 2 to that of System 1. (b) Determine the ratio of the maximum speed of System 2 to that of System 1. (c) Both systems pass through the position x = A/2 during their oscillation. At this position, is the speed of System 2 greater than, less than, or equal to the speed of System 1? Justify your answer quantitatively.

Lesson Summary

In a simple harmonic oscillator, energy continuously converts between kinetic energy (K = ½mv²) and elastic potential energy (U = ½kx²). The total mechanical energy E = ½kA² is set entirely by the spring constant and the amplitude, and it remains constant in the absence of non-conservative forces. At the equilibrium position (x = 0), all energy is kinetic and the mass reaches its maximum speed vmax = Aω. At the turning points (x = ±A), all energy is potential and the mass is momentarily at rest.

The energy curves are parabolic when plotted against position and sinusoidal (squared trig) when plotted against time, oscillating at twice the frequency of the displacement. The 50/50 energy split occurs at x = A/√2. For any problem, the master equation ½mv² + ½kx² = ½kA² is your primary tool—use it to move fluently between position and velocity without tracking time.

Varsity Tutors • AP Physics 1: Algebra-Based • Energy of Simple Harmonic Oscillators