Simple harmonic motion (SHM) is a fundamental concept in physics that describes oscillations following a sinusoidal pattern. When an object is displaced from its equilibrium position and experiences a restoring force proportional to the displacement, it will oscillate back and forth in a predictable manner.
Displacement, Velocity, and Acceleration in SHM

Equations for SHM Displacement
The position of an object undergoing SHM can be described using sinusoidal functions that show how the object's displacement varies with time.
or
Where:
- is the displacement from equilibrium
- is the amplitude (maximum displacement)
- is the frequency of oscillation
- is time
These equations can also be written using angular frequency ():
or
The choice between sine and cosine depends on the initial conditions of the system. If the object starts at maximum displacement with zero velocity, cosine is typically used. If it starts at equilibrium with maximum velocity, sine is appropriate.
- Identifying the minima, maxima, and zeros of displacement helps visualize the motion pattern 🌊
- At maximum displacement (), velocity is zero
- At equilibrium position (), velocity reaches its maximum value
Differential Equation for SHM
When we apply Newton's second law to an object experiencing a restoring force proportional to displacement, we arrive at a key differential equation that defines SHM:
This equation states that the acceleration of the object is proportional to its displacement but in the opposite direction. This is the mathematical definition of SHM and leads to the sinusoidal solutions mentioned above.
For a mass-spring system, this equation comes from:
- Restoring force: (Hooke's Law)
- Newton's Second Law:
- Setting these equal:
- Rearranging: where
Characteristics from Position Equation
From the general position equation (where is the phase constant), we can derive other important characteristics of SHM:
Velocity can be found by taking the derivative of position with respect to time:
Acceleration is the derivative of velocity with respect to time:
The acceleration is always proportional to displacement and directed toward the equilibrium position. This relationship is what defines SHM. 🏃♂️
Maximum values for velocity and acceleration:
- Maximum velocity: (occurs at )
- Maximum acceleration: (occurs at )
Resonance in Oscillating Systems
Resonance occurs when an external periodic force is applied to an oscillating system at or near its natural frequency.
The natural frequency of a system is determined by its physical properties:
- For a mass-spring system:
- For a simple pendulum:
When a system is driven at its natural frequency:
- Energy transfer from the driving force to the system is maximized
- The amplitude of oscillation increases significantly 📈
- Even a small periodic force can produce large-amplitude oscillations
Real-world examples include:
- A child on a swing (pushing at the right moment)
- Musical instruments producing sound
- Bridge collapse due to wind or marching soldiers (Tacoma Narrows Bridge)
Amplitude vs Period in SHM
One of the most important properties of SHM is that the period of oscillation is independent of the amplitude.
The period depends only on:
- The mass of the object
- The stiffness of the spring (or equivalent restoring force)
For a mass-spring system:
For a simple pendulum (for small angles):
This independence means that whether you pull a pendulum a small amount or a large amount, it will take the same time to complete one full oscillation (assuming the amplitude is not extremely large).
Graphical Analysis of SHM
Graphical representations provide powerful visual tools for analyzing SHM:
Displacement-time graphs:
- Sinusoidal curve
- Amplitude equals maximum displacement
- Period is the time for one complete cycle 📊
Velocity-time graphs:
- Also sinusoidal
- Phase shifted by 90° ( radians) compared to displacement
- When displacement is maximum, velocity is zero
- When displacement is zero, velocity is maximum
Acceleration-time graphs:
- Sinusoidal curve
- Phase shifted by 180° ( radians) compared to displacement
- Acceleration is maximum when displacement is maximum
- Acceleration is zero when displacement is zero
These phase relationships can be used to identify where in the cycle an object is at any given time.
🚫 Boundary Statement
On the exam, students are expected to know the solution to the second-order differential equation that describes SHM and be able to identify SHM. However, students are not expected to mathematically prove that the solution is correct.
Practice Problem 1: SHM Displacement and Velocity
A mass attached to a spring oscillates with simple harmonic motion described by the equation x = 0.15 cos(4πt), where x is in meters and t is in seconds. Determine:
a) The amplitude of the motion b) The frequency of oscillation c) The maximum velocity of the mass d) The velocity when the displacement is 0.075 m
Solution
From the given equation x = 0.15 cos(4πt), we can identify:
a) The amplitude is the coefficient of the cosine function: A = 0.15 m
b) The frequency can be found by comparing with the standard form x = A cos(2πft): 2πf = 4π f = 2 Hz
c) The maximum velocity is given by vmax = Aω = A(2πf): vmax = 0.15 × 4π = 0.15 × 12.57 = 1.88 m/s
d) When x = 0.075 m (half the amplitude), we need to find the corresponding time first: 0.075 = 0.15 cos(4πt) cos(4πt) = 0.5 4πt = π/3 or 4πt = 5π/3 (for the first cycle)
Using the velocity equation v = -Aω sin(ωt): v = -0.15 × 4π × sin(π/3) v = -0.15 × 4π × 0.866 v = -1.63 m/s
The negative sign indicates the mass is moving toward the equilibrium position.
Practice Problem 2: Resonance and Natural Frequency
A 0.5 kg mass is attached to a spring with spring constant k = 20 N/m. The system is driven by an external periodic force. At what frequency should the external force be applied to achieve resonance?
Solution
For resonance to occur, the driving frequency must match the natural frequency of the system.
For a mass-spring system, the natural frequency is:
f = (1/2π)√(k/m)
Substituting the given values: f = (1/2π)√(20/0.5) f = (1/2π)√40 f = (1/2π) × 6.32 f = 1.01 Hz
Therefore, the external force should be applied at a frequency of 1.01 Hz to achieve resonance.
Practice Problem 3: Graphical Analysis of SHM
A particle undergoes SHM with amplitude 10 cm and period 4 seconds. If the particle starts from the equilibrium position with positive velocity, determine:
a) The equation for the displacement as a function of time b) At what times during the first cycle is the acceleration maximum? c) Sketch the displacement, velocity, and acceleration graphs for the first cycle
Solution
a) Since the particle starts at the equilibrium position (x = 0) with positive velocity, we use the sine function:
A = 10 cm = 0.1 m T = 4 s ω = 2π/T = 2π/4 = π/2 rad/s
Therefore, x(t) = 0.1 sin(πt/2) meters
b) Acceleration is maximum when displacement is maximum (either positive or negative).
From x(t) = 0.1 sin(πt/2), displacement is maximum when sin(πt/2) = ±1 This occurs when πt/2 = π/2 and πt/2 = 3π/2 for the first cycle
Solving for t: t = 1 s (for maximum positive displacement) t = 3 s (for maximum negative displacement)
At these times, acceleration will be at its maximum magnitude (in the negative and positive directions, respectively).
c) For the first cycle (0 ≤ t ≤ 4):
Displacement: x(t) = 0.1 sin(πt/2) m Velocity: v(t) = 0.1 × (π/2) × cos(πt/2) = 0.157 cos(πt/2) m/s Acceleration: a(t) = -0.1 × (π/2)² × sin(πt/2) = -0.247 sin(πt/2) m/s²
The displacement graph is a sine curve starting at zero, reaching maximum at t = 1 s, returning to zero at t = 2 s, reaching minimum at t = 3 s, and returning to zero at t = 4 s.
The velocity graph is a cosine curve, 90° out of phase with displacement, starting at maximum, reaching zero at t = 1 s, reaching minimum at t = 2 s, returning to zero at t = 3 s, and reaching maximum again at t = 4 s.
The acceleration graph is a negative sine curve, 180° out of phase with displacement, starting at zero, reaching minimum at t = 1 s, returning to zero at t = 2 s, reaching maximum at t = 3 s, and returning to zero at t = 4 s.
Frequently Asked Questions
What is simple harmonic motion and how do I know if something is doing SHM?
Simple harmonic motion (SHM) is oscillation about an equilibrium where the restoring force (and acceleration) is proportional to minus the displacement: F ∝ −x. Mathematically it satisfies d^2x/dt^2 = −ω^2 x and solutions are x = A cos(ωt + φ) or x = A sin(ωt). How to know something is doing SHM: check that the acceleration is proportional to −x (not −v) and that displacement is sinusoidal. Useful quick checks: zeros and extrema line up (v = 0 at displacement extrema; a = 0 at displacement zeros), a = −ω^2 x, vmax = Aω, amax = Aω^2. Period depends on ω (or system parameters) but not amplitude. AP exam note: you’re expected to recognize/use x = A cos(ωt+φ) and d^2x/dt^2 = −ω^2 x, but you don’t need to prove the solution. For a short study refresher see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh). For extra practice, try problems at (https://library.fiveable.me/practice/ap-physics-c-mechanics).
Why does the equation for SHM use cosine and sine functions instead of regular math?
Because SHM is defined by the differential equation d²x/dt² = −ω²x, the motion needs a function whose second derivative is the negative of itself times a constant. Sine and cosine do exactly that: if x = A cos(ωt + φ) then d²x/dt² = −ω²A cos(ωt + φ) = −ω²x. That’s why the CED gives x = A cos(2πft) or x = A sin(2πft) as the standard forms (Topic 7.3, EK 7.3.A.1–7.3.A.3). Practically, sin/cos make it easy to read amplitude A, angular frequency ω (so v_max = Aω and a_max = Aω²), and phase φ to match initial conditions. Zeros and extrema of x, v, and a line up cleanly because derivatives of sin/cos are just shifted sin/cos functions (useful for qualitative graphs on the exam). You’re not expected to prove the solution in AP Physics C (Boundary Statement), but you should recognize and use these sinusoidal forms. For more review and practice, see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and Unit 7 resources (https://library.fiveable.me/ap-physics-c-mechanics/unit-7).
I'm confused about the difference between amplitude, frequency, and angular frequency in SHM - can someone explain?
Think of three separate ideas: - Amplitude (A) is the maximum displacement from equilibrium—how far it swings. It appears in x = A cos(2πft) or x = A cos(ωt + φ). Changing A changes how big the motion is but NOT the period (CED 7.3.A.5). - Frequency (f) is how many cycles happen per second (Hz). It’s related to the period T by f = 1/T. In the CED you see x = A cos(2π f t) (CED 7.3.A.1). - Angular frequency (ω) measures how fast the oscillator’s phase advances in radians/sec: ω = 2π f. Using ω simplifies calculus: x = A cos(ωt + φ), the SHM differential equation is d²x/dt² = −ω² x (CED 7.3.A.2–3). Useful quick facts: v_max = Aω and a_max = Aω². Example: if f = 2 Hz then ω = 4π rad/s. For extra practice and AP-aligned review, check the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and more problems at (https://library.fiveable.me/practice/ap-physics-c-mechanics).
How do you find the velocity and acceleration from the position equation x = A cos(ωt + φ)?
Differentiate x(t) = A cos(ωt + φ). Velocity is the first derivative, acceleration is the second. - v(t) = dx/dt = −A ω sin(ωt + φ). So v_max = Aω (when |sin| = 1). - a(t) = dv/dt = −A ω^2 cos(ωt + φ) = −ω^2 x(t). So a is proportional to −x (restoring acceleration) and a_max = A ω^2 (when |cos| = 1). Sign/phase notes: when x is maximum (cos = ±1) v = 0 and |a| is max; when x = 0 (passing equilibrium) |v| is max and a = 0. These relations (a = −ω^2 x, v_max = Aω, a_max = Aω^2) are exactly what the AP CED expects you to use for Topic 7.3. For a quick review, see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and try practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).
What does it mean when displacement, velocity, or acceleration are at their maximum or minimum values in SHM?
In SHM (x = A cos(ωt + φ) or A sin(ωt + φ)), “maximum” or “minimum” means largest magnitude or most positive/negative value and tells you what the other quantities are: - Displacement at ±A (max/min): the mass is at an amplitude (farthest from equilibrium). Velocity is zero there (instantaneous turnaround). Acceleration is at its largest magnitude: a = −ω²x so |a| = Aω² and it points toward equilibrium (the largest restoring force). - Displacement = 0 (equilibrium): velocity is maximum in magnitude, vmax = Aω, and acceleration is zero (no restoring acceleration at that instant). - Velocity extrema: when |v| = Aω, x = 0. When v = 0, x = ±A. - Sign matters: a positive/negative extremum indicates direction (toward/away from origin). CED note: you should be able to identify these extrema and zeros from equations or graphs (7.3.A.1–3). For a quick refresher, check the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).
Why is the acceleration equation a = -ω²x negative and what does that tell us about the motion?
The minus sign in a = −ω²x means acceleration always points opposite the displacement from equilibrium. Physically that’s a restoring acceleration: if x is positive (to the right), a is negative (to the left) and vice versa. Mathematically it comes from Newton’s 2nd law with a restoring force (e.g., Hooke’s law F = −kx), giving d²x/dt² = −(k/m)x so ω² = k/m. What that tells you about the motion (AP C ideas): the object oscillates about the equilibrium because acceleration always pulls it back toward x = 0. Acceleration is maximum at the amplitude (|a|max = Aω²) and zero at equilibrium, while velocity is zero at amplitude and max at equilibrium—a 90° phase difference between x and v, and a 180° difference between x and a. You don’t need to prove the differential equation on the exam, but you should be able to use x = A cos(ωt+φ) and a = −ω²x to describe these extrema (see the Topic 7.3 study guide on Fiveable: https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh). For extra practice, check the AP Physics C practice problems on Fiveable (https://library.fiveable.me/practice/ap-physics-c-mechanics).
What's the difference between natural frequency and the frequency of an external force in resonance?
Natural frequency is the frequency at which a system oscillates on its own when displaced and released (set by system parameters like m and k; e.g., ω = sqrt(k/m) or f = ω/2π). The external (driving) frequency is the frequency of a sinusoidal force you apply to the system. Resonance happens when the driving frequency matches the system’s natural frequency—then the oscillation amplitude grows large (CED 7.3.A.4.i–ii). Key extra points useful for the exam: resonance increases amplitude but doesn’t change the system’s natural period (7.3.A.4 & 7.3.A.5). If damping is present (not required to derive in AP C), the amplitude peak is reduced and the peak response can shift slightly from the undamped natural frequency. For more review on SHM and resonance, check the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).
How does changing the amplitude affect the period of oscillation and why doesn't it change?
Changing the amplitude A does not change the period T of simple harmonic motion. The position is x = A cos(ωt + φ), and T = 2π/ω, so T depends only on ω, not A (CED 7.3.A.1, 7.3.A.3). Physically this is because the restoring force is proportional to displacement (F ∝ −x), so the equation d²x/dt² = −ω²x is linear: increasing A just stretches the motion but leaves the curvature (ω) the same. What does change with A are the maximum speed and acceleration: vmax = Aω and amax = Aω² (CED 7.3.A.3.i–ii). For specific systems ω is set by system parameters (e.g., √(k/m) for a spring, √(g/L) for a small-angle pendulum), so only those parameters change T. You don’t need to prove the differential-equation solution on the AP exam, but you should know these forms and how amplitude affects extrema (see the Topic 7.3 study guide for examples: https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh). For extra practice, try problems at https://library.fiveable.me/practice/ap-physics-c-mechanics.
I don't understand how to read SHM graphs - how do position, velocity, and acceleration relate to each other?
Think of SHM as a sine wave for x(t): x = A cos(ωt + φ) (or A sin…). From that one equation you get velocity and acceleration by differentiation: - v = −Aω sin(ωt + φ) so v_max = Aω - a = −Aω^2 cos(ωt + φ) so a = −ω^2 x and a_max = Aω^2 Key quick rules to read graphs: - Position and acceleration are in phase opposition: when x is a maximum, a is a maximum in the opposite direction (x max → v = 0, a = −ω^2 x). - Velocity is 90° (quarter period) out of phase with position: when x = 0 (equilibrium) v is extremal; when x is extremal v = 0. - Zeros/extrema: zeros of x are peaks of v; zeros of v are extrema of x; extrema of a line up with extrema of x (but opposite sign). On the AP exam you should be able to identify these zeros/extrema and use a = −ω^2 x and v_max = Aω (you don’t have to prove the differential-solution). For worked examples and practice, check the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh), the Unit 7 overview (https://library.fiveable.me/ap-physics-c-mechanics/unit-7), and tons of practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).
What happens during resonance and why does it make the amplitude bigger?
Resonance happens when a system is driven by a sinusoidal external force at (or very near) its natural frequency ω0. At that frequency the driving pushes in a way that continually adds energy to the oscillator at the same point in each cycle—the force and the oscillator’s motion have the right phase relation so each push increases the oscillator’s energy rather than canceling it. With little damping, the input energy per cycle accumulates, so the oscillation amplitude grows until energy lost to damping (friction, air resistance, etc.) equals the energy added each cycle. Mathematically, the steady-state amplitude for a driven damped oscillator peaks near ω = ω0; stronger damping lowers and broadens that peak. Important AP points from the CED: resonance occurs when drive = natural frequency and it increases amplitude (7.3.A.4.i–ii), and changing amplitude doesn’t change the period (7.3.A.5). For a compact review, see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh). For more practice, try problems at (https://library.fiveable.me/practice/ap-physics-c-mechanics).
How do you solve that differential equation d²x/dt² = -ω²x for SHM?
Solve it by looking for functions whose second derivative is −ω² times themselves. Try x(t)=e^{rt}. Plugging in gives r²e^{rt}=−ω²e^{rt} → r²+ω²=0, so r=±iω. That means the real general solution is x(t)=C cos(ωt)+D sin(ωt), or equivalently x(t)=A cos(ωt+φ), where A = √(C²+D²) and φ = arctan(−D/C) (choice of quadrant matters). Differentiate to get v(t)=dx/dt = −Aω sin(ωt+φ), a(t)=d²x/dt² = −Aω² cos(ωt+φ) = −ω² x(t), so vmax = Aω and amax = Aω². The AP CED expects you to know this solution and use x = A cos(ωt+φ) to get velocity/acceleration (7.3.A.1–3); you don’t need to prove the complex-root derivation on the exam. For a short topic review, see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).
When I'm looking at a graph of SHM, how can I tell where the velocity and acceleration are zero?
Look at the x(t) (displacement) graph and use two quick rules from the CED: v(t) = dx/dt (slope) and a(t) = −ω² x (so acceleration is proportional to −displacement). - Velocity zero: wherever the x(t) curve has a horizontal tangent (slope = 0)—those are the displacement maxima and minima. (From x = A cos(ωt+φ), v = −Aω sin(ωt+φ) so v = 0 at the cos peaks/troughs.) - Acceleration zero: wherever x = 0 (the equilibrium crossing). Because a = −ω² x, when x = 0 then a = 0. - Extras: v is largest (±Aω) when the mass passes equilibrium (steepest slope). Acceleration is largest in magnitude at the displacement extrema (|a|max = Aω²). These are exactly the features the exam expects you to recognize (7.3.A.1–3). For more examples and practice sketching, check the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and try problems from the Unit 7 practice set (https://library.fiveable.me/practice/ap-physics-c-mechanics).
What's the physical meaning of the phase constant φ in the SHM equation?
φ (the phase constant) just sets where in its cycle the oscillator starts at t = 0. In x(t) = A cos(ωt + φ) it shifts the cosine left/right in time so the initial displacement and velocity match your conditions: x(0) = A cos φ and v(0) = −Aω sin φ. Given x(0) and v(0) you can solve for φ (tan φ = −v(0)/(ω x(0))), remembering φ is defined modulo 2π. Physically, different φ’s mean the same amplitude and frequency but different starting points (e.g., at an extreme, through equilibrium, or somewhere in between). Phase also lets you compare oscillators—a phase difference Δφ gives their time/position offset (important for phase difference problems on the AP). You don’t need to prove the SHM solution in AP C; just use the form x = A cos(ωt+φ) to get displacement, velocity, acceleration (CED 7.3.A.1–3). For a quick review, see the Topic 7.3 study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and more practice problems at (https://library.fiveable.me/practice/ap-physics-c-mechanics).
How do I find the maximum velocity and acceleration using vmax = Aω and amax = Aω²?
Start with the standard SHM solution the CED gives: x(t) = A cos(ωt + φ) (you’re expected to know this form). Differentiate to get velocity and acceleration: - v(t) = dx/dt = −A ω sin(ωt + φ). The sine factor ranges between −1 and +1, so the largest magnitude of v is Aω. Thus v_max = A ω. - a(t) = d²x/dt² = −A ω² cos(ωt + φ). The cosine factor ranges between −1 and +1, so the largest magnitude of a is A ω². Thus a_max = A ω². (Also note a = −ω² x, so acceleration is always opposite displacement.) Quick numeric check: if A = 0.10 m and f = 2.0 Hz, then ω = 2πf = 4π rad/s. v_max = 0.10·4π ≈ 1.26 m/s. a_max = 0.10·(4π)² ≈ 15.8 m/s². These formulas (v_max = Aω, a_max = Aω²) are listed in the CED (7.3.A.3.i–ii). For more review and practice on Topic 7.3, see the study guide (https://library.fiveable.me/ap-physics-c-mechanics/unit-7/3-representing-and-analyzing-shm/study-guide/nHLSGDEgw3L81KKh) and thousands of practice problems (https://library.fiveable.me/practice/ap-physics-c-mechanics).