Higher-order linear equations · Definition
Harmonic oscillator
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.
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
- A mass \(m=1\) attached to a spring with \(k=9\) satisfies \(my''+ky=0\). Find the angular frequency \(\omega\).
- For \(4y''+16y=0\), what is the angular frequency \(\omega\)?
- A mass \(m=1\) on a spring with \(k=4\) oscillates without damping. What is the period \(T\)?
- Solve \(y''+25y=0\), \(y(0)=2\), \(y'(0)=0\).
- Solve \(y''+4y=0\), \(y(0)=0\), \(y'(0)=6\).
- An oscillator moves as \(y=3\cos2t+4\sin2t\). What is its amplitude?
- A mass \(m=2\) on a spring with \(k=8\) starts with \(y(0)=1\), \(y'(0)=4\). What is the amplitude?
- The spring is replaced by one with \(k\) four times larger, with the same \(m\). What happens to the angular frequency \(\omega\)?
- Two oscillators have the same \(m\) and \(k\) but are released with different initial conditions. What is true?
- With \(g=10\), a mass stretches a spring a length \(0.1\) at equilibrium. Then it oscillates without damping. What is \(\omega\)?
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