# General Mechanics/Forced Oscillator

If we wiggle the left end of the spring in the above diagram by amount d=d0sin ωFt, rather than rigidly fixing it, we have a forced harmonic oscillator.

The constant d0 is the amplitude of the imposed wiggling motion. The forcing frequency ωF is not necessarily equal to the natural or resonant frequency of the mass-spring system. Very different behavior occurs depending on whether it is less than, equal to, or greater than ω.

Given the above wiggling, the force of the spring on the mass becomes

$F=-k(x-d)=-k(x-d_{0}\sin \omega _{F}t)\,$ since the length of the spring is the difference between the positions of the left and right ends. Proceeding as for the unforced mass-spring system, we arrive at the differential equation

${\frac {d^{2}x}{dt^{2}}}+{\frac {k}{M}}x={\frac {k}{M}}d_{0}\sin \omega _{F}t$ The solution to this equation turns out to be the sum of a forced part in which x∝ sin ωFt, and a free part which is the same as the solution to the unforced equation. We are primarily interested in the forced part of the solution, so let us set x=d0sin ωFtand substitute this into the equation of motion, giving:

$-\omega _{F}^{2}x_{0}\sin \omega _{F}t+{\frac {k}{M}}x_{0}\sin \omega _{F}t={\frac {k}{M}}d_{0}\sin \omega _{F}t$ The sine factor cancels leaving us with an algebraic equation for , the amplitude of the oscillatory motion of the mass.

Solving for the ratio of the oscillation amplitude of the mass to the amplitude of the wiggling motion, we find

${\frac {x_{0}}{d_{0}}}={\frac {1}{1-M\omega _{F}^{2}/k}}={\frac {1}{1-\omega _{F}^{2}/\omega ^{2}}}$ where we have recognized that k/M2, the square of the frequency of the free oscillation.

Notice that if ωF<ω, then the motion of the mass is in phase with the wiggling motion and the amplitude of the mass oscillation is greater than the amplitude of the wiggling. As the forcing frequency approaches the natural frequency of the oscillator, the response of the mass grows in amplitude.

When the forcing is at the resonant frequency, the response is technically infinite, though practical limits on the amplitude of the oscillation will intervene in this case -- for instance, the spring cannot stretch or shrink an infinite amount. In many cases friction will act to limit the response of the mass to forcing near the resonant frequency.

When the forcing frequency is greater than the natural frequency, the mass actually moves in the opposite direction of the wiggling motion -- i. e., the response is out of phase with the forcing. The amplitude of the response decreases as the forcing frequency increases above the resonant frequency.

Forced and free harmonic oscillators form an important part of many physical systems. For instance, any elastic material body such as a bridge or an airplane wing has harmonic oscillatory modes. A common engineering problem is to ensure that such modes are damped by friction or some other physical mechanism when there is a possibility of excitation of these modes by naturally occurring processes. A number of disasters can be traced to a failure to properly account for oscillatory forcing in engineered structures.