AP PHYSICS C: MECHANICS • OSCILLATIONS

Representing and Analyzing SHM

Master the sinusoidal functions, phase relationships, and energy graphs that fully describe simple harmonic motion.

Historical Context & Motivation

Oscillatory motion is among the oldest phenomena studied in physics, yet its full mathematical representation required centuries of insight from astronomy, mechanics, and analysis. Ancient observers noted the isochronism of pendulums—the remarkable fact that the period of a small-amplitude swing is independent of its amplitude—but lacked the calculus-based framework to express position, velocity, and acceleration as continuous functions of time. The quest to represent simple harmonic motion (SHM) precisely drove innovations in differential equations, Fourier analysis, and energy methods that underpin modern physics and engineering.

1583
Galileo and the Pendulum
Galileo Galilei observes the isochronism of a swinging chandelier in the Pisa cathedral, later proposing the pendulum as a timekeeping device and establishing oscillatory motion as a subject of quantitative study.
1678
Hooke's Law Published
Robert Hooke announces his anagram-encoded law: the restoring force of a spring is proportional to its displacement. This linear force law provides the physical basis for SHM.
1687
Newton's Principia
Isaac Newton's second law, F = ma, combined with Hooke's linear restoring force yields the differential equation whose solutions are sinusoidal functions—the mathematical heart of SHM.
1822
Fourier's Theorem
Joseph Fourier demonstrates that any periodic function can be decomposed into a sum of sinusoids, elevating SHM from a special case to the fundamental building block of all oscillatory analysis.

The central question this lesson addresses is: How do we translate the physics of a linear restoring force into a complete, self-consistent set of time-dependent functions for position, velocity, acceleration, and energy, and how do the graphical representations of these quantities reveal the phase relationships and conservation laws that govern SHM?

Core Principles & Definitions

Simple harmonic motion arises whenever a system experiences a linear restoring force proportional to its displacement from equilibrium. This single condition—expressed as F = −kx for a spring or, more generally, as a differential equation with sinusoidal solutions—generates a rich family of interrelated quantities. Before deriving equations, it is essential to establish the vocabulary and conceptual pillars upon which all representations rest.

1

Amplitude (A)

The maximum displacement from equilibrium, measured in meters. Amplitude sets the scale for all kinematic quantities: maximum velocity is Aω and maximum acceleration is Aω².
2

Angular Frequency (ω)

The rate at which phase accumulates, in rad/s. Related to period T and frequency f by ω = 2πf = 2π/T. Determined by the system's physical parameters (e.g., √(k/m) for a spring).
3

Phase Constant (φ₀)

The initial phase angle at t = 0, encoding the starting conditions. A phase constant of 0 means the oscillator starts at maximum positive displacement; π/2 means it starts at equilibrium moving in the negative direction.
4

Phase Relationships

Velocity leads position by π/2 radians; acceleration leads velocity by π/2 radians (and is π out of phase with position). These fixed offsets are signatures of SHM.
5

Energy Conservation

Total mechanical energy E = ½kA² remains constant. Kinetic and potential energy oscillate between 0 and E at twice the oscillation frequency, exchanging energy every quarter-period.
KEY TAKEAWAY
Think of SHM as the shadow of uniform circular motion projected onto a straight line. A point moving at constant speed around a circle of radius A traces out a sinusoidal function when viewed edge-on, and the angular velocity of that circular motion is exactly ω. This reference-circle analogy explains why position, velocity, and acceleration are phase-shifted cosines and sines: they are simply different projections of the same rotating vector.

Visual Explanation — Kinematic Graphs of SHM

The most powerful way to internalize SHM is to see the three kinematic quantities—position, velocity, and acceleration—plotted on the same time axis. The following diagram shows one complete cycle for an oscillator starting at maximum positive displacement (φ₀ = 0). Notice the quarter-period phase offsets between successive curves: when position is at a maximum, velocity is zero and acceleration is at its most negative (pointing back toward equilibrium).

Position (cyan) starts at +A, velocity (violet) starts at zero, and acceleration (pink) starts at −Aω². Each curve is shifted by T/4 relative to the one above, confirming the π/2 phase differences inherent in successive time derivatives of a cosine.

Several critical observations emerge from the diagram. First, whenever position reaches an extremum (±A), the velocity passes through zero—the object momentarily stops before reversing. Second, whenever velocity reaches its maximum magnitude, the position crosses zero (equilibrium) and the acceleration also passes through zero. Third, the acceleration curve is a mirror image (inverted) of the position curve, consistent with a = −ω²x. These three graphs are the kinematic fingerprint of any system executing SHM, regardless of whether the restoring force is elastic, gravitational, or electromagnetic.

Mathematical Framework

Starting from Newton's second law applied to a mass on a spring, the equation of motion for SHM is a second-order linear ODE. Its general solution, combined with time derivatives, yields the complete kinematic description. The energy expressions follow from the kinematic functions and the work-energy theorem.

The Differential Equation of SHM

EQUATION OF MOTION
d²x/dt² + ω²x = 0 where ω = √(k/m)
This arises from F = ma → −kx = m(d²x/dt²). Dividing by m and defining ω² = k/m produces the standard form. The general solution is x(t) = A cos(ωt + φ₀).

Position, Velocity, and Acceleration

POSITION
x(t) = A cos(ωt + φ₀)
A = amplitude (m), ω = angular frequency (rad/s), φ₀ = initial phase (rad). The argument (ωt + φ₀) is the instantaneous phase.
VELOCITY
v(t) = dx/dt = −Aω sin(ωt + φ₀)
Maximum speed vmax = Aω occurs at equilibrium (x = 0). The negative sine is phase-shifted by π/2 ahead of the cosine.
ACCELERATION
a(t) = d²x/dt² = −Aω² cos(ωt + φ₀) = −ω²x(t)
Maximum magnitude amax = Aω² occurs at the turning points (x = ±A). The relation a = −ω²x is the defining kinematic signature of SHM.

Energy Functions

ENERGY IN SHM
E = ½kx² + ½mv² = ½kA² = constant
The potential energy U = ½kA² cos²(ωt + φ₀) and kinetic energy K = ½kA² sin²(ωt + φ₀) each oscillate at frequency 2ω, while their sum remains constant at ½kA².
📐 Determining φ₀ from Initial Conditions
Given x(0) = x₀ and v(0) = v₀, set up two equations: x₀ = A cos φ₀ and v₀ = −Aω sin φ₀. Dividing yields tan φ₀ = −v₀/(ωx₀). The amplitude follows from A² = x₀² + (v₀/ω)². These two relations let you convert any pair of initial conditions into the standard form x(t) = A cos(ωt + φ₀).

Energy Diagrams & Phase Space

Beyond the kinematic time graphs, two additional representations give deep insight into SHM. The energy-vs-position diagram shows how kinetic and potential energy trade off as the oscillator moves, while the phase-space plot (v versus x) reveals the elliptical trajectory that encodes conservation of energy in a single closed curve. Both representations are essential for the AP exam, where translation between graphical representations is a core skill.

Left: The parabolic potential energy U = ½kx² (amber) and the inverted parabola of kinetic energy K (emerald) sum to the constant total energy E (dashed red). Right: In phase space, the state of the oscillator traces a clockwise ellipse; the semi-axes are A (horizontal) and Aω (vertical).

The energy-versus-position diagram reveals that at x = 0 the potential energy is zero and the kinetic energy equals the total energy, while at x = ±A the kinetic energy vanishes and all energy is stored as potential. The phase-space ellipse encodes the same information geometrically: every point on the ellipse satisfies ½mv² + ½kx² = ½kA², so the ellipse is simply the constant-energy contour of the Hamiltonian. For the AP exam, you should be able to read initial conditions directly from the phase-space plot (the starting point) and determine the direction of motion (clockwise for standard SHM with our sign conventions).

Energy Oscillation Frequency
Because K and U each involve cos² or sin², and cos²(θ) = ½(1 + cos 2θ), the kinetic and potential energies oscillate at angular frequency 2ω (twice the mechanical oscillation frequency). On a time plot the energy curves complete two full cycles for every one cycle of position.

Worked Example

A 0.50 kg block is attached to a horizontal spring (k = 200 N/m) on a frictionless surface. At t = 0 the block is displaced 0.10 m to the right of equilibrium and released from rest. Determine the position, velocity, and acceleration as functions of time, the maximum speed, and the total mechanical energy.

Spring-Block Oscillator — Full Kinematic Description
1
Step 1 — Identify ParametersGiven: m = 0.50 kg, k = 200 N/m, x(0) = 0.10 m, v(0) = 0. Because the block starts at maximum displacement with zero velocity, the phase constant is φ₀ = 0 and the amplitude A = 0.10 m.
A = 0.10 m, φ₀ = 0
2
Step 2 — Compute Angular Frequencyω = √(k/m) = √(200/0.50) = √400 = 20 rad/s. The period is T = 2π/ω = 2π/20 ≈ 0.314 s.
ω = 20 rad/s, T ≈ 0.314 s
3
Step 3 — Write Kinematic Functionsx(t) = (0.10 m) cos(20t). Taking the first time derivative: v(t) = −(0.10)(20) sin(20t) = −2.0 sin(20t) m/s. The second derivative: a(t) = −(0.10)(20²) cos(20t) = −40 cos(20t) m/s².
x(t) = 0.10 cos(20t) m; v(t) = −2.0 sin(20t) m/s; a(t) = −40 cos(20t) m/s²
4
Step 4 — Maximum Speed and Accelerationv_max = Aω = (0.10)(20) = 2.0 m/s, occurring at x = 0. a_max = Aω² = (0.10)(400) = 40 m/s², occurring at x = ±0.10 m.
v_max = 2.0 m/s, a_max = 40 m/s²
5
Step 5 — Total Mechanical EnergyE = ½kA² = ½(200)(0.10)² = 1.0 J. Equivalently, E = ½mv²_max = ½(0.50)(2.0)² = 1.0 J, confirming energy conservation.
E = 1.0 J

Comparing Representations of SHM

The AP Physics C exam frequently tests your ability to translate between different representations of SHM. Each representation emphasizes different aspects of the motion, and selecting the right one can streamline problem-solving. The table below compares the major representations, highlighting what each reveals most naturally and where each has limitations.

Summary of the principal representations used in SHM analysis.
RepresentationBest RevealsLimitations
x(t), v(t), a(t) EquationsExact values at any time t; phase relationships; maximum magnitudes of kinematic quantities.Requires knowledge of A, ω, and φ₀; does not directly show energy; algebraically intensive for non-standard initial conditions.
Kinematic Time GraphsVisual phase offsets between x, v, and a; the period and amplitude can be read directly; slopes give derivative relationships.Does not show energy; requires careful reading of scales; harder to extract exact numerical values than equations.
Energy vs. Position DiagramTurning points (where K = 0); speed at any position (from K); conservation of total energy; the parabolic shape of U(x).No time information; cannot determine phase constant or direction of motion.
Phase-Space Plot (v vs. x)Complete state of the system at a glance; direction of motion (clockwise); energy (from enclosed area); amplitude and max speed from semi-axes.No explicit time axis; difficult to read specific t values; ellipse shape is unfamiliar to some students.
Reference Circle / PhasorIntuitive explanation of phase; simultaneous view of all components; powerful for combining two oscillations of the same frequency.Less useful for energy analysis; can be confusing if the connection between rotation and linear oscillation is not clear.
🔄 TRANSLATION STRATEGY
When translating between representations, first extract the three defining parameters—A, ω, and φ₀—from whatever representation you are given. Once you have those, you can reconstruct any other representation. For instance, the semi-major axis of a phase-space ellipse gives you A, the semi-minor axis gives Aω, and the starting point on the ellipse encodes φ₀.

Connection to Advanced Theory

The idealized SHM model assumes a perfectly linear restoring force and no energy dissipation. Real systems deviate from these assumptions in two important ways: damping causes the amplitude to decay exponentially over time, and anharmonicity (nonlinear restoring forces) causes the oscillation frequency to depend on amplitude. Understanding where ideal SHM ends and these richer phenomena begin is critical for physical intuition and for the free-response section of the AP exam.

Ideal SHM vs. more realistic oscillatory models.
FeatureIdeal SHMDamped / Anharmonic Oscillations
Restoring ForceF = −kx (strictly linear)F = −kx + higher-order terms (e.g., cubic), or includes velocity-dependent drag
AmplitudeConstant for all timeDecays as A(t) = A₀e^(−γt) in the underdamped case
Frequencyω = √(k/m), independent of amplitudeSlightly shifted: ω' = √(ω² − γ²) for damping; amplitude-dependent for anharmonic
EnergyConserved: E = ½kA²Decreases over time due to dissipative forces; E(t) = E₀e^(−2γt)
Phase-Space TrajectoryClosed ellipseInward spiral (damped); distorted closed curve (anharmonic)

For the AP Physics C exam, you will not be tested on the full mathematical treatment of damped oscillations, but you should qualitatively understand how the sinusoidal graphs and phase-space ellipse change when energy is dissipated. In advanced coursework, adding a periodic driving force to the damped oscillator leads to resonance—a dramatic amplitude increase when the driving frequency matches the natural frequency—one of the most consequential phenomena in all of physics and engineering.

Practice Problems

1
A mass on a spring undergoes SHM. At the instant the mass passes through the equilibrium position, which of the following is true?
2
A 0.25 kg mass oscillates on a spring with k = 100 N/m and amplitude A = 0.08 m. What is the maximum speed of the mass?
3
A block on a spring oscillates with position x(t) = (0.12 m) cos(10t + π/3). What is the velocity of the block at t = 0?
PROBLEM 4APPLIED
A 2.0 kg block attached to a spring (k = 50 N/m) is displaced 0.20 m from equilibrium and released from rest on a frictionless surface. (a) Write x(t), v(t), and a(t) as explicit functions of time. (b) Determine the speed of the block when it is 0.10 m from equilibrium. (c) At what displacement is the kinetic energy equal to the potential energy? (d) Sketch the energy-versus-position graph, labeling K(x), U(x), and E_total.
PROBLEM 5CRITICAL THINKING
A student records the position of an oscillator and plots v(t) vs. x(t), obtaining an ellipse. The horizontal semi-axis measures 0.15 m and the vertical semi-axis measures 3.0 m/s. (a) Determine the angular frequency ω and the period T. (b) Write the total mechanical energy in terms of k. If m = 0.50 kg, find the numerical value of E. (c) The student notices that in a second trial with larger amplitude the ellipse is larger but retains the same aspect ratio. Explain, using the equations of SHM, why the ratio of the semi-axes (v_max/A) is independent of amplitude. (d) If a light damping force is introduced, describe qualitatively how the phase-space trajectory changes over time and relate this to the behavior of the total energy.

Summary

Simple harmonic motion is fully characterized by three parameters: amplitude A, angular frequency ω, and phase constant φ₀. The position function x(t) = A cos(ωt + φ₀) generates the velocity v(t) = −Aω sin(ωt + φ₀) and acceleration a(t) = −Aω² cos(ωt + φ₀) through successive differentiation. The velocity leads the position by π/2 radians, and the acceleration is always π radians out of phase with position, obeying a = −ω²x.

Energetically, total mechanical energy E = ½kA² is conserved, with kinetic and potential energy trading at twice the oscillation frequency. Key representations—kinematic time graphs, energy-versus-position diagrams, and the phase-space ellipse—each reveal complementary aspects of the motion. Mastering the ability to translate among these representations is essential for success on both the multiple-choice and free-response sections of the AP Physics C: Mechanics exam.

Varsity Tutors • AP Physics C: Mechanics • Representing and Analyzing SHM