Simple Harmonic Motion

Pulled back in proportion, so it swings forever.

Acceleration that points back

A particle moves along a line, and x is its displacement from a fixed center O at time t. Its velocity is dx/dt and its acceleration is d²x/dt². These are often written ẋ and ẍ, with one dot for each derivative with respect to time.

In simple harmonic motion the acceleration is proportional to the displacement and points back toward O: d²x/dt² = −ω²x, where ω is a positive constant. When x is positive the acceleration is negative, and when x is negative it is positive. The pull is always toward the center, and it is stronger the farther away the particle is.

Rearranged, d²x/dt² + ω²x = 0. This is a second-order equation with no dx/dt term, and its auxiliary equation is m² + ω² = 0.

Roots ±ωi

From m² = −ω², the roots are m = ±ωi: a complex pair with real part p = 0 and imaginary part q = ω. So x = e^(0t)(A cos ωt + B sin ωt), which is x = A cos ωt + B sin ωt.

The real part 0 means there is no shrinking or growing factor, so the swings keep the same size forever. Check by substitution: differentiating twice gives d²x/dt² = −ω²A cos ωt − ω²B sin ωt = −ω²x.

The starting state fixes A and B. With ω = 2, a particle released from rest at x = 2 has x = 2 when t = 0, so A = 2. Its velocity is dx/dt = −2A sin 2t + 2B cos 2t, which is 2B at t = 0, so B = 0 and x = 2 cos 2t.

tx

x = 2 cos 2t from t = 0 to 2π. The particle swings between 2 and −2, and it is back at x = 2 at t = π and again at t = 2π: every swing has the same height and takes the same time.

The harmonic form

A cosine and a sine of the same ωt add up to a single wave. Expanding the cosine of a difference, R cos(ωt − α) = R cos α cos ωt + R sin α sin ωt. This equals A cos ωt + B sin ωt when R cos α = A and R sin α = B.

Squaring and adding gives R² = A² + B², so R = √(A² + B²). Dividing gives tan α = B/A. R is the amplitude, the greatest distance from the center.

For x = 3 cos 2t + 4 sin 2t, R = √(9 + 16) = 5 and α = tan⁻¹(4/3) ≈ 0.927, so x = 5 cos(2t − 0.927). The particle swings 5 either side of O, not 3 + 4 = 7: the cosine and the sine reach their peaks at different times.

Period and speed

A cosine repeats when its angle grows by 2π. The angle ωt grows by 2π in the time T where ωT = 2π, so the period is T = 2π/ω. With ω = 2, T = π ≈ 3.14.

R does not appear in T = 2π/ω, so a larger amplitude takes exactly as long. A particle pulled twice as far out is pulled back twice as hard, so it moves twice as fast and covers twice the distance in the same time.

The velocity is dx/dt = −Rω sin(ωt − α), so the greatest speed is Rω, reached as the particle passes through O. For x = 5 cos(2t − 0.927) that is 5 × 2 = 10.

Since sin² + cos² = 1, (dx/dt)² + ω²x² = R²ω² at every moment. With v for the velocity, that is v² = ω²(R² − x²). At x = 3 the speed is √(4 × (25 − 9)) = √64 = 8.

xvR = 1E = 2R² = 2T = 2π/ω = π(1, 0)−2−112−4−224

ẍ = −ω²x conserves ½v² + ½ω²x², so the state circles a closed ellipse of amplitude R = 1 forever, and the period 2π/ω does not depend on R

Drag the starting state out to amplitude 2

The motion d²x/dt² = −4x, so ω = 2, drawn as velocity v against displacement x. Released from rest at x = 1, the state goes round an ellipse that reaches x = ±1 and v = ±2, because the greatest speed is Rω = 2. Moved out to R = 2, the ellipse doubles in both directions and the quantity ½v² + 2x² goes from 2 to 8, while the period stays π.

The usual mistakes

Taking ω² for ω. In d²x/dt² = −9x the coefficient 9 is ω², so ω = 3 and the period is 2π/3, not 2π/9.

Adding the coefficients for the amplitude. 5 cos 2t + 12 sin 2t has amplitude √(25 + 144) = 13, not 17.

Expecting a wider swing to take longer. The period 2π/ω contains no amplitude.

Working in degrees. The derivative of cos ωt is −ω sin ωt only when ωt is in radians.

An inductor and a capacitor

In the application below, the charge q on a capacitor moves in simple harmonic motion: its second derivative with respect to time is −q, with time m in milliseconds, so ω = 1 and the period is 2π ≈ 6.28 milliseconds. It writes the equation as two first-order equations and finds eigenvalues ±i. These are the roots of the auxiliary equation λ² + 1 = 0, written with λ because there m counts milliseconds.

Worked example: An Inductor and a Capacitor Joined in a Loop: The Circuit Equation as Two First-Order Equations, and the Current That Flows

Question A capacitor of 4 microfarads holds a charge of 20 microcoulombs. At the moment it is connected across a coil of inductance 0.25 henries, no current is flowing, and the resistance of the loop is small enough to leave out. With time m in milliseconds after the connection, q the charge on the capacitor in microcoulombs and I = dqdm the current in milliamperes, the circuit obeys Ld2qdm2 + qC = 0, with L in henries and C in microfarads. (a) Write this as a pair of first-order equations in q and I, find the eigenvalues, and describe what the charge does over time. (b) Find the greatest size of the current, and how long after the connection the current first reaches that size.

  1. 1.Name the current: dqdm = I. Then d2qdm2 = dIdm, and the circuit equation gives 0.25dIdm = −q4, so dIdm = −q. The pair has matrix 01−10.

    chargecurrentstart, 20q' = current, current' = −q
    chargecurrentstart, 20q' = current, current' = −q
    Naming the current I = dqdm, the circuit equation 0.25dIdm = −q4 gives dIdm = −q.
  2. 2.(a) The characteristic polynomial is λ2 + 1, so the eigenvalues are ± i. Their real part is zero, so the swings neither grow nor die away: the equilibrium q = 0, I = 0 is a center, and the charge swings back and forth between the two plates forever, once every 2π ≈ 6.28 milliseconds.

    chargecurrentstart, 20a centerq' = current, current' = −q(a) eigenvalues ±i: a center
    chargecurrentstart, 20a centerq' = current, current' = −q(a) eigenvalues ±i: a center
    (a) The eigenvalues ± i have real part zero, so the path is a closed loop round a center: the charge swings forever.
  3. 3.With eigenvalues ± i the solutions are combinations of cos m and sin m. At m = 0, q = 20 and I = dqdm = 0, so q = 20cos m and I = −20sin m.

    chargecurrentstart, 20a centerq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m
    chargecurrentstart, 20a centerq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m
    From q = 20 and I = 0, the path is q = 20cos m, I = −20sin m, a circle traced clockwise.
  4. 4.(b) The current is greatest in size when sin m = ± 1, so the greatest size of the current is 20 milliamperes. It first reaches that size at m = π2 ≈ 1.57 milliseconds, when the capacitor is empty, q = 20cosπ2 = 0. The minus sign in I = −20sin m says that it flows in the direction that discharges the capacitor.

    chargecurrentstart, 2020 mA at pi/2 msq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m(b) greatest current 20 mA at m = pi/2 = 1.57 ms
    chargecurrentstart, 2020 mA at pi/2 msq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m(b) greatest current 20 mA at m = pi/2 = 1.57 ms
    (b) The current is greatest, 20 milliamperes, a quarter of a turn on, at m = π2 ≈ 1.57 milliseconds.
  5. 5.Check by energy: at the start the capacitor stores q22C = (20 × 10−6)22 × 4 × 10−6 = 5 × 10−5 joules, and at the greatest current the coil stores 12LI2 = 12 × 0.25 × 0.022 = 5 × 10−5 joules, the same. In a real circuit a little resistance gives the eigenvalues a small negative real part, and the swings slowly die away.

    chargecurrentstart, 2020 mA at pi/2 msenergy the sameq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m(b) greatest current 20 mA at m = pi/2 = 1.57 msenergy 0.00005 J in the capacitor, then in the coil
    chargecurrentstart, 2020 mA at pi/2 msenergy the sameq' = current, current' = −q(a) eigenvalues ±i: a centerq = 20 cos m, current = −20 sin m(b) greatest current 20 mA at m = pi/2 = 1.57 msenergy 0.00005 J in the capacitor, then in the coil
    Check: the capacitor's q22C at the start and the coil's 12LI2 at the peak are both 5 × 10−5 joules.

Answer: (a) dqdm = I and dIdm = −q; the eigenvalues are ± i, a center, so the charge swings between 20 and −20 microcoulombs forever, once every 2π ≈ 6.28 milliseconds; (b) 20 milliamperes, first after π2 ≈ 1.57 milliseconds

Common mistakes

  • Writing q = 20sin m, forgetting that the current, not the charge, starts at zero. That formula gives no charge at the start. The charge starts at its greatest value, 20, so it follows the cosine, and the current, its derivative, is −20sin m.
  • Reading eigenvalues ± i as a sign that the charge dies away, because they are not positive. Only a negative real part makes the swings die away; with a real part of zero, as here, they keep the same size, and the circuit oscillates with no loss.

More coupled differential equations problems, worked step by step →

Practice Simple Harmonic Motion in the app