Higher-order linear equations · Definition

Harmonic oscillator

differential equationshigher ordermodeling

Before you start you need to know

It is the physical example that gives meaning to complex roots of the characteristic equation: a motion that repeats forever.

Definition

Model of a mass \(m\) attached to a spring of constant \(k\), with no friction or external force, whose position \(y(t)\) oscillates with angular frequency \(\omega\) about equilibrium.

\[my''+ky=0,\qquad \omega=\sqrt{k/m}\]

By Hooke's law a spring exerts the force \(-ky\) on the mass, and by Newton's second law \(my''=-ky\). Dividing by \(m\) gives \(y''+\omega^2y=0\) with \(\omega^2=k/m\). The characteristic equation \(r^2+\omega^2=0\) has roots \(\pm i\omega\), so \(y=c_1\cos\omega t+c_2\sin\omega t\), which can also be written \(y=A\cos(\omega t-\varphi)\) with amplitude \(A=\sqrt{c_1^2+c_2^2}\) and phase \(\varphi\).

The period is \(T=2\pi/\omega=2\pi\sqrt{m/k}\) and the frequency is \(f=1/T\) cycles per unit of time. A larger mass oscillates more slowly; a stiffer spring, faster. Remarkably, \(T\) does not depend on the amplitude: the initial conditions \(y(0)\) and \(y'(0)\) only fix \(c_1=y(0)\) and \(c_2=y'(0)/\omega\), that is, how far it swings and with what phase, but not how fast.

When the spring hangs vertically, equilibrium is where \(mg=kL\), with \(L\) the stretch; measuring \(y\) from there removes the weight from the equation and leaves \(\omega^2=g/L\). The model is an idealization: without friction the energy \(\tfrac12my'^2+\tfrac12ky^2\) is conserved and the motion lasts forever. Adding damping and an external force leads to \(my''+cy'+ky=F(t)\), where the characteristic equation returns with other discriminants and the particular-solution methods come into play.

Think about it

If the initial amplitude is doubled, does the period change? What if the mass is doubled?

Doubling the amplitude does not change the period, since \(T=2\pi\sqrt{m/k}\) does not depend on it. Doubling the mass multiplies the period by \(\sqrt2\).

Exercises 10

References

  • William E. Boyce, Richard C. DiPrima, Douglas B. Meade, Elementary Differential Equations and Boundary Value Problems, 12th edition, Wiley, 2021. §3.7
  • Dennis G. Zill, A First Course in Differential Equations with Modeling Applications, 11th edition, Cengage, 2018. §5.1