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

7.1 Defining simple harmonic motionA force that always pulls back

By the end: Recognize simple harmonic motion from its differential equation, write and use x(t) = A cos(ωt + φ) with its derivatives, find periods of springs and pendulums, and track energy as it moves between kinetic and potential, so you can solve and justify any oscillation problem on the exam.
Mr. Thompkins
Hi, I'm Mr. T, and welcome to Unit 7. A guitar string, a car bouncing on its springs, a kid on a swing, the quartz crystal keeping time in a watch: they all repeat the same motion over and over. One differential equation describes every one of them. By the end of this unit you'll recognize it on sight.

Start with a block on a frictionless floor, attached to a spring. Pull it to the side and let go. It slides back, overshoots, slows down, stops, comes back, and keeps going forever (with no friction). The spot where the spring is relaxed, where the block would sit happily at rest, is called the equilibrium position. We put $x = 0$ there.

?Wait, what is Hooke's law again?
From Unit 2: a spring stretched or compressed by $x$ from its natural length pushes or pulls with $F = -kx$. The spring constant k (N/m) says how stiff it is. The minus sign means the force always points opposite to the displacement, back toward the natural length.

The key feature is the shape of the force. A force that always points back toward equilibrium is a restoring force. When its size is proportional to the displacement, $F = -kx$, the motion is called simple harmonic motion, or SHM. Proportional matters. Twice as far out means twice the pull back.

-0.2-0.100.10.2-10-50510x (m)F (N)F = −40x: SHMF = −1000x³: not SHM
Two restoring forces. The spring force is a straight line through the origin, so it gives SHM. The cubic force also pulls back, but it is not proportional to x, so its motion repeats but is not simple harmonic.
mx = −A, v = 0F points +xmx = 0F = 0, v maxmx = +A, v = 0F points −xequilibrium
A block on a spring at three moments. At the ends, the block is momentarily at rest and the force (and acceleration) is largest, pointing back toward equilibrium. At equilibrium, the force is zero and the speed is greatest.

Now apply Newton's second law: $ma = -kx$. Acceleration is the second derivative of position, so $m\frac{d^2x}{dt^2} = -kx$, or $\frac{d^2x}{dt^2} = -\frac{k}{m}x$. Physicists give the constant a name: $\omega^2 = \frac{k}{m}$. Then the equation of SHM is $\frac{d^2x}{dt^2} = -\omega^2x$.

That's the definition the exam uses. Any system whose equation of motion can be written as $\frac{d^2x}{dt^2} = -(\text{positive constant})\,x$ is in simple harmonic motion, and the constant is $\omega^2$. It doesn't matter if x is a position, an angle or anything else. Recognize the form and you can read off ω, and from ω, the period.

?Wait, what are the first and second derivatives of position?
Velocity is the first derivative, $v = \frac{dx}{dt}$: the slope of the x(t) graph. Acceleration is the second derivative, $a = \frac{dv}{dt} = \frac{d^2x}{dt^2}$: the slope of the v(t) graph. Unit 1 built all of kinematics on these two definitions.
Pause and think
A ball bounces up and down on a hard floor with no energy loss, forever. Its motion repeats. Is it simple harmonic motion?
I thought about it. Show me
No. Between bounces, the only force is gravity, which is constant: $a = -g$ no matter where the ball is. A restoring force proportional to displacement is missing. Periodic motion isn't automatically SHM. You need $a = -\omega^2x$.
Recognize SHM and find ω
(a) A 0.50 kg cart moves along a track, and the net force on it is $F = -18x$ (N, with x in m). Show that it moves in SHM and find ω and the period. (b) Another object obeys $\frac{d^2x}{dt^2} + 4x = 8$ (SI units). Is this SHM? If so, where is the equilibrium position and what is the period?
  1. (a) Newton's second law: $m\frac{d^2x}{dt^2} = -18x$, so $\frac{d^2x}{dt^2} = -\frac{18}{0.50}x = -36x$.
    Why?
    Always get the equation into the form "second derivative equals minus a constant times x". That form is the proof.
  2. It has the SHM form with $\omega^2 = 36\ \text{s}^{-2}$, so $\omega = 6.0\ \text{rad/s}$ and $T = \frac{2\pi}{\omega} = \frac{2\pi}{6.0} = 1.05\ \text{s}$.
  3. (b) Rewrite: $\frac{d^2x}{dt^2} = -4x + 8 = -4(x - 2)$.
    Why?
    Factor out the coefficient of x. What is left inside the parentheses tells you where the force is zero.
  4. Let $u = x - 2$. Since $\frac{d^2u}{dt^2} = \frac{d^2x}{dt^2}$, this is $\frac{d^2u}{dt^2} = -4u$: SHM about $x = 2$ m, with $\omega = 2.0\ \text{rad/s}$ and $T = \pi \approx 3.14\ \text{s}$.
    Why?
    A constant term only shifts the equilibrium point. You will see the same thing with a vertical spring, where gravity is the constant.

Answer: (a) SHM with ω = 6.0 rad/s and T ≈ 1.05 s. (b) Yes: SHM about x = 2.0 m with ω = 2.0 rad/s and T = π s.

Stuck? Get a hint
  1. Divide Newton's second law by m to get $\ddot x$ alone on the left.
  2. For (b), write $-4x + 8$ as $-4(\ldots)$.
  3. Compare with $\ddot x = -\omega^2 x$: the constant is $\omega^2$, not ω.
Check yourself
Which of these equations describes simple harmonic motion?
  1. A$a = -25x$
  2. B$a = -25x^2$
  3. C$a = 25x$
  4. D$a = -25$
Show the answer

A. Only $a = -25x$ has acceleration proportional to displacement and opposite to it, with $\omega = 5$ rad/s. $a = 25x$ pushes away from equilibrium (it runs away instead of oscillating), $a = -25x^2$ isn't proportional to x, and $a = -25$ is a constant acceleration, like the bouncing ball.

  • SHM: a restoring force proportional to displacement, $F = -kx$.
  • The SHM equation: $\frac{d^2x}{dt^2} = -\omega^2x$. For a spring, $\omega = \sqrt{k/m}$.
  • At the ends: speed zero, force and acceleration largest. At equilibrium: force zero, speed largest.
  • A constant added to the equation just shifts the equilibrium position.