AP Physics C: Mechanics · Unit 7 lecture · Part 2 of 10 · 8 min

7.1 Solving the SHM equationThe function that is its own second derivative

Mr. Thompkins
Here's the puzzle the equation hands us: find a function whose second derivative is the function itself, times a negative constant. You already know two functions that do that. Think of the derivatives of sine and cosine.
?Wait, what are the derivatives of sine and cosine?
$\frac{d}{dt}\cos(\omega t) = -\omega\sin(\omega t)$ and $\frac{d}{dt}\sin(\omega t) = \omega\cos(\omega t)$. The ω comes out by the chain rule. Differentiate cosine twice and you get $-\omega^2\cos(\omega t)$: back where you started, times $-\omega^2$.

So try $x(t) = A\cos(\omega t + \phi)$. Differentiate once: $v(t) = -A\omega\sin(\omega t + \phi)$. Again: $a(t) = -A\omega^2\cos(\omega t + \phi) = -\omega^2x$. It works for any A and any φ. That's the general solution of the SHM equation, and the AP exam expects you to know it and use it.

Each symbol has a job. A is the amplitude, the largest displacement from equilibrium. ω is the angular frequency in rad/s, set by the system (for a spring, $\sqrt{k/m}$). The whole argument $\omega t + \phi$ is the phase, in radians, and φ, the phase constant, says where in the cycle the motion is at $t = 0$. A sine function works just as well, because $\sin\theta = \cos(\theta - \frac{\pi}{2})$: it's a cosine with a different φ.

The largest values come straight from the derivatives. Sine and cosine never go past 1, so $x_{max} = A$, $v_{max} = A\omega$ and $a_{max} = A\omega^2$. Velocity is greatest where $\sin = \pm1$, which is where $\cos = 0$, at $x = 0$. Acceleration is greatest where $\cos = \pm1$, at the ends.

Aωt + φx = 0point goes aroundat steady ωits shadow on the axis:x = A cos(ωt + φ)the shadow moves in SHM
The reference circle. A point moving around a circle of radius A at constant ω casts a shadow on the axis that moves exactly as x = A cos(ωt + φ). That is where the name "angular frequency" comes from.

The reference circle explains the strange word "angular" in angular frequency. Imagine a point going around a circle of radius A at steady angular speed ω. Its angle at time t is $\omega t + \phi$, and its horizontal position is $A\cos(\omega t + \phi)$. So the shadow of uniform circular motion is simple harmonic motion. One trip around the circle is one cycle of the oscillation.

?Wait, why must the calculator be in radians?
The derivative rule $\frac{d}{dt}\cos(\omega t) = -\omega\sin(\omega t)$ is only true when the angle is in radians, and ω is in rad/s. If your calculator is in degrees, $\cos(5 \times 0.3)$ means cos of 1.5 degrees instead of 1.5 radians, and every number afterward is wrong.
Pause and think
Could $x(t) = A\cos(\omega t^2)$ be a solution of the SHM equation?
I thought about it. Show me
No. Its first derivative is $-2A\omega t\sin(\omega t^2)$, and the second derivative has terms with $t^2$ in front that don't turn back into $-\omega^2x$ with a constant ω. The repeating time must be steady: the phase must grow at a constant rate, $\omega t$. That's why the period of SHM never changes.
Check a solution, find the spring
A 0.25 kg block on a spring moves as $x(t) = 0.050\cos(8.0t)$ (m, s). (a) Show that this satisfies the SHM equation and find ω. (b) Find the spring constant. (c) Find the maximum speed and maximum acceleration.
  1. (a) Differentiate: $v = \frac{dx}{dt} = -(0.050)(8.0)\sin(8.0t) = -0.40\sin(8.0t)$, and $a = \frac{dv}{dt} = -(0.40)(8.0)\cos(8.0t) = -3.2\cos(8.0t)$.
  2. Compare with x: $-3.2\cos(8.0t) = -64\left[0.050\cos(8.0t)\right] = -64x$. So $\frac{d^2x}{dt^2} = -64x$, the SHM equation with $\omega^2 = 64$ and $\omega = 8.0$ rad/s.
    Why?
    To "show" something satisfies an equation, substitute and get both sides to match. Saying "it's a cosine, so it works" isn't enough.
  3. (b) $\omega^2 = \frac{k}{m}$, so $k = m\omega^2 = (0.25)(64) = 16\ \text{N/m}$.
  4. (c) $v_{max} = A\omega = (0.050)(8.0) = 0.40\ \text{m/s}$ and $a_{max} = A\omega^2 = (0.050)(64) = 3.2\ \text{m/s}^2$.
    Why?
    They are just the coefficients in front of the sine and cosine you already found in (a).

Answer: (a) It satisfies $\ddot x = -64x$, so ω = 8.0 rad/s. (b) 16 N/m. (c) 0.40 m/s and 3.2 m/s².

Stuck? Get a hint
  1. Differentiate $0.050\cos(8.0t)$ twice. Each time, an 8.0 comes out.
  2. Write the second derivative as a number times x.
  3. Then $k = m\omega^2$, $v_{max} = A\omega$, $a_{max} = A\omega^2$.
Check yourself
An object moves as $x(t) = 0.20\cos(5.0t + \pi/3)$ (m, s). What is its maximum speed?
  1. A0.20 m/s
  2. B1.0 m/s
  3. C5.0 m/s
  4. D25 m/s
Show the answer

B. $v_{max} = A\omega = (0.20)(5.0) = 1.0$ m/s. The phase constant $\pi/3$ only shifts where the motion starts; it doesn't change the maximum. 5.0 m/s² is the maximum acceleration, $A\omega^2$, a common mix-up, and 0.20 is the amplitude.

  • Solution of $\ddot x = -\omega^2x$: $x(t) = A\cos(\omega t + \phi)$. A sine is the same thing with a different φ.
  • $v(t) = -A\omega\sin(\omega t + \phi)$ and $a(t) = -A\omega^2\cos(\omega t + \phi) = -\omega^2x$.
  • $v_{max} = A\omega$ at equilibrium, $a_{max} = A\omega^2$ at the ends.
  • SHM is the shadow of uniform circular motion. Use radians.