AP Physics 1 · Unit 7 lecture · Part 7 of 11 · 8 min

7.3 Representing and analyzing SHM: the equationThe cosine machine

Mr. Thompkins
A graph is a picture of the motion. The equation is a machine: feed it any time and it tells you exactly where the block is. You need to read it, write it, and run it on a calculator without falling into the degree trap.

For an object released from rest at $x = +A$, the position at time $t$ is $x = A\cos(2\pi f t)$. Check the start: at $t = 0$, $\cos 0 = 1$, so $x = A$. After one period, $t = T = \frac{1}{f}$, the angle inside is $2\pi$, and cosine is back to 1. Every period the inside of the cosine grows by $2\pi$ and the motion repeats.

?Wait, what are cos 0, cos(π/2) and cos π?
On the unit circle, $\cos 0 = 1$, $\cos\frac{\pi}{2} = 0$, $\cos\pi = -1$ and $\cos\frac{3\pi}{2} = 0$. So the cosine starts at its top, crosses zero a quarter of the way around, bottoms out halfway, and comes back. That's exactly the motion from $+A$.

If the clock starts at a different moment, the equation changes shape a little. Starting at equilibrium and moving in the positive direction, the motion is $x = A\sin(2\pi f t)$: the same wave, shifted a quarter period. Released from rest at $-A$, it's $x = -A\cos(2\pi f t)$. Pick the version that matches where the object is at $t = 0$ and which way it's heading.

00.40.81.21.622.42.83.2-0.15-0.1-0.0500.050.10.15t (s)x (m)A cos: starts at +AA sin: starts at 0
Same amplitude and period, different starting moments. Cosine starts at the top; sine starts at the middle, heading up.
?Wait, why does my calculator give the wrong answer?
The angle $2\pi f t$ is in radians. If your calculator is in degree mode, $\cos(1.26)$ comes out as about 0.9998 instead of 0.309. Before any SHM problem, switch to radian mode. A quick test: $\cos(\pi)$ should give $-1$.

You can also pull the frequency out of any equation by matching it to the pattern. In $x = 0.20\cos(5\pi t)$, the number in front is the amplitude, 0.20 m, and the inside is $2\pi f t = 5\pi t$, so $f = 2.5\ \text{Hz}$ and $T = 0.40\ \text{s}$.

One more useful result, and you can build it from energy (Section 8) rather than memorize it. The top speed is $v_{max} = A\sqrt{\frac{k}{m}}$. Since $T = 2\pi\sqrt{m/k}$, the root $\sqrt{k/m}$ equals $\frac{2\pi}{T} = 2\pi f$, so $v_{max} = 2\pi f A$. It says: bigger amplitude, faster; higher frequency, faster. For our graph oscillator, $v_{max} = \frac{2\pi(0.12)}{1.6} = 0.47\ \text{m/s}$, which is what the velocity graph showed.

Pause and think
In $x = 0.20\cos(5\pi t)$ with $x$ in meters and $t$ in seconds, where is the object at $t = 0.20\ \text{s}$?
I thought about it. Show me
$5\pi(0.20) = \pi$, and $\cos\pi = -1$, so $x = -0.20\ \text{m}$. That makes sense: 0.20 s is half of the 0.40 s period, so the object is at the opposite end.
Run the machine
A block's position is $x = 0.050\cos(4\pi t)$, in meters and seconds. (a) Find the amplitude, frequency and period. (b) Find the position at $t = 0.10\ \text{s}$ and at $t = 0.30\ \text{s}$. (c) A classmate gets 0.04999 m for $t = 0.10\ \text{s}$. What went wrong? (d) When does the block first reach equilibrium?
  1. (a) Amplitude: $A = 0.050\ \text{m}$. Match $2\pi f t = 4\pi t$: $f = 2.0\ \text{Hz}$, so $T = \frac{1}{f} = 0.50\ \text{s}$.
  2. (b) $t = 0.10\ \text{s}$: $x = 0.050\cos(0.4\pi) = 0.050(0.309) = 0.015\ \text{m}$. $t = 0.30\ \text{s}$: $x = 0.050\cos(1.2\pi) = 0.050(-0.809) = -0.040\ \text{m}$.
    Why?
    Sanity check: 0.30 s is a bit past half a period (0.25 s), so the block should be on the negative side, near the far end. It is.
  3. (c) Degree mode. $\cos(1.257°) \approx 0.9998$, which gives almost exactly 0.050 m. The angle is in radians.
  4. (d) Equilibrium first happens a quarter period in: $t = \frac{T}{4} = 0.125\ \text{s}$. Check: $4\pi(0.125) = \frac{\pi}{2}$ and $\cos\frac{\pi}{2} = 0$.

Answer: (a) 0.050 m, 2.0 Hz, 0.50 s. (b) About +0.015 m and −0.040 m. (c) Calculator in degree mode. (d) 0.125 s.

Stuck? Get a hint
  1. The number in front of cos is A. The coefficient of t inside is $2\pi f$.
  2. Plug the time in, multiply first, then take the cosine in radian mode.
  3. Equilibrium is where the cosine is zero: a quarter of a period.
Write the equation
A 0.50 kg block on a spring with $k = 32\ \text{N/m}$ is pulled to $x = -0.060\ \text{m}$ and released from rest at $t = 0$. Write an equation for its position, and find its maximum speed.
  1. Period: $T = 2\pi\sqrt{\frac{0.50}{32}} = 0.785\ \text{s}$, so $f = \frac{1}{T} = 1.27\ \text{Hz}$ and $2\pi f = 8.0\ \text{rad/s}$.
    Why?
    Shortcut: $2\pi f = \sqrt{k/m} = \sqrt{64} = 8.0$ per second.
  2. Released from rest at $-A$: the curve starts at its bottom, so use $x = -A\cos(2\pi f t)$ with $A = 0.060\ \text{m}$: $x = -0.060\cos(8.0t)$.
    Why?
    At t = 0 this gives -0.060 m, which matches. Always check t = 0.
  3. Maximum speed: $v_{max} = 2\pi f A = (8.0)(0.060) = 0.48\ \text{m/s}$, reached each time the block crosses equilibrium.

Answer: $x = -0.060\cos(8.0t)$ (meters, seconds), and $v_{max} = 0.48\ \text{m/s}$.

Check yourself
Which equation describes a block with amplitude 0.10 m and period 0.50 s, released from rest at $x = +A$ at $t = 0$?
  1. A$x = 0.10\cos(4\pi t)$
  2. B$x = 0.10\sin(4\pi t)$
  3. C$x = 0.10\cos(\pi t)$
  4. D$x = 0.20\cos(4\pi t)$
Show the answer

A. $f = \frac{1}{0.50} = 2.0\ \text{Hz}$, so $2\pi f = 4\pi$, and starting at $+A$ from rest means cosine. The sine version starts at equilibrium. $\cos(\pi t)$ has $f = 0.5\ \text{Hz}$, a 2 s period, and 0.20 m doubles the amplitude.

  • Released from rest at $+A$: $x = A\cos(2\pi f t)$. From equilibrium moving positive: $x = A\sin(2\pi f t)$.
  • Match the pattern: number in front = A, coefficient of t = $2\pi f$.
  • Radian mode, always. Check your equation at t = 0.
  • Top speed: $v_{max} = A\sqrt{k/m} = 2\pi f A$, at equilibrium.