Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

4.5 Applications of Fourier Series

Periodically Forced Oscillation

Let us return to the forced oscillations. Consider a mass-spring system as before, where we have a mass mm on a spring with spring constant kk, with damping cc, and a force F(t)F(t) applied to the mass. Suppose the forcing function F(t)F(t) is 2L2L-periodic for some L>0L>0. We have already seen this problem in chapter 2 with a simple F(t)F(t).

Diagram of a block m joined to a fixed wall by a spring k, with a bold arrow labelled F of t pushing right on the block and damping c marked along the surface beneath.
Figure 1\PageIndex{1}

The equation that governs this particular setup is

m x ( t ) + c x ( t ) + k x ( t ) = F ( t ) . \label{eq:1} mx''(t)+cx'(t)+kx(t)=F(t).

(4.5.1)

The general solution consists of (4.5.1) consists of the complementary solution xcx_c, which solves the associated homogeneous equation mx+cx+kx=0mx''+cx'+kx=0, and a particular solution of Equation (4.5.1) we call xpx_p. For c>0c>0, the complementary solution xcx_c will decay as time goes by. Therefore, we are mostly interested in a particular solution xpx_p that does not decay and is periodic with the same period as F(t)F(t). We call this particular solution the steady periodic solution and we write it as xspx_{sp} as before. What will be new in this section is that we consider an arbitrary forcing function F(t)F(t) instead of a simple cosine.

For simplicity, let us suppose that c=0c=0. The problem with c>0c>0 is very similar. The equation

m x + k x = 0 mx''+kx=0 \nonumber

has the general solution

x ( t ) = A cos ( ω 0 t ) + B sin ( ω 0 t ) , x(t)= A \cos(\omega_0 t)+ B \sin(\omega_0 t), \nonumber

where ω0=km\omega_0= \sqrt{\dfrac{k}{m}}. Any solution to mx(t)+kx(t)=F(t)mx''(t)+kx(t)=F(t) is of the form Acos(ω0t)+Bsin(ω0t)+xspA \cos(\omega_0 t)+ B \sin(\omega_0 t)+x_{sp}. The steady periodic solution xspx_{sp} has the same period as F(t)F(t).

In the spirit of the last section and the idea of undetermined coefficients we first write

F ( t ) = c 0 2 + n = 1 c n cos ( n π L t ) + d n sin ( n π L t ) . F(t)= \dfrac{c_0}{2}+ \sum^{\infty}_{n=1} c_n \cos \left(\dfrac{n \pi}{L}t \right)+ d_n \sin \left(\dfrac{n \pi}{L}t \right). \nonumber

Then we write a proposed steady periodic solution xx as

x ( t ) = a 0 2 + n = 1 a n cos ( n π L t ) + b n sin ( n π L t ) , x(t)= \dfrac{a_0}{2}+ \sum^{\infty}_{n=1} a_n \cos \left(\dfrac{n \pi}{L}t \right)+ b_n \sin \left(\dfrac{n \pi}{L}t \right), \nonumber

where ana_n and bnb_n are unknowns. We plug xx into the differential equation and solve for ana_n and bnb_n in terms of cnc_n and dnd_n. This process is perhaps best understood by example.

Resonance

Just like when the forcing function was a simple cosine, resonance could still happen. Let us assume c=0c=0 and we will discuss only pure resonance. Again, take the equation

m x ( t ) + k x ( t ) = F ( t ) . mx''(t)+kx(t)=F(t). \nonumber

When we expand F(t)F(t) and find that some of its terms coincide with the complementary solution to mx+kx=0mx''+kx=0, we cannot use those terms in the guess. Just like before, they will disappear when we plug into the left hand side and we will get a contradictory equation (such as 0=10=1). That is, suppose

x c = A cos ( ω 0 t ) + B sin ( ω 0 t ) , x_c=A \cos(\omega_0 t)+B \sin(\omega_0 t), \nonumber

where ω0=NπL\omega_0= \dfrac{N \pi}{L} for some positive integer NN. In this case we have to modify our guess and try

x ( t ) = a 0 2 + t ( a N cos ( N π L t ) + b N sin ( N π L t ) ) + n = 1 n N a n cos ( n π L t ) + b n sin ( n π L t ) . x(t)= \dfrac{a_0}{2}+t \left( a_N \cos \left( \dfrac{N \pi}{L}t \right)+ b_N \sin \left( \dfrac{N \pi}{L}t \right) \right) + \sum_{\underset{n \neq N}{n=1}}^{\infty} a_n \cos \left( \dfrac{n \pi}{L}t \right)+ b_n \sin \left( \dfrac{n \pi}{L}t \right). \nonumber

In other words, we multiply the offending term by tt. From then on, we proceed as before.

Of course, the solution will not be a Fourier series (it will not even be periodic) since it contains these terms multiplied by tt. Further, the terms t(aNcos(NπLt)+bNsin(NπLt))t \left( a_N \cos \left( \dfrac{N \pi}{L}t \right)+ b_N \sin \left( \dfrac{N \pi}{L}t \right) \right) will eventually dominate and lead to wild oscillations. As before, this behavior is called pure resonance or just resonance.

Note that there now may be infinitely many resonance frequencies to hit. That is, as we change the frequency of FF (we change LL), different terms from the Fourier series of FF may interfere with the complementary solution and will cause resonance. However, we should note that since everything is an approximation and in particular cc is never actually zero but something very close to zero, only the first few resonance frequencies will matter.

As km=18π22=3π\sqrt{\frac{k}{m}}=\sqrt{\frac{18\pi ^{2}}{2}}=3\pi, the solution to (4.5.2) is

x ( t ) = c 1 cos ( 3 π t ) + c 2 sin ( 3 π t ) + x p ( t ) x(t)= c_1 \cos(3 \pi t)+ c_2 \sin(3 \pi t)+x_p(t) \nonumber

for some particular solution xpx_p.

If we just try an xpx_{p} given as a Fourier series with sin(nπt)\sin (n\pi t) as usual, the complementary equation, 2x+18π2x=02x''+18\pi^{2}x=0, eats our 3rd3^{\text{rd}} harmonic. That is, the term with sin(3πt)\sin (3\pi t) is already in in our complementary solution. Therefore, we pull that term out and multiply it by tt. We also add a cosine term to get everything right. That is, we try

x p ( t ) = a 3 t cos ( 3 π t ) + b 3 t sin ( 3 π t ) + n = 1 n o d d n 3 b n sin ( n π t ) . x_p(t)= a_3 t \cos(3 \pi t) + b_3 t \sin(3 \pi t) + \sum^{\infty}_{ \underset{\underset{n \neq 3}{n ~\rm{odd}}}{n=1} } b_n \sin(n \pi t). \nonumber

Let us compute the second derivative.

x p ( t ) = 6 a 3 π sin ( 3 π t ) 9 π 2 a 3 t cos ( 3 π t ) + 6 b 3 π cos ( 3 π t ) 9 π 2 b 3 t sin ( 3 π t ) + n = 1 n o d d n 3 ( n 2 π 2 b n ) sin ( n π t ) . x_p''(t)= -6a_3 \pi \sin(3 \pi t) -9 \pi^2 a_3 t \cos(3 \pi t) + 6b_3 \pi \cos(3 \pi t) -9 \pi^2 b_3 t \sin(3 \pi t) +\sum^{\infty}_{ \underset{\underset{n \neq 3}{n ~\rm{odd}}}{n=1} } (-n^2 \pi^2 b_n) \sin(n \pi t). \nonumber

We now plug into the left hand side of the differential equation.

2 x p + 18 π 2 x p = 12 a 3 π sin ( 3 π t ) 18 π 2 a 3 t cos ( 3 π t ) + 12 b 3 π cos ( 3 π t ) 18 π 2 b 3 t sin ( 3 π t ) + 18 π 2 a 3 t cos ( 3 π t ) + 18 π 2 b 3 t sin ( 3 π t ) + n = 1 n odd n = 3 } } ( 2 n 2 π 2 b n + 18 π 2 b n ) sin ( n π t ) . \begin{align}\begin{aligned} 2x_p'' + 18\pi^2 x_p = & - 12 a_3 \pi \sin (3 \pi t) - 18\pi^2 a_3 t \cos (3 \pi t) + 12 b_3 \pi \cos (3 \pi t) - 18\pi^2 b_3 t \sin (3 \pi t) \\ & \phantom{\, - 12 a_3 \pi \sin (3 \pi t)} ~ {} + 18 \pi^2 a_3 t \cos (3 \pi t) \phantom{\, + 12 b_3 \pi \cos (3 \pi t)} ~ {} + 18 \pi^2 b_3 t \sin (3 \pi t) \\ & {} + \sum_{\substack{n=1 \\ n~\text{odd} \\ n\not= 3}}^\infty (-2n^2 \pi^2 b_n + 18\pi^2 b_n) \, \sin (n \pi t). \end{aligned}\end{align} \nonumber

If we simplify we obtain

2 x p + 18 π 2 x = 12 a 3 π sin ( 3 π t ) + 12 b 3 π cos ( 3 π t ) + n = 1 n o d d n 3 ( 2 n 2 π 2 b n + 18 π 2 b n ) sin ( n π t . ) 2x_p'' +18 \pi^2 x= -12a_3 \pi \sin(3 \pi t)+ 12b_3 \pi \cos(3 \pi t) +\sum^{\infty}_{ \underset{\underset{n \neq 3}{n ~\rm{odd}}}{n=1} } (-2n^2 \pi^2 b_n+ 18 \pi^2 b_n) \sin(n \pi t.) \nonumber

This series has to equal to the series for F(t)F(t). We equate the coefficients and solve for a3a_3 and bnb_n.

a 3 = 4 / ( 3 π ) 12 π = 1 9 π 2 , b 3 = 0 , b n = 4 n π ( 18 π 2 2 n 2 π 2 ) = 2 π 3 n ( 9 n 2 ) f o r n o d d a n d n 3 . \begin{align}\begin{aligned} a_3 &= \frac{4/(3 \pi)}{-12 \pi}= \frac{-1}{9 \pi^2}, \\ b_3 &= 0, \\ b_n &= \frac{4}{n \pi(18 \pi^2 -2n^2 \pi^2)}=\frac{2}{\pi^3 n(9-n^2 )} ~~~~~~ {\rm{for~}} n {\rm{~odd~and~}} n \neq 3.\end{aligned}\end{align} \nonumber

That is,

x p ( t ) = 1 9 π 2 t cos ( 3 π t ) + n = 1 n o d d n 3 2 π 3 n ( 9 n 2 ) sin ( n π t . ) x_p(t)= \frac{-1}{9 \pi^2}t \cos(3 \pi t)+ \sum^{\infty}_{ \underset{\underset{n \neq 3}{n ~\rm{odd}}}{n=1} } \frac{2}{\pi^3 n(9-n^2)} \sin(n \pi t.) \nonumber

When c>0c>0, you will not have to worry about pure resonance. That is, there will never be any conflicts and you do not need to multiply any terms by tt. There is a corresponding concept of practical resonance and it is very similar to the ideas we already explored in Chapter 2. Basically what happens in practical resonance is that one of the coefficients in the series for xspx_{sp} can get very big. We will not go into details here.

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.