Forced Harmonic Oscillation and Resonance

A step-by-step walkthrough of forced harmonic oscillation — how the driving frequency and damping determine the displacement response and its resonance peak.

I was going to continue on from the previous post all the way to resonance, but if I tacked this on too it’d get super long, so

this one’s going to be a pretty short post but… let’s just go ahead and do it!

The main point: the driving force’s frequency

The driving angular-frequency symbol, w

has some relationship with the oscillator’s natural frequency

The natural angular-frequency symbol, w with subscript zero

such that at certain driving frequencies, a peculiar phenomenon happens.

Let’s unveil the secret of that peculiar phenomenon.

Our model is $m\ddot x+c\dot x+kx=F_0\cos(\omega t)$: a mass $m$, spring constant $k$, linear drag coefficient $c\ge0$, and a drive of fixed amplitude $F_0$. We’ll write $\omega_0=\sqrt{k/m}$ and $\gamma=c/(2m)$. The pictures use $w$ for $\omega$ — same angular frequency, just a different-looking letter!​

step1. Start from the no-damping case, step by step (no resistance, yes external force)

Equation from the original notes

Equation from the original notes

Small caution about that “transient” wording: with zero damping, the free oscillation at $\omega_0$ does not fade away by itself. Here we’re deliberately isolating the driven particular solution. Away from $\omega=\omega_0$, its amplitude is $A=(F_0/m)/|\omega_0^2-\omega^2|$. Right at the undamped resonance there is no finite periodic steady response: a particular solution is $x_p=(F_0/2m\omega_0)t\sin(\omega_0t)$, whose envelope grows with time.

Equation from the original notes

Complex displacement, velocity and acceleration formulas

Undamped amplitude derivation

Equation from the original notes

Equation from the original notes

Undamped displacement-amplitude graph with a pole at the natural frequency

So the relationship between w and A is like this, right?????????????????

Then this phenomenon will also make sense!!!!

Original resonance demonstration on YouTube .

Alright, so now, like we always do, let’s think about the resistance term too! hehe

It’s just one term added, right

Damped equation and kinematic formulas

Damped amplitude derivation

In the no-damping case, when sinΦ=0 the imaginary term vanished so it was simple,

but now it’s a bit diff-y… two equations come ouuut.

Equation from the original notes

Now the damping really does let the free part die away. The remaining driven motion is $x=A(\omega)\cos(\omega t-\varphi)$, with

$$A(\omega)=\frac{F_0/m}{\sqrt{(\omega_0^2-\omega^2)^2+4\gamma^2\omega^2}}.$$

Notice the low-frequency check: $A(0)=F_0/k$, just the static spring displacement. For the phase lag, use the branch $0\le\varphi\le\pi$ — equivalently $\varphi=\operatorname{atan2}(2\gamma\omega,\omega_0^2-\omega^2)$. A plain inverse tangent can hide the quadrant when the drive is above $\omega_0$.

Hint!!!!!

Stationary-amplitude condition, derivative of A with respect to w equals zero

this will be the maximum amplitude.

Equation from the original notes

Alright, so as mentioned above 1!!! let’s find the maximum of A(w).

Amplitude formula and derivative calculation; the source labels its frequency derivative as a time derivative and highlights the final factor in red

Resonance-frequency figure and asides

Here’s the condition that goes with that square root: a displacement-amplitude peak at a positive driving frequency exists only when $0<\gamma<\omega_0/\sqrt2$. Then $\omega_r=\sqrt{\omega_0^2-2\gamma^2}$. If $\gamma\ge\omega_0/\sqrt2$, $A(\omega)$ decreases from its maximum at $\omega=0$; there isn’t a positive-frequency peak to find.

You can check this without differentiating the whole square root. Its denominator squared is $D(\omega)=(\omega_0^2-\omega^2)^2+4\gamma^2\omega^2$, and $D'(\omega)=4\omega(\omega^2-\omega_0^2+2\gamma^2)$. Minimise $D$ to maximise $A$!

Equation from the original notes

The last simplification in that picture goes one step too far. At the positive-frequency peak, the exact amplitude is

$$A_{\max}=\frac{F_0/m}{2\gamma\sqrt{\omega_0^2-\gamma^2}}.$$

Only for weak damping, $\gamma\ll\omega_0$, can we replace the square root by $\omega_0$ and write $A_{\max}\approx F_0/(2m\gamma\omega_0)$. That simpler expression is also the exact amplitude at $\omega=\omega_0$, which is slightly different from the true peak frequency when damping is nonzero.


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • The note about transient vs. steady state says $A$ and $B$; those are the $A'$ and $B'$ from the figure right before it.
  • In the damped equation of motion, the third line writes $iw$ where it should be $icw$ (the $c$ went missing), and the last line shows $e^{-i\varphi}$ where $e^{+i\varphi}$ is what actually follows from the line above.
  • In the resonance figure the red line says $dA/dt$. It should be $dA/dw$: we’re hunting for the driving frequency that makes the amplitude biggest.
  • In the last figure, the subscript “ma” is just “max” cut short, and the second denominator should have $4\gamma^4$, not $4\gamma^2$. Its last expression also replaces $\sqrt{\omega_0^2-\gamma^2}$ by $\omega_0$: that is a weak-damping approximation, not the exact maximum. The exact expression and its condition are written immediately above.
  • The undamped free motion does not disappear on its own; the first calculation selects only a particular driven solution. At exact undamped resonance that solution grows with time rather than reaching a finite periodic steady state.

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.