AP Physics C: Mechanics • Oscillations

Representing and Analyzing SHM

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

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

SECTION 1

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?

SECTION 2

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.

SECTION 3

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).

Kinematic Graphs of SHM (φ₀ = 0)+A−Ax(t)T/4T/23T/4T+Aω−Aωv(t)+Aω²−Aω²a(t)tttPositionVelocityAcceleration
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.

SECTION 4

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

d2x/dt2+ω2x=0whereω=√(k/m)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)=Acos(ωt+φ0)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+φ0)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)=d2x/dt2=−Aω2cos(ωt+φ0)=−ω2x(t)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=½kx2+½mv2=½kA2=constantE = ½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 + φ₀).

SECTION 5

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.

Energy vs. PositionPhase-Space Plot (v vs. x)0+A−AxEU = ½kx²K = ½mv²EtotalK max0xv+A−A+Aω−Aωt = 0t = T/4Clockwise traversalPotential EnergyKinetic EnergyPhase Ellipse
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.

A spring cart on a rail connected to a cutaway fluid dashpot with a visible piston assembly.With linear damping, the phase trajectory contracts and mechanical energy decreases at the rate −bv². The undamped comparison has constant total mechanical energy.

Damping contracts the phase trajectory. With linear damping, the phase trajectory contracts and mechanical energy decreases at the rate −bv². The undamped comparison has constant total mechanical energy.With linear damping, the phase trajectory contracts and mechanical energy decreases at the rate −bv². The undamped comparison has constant total mechanical energy.

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. 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. 1

    Step 1 — Identify Parameters

    Given: 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. 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. 3

    Step 3 — Write Kinematic Functions

    x(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. 4

    Step 4 — Maximum Speed and Acceleration

    v_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. 5

    Step 5 — Total Mechanical Energy

    E = ½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

SECTION 7

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.

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.

Summary of the principal representations used in SHM analysis.

🔄

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 φ₀.

SECTION 8

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.

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−γte^{−γ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γte^{−2γt}
Phase-Space TrajectoryClosed ellipseInward spiral (damped); distorted closed curve (anharmonic)

Ideal SHM vs. more realistic oscillatory models.

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A mass on a spring undergoes SHM. At the instant the mass passes through the equilibrium position, which of the following is true?
  • A. The velocity is zero and the acceleration is at its maximum magnitude.
  • B. The velocity is at its maximum magnitude and the acceleration is zero.
  • C. Both the velocity and the acceleration are at their maximum magnitudes.
  • D. Both the velocity and the acceleration are zero.
Show answer (B)
At equilibrium x = 0, so the restoring force F = −kx = 0 and therefore a = 0. Since all the energy is kinetic at this point (U = ½k(0)² = 0, K = E), the speed is at its maximum, v_max = Aω. Choice A describes the turning points (x = ±A) where v = 0 and |a| = Aω². Choice C is impossible because v and a cannot both be maximal simultaneously (they are π/2 out of phase). Choice D is never true at any instant in undamped SHM.

Question 2: BASIC CALCULATION

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?
  • A. 0.80 m/s
  • B. 1.6 m/s
  • C. 3.2 m/s
  • D. 20 m/s
Show answer (B)
First compute ω = √(k/m) = √(100/0.25) = √400 = 20 rad/s. The maximum speed is v_max = Aω = (0.08 m)(20 rad/s) = 1.6 m/s. Choice A (0.80 m/s) results from using ω = √(k) incorrectly. Choice C (3.2 m/s) would result from doubling the correct answer, likely from an algebra error. Choice D (20 m/s) is just ω itself, neglecting multiplication by A.

Question 3: INTERMEDIATE

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?
  • A. −1.04 m/s
  • B. +1.04 m/s
  • C. −0.60 m/s
  • D. +0.60 m/s
Show answer (A)
v(t) = dx/dt = −(0.12)(10) sin(10t + π/3) = −1.2 sin(10t + π/3). At t = 0: v(0) = −1.2 sin(π/3) = −1.2 × (√3/2) = −1.2 × 0.866 ≈ −1.04 m/s. Choice B has the wrong sign, neglecting the negative in the derivative of cosine. Choices C and D (±0.60 m/s) result from evaluating cos(π/3) = 0.5 instead of sin(π/3), which is a common error when confusing the position and velocity formulas.

Question 4: APPLIED

10 pts
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.
Show answer
(a) [3 pts] ω = √(k/m) = √(50/2.0) = 5 rad/s. Released from rest at +0.20 m → φ₀ = 0, A = 0.20 m. [1 pt] x(t) = 0.20 cos(5t) m. [1 pt] v(t) = −1.0 sin(5t) m/s. [1 pt] a(t) = −5.0 cos(5t) m/s². (b) [3 pts] Using energy conservation: ½kA² = ½kx² + ½mv². [1 pt] ½(50)(0.20)² = ½(50)(0.10)² + ½(2.0)v². [1 pt] 1.0 = 0.25 + v². [1 pt] v = √0.75 ≈ 0.866 m/s. (c) [2 pts] K = U → ½mv² = ½kx² → since K + U = E, each equals E/2 = ½kA²/2. [1 pt] ½kx² = ¼kA² → x² = A²/2. [1 pt] x = A/√2 = 0.20/√2 ≈ 0.141 m. (d) [2 pts] [1 pt] U(x) is an upward-opening parabola passing through the origin with U(±0.20) = 1.0 J. [1 pt] K(x) is a downward-opening parabola with K(0) = 1.0 J and K(±0.20) = 0, and a horizontal dashed line at E = 1.0 J representing total energy.

Question 5: CRITICAL THINKING

7 pts
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.
Show answer
(a) [2 pts] The horizontal semi-axis equals A = 0.15 m and the vertical semi-axis equals v_max = Aω = 3.0 m/s. [1 pt] ω = v_max/A = 3.0/0.15 = 20 rad/s. [1 pt] T = 2π/ω = 2π/20 ≈ 0.314 s. (b) [2 pts] [1 pt] E = ½mv²_max = ½(0.50)(3.0)² = 2.25 J. Equivalently, k = mω² = (0.50)(400) = 200 N/m and E = ½kA² = ½(200)(0.15)² = 2.25 J. [1 pt for correct numerical value]. (c) [2 pts] [1 pt] v_max = Aω and ω = √(k/m), so v_max/A = ω, which depends only on k and m, not on A. [1 pt] Since both semi-axes scale linearly with A, the aspect ratio of the ellipse is always ω, regardless of how large the oscillation is. (d) [1 pt] With damping, energy decreases over time, so the ellipse's semi-axes shrink with each cycle. The trajectory becomes an inward spiral converging to the origin (x = 0, v = 0), reflecting the monotonic decrease of total mechanical energy E(t) ∝ e−2γte^{−2γt}.

SUMMARY

Summary

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