Section 3.7 Harmonic oscillations
Subsection 3.7.1 Mass-spring systems
Suppose a mass m hangs from a vertical spring of original length l\text{.}

Example 3.7.1.
A \(4\) lb mass stretches a spring \(2\) inches. The mass is displaced an additional 6 in. and then released; and is in a medium that exerts a viscous resistance of \(6\) lb when the mass has a velocity of \(3\) ft/sec. Formulate the IVP that governs the motion of this mass.
Solution:
Find \(m\text{:}\) \(w=mg\) which implies
Find \(\gamma\text{:}\) Using \(\gamma u^{\prime}=6\) lb we have
Find \(k\text{:}\) (Hooke's Law)
Thus
hence
since \(u(0)=6\text{in }\frac{1\text{ft}}{12\text{in}}=\frac{1}{2}\text{.}\)
Solving this

Definition 3.7.2.
When
then \omega_{0}= is the natural frequency of the system.
Subsection 3.7.2 Derivation of the mass/spring Differential Equation
To see how the differential equation that models the behavior of a mass-spring system is derived, we will recall some basic facts from Physics. Using Newton's Second Law:Subsection 3.7.3 Undamped harmonic oscillator
When the damping coefficient \gamma=0 (nothing stopping it from oscillating forever), we haveSubsection 3.7.4 Damped harmonic oscillator:
A damper is an applied force that resists velocity (that is, the damping force is always opposite the direction of motion). A common way to model a damping force is as proportional to the velocity u'(t)\text{.} When damped, the model equation becomesSubsection 3.7.5 Types of oscillating systems
Different types of behavior are possible depending on the value of b^{2}-4mk\text{.} We'll classify the possible cases in the following way:-
If \gamma=0\text{,}
- the oscillator is undamped.
- Mass oscillates forever
- The natural period is 2\pi\sqrt{\frac{m}{k}}\text{.}
-
If \gamma>0 and \gamma^{2}-4km\lt0 (which happens when the roots are r=\alpha\pm\beta i)
- The oscillator is underdamped. The mass oscillates back and forth as it tends to its rest position. The solutions are\begin{equation*} u=Re^{-\gamma t/(2m)}\cos\left(\mu t-\delta\right) \end{equation*}and u is bounded between \pm Re^{-\gamma t/(2m)}\text{.}
- The oscillator is underdamped. The mass oscillates back and forth as it tends to its rest position. The solutions are
-
If \gamma>0 and \gamma^{2}-4km>0 (which happens when there are two distinct r_{1},r_{2}):
- The oscillator is overdamped. The mass tends to its rest position but does not oscillate.
- The solutions are\begin{equation*} u=c_{1}e^{r_{1}t}+c_{2}e^{r_{2}t},\,\,\,r_{1},r_{2}\lt0 \end{equation*}
-
If \gamma>0 and \gamma^{2}-4km=0 (which happens when there is one negative r):
- The oscillator is critically damped. The mass tends to its rest position but does not oscillate.
- Solutions tend to the origin tangent to the unique line of eigenvectors.
- The solutions are\begin{equation*} u=c_{1}e^{-\gamma t/(2m)}+c_{2}te^{-\gamma t/(2m)} \end{equation*}

Subsection 3.7.6 Electric Circuts
The flow of electric charge in certain basic electrical circuits (RLC for resistor (R), inductor (L), capacitor (C)) is modeled by second order linear ODEs with constant coefficients: