Rippling water waves showing interference patterns

The SHM differential equation

PHYS 210 · Simple Harmonic Motion

Simple harmonic motion begins with a restoring acceleration proportional to displacement and opposite in direction. This lesson derives and interprets the central SHM differential equation.

Key equations

a=-\omega^2 xa=\frac{d^2x}{dt^2}\frac{d^2x}{dt^2}+\omega^2x=0x(t)=A\cos(\omega t+\phi)x(t)=C\cos(\omega t)+D\sin(\omega t)v(t)=-A\omega\sin(\omega t+\phi)a(t)=-\omega^2x(t)T=\frac{2\pi}{\omega}f=\frac{1}{T}\omega=2\pi f

Learning objectives

  • State the defining acceleration condition for simple harmonic motion.
  • Explain why the restoring acceleration has a negative sign.
  • Solve the SHM differential equation in sinusoidal form.
  • Relate angular frequency, period, and ordinary frequency.
  • Use initial conditions to interpret amplitude and phase.

The defining idea of SHM

Simple harmonic motion, usually abbreviated SHM, is motion in which the acceleration is proportional to displacement from equilibrium and points back toward equilibrium. If xx measures displacement from equilibrium, the defining relationship is

a=omega2xa=-omega^2 x

Since acceleration is the second derivative of position,

a= rac{d^2x}{dt^2}

the equation becomes

rac{d^2x}{dt^2}+omega^2x=0

This is the simple harmonic oscillator differential equation. The constant omegaomega is the angular frequency. It controls how quickly the oscillation repeats.

Why the minus sign matters

The minus sign is the signature of a restoring effect. If xx is positive, acceleration is negative. If xx is negative, acceleration is positive. In both cases, acceleration points toward x=0x=0, the equilibrium position.

Without the minus sign, the motion would not oscillate. If acceleration were proportional to displacement in the same direction, the object would be pushed farther away from equilibrium rather than pulled back.

Sinusoidal solutions

The functions sine and cosine have the special property that their second derivatives are negative versions of themselves. For example,

rac{d^2}{dt^2}cos(omega t)=-omega^2cos(omega t)

This is exactly the pattern needed for SHM. A common solution is

x(t)=Acos(omegat+phi)x(t)=Acos(omega t+phi)

where AA is amplitude and phiphi is phase constant. The amplitude is the maximum displacement from equilibrium. The phase constant determines where in the cycle the motion begins.

Another equivalent form is

x(t)=Ccos(omegat)+Dsin(omegat)x(t)=Ccos(omega t)+Dsin(omega t)

The constants CC and DD are determined by initial position and initial velocity.

Velocity and acceleration

Differentiate position to get velocity:

v(t)= rac{dx}{dt}=-Aomegasin(omega t+phi)

Differentiate again to get acceleration:

a(t)= rac{d^2x}{dt^2}=-Aomega^2cos(omega t+phi)

Since x(t)=Acos(omegat+phi)x(t)=Acos(omega t+phi), this becomes

a(t)=omega2x(t)a(t)=-omega^2x(t)

This confirms that the sinusoidal solution satisfies the SHM equation.

Period and frequency

The period TT is the time for one complete cycle. Since the cosine function repeats every 2pi2pi radians,

omegaT=2piomega T=2pi

so

T= rac{2pi}{omega}

The ordinary frequency ff is cycles per second:

f= rac{1}{T}

Therefore

omega=2pifomega=2pi f

Angular frequency is measured in radians per second, while ordinary frequency is measured in hertz.

Initial conditions

A second-order differential equation needs two initial conditions. For SHM, these are usually initial position x(0)x(0) and initial velocity v(0)v(0). They determine the amplitude and phase.

For example, if the oscillator starts at maximum displacement AA with zero velocity, then

x(t)=Acos(omegat)x(t)=Acos(omega t)

If it starts at equilibrium moving in the positive direction, a convenient form is

x(t)=Asin(omegat)x(t)=Asin(omega t)

Both describe the same kind of motion, but with different starting points in the cycle.

Why SHM is universal

SHM appears in many systems because stable equilibrium often creates an approximately linear restoring force for small displacements. Springs, pendulums, vibrating molecules, musical instruments, electrical circuits, and even some quantum systems use the same mathematical structure.

The details differ, but the equation

rac{d^2x}{dt^2}+omega^2x=0

is the common core.

The big idea

Simple harmonic motion is the natural result of a linear restoring acceleration. Its solutions are sinusoidal because sine and cosine reproduce themselves after two derivatives with a negative factor. Understanding the SHM equation gives a foundation for waves, sound, resonance, normal modes, and many advanced physical systems.

Ask your AI physics guide

AI Physics Chat· Waves and Oscillations — The SHM differential equation

Ask anything about Waves and Oscillations — The SHM differential equation, or choose a suggested question below.

AI responses are educational and may not be perfectly accurate. Press Enter to send, Shift+Enter for new line.