DIFFERENTIAL EQUATIONS • SECOND-ORDER LINEAR ODES

Forced Oscillations & Resonance — Forced Oscillations and Resonance (Intro)

Discover how an external push can make a system vibrate wildly—or barely at all.

Historical Context & Motivation

Almost every vibrating object in the real world eventually slows down and stops—a guitar string fades, a pendulum winds down. But what happens when something keeps pushing the system at a regular rhythm? This question led scientists and engineers to study forced oscillations, where an external periodic force drives a system that would otherwise come to rest. The answers they found explain everything from why a singer can shatter a wine glass to why armies break step when crossing a bridge.

1665
Huygens Notices Coupled Clocks
Christiaan Huygens observed two pendulum clocks hanging on the same beam slowly synchronize, an early hint that external forces can control an oscillator's behavior.
1831
Faraday Studies Vibrating Surfaces
Michael Faraday documented patterns formed by vibrating fluids, contributing to the understanding of how a driving frequency shapes a system's response.
1850
Helmholtz Formalizes Resonance
Hermann von Helmholtz used mathematical models to describe how acoustic resonators amplify specific frequencies, laying the groundwork for the differential-equation treatment of forced oscillations.
1940
Tacoma Narrows Bridge Collapse
The dramatic failure of this suspension bridge became the most famous real-world example of resonance-like behavior, illustrating the catastrophic power of periodic forcing at a structure's natural frequency.

These milestones share a common thread: what happens when an oscillating system is driven by an outside force whose frequency may or may not match the system's own natural frequency? Answering this question mathematically requires a second-order linear ODE with a non-homogeneous (forcing) term—the focus of this lesson.

Core Principles & Definitions

Before diving into the math, you need a clear picture of the key ideas. A free oscillation happens when you pull a system away from rest and let go—no ongoing push. A forced oscillation occurs when a periodic external force continuously acts on the system. The interplay between the system's own tendencies and the external push determines how the system ultimately moves.

1

Natural Frequency (ω₀)

The frequency at which a system oscillates when displaced and left alone—no external force, no damping. It depends on the system's mass and stiffness.
2

Driving Frequency (ω)

The frequency of the external periodic force applied to the system. You control this—think of it as how fast you push a child on a swing.
3

Damping

Energy loss due to friction, air resistance, or internal forces. Damping causes free oscillations to decay over time and limits the peak response during forced oscillations.
4

Resonance

The dramatic increase in amplitude that occurs when the driving frequency matches (or nearly matches) the system's natural frequency. With little damping, the amplitude can grow extremely large.
5

Steady-State vs. Transient

The transient part of the solution dies out over time due to damping. The steady-state part persists indefinitely and oscillates at the driving frequency, not the natural frequency.
KEY TAKEAWAY
Think of a child on a swing. If you push at random times, the swing barely moves. But if you time every push to match the swing's natural rhythm, the arc grows bigger and bigger. That matching of push-frequency to natural-frequency is resonance, and modeling it mathematically is exactly what forced-oscillation equations do.

Visual Explanation — The Forced Spring-Mass System

The wall anchors the spring (stiffness k). The mass m slides with damping coefficient c. The cyan arrow shows displacement x(t), and the amber arrow represents the external driving force F₀ cos(ωt). The governing ODE appears at the bottom.

In the diagram above, every physical element maps directly to a term in the differential equation. The spring's restoring force gives the kx term, the dashpot produces the cx′ damping term, the mass yields the mx″ acceleration term, and the hand pushing the block at frequency ω provides the right-hand side, F₀ cos(ωt). Without that forcing term the equation would be homogeneous, describing free oscillations that eventually die out.

Mathematical Framework

We now translate the physical picture into algebra. The equation of motion for a forced, damped harmonic oscillator is a second-order linear ODE with constant coefficients and a non-homogeneous forcing term.

GOVERNING EQUATION
m x″ + c x′ + k x = F₀ cos(ωt)
m = mass, c = damping coefficient, k = spring constant, F₀ = amplitude of the driving force, ω = driving (angular) frequency.

Dividing through by m produces a standard form that is easier to work with. We define ω₀² = k/m (natural frequency squared) and 2β = c/m (a damping parameter).

STANDARD FORM
x″ + 2β x′ + ω₀² x = (F₀ / m) cos(ωt)
ω₀ = √(k/m) is the natural angular frequency; β = c/(2m) is the damping ratio parameter.

The full solution is the sum of two pieces: the homogeneous (transient) solution xh(t), which decays due to damping, and the particular (steady-state) solution xp(t), which persists as long as the external force is applied.

GENERAL SOLUTION
x(t) = x_h(t) + x_p(t)
xh → 0 as t → ∞ (transient dies out). xp oscillates at frequency ω indefinitely (steady state).
STEADY-STATE AMPLITUDE
A = F₀ / (m √[(ω₀² − ω²)² + (2βω)²])
This formula shows that the amplitude A depends on how close the driving frequency ω is to the natural frequency ω₀. When ω ≈ ω₀, the denominator becomes very small and A becomes very large—this is resonance.

The Resonance Curve — Amplitude vs. Driving Frequency

The most important graph in this topic plots the steady-state amplitude A against the driving frequency ω. The shape of this curve—and how it changes with different damping levels—tells the whole story of forced oscillations and resonance.

Three resonance curves are shown for the same system with different damping values β. The red curve (light damping) has a tall, narrow peak near ω₀, while the cyan curve (heavy damping) has a much lower, broader peak. All curves peak near the natural frequency ω₀.

Notice three key features in the graph. First, every curve peaks near ω = ω₀, confirming that resonance occurs when the driving frequency matches the natural frequency. Second, less damping means a taller, sharper peak—in the extreme case of zero damping, the amplitude would theoretically become infinite (a purely mathematical result, since real systems always have some damping). Third, at driving frequencies far from ω₀, the amplitude is small regardless of damping; the system barely responds to forces that push at the 'wrong' rhythm.

⚠️ Why Not Infinite in Real Life?
Real-world systems always have some friction or air resistance (damping). Additionally, at very large amplitudes the system may behave nonlinearly—the spring might stretch beyond its elastic limit, or the structure might break. The mathematical model with β = 0 is an idealization that highlights the resonance concept, but physical systems self-limit.

Worked Example — Finding the Steady-State Amplitude

Let's work through a concrete problem to see how the resonance amplitude formula is applied. We'll find the steady-state amplitude for a specific forced, damped oscillator and explore what happens near resonance.

Steady-State Amplitude of a Forced Oscillator
1
Step 1 — Identify Given ValuesA 2 kg mass is attached to a spring with spring constant k = 50 N/m. The damping coefficient is c = 4 N·s/m. An external force F(t) = 10 cos(5t) N is applied. We need the steady-state amplitude.
m = 2 kg, k = 50 N/m, c = 4 N·s/m, F₀ = 10 N, ω = 5 rad/s
2
Step 2 — Compute Natural Frequency ω₀ and Damping Parameter βω₀ = √(k/m) = √(50/2) = √25 = 5 rad/s. Also, β = c/(2m) = 4/(2 × 2) = 1 s−1.
ω₀ = 5 rad/s, β = 1 s⁻¹
3
Step 3 — Notice: ω = ω₀ (Resonance!)The driving frequency ω = 5 rad/s exactly equals the natural frequency ω₀ = 5 rad/s. This means we are driving the system at resonance! The amplitude should be large.
4
Step 4 — Apply the Amplitude FormulaA = F₀ / (m √[(ω₀² − ω²)² + (2βω)²]). Since ω₀ = ω, the term (ω₀² − ω²) = 0. So A = F₀ / (m × 2βω) = 10 / (2 × 2 × 1 × 5) = 10 / 20.
A = 0.5 m
5
Step 5 — Compare with Off-ResonanceFor comparison, if ω = 3 rad/s (off resonance): A = 10 / (2 × √[(25 − 9)² + (2 × 1 × 3)²]) = 10 / (2 × √[256 + 36]) = 10 / (2 × √292) = 10 / (2 × 17.09) ≈ 10 / 34.18 ≈ 0.293 m. The resonance amplitude (0.5 m) is about 1.7 times larger than the off-resonance value.
At ω = 3: A ≈ 0.293 m. Resonance amplifies the response significantly.

Damped vs. Undamped Forced Oscillations

The presence or absence of damping fundamentally changes the behavior of forced oscillations. Understanding these differences helps you decide which model to apply and how to interpret results.

Comparison of undamped and damped forced oscillation models
FeatureUndamped (c = 0)Damped (c > 0)
At resonance (ω = ω₀)Amplitude grows without bound over time (secular term t × sin(ω₀t)).Amplitude reaches a finite (but possibly large) steady-state value.
Transient behaviorNo decay—homogeneous solution persists forever as beats.Homogeneous solution decays exponentially; only steady-state remains.
Steady-state frequencyBeats between ω and ω₀ when ω ≠ ω₀.System oscillates purely at driving frequency ω after transients die.
Physical realismMathematical idealization. No real system has zero damping.More realistic. All physical systems have at least some energy loss.
Solution methodUndetermined coefficients (special case when ω = ω₀ requires multiplying by t).Undetermined coefficients (no special case needed at resonance).
KEY TAKEAWAY
Think of damping like the brakes on a car. Without brakes (undamped), a car rolling down a hill with repeated pushes accelerates without limit—dangerous and unrealistic. With brakes (damping), the car reaches a terminal speed that balances the pushing force against friction. Similarly, damping is what prevents real oscillators from reaching infinite amplitude at resonance.

Connection to Advanced Theory

The forced oscillation model you've just learned is the gateway to a wide family of more advanced topics. In college-level courses, you'll encounter generalizations that handle more complex driving forces, nonlinear restoring forces, and multi-degree-of-freedom systems.

How this introductory model connects to advanced differential equations topics
This Lesson (Intro)Advanced Extension
Single cosine forcing: F₀ cos(ωt)Arbitrary periodic forcing decomposed with Fourier series—each frequency component analyzed separately, then superposed.
Constant coefficients (m, c, k fixed)Variable coefficients where m, c, or k change with time—requires series solutions or numerical methods.
Linear spring (restoring force ∝ x)Nonlinear oscillators (Duffing equation) where restoring force includes x³ terms, leading to chaotic behavior.
One mass, one spring (1 DOF)Coupled oscillators and systems of ODEs with multiple natural frequencies and normal modes.

Even though these extensions add mathematical complexity, the core insight remains the same: when an external force drives a system near its natural frequency, the response is dramatically amplified. This principle shows up in electrical engineering (RLC circuits), structural engineering (earthquake-resistant design), and even quantum mechanics (photon absorption by atoms). Mastering the simple spring-mass ODE gives you the conceptual foundation for all of them.

Practice Problems

PROBLEM 1CONCEPTUAL
A child on a swing has a natural period of about 3 seconds. Her parent pushes her once every 3 seconds versus once every 1 second. In which scenario does the swing's amplitude grow larger? Explain why, using the concept of resonance.
PROBLEM 2BASIC CALCULATION
A 4 kg mass on a spring with k = 100 N/m has damping c = 8 N·s/m and is driven by F(t) = 20 cos(5t) N. Find the natural frequency ω₀ and the damping parameter β.
PROBLEM 3INTERMEDIATE
Using the system from Problem 2 (m = 4, k = 100, c = 8, F₀ = 20, ω = 5), calculate the steady-state amplitude A using the formula A = F₀ / (m √[(ω₀² − ω²)² + (2βω)²]).
PROBLEM 4APPLIED
An engineer designs a machine mount modeled by m x″ + c x′ + k x = F₀ cos(ωt) with m = 10 kg, k = 1000 N/m, c = 40 N·s/m. The machine produces vibrations at ω = 8 rad/s. Find the steady-state amplitude A and determine whether the system is near resonance.
PROBLEM 5CRITICAL THINKING
Consider the undamped forced oscillation equation x″ + ω₀² x = (F₀/m) cos(ωt). When ω = ω₀, the standard guess x_p = A cos(ω₀t) fails (it solves the homogeneous equation). The correct particular solution involves a factor of t. Explain in your own words why, physically, the amplitude must grow linearly with time when there is no damping and ω = ω₀.

Lesson Summary

A forced oscillation occurs when an external periodic force F₀ cos(ωt) drives a system described by the second-order linear ODE m x″ + c x′ + k x = F₀ cos(ωt). The system has a natural frequency ω₀ = √(k/m) and a damping parameter β = c/(2m). The general solution is the sum of a transient (homogeneous) part that decays over time and a steady-state (particular) part that oscillates at the driving frequency ω.

Resonance happens when ω ≈ ω₀: the steady-state amplitude A = F₀ / (m √[(ω₀² − ω²)² + (2βω)²]) becomes very large because the denominator shrinks. With light damping the resonance peak is tall and narrow; with heavy damping it is short and broad. In the idealized undamped case, the amplitude grows without bound at resonance—a mathematical signal that real-world damping is essential. This introductory framework forms the basis for Fourier analysis, coupled oscillators, and engineering applications across many disciplines.

Varsity Tutors • Differential Equations • Forced Oscillations & Resonance