Differential EquationsFourier Series and Boundary Value Problems5 of 6
Fourier Series and Boundary Value Problems · 5

Periodic Forcing and Resonance

We know how to find a spring's motion when it is pushed by a single sine wave, and now we want to find how it responds to any periodic push F(t)\push{F(t)}, such as a square wave:

x′′+9⏟ω02x\displaystyle x'' + \underbrace{\nat{9}}_{\nat{\omega_0^2}}x =F(t)\displaystyle = \push{F(t)}
1

How an Undamped Oscillator Filters Sine Waves

To see why a slow periodic push can make a fast spring with natural frequency ω0=3\nat{\omega_0} = 3 resonate, we first look at how the oscillator acts as a filter on individual sine waves:

x′′+9x\displaystyle x'' + \nat{9}x =sin⁡(2t)+5sin⁡(4t)\displaystyle = \push{\sin(2t)} + \push{5\sin(4t)}
How an Undamped Oscillator Filters Sine Waves
x′′+9xx′′+9x=F(t)\hphantom{x'' + 9x}\mathllap{x'' + \htmlClass{lc-violet}{9}x} = \htmlClass{lc-green}{F(t)}
x′′+9xω0=3\hphantom{x'' + 9x}\mathllap{\htmlClass{lc-violet}{\omega_0}} = 3
x′′+9xx(t)=?\hphantom{x'' + 9x}\mathllap{\htmlClass{lc-blue}{x(t)}} = {?}
x=0\htmlClass{lc-mute}{x = 0}
Text solution
Plug a pure sine wave into the left sideTaking two derivatives of Asin⁡(ωt)A\sin(\push{\omega} t) pulls out −ω2-\push{\omega^2} from the chain rule, so the left side of the differential equation keeps the wave at the same frequency and multiplies it by 9−ω2\nat{9} - \push{\omega^2}:
xp′′+9xp=−ω2Asin⁡(ωt)+9Asin⁡(ωt)=A(9⏟Natural2−ω2⏟Input2)sin⁡(ωt)\displaystyle \begin{aligned} \accel{x_p''} + \nat{9}\push{x_p} &= -\push{\omega^2} A\sin(\omega t) + \nat{9}A\sin(\omega t) \\ &= A(\underbrace{\nat{9}}_{\nat{\text{Natural}^2}} - \underbrace{\push{\omega^2}}_{\push{\text{Input}^2}})\sin(\omega t) \end{aligned}
Divide each input wave's coefficient by Natural2−Input2\nat{\text{Natural}^2} - \push{\text{Input}^2}Because derivatives split cleanly across addition, the oscillator filters a sum of sine waves one term at a time:
xp(t)=19−22sin⁡(2t)+59−42sin⁡(4t)=15sin⁡(2t)−57sin⁡(4t)\displaystyle \begin{aligned} \push{x_p(t)} &= \frac{\push{1}}{\nat{9} - \push{2^2}}\sin(2t) + \frac{\push{5}}{\nat{9} - \push{4^2}}\sin(4t) \\ &= \frac{1}{5}\sin(2t) - \frac{5}{7}\sin(4t) \end{aligned}
Switch to the growing tcos⁡(ω0t)t\cos(\nat{\omega_0} t) wave when Input=Natural\push{\text{Input}} = \nat{\text{Natural}}When an input wave F0sin⁡(3t)\push{F_0\sin(3t)} matches the natural frequency ω0=3\nat{\omega_0} = 3, the filter divisor 9−32\nat{9} - \push{3^2} equals zero, so a periodic wave can no longer balance the equation and the response grows with time:
Input: F0sin⁡(3t)⟶xp(t)\displaystyle \text{Input: } \push{F_0\sin(3t)} \quad \longrightarrow \quad \push{x_p(t)} =−F02×3tcos⁡(3t)\displaystyle = -\frac{\push{F_0}}{2 \times \nat{3}}t\cos(3t)

Try changing the input frequency ω\push{\omega} to see how the divisor 9−ω2\nat{9} - \push{\omega^2} controls the response wave, especially right at ω=3\push{\omega} = 3 and past it.

As your push frequency approaches and passes the spring's natural frequency of 3, dividing by the shrinking gap between their squares makes the response grow taller, grow without bound right at 3, and flip upside down past 3.
2

Why a Slow Square Wave Triggers Resonance

We cannot plug a square wave directly into the Natural2−Input2\nat{\text{Natural}^2} - \push{\text{Input}^2} filter because taking two derivatives of a step function does not give the square wave back. Now we want to find how the spring responds when pushed by a square wave that alternates between +1+1 on (0,π)(0, \pi) and −1-1 on (π,2π)(\pi, 2\pi) at a slow base frequency of 1\push{1}:

x′′+9x\displaystyle x'' + \nat{9}x =SquareWave(t)\displaystyle = \push{\text{SquareWave}(t)}
SquareWave(t)\htmlClass{lc-green}{\text{SquareWave}(t)}
11
−1-1
4πsin⁡(1t)\htmlClass{lc-green}{\dfrac{4}{\pi}\sin(1t)}
43πsin⁡(3t)\htmlClass{lc-green}{\dfrac{4}{3\pi}\sin(3t)}
45πsin⁡(5t)\htmlClass{lc-green}{\dfrac{4}{5\pi}\sin(5t)}
π\pi
2π2\pi
t\htmlClass{lc-mute}{t}
Why a Slow Square Wave Triggers Resonance
x′′+9xx′′+9x=SquareWave(t)\hphantom{x'' + 9x}\mathllap{x'' + \htmlClass{lc-violet}{9}x} = \htmlClass{lc-green}{\text{SquareWave}(t)}
x′′+9xxp(t)=?\hphantom{x'' + 9x}\mathllap{\htmlClass{lc-green}{x_p(t)}} = {?}
11
−1-1
π\pi
2π2\pi
3π3\pi
4π4\pi
t\htmlClass{lc-mute}{t}
Text solution
Replace the periodic push with its Fourier sine seriesRewriting the square wave as its odd sine series turns it into a sum of pure sine waves that our filter can handle one by one:
x′′+9x\displaystyle x'' + \nat{9}x =4πsin⁡(1t)⏟n=1+43πsin⁡(3t)⏟n=3+45πsin⁡(5t)⏟n=5+47πsin⁡(7t)⏟n=7+⋯\displaystyle = \underbrace{\push{\frac{4}{\pi}\sin(1t)}}_{n = 1} + \underbrace{\push{\frac{4}{3\pi}\sin(3t)}}_{n = 3} + \underbrace{\push{\frac{4}{5\pi}\sin(5t)}}_{n = 5} + \underbrace{\push{\frac{4}{7\pi}\sin(7t)}}_{n = 7} + \cdots
Divide each non-resonant harmonic by 9−n2\nat{9} - \push{n^2}The nnth harmonic sin⁡(nt)\push{\sin(nt)} has input frequency n\push{n}, so the filter divides its coefficient by 9−n2\nat{9} - \push{n^2} to produce small periodic oscillations:
n=1:4π9−12sin⁡(1t)=48πsin⁡(1t)n=5:45π9−52sin⁡(5t)=45π(−16)sin⁡(5t)\displaystyle \begin{aligned} n = 1: &\quad \frac{\push{\tfrac{4}{\pi}}}{\nat{9} - \push{1^2}}\sin(1t) = \frac{4}{8\pi}\sin(1t) \\ n = 5: &\quad \frac{\push{\tfrac{4}{5\pi}}}{\nat{9} - \push{5^2}}\sin(5t) = \frac{4}{5\pi(-16)}\sin(5t) \end{aligned}
Spot the hidden harmonic where 9−n2=0\nat{9} - \push{n^2} = \reszero{0}At the third harmonic n=3n = 3, the input frequency of 43πsin⁡(3t)\push{\frac{4}{3\pi}\sin(3t)} matches the spring's natural frequency of 3\nat{3}:
n\displaystyle n =3:9−32\displaystyle = 3: \quad \nat{9} - \push{3^2} =0\displaystyle = \reszero{0}

So even though the square-wave push repeats at frequency 1\push{1}, the spring responds strongly to the hidden sin⁡(3t)\push{\sin(3t)} harmonic that builds the sharp corners and resonates with it.

Compare a smooth sine push at frequency 1\push{1} with a square-wave push at the same frequency, and watch how the sharp corners introduce the third harmonic that makes the spring resonate.

Sharpening the corners of a slow frequency-1 push adds odd harmonics, and the frequency-3 wave inside it drives the spring into resonance.
3

Writing Full Series Solutions With and Without Resonance

Now we want to write the full solution x(t)=xh(t)+xp(t)\total{x(t)} = \nat{x_h(t)} + \push{x_p(t)} in sigma notation for all the harmonics at once: first when no harmonic matches ω0\nat{\omega_0}, and then when one harmonic inside the infinite sum triggers resonance:

x′′+ω02x\displaystyle x'' + \nat{\omega_0^2} x =∑n=1,3,5,…∞4nπsin⁡(nt)\displaystyle = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}
Writing Full Series Solutions With and Without Resonance
x′′+10xx′′+10x=SquareWave(t)\hphantom{x'' + 10x}\mathllap{x'' + \htmlClass{lc-violet}{10}x} = \htmlClass{lc-green}{\text{SquareWave}(t)}
x′′+10xx(t)=?\hphantom{x'' + 10x}\mathllap{\htmlClass{lc-blue}{x(t)}} = {?}
ω0=10\htmlClass{lc-violet}{\omega_0} = \sqrt{10}
11
33
55
77
ω\htmlClass{lc-mute}{\omega}
Text solution
Filter inside the sum when ω02−n2\nat{\omega_0^2} - \push{n^2} is never zero (x′′+10x=SquareWave(t)x'' + \nat{10}x = \push{\text{SquareWave}(t)})Because ω0=10\nat{\omega_0} = \sqrt{10} is not an odd integer, 10−n2\nat{10} - \push{n^2} never equals zero for n=1,3,5,…n = 1, 3, 5, \dots, so we divide the nnth coefficient inside the sum by 10−n2\nat{10} - \push{n^2} and add the free oscillation xh(t)\nat{x_h(t)}:
x(t)=c1cos⁡(10 t)+c2sin⁡(10 t)⏟xh(t)+∑n=1,3,5,…∞4nπ(10−n2)sin⁡(nt)⏟xp(t)\displaystyle \begin{aligned} \total{x(t)} &= \underbrace{\nat{c_1\cos(\sqrt{10}\,t) + c_2\sin(\sqrt{10}\,t)}}_{\nat{x_h(t)}} \\ &\quad + \underbrace{\push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi(\nat{10} - n^2)}\sin(nt)}}_{\push{x_p(t)}} \end{aligned}
Pull the resonant harmonic out of the input sum (x′′+9x=SquareWave(t)x'' + \nat{9}x = \push{\text{SquareWave}(t)})When 9−n2=0\nat{9} - \push{n^2} = \reszero{0} at n=3n = 3, pull the n=3n = 3 term out of the input series first so we never divide by zero inside the sigma sum:
x′′+9x\displaystyle x'' + \nat{9}x =43πsin⁡(3t)⏟resonant term (n=3)+∑n=1,5,7,…n≠3∞4nπsin⁡(nt)\displaystyle = \underbrace{\push{\frac{4}{3\pi}\sin(3t)}}_{\text{resonant term } (n = 3)} + \push{\sum_{\substack{n=1,5,7,\dots \\ n \neq 3}}^{\infty} \frac{4}{n\pi}\sin(nt)}
Convert the resonant term to its growing wave and filter the restTurn the n=3n = 3 term into −F02ω0tcos⁡(ω0t)-\frac{\push{F_0}}{2\nat{\omega_0}}t\cos(\nat{\omega_0} t), divide the remaining n≠3n \neq 3 terms by 9−n2\nat{9} - \push{n^2}, and add the free oscillation xh(t)\nat{x_h(t)}:
xp(t)=−43π2×3tcos⁡(3t)+∑n=1,5,7,…n≠3∞4nπ(9−n2)sin⁡(nt)x(t)=c1cos⁡(3t)+c2sin⁡(3t)−29πtcos⁡(3t)+∑n=1,5,7,…n≠3∞4nπ(9−n2)sin⁡(nt)\displaystyle \begin{aligned} \push{x_p(t)} &= -\frac{\push{\tfrac{4}{3\pi}}}{2 \times \nat{3}}t\cos(3t) + \sum_{\substack{n=1,5,7,\dots \\ n \neq 3}}^{\infty} \frac{4}{n\pi(\nat{9} - \push{n^2})}\sin(nt) \\ \total{x(t)} &= \nat{c_1\cos(3t) + c_2\sin(3t)} - \push{\frac{2}{9\pi}t\cos(3t)} \\ &\quad + \push{\sum_{\substack{n=1,5,7,\dots \\ n \neq 3}}^{\infty} \frac{4}{n\pi(\nat{9} - n^2)}\sin(nt)} \end{aligned}
4

Damped Periodic Forcing and Dominant Harmonics

In a real spring with friction or air resistance, a damping term cx′\damp{cx'} keeps oscillations from growing forever, and we want to find the steady-state motion xss(t)\push{x_{ss}(t)} that the spring settles into:

x′′+0.1x′+9x\displaystyle x'' + \damp{0.1x'} + \nat{9}x =∑n=1,3,5,…∞4nπsin⁡(nt)\displaystyle = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}

With damping, the free oscillation xh(t)\nat{x_h(t)} dies out, and the cx′\damp{cx'} term shifts each wave's phase by ϕn\phi_n and changes the filter's divisor from ω02−n2\nat{\omega_0^2} - \push{n^2} to (ω02−n2)2+(cn)2\sqrt{(\nat{\omega_0^2} - \push{n^2})^2 + \damp{(cn)^2}}.

Damped Periodic Forcing and Dominant Harmonics
x′′+0.1x′+9xx′′+0.1x′+9x=∑n=1,3,5,…∞4nπsin⁡(nt)\hphantom{x'' + 0.1x' + 9x}\mathllap{x'' + \htmlClass{lc-pink}{0.1x'} + \htmlClass{lc-violet}{9}x} = \htmlClass{lc-green}{\displaystyle\sum_{n=1,3,5,\dots}^{\infty}\dfrac{4}{n\pi}\sin(nt)}
x′′+0.1x′+9xxss(t)=?\hphantom{x'' + 0.1x' + 9x}\mathllap{\htmlClass{lc-green}{x_{ss}(t)}} = {?}
x=0\htmlClass{lc-mute}{x = 0}
Text solution
Pass the entire series through the damped filter without pulling out any termsBecause the damping part (0.1n)2\damp{(0.1n)^2} stays positive even when 9−n2=0\nat{9} - \push{n^2} = \reszero{0}, the denominator never equals zero for any nn, and once xh(t)\nat{x_h(t)} fades away the steady-state motion is the full filtered sum:
xss(t)=∑n=1,3,5,…∞4nπ(9−n2)2+(0.1n)2sin⁡(nt−ϕn),where tan⁡ϕn=0.1n9−n2\displaystyle \begin{aligned} \push{x_{ss}(t)} &= \sum_{n=1,3,5,\dots}^{\infty} \frac{\push{\tfrac{4}{n\pi}}}{\sqrt{(\nat{9} - \push{n^2})^2 + \damp{(0.1n)^2}}}\sin(nt - \phi_n), \\ \text{where } \tan\phi_n &= \frac{\damp{0.1n}}{\nat{9} - \push{n^2}} \end{aligned}
Compare the divisors at each harmonic to see which frequency dominatesPlugging n=1,3,5n = 1, 3, 5 into (9−n2)2+(0.1n)2\sqrt{(\nat{9} - \push{n^2})^2 + \damp{(0.1n)^2}} shows how the damped spring shrinks every harmonic except the one where 9−n2=0\nat{9} - \push{n^2} = \reszero{0}:
n=1:(9−12)2+(0.1×1)2≈8(shrunk by 8)n=3:(9−32)2+(0.1×3)2=0.3(amplified by more than 3)n=5:(9−52)2+(0.1×5)2≈16(shrunk by 16)\displaystyle \begin{aligned} n = 1: &\quad \sqrt{(\nat{9} - \push{1^2})^2 + \damp{(0.1 \times 1)^2}} \approx 8 \quad (\text{shrunk by } 8) \\ n = 3: &\quad \sqrt{(\nat{9} - \push{3^2})^2 + \damp{(0.1 \times 3)^2}} = 0.3 \quad (\text{amplified by more than } 3) \\ n = 5: &\quad \sqrt{(\nat{9} - \push{5^2})^2 + \damp{(0.1 \times 5)^2}} \approx 16 \quad (\text{shrunk by } 16) \end{aligned}

So even though the square-wave push repeats at slow frequency 1\push{1}, you see the mass mostly vibrating back and forth three times as fast, matching the n=3n = 3 harmonic.

11
22
33
10.3\dfrac{1}{0.3}
≈18\approx\dfrac{1}{8}
≈116\approx\dfrac{1}{16}
≈140\approx\dfrac{1}{40}
1(9−ω2)2+(0.1ω)2\dfrac{1}{\sqrt{(\htmlClass{lc-violet}{9} - \htmlClass{lc-green}{\omega^2})^2 + \htmlClass{lc-pink}{(0.1\omega)^2}}}
11
55
77
ω0=3\htmlClass{lc-violet}{\omega_0} = 3
ω\htmlClass{lc-mute}{\omega}

Slide the spring's natural frequency ω0\nat{\omega_0} to move the peak of the damped filter curve and see which odd harmonic takes over the steady-state motion.

Even though the slow square-wave push never speeds up, the spring settles into vibrating mostly at an odd harmonic that sits right at or very near the filter's peak.

Key concepts

Once a periodic force is written as a Fourier sine series, the differential equation filters one harmonic wave at a time using its input frequency (if a wave is sin⁡(2nt)\push{\sin(2nt)}, its input frequency is 2n\push{2n}, so Input2=(2n)2=4n2\push{\text{Input}^2} = (2n)^2 = 4n^2, not n2n^2).

For an undamped oscillator x′′+ω02x=∑bnsin⁡(ωnt)x'' + \nat{\omega_0^2} x = \push{\sum b_n\sin(\omega_n t)}, your first step is to check whether any harmonic actually present in the sum makes ω02−ωn2=0\nat{\omega_0^2} - \push{\omega_n^2} = \reszero{0}:

No harmonic matches ω0\nat{\omega_0} (leave the sum intact)

For harmonics sin⁡(nt)\push{\sin(nt)}, if ω0\nat{\omega_0} is not a whole number (as in x′′+10x=∑n=1,3,5,…∞4nπsin⁡(nt)x'' + \nat{10}x = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}), or if ω0\nat{\omega_0} is an even number like 4\nat{4} that is skipped by an odd-only series (n=1,3,5,…n = 1, 3, 5, \dots), the divisor ω02−n2\nat{\omega_0^2} - \push{n^2} never equals zero. Do not pull any term out; just divide inside the sum by ω02−n2\nat{\omega_0^2} - \push{n^2} and add xh(t)=c1cos⁡(ω0t)+c2sin⁡(ω0t)\nat{x_h(t)} = c_1\cos(\nat{\omega_0} t) + c_2\sin(\nat{\omega_0} t).

A harmonic in the sum matches ω0\nat{\omega_0} (pull that term out)

If a term in the sum has ωn=ω0\push{\omega_n} = \nat{\omega_0} (like n=3n = 3 in x′′+9x=∑n=1,3,5,…∞4nπsin⁡(nt)x'' + \nat{9}x = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}), pull that single term F0sin⁡(ω0t)\push{F_0\sin(\nat{\omega_0} t)} out of the sum, convert it to its growing resonant wave −F02ω0tcos⁡(ω0t)-\frac{\push{F_0}}{2\nat{\omega_0}}t\cos(\nat{\omega_0} t), divide the remaining n≠3n \neq 3 terms inside the sum by ω02−ωn2\nat{\omega_0^2} - \push{\omega_n^2}, and add xh(t)\nat{x_h(t)}.

For a damped oscillator x′′+cx′+ω02x=∑n=1,3,5,…∞bnsin⁡(nt)x'' + \damp{cx'} + \nat{\omega_0^2} x = \push{\sum_{n=1,3,5,\dots}^{\infty} b_n\sin(nt)}, the free oscillation xh(t)\nat{x_h(t)} dies out and (cn)2\damp{(cn)^2} keeps the divisor positive for every nn, so you never pull a term out of a damped series:

xss(t)=∑n=1,3,5,…∞bn(ω02−n2)2+(cn)2sin⁡(nt−ϕn),where tan⁡ϕn=cnω02−n2\displaystyle \begin{aligned} \push{x_{ss}(t)} &= \sum_{n=1,3,5,\dots}^{\infty} \frac{\push{b_n}}{\sqrt{(\nat{\omega_0^2} - \push{n^2})^2 + \damp{(cn)^2}}}\sin(nt - \phi_n), \\ \text{where } \tan\phi_n &= \frac{\damp{cn}}{\nat{\omega_0^2} - \push{n^2}} \end{aligned}

To find the full solution, always write the full series. To tell what frequency the mass visibly vibrates at when damping is small, divide each harmonic's coefficient by its divisor and pick the largest result: a harmonic whose frequency lands very close to ω0\nat{\omega_0} has a tiny divisor and wins by far.

5

Practice

1

Find the particular solution xp(t)\push{x_p(t)} to x′′+25x=10sin⁡(3t)+6sin⁡(5t)x'' + \nat{25}x = \push{10\sin(3t)} + \push{6\sin(5t)}.

Compare each wave's input frequency to the natural frequency ω0=25\nat{\omega_0} = \sqrt{25}: which wave passes through the normal ω02−ω2\nat{\omega_0^2} - \push{\omega^2} filter, and which one gives zero in the denominator?

The natural frequency is ω0=5\nat{\omega_0} = 5. For the first wave 10sin⁡(3t)\push{10\sin(3t)}, the filter divides its coefficient by Natural2−Input2=25−32=16\nat{\text{Natural}^2} - \push{\text{Input}^2} = \nat{25} - \push{3^2} = 16 (be careful to square the input frequency 3\push{3}; dividing by 25−3=2225 - 3 = 22 gives the wrong coefficient 511\frac{5}{11}):
1025−32sin⁡(3t)\displaystyle \frac{\push{10}}{\nat{25} - \push{3^2}}\sin(3t) =58sin⁡(3t)\displaystyle = \frac{5}{8}\sin(3t)
The second wave 6sin⁡(5t)\push{6\sin(5t)} matches ω0=5\nat{\omega_0} = 5 (25−52=0\nat{25} - \push{5^2} = \reszero{0}), so it switches to the resonant response −F02ω0tcos⁡(ω0t)-\frac{\push{F_0}}{2\nat{\omega_0}}t\cos(\nat{\omega_0} t) (watch the denominator 2ω0=2(5)=102\nat{\omega_0} = 2(\nat{5}) = 10 and the minus sign with cosine; dividing by ω02=25\nat{\omega_0^2} = 25 instead of 2ω02\nat{\omega_0} gives −625tcos⁡(5t)-\frac{6}{25}t\cos(5t)):
−62(5)tcos⁡(5t)\displaystyle -\frac{\push{6}}{2(\nat{5})}t\cos(5t) =−35tcos⁡(5t)\displaystyle = -\frac{3}{5}t\cos(5t)
Adding the two responses together gives:
xp(t)\displaystyle \push{x_p(t)} =58sin⁡(3t)−35tcos⁡(5t)\displaystyle = \frac{5}{8}\sin(3t) - \frac{3}{5}t\cos(5t)
2

Does the undamped system x′′+16x=SquareWave(t)x'' + \nat{16}x = \push{\text{SquareWave}(t)}, where SquareWave(t)=∑n=1,3,5,…∞4nπsin⁡(nt)\push{\text{SquareWave}(t)} = \sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt), resonate? Find the full solution x(t)\total{x(t)}.

The natural frequency is ω0=4\nat{\omega_0} = 4. Look at the summation index n=1,3,5,…n = 1, 3, 5, \dots. Is n=4n = 4 actually in the series?

No, it does not resonate. Even though ω0=4\nat{\omega_0} = 4 is a whole number, the square wave only contains odd harmonics (n=1,3,5,…n = 1, 3, 5, \dots), so 16−n2\nat{16} - \push{n^2} is never zero for any term in the sum (do not pull out a nonexistent n=4n = 4 term to write −18πtcos⁡(4t)-\frac{1}{8\pi}t\cos(4t)). Filtering every term inside the sum by 16−n2\nat{16} - \push{n^2} and remembering to include the undamped free oscillation xh(t)\nat{x_h(t)} at ω0=4\nat{\omega_0} = 4 (leaving off xh(t)\nat{x_h(t)} gives only xp(t)\push{x_p(t)}) gives:
x(t)\displaystyle \total{x(t)} =c1cos⁡(4t)+c2sin⁡(4t)+∑n=1,3,5,…∞4nπ(16−n2)sin⁡(nt)\displaystyle = \nat{c_1\cos(4t) + c_2\sin(4t)} + \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi(\nat{16} - n^2)}\sin(nt)}
3

Find the full solution x(t)\total{x(t)} to x′′+25x=SquareWave(t)x'' + \nat{25}x = \push{\text{SquareWave}(t)}, where SquareWave(t)=∑n=1,3,5,…∞4nπsin⁡(nt)\push{\text{SquareWave}(t)} = \sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt).

Which odd harmonic nn makes the filter divisor 25−n2\nat{25} - \push{n^2} equal to zero, and how do you handle that term separately from the rest of the sum?

The filter denominator 25−n2\nat{25} - \push{n^2} equals zero at the odd harmonic n=5n = 5. Pulling the n=5n = 5 term F0sin⁡(5t)=45πsin⁡(5t)\push{F_0\sin(5t)} = \frac{4}{5\pi}\sin(5t) out of the sum and converting it to −F02ω0tcos⁡(ω0t)-\frac{\push{F_0}}{2\nat{\omega_0}}t\cos(\nat{\omega_0} t) (be sure to include the 55 in the coefficient F0=45π\push{F_0} = \frac{4}{5\pi}; using F0=4πF_0 = \frac{4}{\pi} gives the wrong resonant term −25πtcos⁡(5t)-\frac{2}{5\pi}t\cos(5t)) gives:
−45π2(5)tcos⁡(5t)\displaystyle -\frac{\push{\tfrac{4}{5\pi}}}{2(\nat{5})}t\cos(5t) =−225πtcos⁡(5t)\displaystyle = -\frac{2}{25\pi}t\cos(5t)
Filtering the remaining n≠5n \neq 5 harmonics by 25−n2\nat{25} - \push{n^2} and adding the homogeneous solution at ω0=5\nat{\omega_0} = 5 gives:
x(t)=c1cos⁡(5t)+c2sin⁡(5t)−225πtcos⁡(5t)+∑n=1,3,7,…n≠5∞4nπ(25−n2)sin⁡(nt)\displaystyle \begin{aligned} \total{x(t)} &= \nat{c_1\cos(5t) + c_2\sin(5t)} - \push{\frac{2}{25\pi}t\cos(5t)} \\ &\quad + \push{\sum_{\substack{n=1,3,7,\dots \\ n \neq 5}}^{\infty} \frac{4}{n\pi(\nat{25} - n^2)}\sin(nt)} \end{aligned}
4

For the damped oscillator x′′+0.2x′+25x=∑n=1,3,5,…∞4nπsin⁡(nt)x'' + \damp{0.2x'} + \nat{25}x = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}, write the steady-state motion xss(t)\push{x_{ss}(t)} in sigma notation and find the exact amplitude of the n=5n = 5 harmonic in xss(t)\push{x_{ss}(t)}.

With damping c=0.2\damp{c} = 0.2, what remains inside the damped divisor (25−n2)2+(0.2n)2\sqrt{(\nat{25} - \push{n^2})^2 + \damp{(0.2n)^2}} when n=5n = 5 makes 25−n2=0\nat{25} - \push{n^2} = \reszero{0}?

Because damping makes xh(t)\nat{x_h(t)} die out and prevents division by zero, all harmonics stay inside the sum:
xss(t)=∑n=1,3,5,…∞4nπ(25−n2)2+(0.2n)2sin⁡(nt−ϕn),where tan⁡ϕn=0.2n25−n2\displaystyle \begin{aligned} \push{x_{ss}(t)} &= \sum_{n=1,3,5,\dots}^{\infty} \frac{\push{\tfrac{4}{n\pi}}}{\sqrt{(\nat{25} - \push{n^2})^2 + \damp{(0.2n)^2}}}\sin(nt - \phi_n), \\ \text{where } \tan\phi_n &= \frac{\damp{0.2n}}{\nat{25} - \push{n^2}} \end{aligned}
At n=5n = 5, (25−52)2=0(\nat{25} - \push{5^2})^2 = \reszero{0}, and the divisor simplifies to 0+(0.2×5)2=1\sqrt{0 + \damp{(0.2 \times 5)^2}} = 1 (do not forget the factor of n=5n = 5 in cn=0.2(5)\damp{cn} = 0.2(5); dividing by c=0.2\damp{c} = 0.2 alone gives the wrong amplitude 4π\frac{4}{\pi}). Dividing the n=5n = 5 input coefficient 45π\push{\frac{4}{5\pi}} by 11 gives the amplitude:
45π\displaystyle \frac{4}{5\pi}
5

A lightly damped spring satisfies x′′+0.05x′+48x=∑n=1,3,5,…∞4nπsin⁡(nt)x'' + \damp{0.05x'} + \nat{48}x = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(nt)}. Does any harmonic make ω02−n2=0\nat{\omega_0^2} - \push{n^2} = \reszero{0}? Which harmonic dominates the steady-state motion, and approximately what frequency will you see the mass vibrating at?

Compare n2\push{n^2} for the odd harmonics n=1,3,5,7,…n = 1, 3, 5, 7, \dots to ω02=48\nat{\omega_0^2} = 48: which odd integer nn comes closest to making 48−n2\nat{48} - \push{n^2} zero?

No harmonic makes 48−n2=0\nat{48} - \push{n^2} = \reszero{0} because ω0=48≈6.93\nat{\omega_0} = \sqrt{48} \approx 6.93 is not an integer. Checking the odd harmonics near 6.936.93 (do not pick the even integer n=6n = 6, which is absent from the series, or assume the base frequency n=1n = 1 dominates just because no harmonic equals 48\sqrt{48} exactly), the n=7n = 7 harmonic makes (48−72)2=1(\nat{48} - \push{7^2})^2 = 1, giving a tiny filter divisor of 1+(0.05×7)2≈1.06\sqrt{1 + \damp{(0.05 \times 7)^2}} \approx 1.06 compared to ≈23\approx 23 for n=5n = 5 and ≈47\approx 47 for n=1n = 1. Therefore, the n=7n = 7 harmonic dominates, and the mass vibrates at approximately:
7 radians per second\displaystyle 7\text{ radians per second}
6

Suppose the square wave is pushed twice as fast, so that x′′+36x=∑n=1,3,5,…∞4nπsin⁡(2nt)x'' + \nat{36}x = \push{\sum_{n=1,3,5,\dots}^{\infty} \frac{4}{n\pi}\sin(2nt)}. Find which harmonic nn triggers resonance and write the full solution x(t)\total{x(t)}.

Look inside sin⁡(2nt)\push{\sin(2nt)}: the input frequency of the nnth wave is 2n\push{2n}, not nn. What is Natural2−Input2\nat{\text{Natural}^2} - \push{\text{Input}^2} in terms of nn?

The nnth wave sin⁡(2nt)\push{\sin(2nt)} has input frequency 2n\push{2n}, so the filter divides each coefficient by Natural2−Input2=36−(2n)2=36−4n2\nat{\text{Natural}^2} - \push{\text{Input}^2} = \nat{36} - \push{(2n)^2} = \nat{36} - \push{4n^2} (writing 36−n236 - n^2 misses the factor of 22 inside sin⁡(2nt)\sin(2nt) and falsely suggests n=6n = 6 is needed). Setting 36−4n2=0\nat{36} - \push{4n^2} = \reszero{0} gives 2n=6\push{2n} = 6, so resonance occurs at the odd harmonic n=3n = 3, which is the input term 43πsin⁡(6t)\push{\frac{4}{3\pi}\sin(6t)}.
Pulling out n=3n = 3 and converting 43πsin⁡(6t)\push{\frac{4}{3\pi}\sin(6t)} with ω0=6\nat{\omega_0} = 6 (be sure to divide by 2ω0=2(6)=122\nat{\omega_0} = 2(\nat{6}) = 12, not 2n=62n = 6, which would give −29πtcos⁡(6t)-\frac{2}{9\pi}t\cos(6t)) gives −43π2(6)tcos⁡(6t)=−19πtcos⁡(6t)-\frac{\push{\tfrac{4}{3\pi}}}{2(\nat{6})}t\cos(6t) = -\frac{1}{9\pi}t\cos(6t), and the full solution is:
x(t)=c1cos⁡(6t)+c2sin⁡(6t)−19πtcos⁡(6t)+∑n=1,5,7,…n≠3∞4nπ(36−4n2)sin⁡(2nt)\displaystyle \begin{aligned} \total{x(t)} &= \nat{c_1\cos(6t) + c_2\sin(6t)} - \push{\frac{1}{9\pi}t\cos(6t)} \\ &\quad + \push{\sum_{\substack{n=1,5,7,\dots \\ n \neq 3}}^{\infty} \frac{4}{n\pi(\nat{36} - 4n^2)}\sin(2nt)} \end{aligned}