---
tag: 0X4NT20S3G
kind: example
name: Forced oscillation and resonance
msc: [70J35]
instance_of: [0SWTJ5VC07]
uses: [0RNXVVTJTJ, 0YG0ZJPTWG, 0XRB469Z32, 0GHWEH6H15]
sources:
  - url: https://en.wikipedia.org/wiki/Resonance
    locator: The driven, damped harmonic oscillator
  - url: https://en.wikipedia.org/wiki/Harmonic_oscillator
    locator: Sinusoidal driving force
---

## Example

Let $\omega_0 > 0$, $\zeta \ge 0$, $F > 0$ and $\omega > 0$ be constants. The forced oscillator is
$$x'' + 2 \zeta \omega_0\, x' + \omega_0^2\, x = F \cos(\omega t).$$
If $\zeta > 0$, it has the particular solution $x_p(t) = a(\omega) \cos(\omega t - \delta)$ for a phase $\delta$, with amplitude
$$a(\omega) = \frac{F}{\sqrt{\left(\omega_0^2 - \omega^2\right)^2 + \left(2 \zeta \omega_0 \omega\right)^2}}.$$
Each solution is $x_p$ plus a solution of the [[damped equation|0RNXVVTJTJ]], which tends to $0$. So $x_p$ is the steady state.
If $\zeta = 0$ and $\omega = \omega_0$, a particular solution is $x_p(t) = \frac{F}{2 \omega_0}\, t \sin(\omega_0 t)$, which is unbounded. This is resonance.

## Remarks

For $0 < \zeta < 1/\sqrt{2}$, the amplitude $a(\omega)$ is largest at $\omega = \omega_0 \sqrt{1 - 2 \zeta^2}$. For small $\zeta$, the maximum is close to $F / (2 \zeta \omega_0^2)$, which is large.
For $\zeta = 0$ and $\omega \ne \omega_0$, all solutions are bounded: $x_p = F \cos(\omega t) / (\omega_0^2 - \omega^2)$.
The factor $t$ in the resonant solution comes from the rule of the [[method of undetermined coefficients|0XRB469Z32]]: $i \omega_0$ is a root of the characteristic polynomial.

## Explanations

### L1 human

If you push a swing at the right rhythm, each push adds to the motion, and the swing goes higher and higher.
This is resonance: the driving frequency matches the natural frequency $\omega_0$.
Friction limits the growth, but the response is still very large near $\omega_0$.
