01 / 21

Forced Oscillations
& Resonance

Explore how external periodic forces drive oscillating systems, and discover the dramatic phenomenon of resonance where amplitude peaks.

Differential Equations

What Is a Damped Oscillation?

A mass on a spring, an RLC circuit, or a swinging pendulum: all these systems oscillate. When friction or resistance is present, the motion decays over time. The governing ODE for a damped, unforced oscillator is:

Here \( m \) is mass, \( c \) is the damping coefficient, and \( k \) is the spring constant. Without any external force, the oscillation dies out eventually.

Visualizing Damped Motion

Adding an External Force

Now imagine someone pushes the spring rhythmically with a periodic force \( F_0 \cos(\omega t) \). The ODE becomes:

The parameter \( \omega \) is the driving frequency: the frequency of the external push. The key question is: how does the system respond as we change \( \omega \)?

Key Vocabulary

Natural Frequency
\( \omega_0 = \sqrt{k/m} \): the frequency the system "wants" to oscillate at on its own.
Driving Frequency
\( \omega \): the frequency of the external periodic force applied to the system.
Resonance
When \( \omega \approx \omega_0 \), the amplitude grows dramatically: the system absorbs maximum energy.

The General Solution

The full solution to the forced ODE is the sum of two parts:

Transient \( x_h(t) \)
The homogeneous solution. It satisfies the damped equation and decays to zero over time.
Steady-State \( x_p(t) \)
The particular solution. It oscillates at the driving frequency \( \omega \) and persists forever.

Steady-State Amplitude Formula

After the transient dies out, the system oscillates at frequency \( \omega \) with amplitude:

where \( \gamma = \dfrac{c}{2m} \) is the damping parameter. Notice the denominator: when \( \omega \) is close to \( \omega_0 \) and damping \( \gamma \) is small, the denominator becomes very small and the amplitude blows up.

The Resonance Curve

Free vs. Forced Oscillations

Free (Unforced) Forced
ODE \( mx'' + cx' + kx = 0 \) \( mx'' + cx' + kx = F_0\cos(\omega t) \)
Long-term behavior Decays to rest Steady-state oscillation at \( \omega \)
Frequency of motion Natural \( \omega_0 \) Driving \( \omega \)
Energy source Initial conditions only Continuous external input
Resonance possible? No Yes, when \( \omega \approx \omega_0 \)

Pure Resonance: Unbounded Growth

When there is no damping (\( c = 0 \)) and \( \omega = \omega_0 \), the method of undetermined coefficients fails for a cosine guess. We multiply by \( t \):

The factor of \( t \) means the amplitude grows linearly without bound. This is pure resonance: the system absorbs energy every cycle with no friction to dissipate it.

Visualizing Pure Resonance

How to Solve a Forced ODE

1
Identify parameters. Read off \( m \), \( c \), \( k \), \( F_0 \), and \( \omega \) from the ODE.
2
Compute \( \omega_0 \) and \( \gamma \). Find \( \omega_0 = \sqrt{k/m} \) and \( \gamma = c/(2m) \).
3
Solve the homogeneous equation \( mx'' + cx' + kx = 0 \) for \( x_h(t) \).
4
Find \( x_p(t) \). Use undetermined coefficients. If \( \omega = \omega_0 \) and \( c = 0 \), multiply your guess by \( t \).
5
Combine: \( x(t) = x_h(t) + x_p(t) \). Apply initial conditions to find constants.

Example 1: Damped Forced System

Solve for the steady-state solution:

1
Parameters: \( m = 1 \), \( c = 2 \), \( k = 5 \), \( F_0 = 4 \), \( \omega = 2 \). So \( \omega_0 = \sqrt{5} \), \( \gamma = 1 \).
2
Guess: \( x_p = A\cos(2t) + B\sin(2t) \). Substitute into the ODE.
3
Solve: Matching coefficients gives \( A = \dfrac{4}{17} \), \( B = \dfrac{16}{17} \).

Example 2: Pure Resonance

Solve:

1
Notice: \( c = 0 \) and \( \omega = 3 = \omega_0 = \sqrt{9} \). This is pure resonance.
2
Homogeneous: \( x_h = C_1\cos(3t) + C_2\sin(3t) \).
3
Particular: \( \cos(3t) \) is in \( x_h \), so guess \( x_p = t(A\cos(3t) + B\sin(3t)) \). Substituting yields \( A = 0, B = 1 \).

Example 3: Maximum Amplitude

For \( x'' + 0.4x' + 4x = 3\cos(\omega t) \), at what \( \omega \) is the steady-state amplitude maximized?

1
Parameters: \( m = 1 \), \( c = 0.4 \), \( k = 4 \). So \( \omega_0 = 2 \) and \( \gamma = 0.2 \).
2
Resonance frequency: For a damped system, maximum amplitude occurs at \( \omega_r = \sqrt{\omega_0^2 - 2\gamma^2} = \sqrt{4 - 0.08} = \sqrt{3.92} \approx 1.98 \).
3
Peak amplitude: Plug \( \omega_r \) into the formula: \( A_{\max} \approx \dfrac{3}{2(0.2)\sqrt{4 - 0.04}} \approx 3.77 \).

Common Mistakes

✕ Forgetting to multiply by \( t \)
When \( \omega = \omega_0 \) and \( c = 0 \), a plain cosine guess fails because it solves the homogeneous equation. You must use \( t\cos(\omega_0 t) \) and \( t\sin(\omega_0 t) \).
✕ Confusing \( \omega_0 \) with \( \omega \)
The system oscillates at the driving frequency \( \omega \) in steady state, not at its natural frequency \( \omega_0 \). These are different unless at resonance.
✕ Ignoring the transient
The full solution includes both \( x_h \) and \( x_p \). While \( x_h \) decays, you still need it to satisfy initial conditions at \( t = 0 \).

Question 1 of 5

In the forced oscillator \( mx'' + cx' + kx = F_0\cos(\omega t) \), what does the steady-state solution oscillate at?

Question 2 of 5

What happens to the particular solution of \( x'' + 9x = \cos(3t) \) when we try the guess \( x_p = A\cos(3t) + B\sin(3t) \)?

Question 3 of 5

The amplitude formula is \( A(\omega) = \dfrac{F_0/m}{\sqrt{(\omega_0^2 - \omega^2)^2 + (2\gamma\omega)^2}} \). What happens to the peak amplitude as damping \( \gamma \to 0 \)?

Question 4 of 5

For the ODE \( x'' + 2x' + 5x = 4\cos(2t) \), the steady-state particular solution has the form \( x_p = A\cos(2t) + B\sin(2t) \). What is the amplitude \( \sqrt{A^2 + B^2} \)?

Question 5 of 5

Which of the following is the pure resonance solution to \( x'' + 4x = 10\cos(2t) \)?