COLLEGE PHYSICS • OSCILLATIONS & SIMPLE HARMONIC MOTION

Energy of Simple Harmonic Oscillators

How kinetic and potential energy continuously transform in oscillating systems while total mechanical energy remains conserved.

Historical Context & Motivation

The study of oscillatory motion has occupied physicists for centuries, beginning with observations of pendulums and vibrating strings that revealed a deep regularity underlying periodic phenomena. The concept of simple harmonic motion (SHM) crystallized gradually as mathematicians and natural philosophers sought to describe the restoring forces responsible for repetitive motion. Understanding the energy content of these oscillations proved essential not only for classical mechanics but also for thermodynamics, acoustics, and eventually quantum theory, where the quantum harmonic oscillator became one of the most important exactly solvable models in physics.

1583
Galileo's Pendulum Observations
Galileo Galilei observed the isochronous swinging of a cathedral chandelier and hypothesized that a pendulum's period is independent of its amplitude for small oscillations, laying the groundwork for the study of periodic motion.
1678
Hooke's Law Published
Robert Hooke formulated his law of elasticity, ut tensio, sic vis ("as the extension, so the force"), establishing the linear restoring force F = −kx that defines simple harmonic motion.
1788
Lagrange's Analytical Mechanics
Joseph-Louis Lagrange published Mécanique analytique, providing an energy-based formulation of mechanics that naturally expressed oscillatory systems in terms of kinetic and potential energy functions.
1847
Helmholtz & Conservation of Energy
Hermann von Helmholtz formally stated the conservation of energy principle, providing the theoretical foundation for understanding how total mechanical energy remains constant in an ideal oscillator.
1900–1925
Quantum Harmonic Oscillator
Planck's quantization hypothesis and subsequent work by Heisenberg and Schrödinger showed that the harmonic oscillator's energy is quantized in discrete levels E = (n + ½)ℏω, revealing that classical SHM energy analysis is a limiting case of quantum mechanics.

The central question that the energy analysis of SHM addresses is deceptively simple: if an oscillator continuously reverses direction, where does its energy go at each instant? The answer—that kinetic and potential energy trade back and forth while their sum remains constant—provides one of the most elegant illustrations of energy conservation in all of physics and serves as a prototype for energy analysis in far more complex systems.

Core Principles & Definitions

Before diving into the mathematical details, it is essential to establish the foundational principles that govern energy in a simple harmonic oscillator. An SHM system is defined by a linear restoring force proportional to displacement from equilibrium, and the energy framework follows directly from this linearity. The interplay between kinetic and potential energy, governed by conservation laws, determines the oscillator's behavior at every point in its cycle.

1

Elastic Potential Energy

The energy stored in a spring (or any linear restoring-force element) due to displacement from equilibrium. Given by U = ½kx², it is maximum at the turning points (x = ±A) and zero at the equilibrium position (x = 0).
2

Kinetic Energy

The energy associated with the mass's motion, K = ½mv². It is maximum at equilibrium where the oscillator moves fastest, and vanishes at the amplitude extremes where the mass momentarily stops.
3

Total Mechanical Energy

The sum E = K + U remains constant throughout the oscillation for an ideal (undamped) system. This total equals E = ½kA², depending only on the amplitude and spring constant, not on the instantaneous position or velocity.
4

Energy–Time Dependence

Both K and U oscillate sinusoidally in time at twice the frequency of the displacement. When x(t) = A cos(ωt), the potential energy goes as cos²(ωt) and kinetic energy as sin²(ωt), each completing two full cycles per period.
5

Amplitude & Energy Scaling

Total energy scales as the square of the amplitude. Doubling the amplitude quadruples the total energy of the oscillator, a consequence of the quadratic nature of both energy forms.
KEY TAKEAWAY
Think of SHM energy like water sloshing between two connected tanks. As water (energy) drains from the left tank (potential energy), the right tank (kinetic energy) fills at exactly the same rate. The total amount of water never changes—it simply redistributes. At the turning points, all the water sits in the potential-energy tank; at equilibrium, it has all flowed into the kinetic-energy tank. This continuous, lossless exchange is the hallmark of conservative oscillatory systems.

Visual Explanation: Energy vs. Position

The relationship between kinetic energy, potential energy, and total energy is most clearly understood through a graph of each quantity as a function of displacement. The following diagram illustrates how the parabolic potential energy curve U(x) = ½kx² and the inverted parabola representing kinetic energy K(x) = ½k(A² − x²) always sum to the constant total energy E = ½kA².

The violet parabola represents potential energy U(x), which peaks at the turning points x = ±A. The cyan inverted parabola shows kinetic energy K(x), maximized at x = 0. The dashed pink line indicates the constant total mechanical energy E = ½kA². At any displacement, the vertical distances from the x-axis to each curve sum to E.

Several important features stand out in this diagram. First, at x = 0 the entire energy budget is kinetic—the mass passes through equilibrium at maximum speed. Second, at x = ±A the mass momentarily stops, so all energy resides in the elastic potential of the spring. Third, at any intermediate position the vertical gap between the total-energy line and the potential-energy curve represents the kinetic energy at that displacement: K = E − U = ½k(A² − x²). This graphical relationship makes it straightforward to determine the speed of the oscillator at any point in its trajectory without solving the differential equation of motion.

Mathematical Framework

The mathematical description of energy in SHM follows from Hooke's law and Newton's second law. Starting with the displacement function x(t) = A cos(ωt + φ), where ω = √(k/m) is the angular frequency, we can derive explicit expressions for kinetic energy, potential energy, and total energy as functions of both position and time.

POTENTIAL ENERGY
U(x) = ½kx²
Where k is the spring constant (N/m) and x is the displacement from equilibrium. This is derived by integrating the restoring force F = −kx: U = −∫F dx = ∫kx dx = ½kx².
KINETIC ENERGY
K(x) = ½mv² = ½k(A² − x²)
Where m is the mass, v is the instantaneous velocity, and A is the amplitude. The second form follows from energy conservation: K = E − U = ½kA² − ½kx².
TOTAL MECHANICAL ENERGY
E = ½kA² = ½mω²A²
The total energy depends only on the amplitude and the spring constant (or equivalently, mass and angular frequency). Since ω² = k/m, both forms are equivalent. The total energy is independent of the instantaneous position or velocity.

Time Dependence of Energy

Substituting x(t) = A cos(ωt) and v(t) = −Aω sin(ωt) into the energy expressions yields the time-dependent forms. The potential energy becomes U(t) = ½kA² cos²(ωt), and the kinetic energy becomes K(t) = ½kA² sin²(ωt). Using the trigonometric identity cos²(θ) + sin²(θ) = 1, the sum U + K = ½kA² is manifestly constant. It is worth noting that cos²(ωt) = ½[1 + cos(2ωt)] and sin²(ωt) = ½[1 − cos(2ωt)], which reveals that both K and U oscillate at angular frequency —twice the natural frequency of the displacement—and their time-averaged values are each exactly ½E = ¼kA².

VELOCITY AT ARBITRARY POSITION
v(x) = ±ω√(A² − x²)
Derived from energy conservation: ½mv² = ½k(A² − x²), solving for v and substituting ω² = k/m. This is extremely useful for finding the speed at any displacement without knowledge of time.

Energy as a Function of Time

While the energy-versus-position diagram reveals the spatial distribution of energy, a complementary and equally illuminating view is the energy-versus-time plot. This representation shows how kinetic and potential energy oscillate sinusoidally and out of phase with each other, always summing to a constant total. The following diagram displays the time evolution of K(t), U(t), and E over two complete periods of oscillation.

The violet curve represents U(t) = ½kA² cos²(ωt), and the cyan curve represents K(t) = ½kA² sin²(ωt). Notice that both oscillate at frequency 2ω (period T/2) and are always perfectly out of phase. Their sum (the dashed pink line) remains constant at E = ½kA². The crossover points where K = U = ½E occur at x = ±A/√2.

This time-domain view highlights several important features. The energy exchange between kinetic and potential forms occurs at twice the oscillation frequency because the energy depends on the square of sinusoidal functions. At t = 0 (assuming x(0) = A), all energy is potential; by t = T/4, all energy has transferred to kinetic form. The time-averaged values ⟨K⟩ = ⟨U⟩ = ½E arise from the identity ⟨cos²(ωt)⟩ = ⟨sin²(ωt)⟩ = ½, a result that carries over to the virial theorem for the harmonic oscillator.

Energy values at key instants during one full cycle (assuming x(0) = A)
TimeDisplacementKUE
0A0½kA²½kA²
T/8A cos(π/4) = A/√2¼kA²¼kA²½kA²
T/40½kA²0½kA²
T/2−A0½kA²½kA²
3T/40½kA²0½kA²

Worked Example

Consider a 0.500 kg block attached to a horizontal spring with spring constant k = 200 N/m. The block is displaced 0.100 m from equilibrium and released from rest. We wish to find the total energy, the maximum speed, and the speed when the block is 0.060 m from equilibrium.

Block on a Spring — Energy Analysis
1
Step 1 — Identify Given ValuesMass: m = 0.500 kg. Spring constant: k = 200 N/m. Amplitude: A = 0.100 m (released from rest, so the initial displacement equals the amplitude). We also need the speed at x = 0.060 m.
2
Step 2 — Calculate Total Mechanical EnergySince the block is released from rest at x = A, all initial energy is potential energy. E = ½kA² = ½(200 N/m)(0.100 m)² = ½(200)(0.0100).
E = 1.00 J
3
Step 3 — Find Maximum SpeedMaximum speed occurs at x = 0 where all energy is kinetic. Setting E = ½mv²_max: 1.00 J = ½(0.500 kg)v²_max, so v²_max = 2(1.00)/0.500 = 4.00 m²/s².
v_max = 2.00 m/s
4
Step 4 — Find Speed at x = 0.060 mUse v(x) = ω√(A² − x²). First compute ω = √(k/m) = √(200/0.500) = √400 = 20.0 rad/s. Then v = 20.0 × √(0.100² − 0.060²) = 20.0 × √(0.0100 − 0.0036) = 20.0 × √(0.0064) = 20.0 × 0.0800.
v = 1.60 m/s
5
Step 5 — Verify with Energy ConservationAt x = 0.060 m: U = ½(200)(0.060)² = 0.360 J. K = ½(0.500)(1.60)² = ½(0.500)(2.56) = 0.640 J. Total: 0.360 + 0.640 = 1.00 J ✓. The energy is conserved, confirming our calculation.
K + U = 0.640 J + 0.360 J = 1.00 J ✓

Assumptions, Strengths & Limitations

The energy analysis presented above rests on several idealizing assumptions. Real physical oscillators deviate from this picture in important ways, and understanding these limitations helps clarify the domain of validity of the SHM energy framework.

Ideal SHM energy model versus real-world oscillator behavior
FeatureIdeal SHM (Strength)Real Systems (Limitation)
Restoring forcePerfectly linear: F = −kx. This yields exact sinusoidal motion and clean parabolic energy curves.Real springs exhibit nonlinearity (anharmonicity) at large displacements, causing the potential to deviate from ½kx² and the period to become amplitude-dependent.
DampingNo dissipative forces. Total energy E = ½kA² remains constant indefinitely.Friction, air resistance, and internal material losses drain mechanical energy, causing the amplitude to decay exponentially (underdamped case).
Driving forcesNo external energy input assumed. The system oscillates freely at its natural frequency.Driven oscillators receive periodic energy input, leading to resonance phenomena and steady-state amplitudes that depend on driving frequency.
Mass of springSpring is massless; all kinetic energy belongs to the attached mass.A real spring has distributed mass, requiring an effective mass correction (m_eff = m + m_spring/3 for a uniform spring).
Energy quantizationEnergy is a continuous variable; any amplitude (and therefore any E) is permitted.Quantum mechanics restricts oscillator energies to discrete levels E_n = (n + ½)ℏω, with a nonzero ground-state energy ½ℏω.
KEY TAKEAWAY
The ideal SHM energy model is analogous to a frictionless bank account with two sub-accounts: you can transfer funds freely between "kinetic" and "potential" accounts, but the total balance never changes. In reality, every transaction incurs a small fee (damping), and at the quantum level, your minimum balance is never zero—there's always a small, irreducible energy floor (zero-point energy).

Connection to Advanced Theory

The energy framework of the classical harmonic oscillator serves as a gateway to several more advanced topics in physics. The transition from classical to quantum descriptions, the treatment of damped and driven oscillators, and the connection to wave phenomena and normal modes all build upon the energy concepts developed here.

How classical SHM energy concepts extend to advanced physics
Classical SHM EnergyAdvanced Extension
E = ½kA² (continuous, any positive value)Quantum: E_n = (n + ½)ℏω, n = 0, 1, 2, … Energy is quantized with equally spaced levels separated by ℏω.
⟨K⟩ = ⟨U⟩ = ½E (virial theorem for quadratic potential)Statistical mechanics: each quadratic degree of freedom contributes ½k_BT to the average energy (equipartition theorem), connecting oscillator energy to temperature.
E constant; no energy lossDamped oscillator: E(t) = E₀ e^(−γt), where γ = b/m. The quality factor Q = ω₀/γ measures how many oscillations occur before significant energy loss.
Single oscillator with one frequency ωCoupled oscillators and normal modes: energy distributes among multiple modes, leading to the concept of phonons in solids and the Debye model of specific heat.
Energy proportional to A²Wave energy: intensity of mechanical and electromagnetic waves is proportional to amplitude squared, directly generalizing the SHM result to traveling and standing waves.

Perhaps the most far-reaching connection is to quantum field theory, where every mode of a quantum field is treated as an independent harmonic oscillator. The energy spectrum of these field oscillators—with their zero-point energies and quantized excitations—forms the basis for understanding particle creation and annihilation. Thus, the humble mass-spring system, when analyzed through its energy, provides the conceptual scaffolding for some of the deepest structures in modern physics.

Practice Problems

PROBLEM 1CONCEPTUAL
A mass on a spring undergoes simple harmonic motion. At the instant the displacement is half the amplitude (x = A/2), is the kinetic energy greater than, less than, or equal to the potential energy? Explain your reasoning without performing an explicit calculation.
PROBLEM 2BASIC CALCULATION
A 0.250 kg mass oscillates on a spring with k = 100 N/m and amplitude 0.080 m. Calculate (a) the total mechanical energy, (b) the maximum speed of the mass, and (c) the angular frequency ω.
PROBLEM 3INTERMEDIATE
A mass–spring system has total energy E = 4.00 J, spring constant k = 500 N/m, and mass m = 2.00 kg. Find (a) the amplitude A, (b) the displacement x at which the kinetic energy equals twice the potential energy, and (c) the speed of the mass at that displacement.
PROBLEM 4APPLIED
An automotive suspension spring has k = 25,000 N/m and supports a 1,200 kg car body (one quarter of the car's mass rests on each spring). After the car hits a pothole, the suspension oscillates with an amplitude of 3.0 cm. Calculate the total energy stored in one spring and the maximum speed of the oscillation. Then estimate how the period compares to a comfortable ride frequency of about 1.0 Hz.
PROBLEM 5CRITICAL THINKING
Show that for a simple harmonic oscillator, the time-averaged kinetic energy ⟨K⟩ equals the time-averaged potential energy ⟨U⟩, and both equal ½E. Start from x(t) = A cos(ωt) and use the identity ⟨cos²(ωt)⟩ = ⟨sin²(ωt)⟩ = ½ averaged over a complete period. Then discuss how this result relates to the classical virial theorem for a potential U ∝ x².

Summary

The energy of a simple harmonic oscillator consists of two interchangeable components: elastic potential energy U = ½kx², maximized at the turning points x = ±A, and kinetic energy K = ½mv², maximized at the equilibrium position x = 0. The total mechanical energy E = ½kA² = ½mω²A² remains constant for an ideal (undamped) oscillator, depending only on the amplitude and spring constant. The velocity at any displacement is given by v = ±ω√(A² − x²).

Both energy components oscillate in time at twice the natural frequency, and the time-averaged kinetic and potential energies are each equal to ½E, a result consistent with the virial theorem for quadratic potentials. Real oscillators introduce damping (exponential energy decay), anharmonicity (deviation from the linear restoring force), and ultimately quantum energy quantization E_n = (n + ½)ℏω, with a nonzero ground-state energy. Mastering the classical energy analysis provides the essential foundation for all these extensions.

Varsity Tutors • College Physics • Energy of Simple Harmonic Oscillators