Resonance Explained: Forced Oscillations in Differential Equations

Differential Equations · Forced oscillations · Resonance

A small force can produce a huge response—when the frequencies match.

Learn to recognize exact undamped resonance before starting the algebra. Compare natural and forcing frequencies, see what damping changes, and solve \(y^{\prime\prime}+9y=4\cos(3t)\) step by step with Woody.

Watch the explanation

Resonance explained: forced oscillations and damping

6 min 55 sec · Frequency comparison, worked solution, and derivative check

Keep learning below the video. The complete 10-slide carousel, full written lesson, worked calculations, quick checks, and related study resources are all on this page.

The video and written lesson share the same main example. The written guide below also lays out the video’s two-force comparison and derivative check so you can work through them at your own pace.

Video chapters — choose a moment on YouTube

Open this lesson on YouTube ↗

Quick Summary: Resonance in Differential Equations

  • Exact undamped resonance happens when the forcing frequency matches the natural frequency.
  • The standard forced oscillator model is \(m y^{\prime\prime}+c y^{\prime}+ky=F_0\cos(\omega t)\).
  • Without damping and forcing, the system oscillates naturally at \(\omega_0=\sqrt{k/m}\).
  • When \(\omega\ne \omega_0\), the undamped forced response stays bounded.
  • When \(\omega=\omega_0\) and damping is absent, exact resonance occurs.
  • At exact undamped resonance, the solution contains a factor of \(t\), so the amplitude grows over time.
  • Real systems usually include damping, which prevents unbounded growth. Weak damping can still permit a large amplitude peak near the natural frequency.
  • Resonance appears in bridges, buildings, circuits, mechanical vibrations, musical instruments, and engineering systems.

Understand the resonance idea

Resonance is one of the most powerful ideas in Differential Equations. It explains why a tiny repeated force can create a huge response when the timing is exactly right.

A child on a swing is the classic example. One small push does not do much. But if every push arrives at the right moment, the motion grows larger and larger. That is resonance.

In the ideal undamped model, exact resonance occurs when the forcing frequency matches the system’s natural frequency. With nonzero periodic forcing, that match produces amplitude growth over time. Damped systems have a different, finite response, explained below.

Resonance is not about force size first. Resonance is about timing.

This Woody Calculus lesson teaches resonance through the forced oscillator model, natural frequency, nonresonant bounded motion, exact resonance growth, and the role of damping in real systems. Mathematically, this topic belongs to ordinary differential equations, second-order linear ODEs, and the study of the driven harmonic oscillator.

Students studying resonance should also connect this topic to Laplace transforms, eigenvalues and eigenvectors, Fourier series, and the broader study of transient response, steady-state response, and linear systems in Differential Equations.

Resonance Key Facts

  • Natural frequency is the system’s built-in rhythm.
  • Forcing frequency is the frequency of the external input.
  • Exact undamped resonance occurs when the forcing frequency matches the natural frequency.
  • For an undamped spring-mass system, \(\omega_0=\sqrt{k/m}\).
  • In the undamped nonresonant case, the particular solution has denominator \(\omega_0^2-\omega^2\).
  • At resonance, the usual particular solution fails because the forcing matches the homogeneous motion.
  • In lightly damped systems, the displacement response can have a large but finite peak near the natural frequency.
  • This topic is central to Differential Equations, Laplace transforms, vibration analysis, and engineering mathematics.

View slide 1 in the full carousel lesson ↑

What Is Resonance?

Exact undamped resonance occurs when a nonzero periodic force drives an ideal oscillator at its natural frequency, producing an oscillation with a growing envelope. In a damped oscillator, a displacement-amplitude peak may occur at a different frequency, and the response stays finite.

In Differential Equations, resonance usually appears in second-order linear equations that model oscillation. The exact undamped resonance condition is:

\[ \text{forcing frequency}=\text{natural frequency}. \]

When the timing matches perfectly, energy is added efficiently cycle after cycle. In an ideal undamped model, this creates amplitude growth without bound.

In normalized form, a basic undamped forced oscillator can be written as:

\[ y^{\prime\prime}+\omega_0^2 y=A\cos(\omega t), \]

where \(\omega_0\) is the natural frequency, \(\omega\) is the forcing frequency, and \(A=\frac{F_0}{m}\) after dividing the physical equation by the mass.

The dramatic case occurs when:

\[ \omega=\omega_0. \]

The Forced Oscillation Model

The standard physical model for a forced spring-mass system is:

\[ m y^{\prime\prime}+c y^{\prime}+ky=F_0\cos(\omega t). \]

Model assumptions: Throughout this lesson, \(m>0\), \(k>0\), \(c\ge0\), and \(\omega\ge0\). The force amplitude \(F_0\) is nonnegative; exact resonance growth assumes \(F_0>0\). Frequencies here are angular frequencies, measured in radians per unit time.

Each term has a physical meaning:

  • \(m\) is the mass.
  • \(c\) is the damping coefficient.
  • \(k\) is the spring constant.
  • \(F_0\cos(\omega t)\) is the external periodic force.

This same structure appears in mechanical vibrations, electrical circuits, building motion, bridge oscillations, and engineering systems.

View slide 2 in the full carousel lesson ↑

Every System Has Its Own Rhythm

Before forcing is added, consider the undamped free oscillator:

\[ m y^{\prime\prime}+ky=0. \]

Divide by \(m\):

\[ y^{\prime\prime}+\frac{k}{m}y=0. \]

The natural frequency is:

\[ \omega_0=\sqrt{\frac{k}{m}}. \]

So the free oscillator satisfies:

\[ y^{\prime\prime}+\omega_0^2 y=0. \]

Its general solution is:

\[ y(t)=c_1\cos(\omega_0 t)+c_2\sin(\omega_0 t). \]

This is the system’s built-in rhythm. If nothing drives the system from outside, it naturally oscillates at frequency \(\omega_0\).

View slide 3 in the full carousel lesson ↑

Now Add an Outside Force

Now add an external periodic force:

\[ m y^{\prime\prime}+ky=F_0\cos(\omega t). \]

There are now two frequencies:

  • \(\omega_0\), the natural frequency of the system,
  • \(\omega\), the forcing frequency of the external input.

The entire resonance story depends on how these two frequencies compare.

If \(\omega\ne\omega_0\), the response stays bounded in the ideal undamped model. If \(\omega=\omega_0\), the external force is perfectly synchronized with the natural motion, and true resonance occurs.

View slide 4 in the full carousel lesson ↑

If the Frequencies Do Not Match

For the undamped forced equation:

\[ m y^{\prime\prime}+ky=F_0\cos(\omega t), \]

write:

\[ \omega_0^2=\frac{k}{m}. \]

If \(\omega\ne\omega_0\), a particular solution has the form:

\[ y_p(t)=\frac{F_0}{m(\omega_0^2-\omega^2)}\cos(\omega t). \]

Therefore the full solution is:

\[ y(t)=c_1\cos(\omega_0 t)+c_2\sin(\omega_0 t) + \frac{F_0}{m(\omega_0^2-\omega^2)}\cos(\omega t). \]

This response is bounded when \(\omega\ne\omega_0\). The denominator \(\omega_0^2-\omega^2\) explains why the amplitude gets large when \(\omega\) is close to \(\omega_0\).

No exact frequency match means no true undamped resonance.

View slide 5 in the full carousel lesson ↑

Resonance Equals Perfect Frequency Match

The dramatic case occurs when:

\[ \omega=\omega_0. \]

Then the forced equation becomes:

\[ m y^{\prime\prime}+ky=F_0\cos(\omega_0 t). \]

The usual particular solution form \(A\cos(\omega t)\) fails because \(\cos(\omega_0 t)\) is already part of the homogeneous solution.

In Differential Equations language, the forcing term duplicates the natural mode. That duplication creates resonance.

At resonance, the external force pushes the system at exactly its own natural rhythm.

View slide 6 in the full carousel lesson ↑

The trial-function fix: Multiply the entire sine-and-cosine trial by \(t\): \(y_p=t[A\cos(\omega_0t)+B\sin(\omega_0t)]\). Substitution gives \(A=0\) and \(B=F_0/(2m\omega_0)\), producing the particular solution below.

What the Solution Looks Like at Resonance

At exact undamped resonance, the solution becomes:

\[ y(t)=c_1\cos(\omega_0 t)+c_2\sin(\omega_0 t) + \frac{F_0}{2m\omega_0}t\sin(\omega_0 t). \]

The important part is the factor of \(t\):

\[ \frac{F_0}{2m\omega_0}t\sin(\omega_0 t). \]

The sine function oscillates, but the coefficient grows linearly with time. That means the amplitude grows larger and larger in the ideal undamped model.

This is why resonance can be so dramatic: the force does not need to be huge. It only needs to be applied at the right frequency.

View slide 7 in the full carousel lesson ↑

Timing Beats Strength

Resonance is the mathematics of timing.

A small push on a swing can create a large effect when it is repeated at exactly the right time. Each push adds energy in sync with the motion.

\[ \omega=\omega_0 \quad\Longrightarrow\quad \text{energy builds efficiently}. \]

This is why a small periodic force can be more powerful than a large poorly timed force.

In resonance, timing beats strength.

View slide 8 in the full carousel lesson ↑

Compare a strong off-frequency force with a smaller resonant force

In the video, both systems start from rest: \(y(0)=y^{\prime}(0)=0\). Both have natural frequency \(\omega_0=1\), but the forcing frequencies differ.

From-rest solutions: timing changes the long-term response
ForceEquation and solutionWhat to notice
Larger, off-frequency\(y^{\prime\prime}+y=4\cos(2t)\)
\(y(t)=\frac43(\cos t-\cos 2t)\)
\(\omega=2\ne1\). The response is bounded: \(|y(t)|\le\frac83\).
Smaller, resonant\(y^{\prime\prime}+y=\cos t\)
\(y(t)=\frac12t\sin t\)
\(\omega=\omega_0=1\). The oscillation has a growing envelope.

At \(t=5\pi/2\), the smaller-force response is \(5\pi/4\approx3.927\), already greater than the larger-force bound \(8/3\approx2.667\). The resonant displacement still crosses zero; its envelope grows. It is not larger at every instant.

Real Systems Usually Include Damping

Real systems usually include damping:

\[ m y^{\prime\prime}+c y^{\prime}+ky=F_0\cos(\omega t). \]

When \(c>0\), damping removes energy from the system. This prevents unbounded resonance growth.

Damping keeps the response bounded. Whether a positive-frequency displacement-amplitude peak remains depends on the amount of damping:

  • With no damping, exact resonance can produce unbounded amplitude growth.
  • With damping, the response remains finite.
  • With light damping, the response can still have a large peak near the natural frequency.

For a damped forced oscillator, the steady-state amplitude has the form:

\[ A(\omega)= \frac{F_0} {\sqrt{(k-m\omega^2)^2+(c\omega)^2}}. \]

This formula shows why damping matters. The term \(c\omega\) prevents the denominator from becoming zero, so the amplitude remains finite.

For positive damping satisfying \(c^2<2mk\), the displacement-amplitude peak occurs at:

\[ \omega_{\text{peak}} = \sqrt{\omega_0^2-\frac{c^2}{2m^2}}. \]

This peak frequency is below \(\omega_0\), and close to \(\omega_0\) when damping is weak. It moves lower as damping increases. If \(c^2\ge2mk\), there is no positive-frequency displacement-amplitude peak: \(A(\omega)\) is largest at \(\omega=0\). For every positive damping coefficient, the response is finite, including at \(\omega_0\).

That is why real systems such as bridges, buildings, engines, circuits, and mechanical devices are designed with damping in mind.

View slide 9 in the full carousel lesson ↑

Worked Example: Resonance in an Undamped Oscillator

Solve the forced oscillator:

\[ y^{\prime\prime}+9y=4\cos(3t). \]

Here:

\[ \omega_0^2=9, \qquad \omega_0=3. \]

The forcing term is:

\[ 4\cos(3t), \]

so the forcing frequency is:

\[ \omega=3. \]

Thus:

\[ \omega=\omega_0. \]

This is exact resonance.

The homogeneous solution is:

\[ y_h(t)=c_1\cos(3t)+c_2\sin(3t). \]

For:

\[ y^{\prime\prime}+\omega_0^2y=A\cos(\omega_0 t), \]

the resonant particular solution is:

\[ y_p(t)=\frac{A}{2\omega_0}t\sin(\omega_0 t). \]

Here \(A=4\) and \(\omega_0=3\), so:

\[ y_p(t)=\frac{4}{2(3)}t\sin(3t) = \frac{2}{3}t\sin(3t). \]

Therefore:

\[ \boxed{ y(t)=c_1\cos(3t)+c_2\sin(3t)+\frac23 t\sin(3t). } \]

Plain-language formula: The resonant solution to \(y^{\prime\prime}+9y=4\cos(3t)\) is \(c_1\cos(3t)+c_2\sin(3t)+\frac23 t\sin(3t)\), and the factor of \(t\) causes amplitude growth.

Verify the particular solution by differentiation

The video checks the answer by substituting it back into the equation. For \(y_p=\frac23t\sin(3t)\), the product rule gives:

\[ y_p^{\prime}=\frac23\sin(3t)+2t\cos(3t), \qquad y_p^{\prime\prime}=4\cos(3t)-6t\sin(3t). \]

Now substitute:

\[ y_p^{\prime\prime}+9y_p =4\cos(3t)-6t\sin(3t)+6t\sin(3t) =4\cos(3t). \]

The growing terms cancel, leaving exactly the required forcing term. For the particular solution—and for the solution starting from rest—the envelope lines are \(y=\pm\frac23t\). The general solution also contains the homogeneous terms determined by the initial conditions.

Common Mistakes

Mistake 1: Confusing natural frequency and forcing frequency

The natural frequency \(\omega_0\) comes from the system itself. The forcing frequency \(\omega\) comes from the external input.

Mistake 2: Forgetting to compare frequencies

Before solving a forced oscillator, always compare:

\[ \omega \qquad \text{and} \qquad \omega_0. \]

If they match, resonance is possible.

Mistake 3: Using the nonresonant formula at resonance

The nonresonant particular solution contains:

\[ \frac{1}{\omega_0^2-\omega^2}. \]

At resonance, \(\omega=\omega_0\), so this denominator becomes zero. A different particular solution is needed.

Mistake 4: Forgetting the factor of \(t\)

At exact undamped resonance, the solution contains:

\[ t\sin(\omega_0 t). \]

That factor of \(t\) is what produces amplitude growth.

Mistake 5: Thinking all real resonance is unbounded

Real systems usually have damping. Damping prevents unbounded growth, but it can still allow a large finite peak response near the natural frequency.

Resonance Cheat Sheet

Compare free, forced, resonant, and damped motion
Case Equation Behavior Key Idea
Free undamped oscillator \(m y^{\prime\prime}+ky=0\) Natural oscillation \(\omega_0=\sqrt{k/m}\)
Forced nonresonant oscillator \(m y^{\prime\prime}+ky=F_0\cos(\omega t)\), \(\omega\ne\omega_0\) Bounded response No exact frequency match
Forced resonant oscillator \(m y^{\prime\prime}+ky=F_0\cos(\omega_0 t)\) Amplitude grows \(t\sin(\omega_0 t)\) appears
Damped forced oscillator \(m y^{\prime\prime}+c y^{\prime}+ky=F_0\cos(\omega t)\) Bounded response; a positive-frequency peak when \(c^2<2mk\) Damping prevents unbounded growth

Try the pattern yourself

Check your understanding

Identify the model, compare frequencies, and then choose the particular solution. These are additional written practice questions.

1. Does \(y^{\prime\prime}+16y=8\cos(2t)\) have exact resonance?

No. The natural frequency is \(\omega_0=4\), while the forcing frequency is \(\omega=2\). A particular solution is \(y_p=\frac{8}{16-4}\cos(2t)=\frac23\cos(2t)\). The general solution is \(y=c_1\cos(4t)+c_2\sin(4t)+\frac23\cos(2t)\), which remains bounded.

2. What changes if the force becomes \(8\cos(4t)\)?

Now \(\omega=\omega_0=4\), so the undamped equation has exact resonance. Use the full trial \(y_p=t[A\cos(4t)+B\sin(4t)]\). Substitution gives \(A=0\) and \(B=1\), so \(y_p=t\sin(4t)\). The factor of \(t\) produces a growing envelope.

3. Does every damped oscillator have an amplitude peak at a positive frequency?

No. For positive mass and spring constant, a nonzero force amplitude, and positive damping, the displacement-amplitude peak occurs at a positive frequency only when \(c^2<2mk\). If \(c^2\ge2mk\), the largest steady-state displacement amplitude occurs at \(\omega=0\).

Perfect practice makes perfect. Rewrite a correct solution 3–5 times while saying each step confidently aloud. Then change the forcing frequency and explain why the method changes.

Resonance FAQ

What is resonance in Differential Equations?

Exact undamped resonance occurs when a nonzero periodic force drives a system at its natural frequency. The oscillation has a growing envelope. With damping, the steady-state response remains finite and its amplitude peak, when present, occurs below the undamped natural frequency.

What is natural frequency?

Natural frequency is the frequency at which a system oscillates on its own without external forcing. For an undamped spring-mass system, \(\omega_0=\sqrt{k/m}\).

What is forcing frequency?

Forcing frequency is the frequency of an external periodic input, such as \(F_0\cos(\omega t)\). The forcing frequency is \(\omega\).

When does resonance occur?

In the ideal undamped model, resonance occurs when the forcing frequency equals the natural frequency, so \(\omega=\omega_0\).

Why does amplitude grow at resonance?

At exact undamped resonance, the particular solution contains a factor of \(t\), such as \(t\sin(\omega_0 t)\). That factor causes the oscillation amplitude to grow over time.

What happens when the frequencies do not match?

When \(\omega\ne\omega_0\), the undamped forced response stays bounded and the system does not experience true resonance.

How does damping affect resonance?

Damping prevents unbounded resonance growth. A damped system can still have a large finite response near the natural frequency, but the amplitude remains bounded.

Where does resonance appear in real life?

Resonance appears in bridges, buildings, electrical circuits, mechanical vibrations, musical instruments, engines, and many engineering systems.

Master Differential Equations with Woody Calculus

Resonance is one of the clearest examples of why Differential Equations matters. A simple equation can explain a dramatic physical effect.

The Woody Calculus method is:

  • Identify the model.
  • Find the natural frequency.
  • Identify the forcing frequency.
  • Compare \(\omega\) and \(\omega_0\).
  • With no damping, use the nonresonant formula when \(\omega\ne\omega_0\).
  • With no damping, use the resonant \(t\sin(\omega_0 t)\) structure when \(\omega=\omega_0\).
  • Account for damping in real systems.

Pattern first, setup second, computation third. Learn the model and formulas, then rewrite a correct solution from scratch 3–5 times while saying each step confidently aloud. Explain where each frequency comes from and why your chosen solution form fits the equation. Perfect practice makes perfect.

View slide 10 in the full carousel lesson ↑

Keep learning with Woody

Know what to do when the next forcing term changes

If you can follow this solution but hesitate when a new equation appears, keep practicing with Woody inside the Woody Calculus & Advanced Mathematics Mastery Lab. Build on this lesson with step-by-step lessons, written solutions, exam-focused practice, and direct teaching support.

Start your FREE 7-day trial

Explore how the Mastery Lab works →

Learn the patterns. Learn the game. Solve with confidence.

Explore more Woody Calculus lessons connecting Differential Equations, Laplace Transforms, Linear Algebra, Fourier Series, Calculus 2, Calculus 3, and advanced mathematics.

Private Instruction

Brian M. Woody works privately with a limited number of serious students who need one-on-one help in Differential Equations, Calculus II, Calculus III, Linear Algebra, and advanced mathematics.

Private instruction is reserved for serious students, requires weekly sessions, requires enrollment in the Woody Calculus & Advanced Mathematics Mastery Lab first, and approval is not guaranteed.

Students interested in private instruction can learn more here: Private Math Tutor and Advanced Mathematics Instruction.

About the Author: Brian M. Woody

Brian M. Woody is a professional mathematics educator with 25+ years of teaching experience. Through Woody Calculus, he provides rigorous, exam-focused training in Calculus II, Calculus III, Differential Equations, Linear Algebra, Abstract Algebra, Real Analysis, and advanced mathematics. His teaching emphasizes clean definitions, formula memorization, proof structure, visual intuition, pattern recognition, rewriting perfect solutions, and saying each step out loud until the method becomes automatic.

Related University Math Help Pages

Woody Calculus supports students at major universities with structured help in Differential Equations, Calculus 2, Calculus 3, Linear Algebra, and advanced mathematics. For the full list of supported schools, visit the University Calculus Tutor Hub.

Trusted by Students Nationwide

The Woody Calculus & Advanced Mathematics Mastery Lab gives university students access to structured mathematics support, written solutions, video lessons, exam-focused training, and expert guidance from Brian M. Woody.

Students use Woody Calculus for Differential Equations, Calculus II, Calculus III, Linear Algebra, Abstract Algebra, and other advanced mathematics courses.

Leave a Reply

Your email address will not be published. Required fields are marked *