LearnViz Physics

Home / Topics / Oscillations & SHM

Differential equation of SHM

Advanced

The standard second-order equation.

Key relationẍ + ω²x = 0

ẍ + ω²x = 0, with general solution x = A cos ωt + B sin ωt. Any system with this equation oscillates sinusoidally.

Worked example

LC circuit: q̈ + q/(LC) = 0.

Common mistake

Initial conditions fix A and B.

In more detail

The equation of SHM, m x'' + k x = 0, is a second-order linear differential equation. Its solutions are sinusoids, and the constants come from initial conditions.

Real-world uses

Open the interactive lesson, with simulation and quiz →

Frequently asked questions

What are the initial conditions?

The starting position and velocity, which set the amplitude and phase.

Why is SHM solvable?

Because the equation is linear, so its solutions can be written in sinusoidal form.

Why is this called second-order?

It contains the second derivative of the displacement with respect to time, which is the acceleration.

Related topics in Oscillations & SHM

Energy in SHM · Kinetic and potential energy in SHM · Average energy over a cycle · Damped oscillations · Underdamped, critical, overdamped · Quality factor

← All Oscillations & SHM topics