Login
📚 Differential Equations for Engineers
Chapters ▾
⇩ 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 m on a spring with spring constant k, with damping c, and a force F(t) applied to the mass. Suppose the forcing function F(t) is 2L-periodic for some L>0. We have already seen this problem in chapter 2 with a simple 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

The equation that governs this particular setup is

m x ( t ) + c x ( t ) + k x ( t ) = F ( t ) .

(4.5.1)

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

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

m x + k x = 0

has the general solution

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

where ω0=km. Any solution to mx(t)+kx(t)=F(t) is of the form Acos(ω0t)+Bsin(ω0t)+xsp. The steady periodic solution xsp has the same period as 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 ) .

Then we write a proposed steady periodic solution x as

x ( t ) = a 0 2 + n = 1 a n cos ( n π L t ) + b n sin ( n π L t ) ,

where an and bn are unknowns. We plug x into the differential equation and solve for an and bn in terms of cn and dn. 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=0 and we will discuss only pure resonance. Again, take the equation

m x ( t ) + k x ( t ) = F ( t ) .

When we expand F(t) and find that some of its terms coincide with the complementary solution to mx+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=1). That is, suppose

x c = A cos ( ω 0 t ) + B sin ( ω 0 t ) ,

where ω0=NπL for some positive integer N. 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 ) .

In other words, we multiply the offending term by t. 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 t. Further, the terms t(aNcos(NπLt)+bNsin(NπLt)) 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 F (we change L), different terms from the Fourier series of F may interfere with the complementary solution and will cause resonance. However, we should note that since everything is an approximation and in particular c is never actually zero but something very close to zero, only the first few resonance frequencies will matter.

As km=18π22=3π, the solution to (4.5.2) is

x ( t ) = c 1 cos ( 3 π t ) + c 2 sin ( 3 π t ) + x p ( t )

for some particular solution xp.

If we just try an xp given as a Fourier series with sin(nπt) as usual, the complementary equation, 2x+18π2x=0, eats our 3rd harmonic. That is, the term with sin(3πt) is already in in our complementary solution. Therefore, we pull that term out and multiply it by t. 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 ) .

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 ) .

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 ) .

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 . )

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

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 .

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 . )

When c>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 t. 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 xsp can get very big. We will not go into details here.

Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.