Dove's LibraryDove's Library

7.3 - Representing and Analyzing SHM

Position Functions for SHM

Which equation you use for displacement in SHM depends on where the object is when you start the clock. There are two basic forms:
x(t)=Acos⁡(2πft)orx(t)=Asin⁡(2πft)x(t) = A\cos(2\pi ft) \qquad\text{or}\qquad x(t) = A\sin(2\pi ft)
and since ω=2πf\omega = 2\pi f, you can also write them as:
x(t)=Acos⁡(ωt)orx(t)=Asin⁡(ωt)x(t) = A\cos(\omega t) \qquad\text{or}\qquad x(t) = A\sin(\omega t)
Which one to use. Use sine when the timer starts at the equilibrium position, since sin⁡(0)=0\sin(0) = 0. Use cosine when the timer starts at maximum amplitude, since cos⁡(0)=1\cos(0) = 1. Cosine is the more common choice.

The General Form: Phase Constant

The CED and the AP equation sheet use one general form that covers every starting point:
x(t)=Acos⁡(ωt+ϕ)x(t) = A\cos(\omega t + \phi)
The equation sheet writes the amplitude as xmaxx_{\text{max}}, so it reads x=xmaxcos⁡(ωt+ϕ)x = x_{\text{max}}\cos(\omega t + \phi). The phase constant ϕ\phi (in radians) sets where in the cycle the object is at t=0t = 0. Plug in t=0t = 0:
x(0)=Acos⁡ϕv(0)=−Aωsin⁡ϕx(0) = A\cos\phi \qquad v(0) = -A\omega\sin\phi
Where the object is at t=0t = 0
ϕ\phi
Same as
At x=+Ax = +A
00
Acos⁡(ωt)A\cos(\omega t)
At equilibrium, moving in the +x+x direction
−π2-\frac{\pi}{2}
Asin⁡(ωt)A\sin(\omega t)
At x=−Ax = -A
π\pi
−Acos⁡(ωt)-A\cos(\omega t)
At equilibrium, moving in the −x-x direction
π2\frac{\pi}{2}
−Asin⁡(ωt)-A\sin(\omega t)
So the sine and cosine forms above are special cases. Any other starting point just gives some other ϕ\phi.

Deriving Velocity and Acceleration Functions

Velocity is the derivative of position and acceleration is the derivative of velocity, so you can just differentiate your way there. Starting from:
x(t)=Acos⁡(ωt)x(t) = A\cos(\omega t)
the velocity (first derivative) is:
v(t)=dxdt=−Aωsin⁡(ωt)v(t) = \frac{dx}{dt} = -A\omega\sin(\omega t)
and the acceleration (second derivative) is:
a(t)=dvdt=−Aω2cos⁡(ωt)a(t) = \frac{dv}{dt} = -A\omega^2\cos(\omega t)
Maximum values. These happen when the sine or cosine hits ±1:
vmax=Aωamax=Aω2v_{\text{max}} = A\omega \qquad a_{\text{max}} = A\omega^2
These two are not on the formula sheet, so you need to memorize them or be able to derive them.
Acceleration and position. Compare a(t)=−Aω2cos⁡(ωt)a(t) = -A\omega^2\cos(\omega t) with x(t)=Acos⁡(ωt)x(t) = A\cos(\omega t). The acceleration is just −ω2-\omega^2 times the position:
a=−ω2xa = -\omega^2 x
This holds at every instant and for any phase constant: the acceleration is proportional to the displacement and always points back toward equilibrium. It’s the SHM condition from 7.1 (F=−kxF = -kx) divided by the mass, with ω2=km\omega^2 = \frac{k}{m}.
Where the maximums happen. The speed reaches AωA\omega when the object passes through equilibrium (x=0x = 0). The acceleration reaches Aω2A\omega^2 in magnitude at the turning points (x=±Ax = \pm A), which you can see straight from a=−ω2xa = -\omega^2 x.

Example Problem: Finding the Amplitude and Phase

A 0.50 kg block on a horizontal spring (k=50k = 50 N/m) is at x=+0.030x = +0.030 m and moving in the +x+x direction at 0.40 m/s at t=0t = 0. Find (a) ω\omega, (b) the amplitude, and (c) the phase constant, and write x(t)x(t).

Solution

(a)
ω=km=50 N/m0.50 kg=10 rad/s\omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{50 \text{ N/m}}{0.50 \text{ kg}}} = 10 \text{ rad/s}
(b) The block isn’t at a turning point, so the amplitude isn’t 0.030 m. Use energy (7.4): 12kA2=12kx02+12mv02\frac{1}{2}kA^2 = \frac{1}{2}kx_0^2 + \frac{1}{2}mv_0^2. Divide by 12k\frac{1}{2}k and use mk=1ω2\frac{m}{k} = \frac{1}{\omega^2}:
A=x02+(v0ω)2=(0.030 m)2+(0.40 m/s10 rad/s)2=0.050 mA = \sqrt{x_0^2 + \left(\frac{v_0}{\omega}\right)^2} = \sqrt{(0.030 \text{ m})^2 + \left(\frac{0.40 \text{ m/s}}{10 \text{ rad/s}}\right)^2} = 0.050 \text{ m}
(c) At t=0t = 0, x(0)=Acos⁡ϕx(0) = A\cos\phi and v(0)=−Aωsin⁡ϕv(0) = -A\omega\sin\phi:
cos⁡ϕ=x0A=0.0300.050=0.60sin⁡ϕ=−v0Aω=−0.40(0.050)(10)=−0.80\cos\phi = \frac{x_0}{A} = \frac{0.030}{0.050} = 0.60 \qquad \sin\phi = -\frac{v_0}{A\omega} = -\frac{0.40}{(0.050)(10)} = -0.80
Cosine positive and sine negative puts ϕ\phi in the fourth quadrant: ϕ=−0.93\phi = -0.93 rad (about −53°-53°). So:
x(t)=(0.050 m)cos⁡[(10 rad/s)t−0.93]x(t) = (0.050 \text{ m})\cos\left[(10 \text{ rad/s})t - 0.93\right]
Watch the quadrant. cos⁡−1(0.60)\cos^{-1}(0.60) by itself gives +0.93+0.93 rad, which would describe the block moving in the −x-x direction.

The Second-Order Differential Equation

The defining feature of simple harmonic motion can be written as a differential equation:
d2xdt2=−ω2x\frac{d^2x}{dt^2} = -\omega^2 x
This is the second-order differential equation of simple harmonic motion, and it says the acceleration is proportional to the displacement but points the opposite way.
Where it comes from. Apply Newton’s second law to a block on a horizontal spring. The only horizontal force is the spring force, and acceleration is the second derivative of position:
∑Fx=ma⇒−kx=md2xdt2⇒d2xdt2=−kmx\sum F_x = ma \quad\Rightarrow\quad -kx = m\frac{d^2x}{dt^2} \quad\Rightarrow\quad \frac{d^2x}{dt^2} = -\frac{k}{m}x
Match it to d2xdt2=−ω2x\frac{d^2x}{dt^2} = -\omega^2 x and you can read off the angular frequency. This is where the spring period in 7.2 comes from:
ω2=km⇒ω=km⇒T=2πω=2πmk\omega^2 = \frac{k}{m} \quad\Rightarrow\quad \omega = \sqrt{\frac{k}{m}} \quad\Rightarrow\quad T = \frac{2\pi}{\omega} = 2\pi\sqrt{\frac{m}{k}}
Its solution has to be a function that, differentiated twice, comes back to itself with a negative sign and a constant factor out front. Cosine (and sine) does exactly that, which is why those functions naturally describe simple harmonic motion.
On the exam you’re expected to know that x=Acos⁡(ωt+ϕ)x = A\cos(\omega t + \phi) is the solution and to recognize SHM when you see it, not to prove the solution is correct. A quick check is still easy: differentiate twice and you get d2xdt2=−Aω2cos⁡(ωt+ϕ)=−ω2x\frac{d^2x}{dt^2} = -A\omega^2\cos(\omega t + \phi) = -\omega^2 x.
Recognizing SHM. If Newton’s second law for a system can be rearranged into (second derivative of a quantity) == −-(positive constant) ×\times (that quantity), the system is in SHM, and the constant is ω2\omega^2.

Example: A Block Between Two Springs

A 0.20 kg block on a frictionless surface sits between two springs, k1=30k_1 = 30 N/m on the left and k2=50k_2 = 50 N/m on the right. Both are attached to the block and both are at their natural lengths when the block is at x=0x = 0. Show that the block does SHM and find its period.
Move the block a distance xx to the right. The left spring stretches by xx and pulls left with k1xk_1x. The right spring compresses by xx and pushes left with k2xk_2x. Both forces point back toward equilibrium:
∑Fx=−k1x−k2x=md2xdt2⇒d2xdt2=−k1+k2mx\sum F_x = -k_1x - k_2x = m\frac{d^2x}{dt^2} \quad\Rightarrow\quad \frac{d^2x}{dt^2} = -\frac{k_1 + k_2}{m}x
That’s the SHM form, so:
ω=k1+k2m=80 N/m0.20 kg=20 rad/sT=2πω=0.31 s\omega = \sqrt{\frac{k_1 + k_2}{m}} = \sqrt{\frac{80 \text{ N/m}}{0.20 \text{ kg}}} = 20 \text{ rad/s} \qquad T = \frac{2\pi}{\omega} = 0.31 \text{ s}
The two springs act like one spring with k=k1+k2=80k = k_1 + k_2 = 80 N/m (springs in parallel, from 2.8).

Resonance

Resonance happens when you apply a periodic external force at the system’s natural frequency, driving the amplitude up dramatically. Pushing someone on a swing once per swing, timed with the motion, is resonance (each push builds the amplitude), and so is one tuning fork setting another identical fork vibrating.
Natural frequency. The natural frequency f0f_0 is the frequency a system oscillates at when you displace it from equilibrium and let it go, with no driving force. For the oscillators in this unit:
f0=12πkm  (spring)f0=12πgℓ  (pendulum)f_0 = \frac{1}{2\pi}\sqrt{\frac{k}{m}} \;\text{(spring)} \qquad f_0 = \frac{1}{2\pi}\sqrt{\frac{g}{\ell}} \;\text{(pendulum)}
Why driving at the natural frequency builds the amplitude. When the driving force has the same frequency as the natural motion, it can stay in step with the velocity, pushing forward while the object moves forward. Then the force does positive work every cycle, energy piles up, and the amplitude grows. In a real system the growth stops when friction removes energy as fast as the driver adds it, but the amplitude at f0f_0 is still far bigger than at other frequencies. Drive the system at some other frequency and the force spends part of each cycle pushing against the motion, so the energy it adds mostly cancels out and the amplitude stays small.
7.3 - Representing and Analyzing SHM

Example: Finding the Resonant Frequency

A 2.0 kg mass hangs from a spring with k=200k = 200 N/m. A motor shakes the top of the spring up and down, and the motor’s frequency is slowly raised from 0.50 Hz to 3.0 Hz. (a) At what frequency is the amplitude largest? (b) If the mass is changed to 8.0 kg, where does that peak move?
(a) The amplitude peaks when the motor matches the natural frequency:
f0=12πkm=12π200 N/m2.0 kg=1.6 Hzf_0 = \frac{1}{2\pi}\sqrt{\frac{k}{m}} = \frac{1}{2\pi}\sqrt{\frac{200 \text{ N/m}}{2.0 \text{ kg}}} = 1.6 \text{ Hz}
(b) f0∝1mf_0 \propto \frac{1}{\sqrt{m}}. Four times the mass gives half the natural frequency, so the peak moves down to 0.80 Hz.

Amplitude and Period

One important property: changing the amplitude of a system in SHM does not change its period. Period is amplitude-independent.
Why amplitude doesn’t matter. Double the amplitude and the restoring force doubles at every matching point in the cycle (F=−kxF = -kx), so the acceleration doubles and the object moves twice as fast. It has twice as far to go at twice the speed, so each cycle takes the same time. In the math, AA never shows up in ω=km\omega = \sqrt{\frac{k}{m}}.
For example, the 0.50 kg block on the 50 N/m spring above has T=2π10 rad/s=0.63T = \frac{2\pi}{10 \text{ rad/s}} = 0.63 s whether A=0.050A = 0.050 m or A=0.10A = 0.10 m. What changes is vmax=Aωv_{\text{max}} = A\omega (0.50 m/s vs. 1.0 m/s) and amax=Aω2a_{\text{max}} = A\omega^2 (5.0 m/s² vs. 10 m/s²).

Graphical Analysis

You can pull every property of SHM out of graphs of position, velocity, and acceleration versus time.
7.3 - Representing and Analyzing SHM
Reading the graphs (for x=Acos⁡(ωt)x = A\cos(\omega t), as above):
Time
Where the object is
xx
vv
aa
00
turning point
+A+A
00
−Aω2-A\omega^2
T4\frac{T}{4}
equilibrium, moving in −x-x
00
−Aω-A\omega
00
T2\frac{T}{2}
turning point
−A-A
00
+Aω2+A\omega^2
3T4\frac{3T}{4}
equilibrium, moving in +x+x
00
+Aω+A\omega
00
TT
back where it started
+A+A
00
−Aω2-A\omega^2
Zeros and extremes line up. Wherever xx is at a maximum or minimum (a turning point), v=0v = 0 and aa has its largest magnitude, opposite in sign to xx. Wherever x=0x = 0 (equilibrium), the speed is at its maximum and a=0a = 0.
Slopes. vv is the slope of the xx graph, and aa is the slope of the vv graph. A peak on the xx graph has zero slope, which is why v=0v = 0 there. The aa graph is the xx graph flipped upside down and scaled by ω2\omega^2, because a=−ω2xa = -\omega^2 x.
Speeding up or slowing down. When vv and aa have the same sign, the object is speeding up (moving toward equilibrium). When they have opposite signs, it’s slowing down (moving away from equilibrium, toward a turning point).

Example Problem: Reading SHM Graphs

A 0.50 kg cart on a spring is released from rest at t=0t = 0. Its position graph is the top graph below. The velocity and acceleration graphs underneath are what you’d sketch from it. Using the position graph, find (a) the amplitude, period, frequency, and angular frequency, (b) x(t)x(t) in the form x=Acos⁡(ωt+ϕ)x = A\cos(\omega t + \phi), (c) the maximum speed and maximum acceleration, (d) what the cart is doing at points P, Q, and R, and (e) the spring constant.
7.3 - Representing and Analyzing SHM

Solution

(a) The graph swings between +0.12+0.12 m and −0.12-0.12 m, so A=0.12A = 0.12 m. It starts at a minimum and reaches the next minimum at 1.6 s, so T=1.6T = 1.6 s.
f=1T=11.6 s=0.63 Hzω=2πT=2π1.6 s=3.9 rad/sf = \frac{1}{T} = \frac{1}{1.6 \text{ s}} = 0.63 \text{ Hz} \qquad \omega = \frac{2\pi}{T} = \frac{2\pi}{1.6 \text{ s}} = 3.9 \text{ rad/s}
(b) At t=0t = 0 the cart is at x=−Ax = -A, so ϕ=π\phi = \pi (see the phase constant table near the top of this page):
x(t)=(0.12 m)cos⁡[(3.9 rad/s)t+π]x(t) = (0.12 \text{ m})\cos\left[(3.9 \text{ rad/s})t + \pi\right]
(c)
vmax=Aω=(0.12 m)(3.93 rad/s)=0.47 m/sv_{\text{max}} = A\omega = (0.12 \text{ m})(3.93 \text{ rad/s}) = 0.47 \text{ m/s}amax=Aω2=(0.12 m)(3.93 rad/s)2=1.9 m/s2a_{\text{max}} = A\omega^2 = (0.12 \text{ m})(3.93 \text{ rad/s})^2 = 1.9 \text{ m/s}^2
(d) Read each point off the graphs:
  • P (t=0.40t = 0.40 s, which is T4\frac{T}{4}): x=0x = 0, so the cart is at equilibrium. The xx graph is rising as steeply as it ever does, so v=+0.47v = +0.47 m/s (maximum speed, moving in +x+x) and a=0a = 0.
  • Q (t=0.80t = 0.80 s, which is T2\frac{T}{2}): x=+0.12x = +0.12 m, a turning point. v=0v = 0, and a=−1.9a = -1.9 m/s², the largest acceleration, pointing back toward equilibrium.
  • R (t=1.00t = 1.00 s): x=+0.085x = +0.085 m, and the xx graph slopes down, so the cart is heading back toward equilibrium. From v(t)=(0.47 m/s)sin⁡[(3.93 rad/s)t]v(t) = (0.47 \text{ m/s})\sin[(3.93 \text{ rad/s})t], v=−0.33v = -0.33 m/s, and a=−ω2x=−1.3a = -\omega^2 x = -1.3 m/s². Same signs, so the cart is speeding up.
(e) From ω=km\omega = \sqrt{\frac{k}{m}}:
k=mω2=(0.50 kg)(3.93 rad/s)2=7.7 N/mk = m\omega^2 = (0.50 \text{ kg})(3.93 \text{ rad/s})^2 = 7.7 \text{ N/m}

Example Problem

A 3.0 kg object on a spring oscillates with position function x(t)=Acos⁡(ωt)x(t) = A\cos(\omega t), where A=0.50A = 0.50 m and ω=3.0\omega = 3.0 rad/s. Find (a) the maximum velocity, (b) the maximum acceleration, and (c) the magnitude of the maximum net force.

Solution

The given values are A=0.50A = 0.50 m, ω=3.0\omega = 3.0 rad/s, and m=3.0m = 3.0 kg, so the position function is:
x(t)=0.50cos⁡(3.0t)x(t) = 0.50\cos(3.0t)
One practical note: when you evaluate this, your calculator has to be in radian mode.
(a) Maximum velocity:
vmax=Aω=(0.50)(3.0)=1.5 m/sv_{\text{max}} = A\omega = (0.50)(3.0) = 1.5 \text{ m/s}
(b) Maximum acceleration:
amax=Aω2=(0.50)(3.0)2=(0.50)(9.0)=4.5 m/s2a_{\text{max}} = A\omega^2 = (0.50)(3.0)^2 = (0.50)(9.0) = 4.5 \text{ m/s}^2
(c) Maximum net force. It happens at maximum acceleration, so from Newton’s second law:
Fmax=mamax=(3.0)(4.5)=13.5 NF_{\text{max}} = ma_{\text{max}} = (3.0)(4.5) = 13.5 \text{ N}

Alternative Approach: Write Out the Full Functions

If you don’t want to memorize the maximum-value shortcuts, just build the functions.
Velocity:
v(t)=−Aωsin⁡(ωt)=−(0.50)(3.0)sin⁡(3.0t)=−1.5sin⁡(3.0t)v(t) = -A\omega\sin(\omega t) = -(0.50)(3.0)\sin(3.0t) = -1.5\sin(3.0t)
so the maximum velocity is 1.5 m/s.
Acceleration:
a(t)=−Aω2cos⁡(ωt)=−(0.50)(9.0)cos⁡(3.0t)=−4.5cos⁡(3.0t)a(t) = -A\omega^2\cos(\omega t) = -(0.50)(9.0)\cos(3.0t) = -4.5\cos(3.0t)
so the maximum acceleration is 4.5 m/s².
Net force:
F(t)=ma(t)=(3.0)(−4.5cos⁡(3.0t))=−13.5cos⁡(3.0t)F(t) = ma(t) = (3.0)(-4.5\cos(3.0t)) = -13.5\cos(3.0t)
so the maximum net force is 13.5 N. The maximum values are just the coefficients sitting in front of the trig functions.

Common Mistakes

  1. Using degrees instead of radians. When evaluating trig functions of ωt\omega t, your calculator has to be in radian mode.
  1. Mixing up sine and cosine. Cosine starts at maximum amplitude, sine starts at equilibrium.
  1. Dropping the negative signs. Velocity is −Aωsin⁡(ωt)-A\omega\sin(\omega t) and acceleration is −Aω2cos⁡(ωt)-A\omega^2\cos(\omega t). Those minus signs carry the direction information.
  1. Not spotting the maximum values. The maximum of any Csin⁡(ωt)C\sin(\omega t) or Ccos⁡(ωt)C\cos(\omega t) is just ∣C∣|C|, the absolute value of the coefficient.
  1. Thinking amplitude affects period. Period is amplitude-independent. Doubling the amplitude doesn’t change how long a cycle takes.
  1. Not being able to derive when you need to. If you forget vmax=Aωv_{\text{max}} = A\omega and amax=Aω2a_{\text{max}} = A\omega^2, you need to be able to get the velocity and acceleration functions by differentiating.
  1. Mixing up ω\omega and ff. They’re related by ω=2πf\omega = 2\pi f, but they aren’t equal.
  1. Getting the phase constant’s quadrant wrong. cos⁡−1\cos^{-1} only returns angles from 0 to π\pi. Check the sign of the starting velocity to pick the right ϕ\phi.
  1. Mixing up natural frequency and driving frequency. The natural frequency is set by the system (kk and mm, or ℓ\ell and gg). The driving frequency is whatever the outside force does. Resonance is when they match.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.