
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 fLearning 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 measures displacement from equilibrium, the defining relationship is
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 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 is positive, acceleration is negative. If is negative, acceleration is positive. In both cases, acceleration points toward , 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
where is amplitude and 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
The constants and 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 , this becomes
This confirms that the sinusoidal solution satisfies the SHM equation.
Period and frequency
The period is the time for one complete cycle. Since the cosine function repeats every radians,
so
T=rac{2pi}{omega}
The ordinary frequency is cycles per second:
f=rac{1}{T}
Therefore
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 and initial velocity . They determine the amplitude and phase.
For example, if the oscillator starts at maximum displacement with zero velocity, then
If it starts at equilibrium moving in the positive direction, a convenient form is
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
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.