Dove's LibraryDove's Library

7.1 - Defining Simple Harmonic Motion (SHM)

Periodic Motion

Periodic motion is motion that repeats itself over and over. It cycles through the same pattern again and again, each cycle takes a definite amount of time (the period), and after one full cycle the object is back at the same position with the same velocity. Swinging pendulums, a mass bouncing on a spring, Earth orbiting the Sun, and a vibrating guitar string are all examples.
Side note on why school “periods” are called periods: a period is just a repeating time interval. A physics period repeats every so many seconds, and a school period repeats every set number of minutes. The motion repeats itself when the bell rings.

Simple Harmonic Motion (SHM)

Simple harmonic motion is a special case of periodic motion. What defines it: SHM happens when the magnitude of the restoring force is directly proportional to the object’s displacement from equilibrium.
Frestoring∝−xor more preciselyFrestoring=−kxF_{restoring} \propto -x \qquad\text{or more precisely}\qquad F_{restoring} = -kx
where: - FrestoringF_{restoring} = restoring force (N) - kk = force constant (N/m) - xx = displacement from equilibrium (m) - the negative sign means the force opposes the displacement
Not every periodic motion is SHM. Only motion with a linear restoring force (F∝xF \propto x) qualifies.
The AP equation sheet writes the spring force as F⃗s=−kΔx⃗\vec{F}_s = -k\Delta\vec{x}, and the SHM condition is written the same way, Fx=−kΔxF_x = -k\Delta x. Here Δx\Delta x is the displacement from the equilibrium position. In this unit, xx usually means exactly that: how far the object is from equilibrium.
Why “proportional” matters. Double the displacement and the restoring force doubles, so the acceleration doubles too. That exact scaling is what makes the motion a perfect sine or cosine curve, and it’s why the period doesn’t depend on how far you pull the object (more on that in 7.2 and 7.3).

Example: Periodic but Not SHM

A hockey puck slides back and forth on frictionless ice between two walls 3.0 m apart, bouncing off each wall with no loss of speed. Is its motion periodic? Is it SHM?
Periodic? Yes. It repeats the same 6.0 m round trip over and over. At 2.0 m/s the period is:
T=2(3.0 m)2.0 m/s=3.0 sT = \frac{2(3.0 \text{ m})}{2.0 \text{ m/s}} = 3.0 \text{ s}
SHM? No. Between bounces the net force on the puck is zero no matter where it is, so there’s no restoring force that grows with the displacement from the center. Another giveaway: start the puck at 4.0 m/s and the period drops to 1.5 s, so the period depends on how much energy the puck has. In true SHM, more energy just means a bigger amplitude, and the period stays the same.

Restoring Force

A restoring force points opposite to the object’s displacement from equilibrium, always back toward the equilibrium position, working to bring the object home:
F⃗restoring=−(constant)×x⃗\vec{F}_{restoring} = -(\text{constant}) \times \vec{x}
The negative sign is what guarantees the force opposes the displacement.
7.1 - Defining Simple Harmonic Motion (SHM)

Equilibrium Position

The equilibrium position is where the net force on the object is zero:
∑F⃗=0at equilibrium\sum \vec{F} = 0 \quad \text{at equilibrium}
There’s no net force there, so if you place the object at equilibrium with zero velocity it just stays. The object naturally oscillates around this point, and it’s where the restoring force (and the acceleration along the path) is zero. For a mass-spring system on a horizontal surface it’s the natural length of the spring (no stretch or compression). For a hanging (vertical) spring it’s lower than that, where the spring is stretched just enough to hold up the weight (see the vertical spring example below). For a pendulum it’s the vertical hanging position (string straight down).

Maximum Force and Acceleration

The restoring force (and therefore the acceleration) is largest at maximum displacement.
At maximum displacement: ∣x∣=A|x| = A (the amplitude), ∣F∣=kA|F| = kA (maximum restoring force), ∣a∣=kAm|a| = \frac{kA}{m} (maximum acceleration), and v=0v = 0 (the object is instantaneously at rest, turning around).
At equilibrium: x=0x = 0, F=0F = 0 (no restoring force), a=0a = 0 (no acceleration), and v=vmaxv = v_{max} (maximum speed).
Why the object oscillates at all: the restoring force accelerates it toward equilibrium, it picks up speed as it approaches, its inertia carries it past equilibrium, the restoring force now points the other way, the object slows, stops, reverses, and the whole cycle repeats.

Example: Restoring Force on a Cart

A 0.50 kg cart on a level, frictionless track is attached to a spring with k=32k = 32 N/m. Equilibrium is at x=0x = 0, and +x+x is to the right. Find the force on the cart and its acceleration at (a) x=+0.060x = +0.060 m and (b) x=−0.030x = -0.030 m.
(a) At x=+0.060x = +0.060 m:
F=−kx=−(32 N/m)(0.060 m)=−1.92 N≈−1.9 NF = -kx = -(32 \text{ N/m})(0.060 \text{ m}) = -1.92 \text{ N} \approx -1.9 \text{ N}a=Fm=−1.92 N0.50 kg=−3.8 m/s2a = \frac{F}{m} = \frac{-1.92 \text{ N}}{0.50 \text{ kg}} = -3.8 \text{ m/s}^2
The cart is to the right of equilibrium, so the force and the acceleration point left, back toward equilibrium.
(b) At x=−0.030x = -0.030 m:
F=−kx=−(32 N/m)(−0.030 m)=+0.96 NF = -kx = -(32 \text{ N/m})(-0.030 \text{ m}) = +0.96 \text{ N}a=Fm=0.96 N0.50 kg=+1.9 m/s2a = \frac{F}{m} = \frac{0.96 \text{ N}}{0.50 \text{ kg}} = +1.9 \text{ m/s}^2
Now the cart is left of equilibrium and the force points right. Half the displacement gave half the force (0.96 N vs. 1.92 N), with the opposite sign. That’s the proportional, opposite-direction restoring force that defines SHM.

Two Primary Oscillators

1. Mass-Spring System

7.1 - Defining Simple Harmonic Motion (SHM)
The restoring force is:
Frestoring=−kxF_{restoring} = -kx
which is just Hooke’s law, the spring force. It works horizontally or vertically, and the spring constant kk sets the stiffness. On a horizontal surface, equilibrium sits at the spring’s natural length. Hanging vertically, equilibrium sits lower, but xx is still measured from equilibrium and the restoring force is still −kx-kx (shown below).
Vertical springs. Hang a mass mm from a spring and it stretches until the spring force balances the weight. Call that stretch dd:
kd=mg⇒d=mgkkd = mg \quad\Rightarrow\quad d = \frac{mg}{k}
Now pull the mass down an extra distance yy below that equilibrium point. The spring is stretched d+yd + y, so it pulls up with k(d+y)k(d + y), while gravity still pulls down with mgmg. Taking up as positive:
Fnet=k(d+y)−mg=kd+ky−mg=kyF_{\text{net}} = k(d + y) - mg = kd + ky - mg = ky
The kdkd and mgmg cancel, so the net force is kyky upward, back toward equilibrium. Push the mass above equilibrium and the same algebra gives a net force pointing down. Measured from the new equilibrium, the restoring force is −k-k times the displacement, so a hanging mass on a spring does SHM with the same kk. Gravity only shifts where equilibrium is.
7.1 - Defining Simple Harmonic Motion (SHM)
Example. A 0.20 kg mass hangs from a spring with k=25k = 25 N/m. (a) How far below the spring’s natural length is the equilibrium position? (b) The mass is pulled 0.040 m below equilibrium and released. What’s the net force on it at that moment?
(a) Equilibrium is where kd=mgkd = mg:
d=mgk=(0.20 kg)(10 m/s2)25 N/m=0.080 md = \frac{mg}{k} = \frac{(0.20 \text{ kg})(10 \text{ m/s}^2)}{25 \text{ N/m}} = 0.080 \text{ m}
(b) The spring is now stretched 0.080 m+0.040 m=0.1200.080 \text{ m} + 0.040 \text{ m} = 0.120 m, so it pulls up with (25 N/m)(0.120 m)=3.0(25 \text{ N/m})(0.120 \text{ m}) = 3.0 N. Gravity pulls down with (0.20 kg)(10 m/s2)=2.0(0.20 \text{ kg})(10 \text{ m/s}^2) = 2.0 N:
Fnet=3.0 N−2.0 N=1.0 N (up)F_{\text{net}} = 3.0 \text{ N} - 2.0 \text{ N} = 1.0 \text{ N (up)}
That matches the shortcut Fnet=ky=(25 N/m)(0.040 m)=1.0F_{\text{net}} = ky = (25 \text{ N/m})(0.040 \text{ m}) = 1.0 N, pointing up toward equilibrium.

2. Simple Pendulum

7.1 - Defining Simple Harmonic Motion (SHM)
The restoring force (tangent to the arc) is:
Frestoring=−mgsin⁡θF_{restoring} = -mg\sin\theta
For small angles (θ<15°\theta < 15°, or θ<0.26\theta < 0.26 rad), sin⁡θ≈θ\sin\theta \approx \theta, so:
Frestoring≈−mgθF_{restoring} \approx -mg\theta
and since the arc length is s=Lθs = L\theta, meaning θ=sL\theta = \frac{s}{L}:
Frestoring≈−mgLsF_{restoring} \approx -\frac{mg}{L}s
That has the form “force = negative constant times displacement,” so it’s SHM. The restoring force here is the tangential component of the weight, it only counts as SHM for small angles, and equilibrium is the vertical hanging position.

Summary: What Makes SHM

For motion to be simple harmonic, it has to satisfy F=−kxF = -kx with kk some positive constant.
Things that are SHM: a mass on an ideal spring (F=−kxF = -kx), and a simple pendulum at small angles (F≈−mgLsF \approx -\frac{mg}{L}s).
Things that are not SHM: a pendulum at large angles (F=−mgsin⁡θF = -mg\sin\theta, which isn’t proportional to θ\theta, so it’s nonlinear), an object with air resistance (damping ruins pure harmonic motion), and non-linear springs like F=−kx−bx3F = -kx - bx^3 (not proportional to xx alone).

Example Problem: Mass-Spring with Friction

A block of mass mm is attached to a spring with force constant kk on a horizontal surface. The block is pulled to position xx and released to oscillate. The coefficient of kinetic friction between block and surface is μk\mu_k.
  1. Derive an expression for the block’s acceleration.
  1. Write (but don’t solve) the differential equation for the block’s position as a function of time.
7.1 - Defining Simple Harmonic Motion (SHM)

Part (a): Deriving the Acceleration

Step 1: The forces on the block are the spring force Fsp=−kxF_{sp} = -kx (toward equilibrium), friction fk=μkFNf_k = \mu_k F_N (opposing the motion), the normal force FNF_N (up), and the weight Fg=mgF_g = mg (down).
Step 2: Vertical forces. No vertical acceleration, so:
∑Fy=0⇒FN=mg\sum F_y = 0 \quad\Rightarrow\quad F_N = mg
Step 3: Horizontal forces. With the block moving right, friction points left, so both horizontal forces point in the negative direction:
∑Fx=ma⇒−kx−μkmg=ma\sum F_x = ma \quad\Rightarrow\quad -kx - \mu_k mg = ma
Step 4: Solve for acceleration.
a=−kx−μkmgm=−kmx−μkga = \frac{-kx - \mu_k mg}{m} = -\frac{k}{m}x - \mu_k g

Reading the Acceleration Expression

There are two pieces here. The spring term −kmx-\frac{k}{m}x is the SHM restoring acceleration: it’s proportional to the displacement and points toward equilibrium. The friction term −μkg-\mu_k g is a constant opposing force that always fights the motion (flipping direction whenever the velocity flips) and drains energy.
Without friction (μk=0\mu_k = 0), a=−kmxa = -\frac{k}{m}x, which is pure SHM. With friction, a=−kmx−μkga = -\frac{k}{m}x - \mu_k g, which is damped oscillation rather than pure SHM, because friction is a constant and isn’t proportional to xx.

Part (b): The Differential Equation

Acceleration is the second derivative of position:
a=d2xdt2a = \frac{d^2x}{dt^2}
so substituting into the acceleration expression gives:
d2xdt2=−kmx−μkg\frac{d^2x}{dt^2} = -\frac{k}{m}x - \mu_k g
or rearranged:
d2xdt2+kmx=−μkg\frac{d^2x}{dt^2} + \frac{k}{m}x = -\mu_k g
The question only asks you to write it, not solve it.

Understanding the Differential Equation

Since v=dxdtv = \frac{dx}{dt}:
a=dvdt=ddt(dxdt)=d2xdt2a = \frac{dv}{dt} = \frac{d}{dt}\left(\frac{dx}{dt}\right) = \frac{d^2x}{dt^2}
so the first derivative of position gives velocity and the second gives acceleration. It’s called a differential equation because it contains derivatives (d2xdt2\frac{d^2x}{dt^2}), tying position, velocity, and acceleration together.

Comparing Forces

On a spring with no friction, F=−kxF = -kx: a pure restoring force, true SHM. On a spring with friction, F=−kx−fkF = -kx - f_k: a restoring force plus a constant opposing force, giving damped oscillation (not pure SHM), where the amplitude shrinks over time and the block eventually stops near equilibrium (at a turning point where the spring force is too small to overcome static friction), not necessarily right at x=0x = 0. On a sliding surface with no spring, F=−fk=−μkmgF = -f_k = -\mu_k mg: just constant friction opposing motion, giving constant deceleration a=−μkga = -\mu_k g, which isn’t oscillation at all, just slowing to a stop.

Summary

Simple harmonic motion requires a restoring force proportional to displacement (F=−kxF = -kx), a force always directed toward equilibrium, and no damping or constant opposing forces (in the idealized case). The two main SHM systems are the mass-spring (F=−kxF = -kx) and the simple pendulum at small angles (F≈−mgLsF \approx -\frac{mg}{L}s). Add friction or damping and the motion is no longer pure SHM, even though it may still oscillate.

Common Mistakes

  1. Dropping the negative sign in the restoring force. It’s F=−kxF = -kx, not F=kxF = kx. The minus sign is what makes the force oppose the displacement.
  1. Thinking every oscillation is SHM. Only motion with F∝−xF \propto -x counts. Damped oscillations, large-angle pendulums, and non-linear springs are not simple harmonic.
  1. Confusing equilibrium with zero displacement. Equilibrium is where the net force is zero. For a vertical spring, that’s not the natural length, because gravity shifts it.
  1. Wrong direction for friction. Friction opposes the motion (the velocity), not the displacement. If the block moves right, friction points left, regardless of whether xx is positive or negative.
  1. Folding friction into the restoring force. Friction is a separate constant force. Don’t write F=−(k+μkmg)xF = -(k + \mu_k mg)x. It’s F=−kx−μkmgF = -kx - \mu_k mg, two separate terms.
  1. Not realizing it isn’t pure SHM. With friction present, the motion is damped, the amplitude shrinks, and it isn’t true SHM.
  1. Confusing first and second derivatives. v=dxdtv = \frac{dx}{dt} (first), a=d2xdt2a = \frac{d^2x}{dt^2} (second). Don’t write a=dxdta = \frac{dx}{dt}.
  1. Forgetting to divide by mass. Going from ∑F=ma\sum F = ma to a=…a = \ldots, divide every force term by mm.
  1. Wrong sign on the spring force. Displaced to positive xx, the spring force is −kx-kx (negative, pointing left). Displaced to negative xx, it’s −k(−x)=+kx-k(-x) = +kx (positive, pointing right).
  1. Thinking friction is always negative. Friction’s sign depends on the velocity direction. It always opposes the motion, so it flips sign when the object reverses.
  1. Not recognizing a differential equation. Any equation with d2xdt2\frac{d^2x}{dt^2}, dxdt\frac{dx}{dt}, or dvdt\frac{dv}{dt} in it is a differential equation.
  1. Solving when you weren’t asked to. Part (b) says write it, don’t solve it. Don’t burn time solving.
  1. Confusing position xx with spring compression. Here xx is displacement from equilibrium, which isn’t the natural length for vertical springs.
  1. Not understanding what the equation represents. d2xdt2=−kmx−μkg\frac{d^2x}{dt^2} = -\frac{k}{m}x - \mu_k g describes how position changes with time. Solving it would hand you x(t)x(t).
  1. Missing the physics of the two terms. The −kmx-\frac{k}{m}x term varies with position and drives the oscillation. The −μkg-\mu_k g term is constant, always opposes motion, and causes the damping.

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.