7.6 Normal Modes and Fourier Series

Consider a standing wave y(x,t)=Aei(kxωt)+Bei(kx+ωt) on a string clamped at both ends. Suppose the string runs from x=0 to x=L, then at the boundaries we have y(0,t)=y(L,t)=0. Applying the left boundary condition to the standing wave, we get

y(0,t)=𝔢(Aeiωt+Beiωt)=0 (7.82)
Acos(ωt)+Bcos(ωt)=0 (7.83)
A=B. (7.84)

This makes physical sense because as we have seen above, wave pulses invert at fixed boundaries. For the right boundary condition, we get

y(L,t) =𝔢(A[ei(kLωt)ei(kL+ωt)]) (7.85)
=𝔢(AeikL[eiωteiωt2isin(ωt)]) (7.86)
=2Asin(kL)sin(ωt)=0 (7.87)
sin(kL)=0 (7.88)

sin(kL)=0 implies that kL=nπ, so we can write the standing wave in the form

y(x,t)=Asin(knx)cos(ωnt+ϕ0), (7.90)

where

kn=nπL,ωn=nπvL. (7.91)

Note that wavelength is related to angular wavenumber by λ=2πk, so λn=2πkn=2Ln. These allowed wavenumbers/frequencies are the normal modes of vibration for the string clamped at both ends.

7.6.1 Fourier Series

Recall in chapter 6 we discussed exciting all the frequencies of a system at once using the impulse method. If we pluck the string, multiple normal modes are excited. The resulting motion of the string is a superposition of the normal modes, given by

y(x,t)=nAnsin(knx)cos(ωnt). (7.92)

We have chosen cos instead of sin here for the temporal part because the displacement is maximal at t=0. It makes no difference to the physics which one we choose. At t=0, we have

y(x,0)=nAnsin(nπLx). (7.93)

If we can calculate all the An’s, we can determine the subsequent motion of the string. But there may be infinitely many An’s! Luckily, we can use a mathematical tool called Fourier series which makes the calculation of all of them straightforward.

If we have a periodic function (for simplicity we can assume the period is 2π, since we can stretch or shrink it otherwise), it is (almost) always possible to represent it as an infinite series of sines and cosines.

f(x)=12a0+j=1ajcos(jx)+j=1bjsin(jx). (7.94)

Using some convenient properties of integrals of sines and cosines, there is a simple method to calculate what the coefficients aj and bj should be for any function f(x). We can see how this will help us solve our problem of representing a wave pulse as a sum of normal modes.

Specifically, we will make use of the following three integrals:

ππsin(mx)sin(nx)dx={0 if mnπ if m=n (7.95)
ππcos(mx)cos(nx)dx={0 if mnπ if m=n (7.96)
ππsin(mx)cos(nx)dx=0m,n. (7.97)

Now consider multiplying equation 7.94 by cos(nx) and integrating from π to π. We get

ππcos(nx)f(x)dx=12a0ππcos(nx)dx+j=1ajππcos(nx)cos(jx)dx+j=1bjππsin(nx)cos(jx)dx=0 (7.98)
=12a0ππcos(nx)dx+j=1ajππcos(nx)cos(jx)dx. (7.99)

If n=0 we get

ππcos(0)f(x)dx=12a0ππcos(0)dx=πa0. (7.100)

Whereas if n>0 we find

piπcos(nx)f(x)dx=j=1ajππcos(nx)cos(jx)dx. (7.101)

All the terms on the right-hand side are zero except the one where j=n, where the result will be πan. So we have found formula for a0 and an, they are

a0 =1πππf(x)dx (7.102)
an =1πππcos(nx)f(x)dx. (7.103)

Similarly, if we multiply by sin(nx) and integrate from π to π we find

bn=1πππsin(nx)f(x)dx. (7.104)

More generally, if a function has a period P, then we can adjust the periods of sine and cosine and the formulae for the coefficients as follows:

f(x) =12a0+j=1ajcos(2πnPx)+j=1bjsin(2πnPx) (7.105)
a0 =2PP2P2f(x)dx (7.106)
an =2PP2P2cos(2πnPx)f(x)dx (7.107)
bn =2PP2P2sin(2πnPx)f(x)dx. (7.108)

In fact, the integrals don’t necessarily have to be from P2 to P2, as long as they go over one full period. We can choose the most convenient range to integrate over.

Note that if a function is odd (f(x)=f(x)), the Fourier series will only contain sine terms. Likewise, if a function is even (f(x)=f(x)) its Fourier series will only contain cosine terms. This is because sine is an odd function and cosine is even.

Example 7.6.

Find the Fourier series of a square wave of amplitude d and period P, which has the form

f(x)={d,P2<x<0d,0<x<P2 (7.109)

on the domain [P2,P2]. Outside of this domain it repeats periodically.

We have defined the square wave above as an odd function, so there should be no cosine terms. We can show this explicitly by calculating the an coefficients:

an =2PP2P2cos(2πnPx)f(x)dx (7.110)
=2P[P20dcos(2πnPx)dx+0P2dcos(2πnPx)dx] (7.111)
=2dP[0P2cos(2πnPx)dxP20cos(2πnPx)dx]=0 since cos(x)=cos(x). (7.112)

Now calculating the bn coefficients, we find

bn =2PP2P2sin(2πnPx)f(x)dx (7.113)
=2P[P20dsin(2πnPx)dx+0P2dsin(2πnPx)dx] (7.114)
=2dP[0P2sin(2πnPx)dxP20sin(2πnPx)dx] (7.115)
=2dP([P2πncos(2πnPx)]P20[P2πncos(2πnPx)]0P2) (7.116)
=dπn([1cos(πn)][cos(πn)1]) (7.117)
=2dπn[1cos(πn)]. (7.118)

If n is even then cos(πn)=1 and if n is odd then cos(πn)=1, so we get

bn={0 if n is even4dπn if n is odd. (7.119)

Therefore the Fourier series for the square wave consists only of sine terms with odd n. The first few terms are

f(x)=4dπsin(2πPx)+4d3πsin(6πPx)+4d5πsin(10πPx)+. (7.120)

7.6.2 Motion of a Plucked String

Let’s now apply this amazing mathematical technique to the motion of a plucked string clamped at both ends. We know that the initial displacement of the string is given by equation 7.93, and we want to find the An’s. However, the displacement of the string is not periodic in x because the string is finite in length! How we can find a Fourier series? We can just find a Fourier series for a periodic function that matches our string in the range 0 to L. Really, what we are asking is “what normal modes are excited when we pluck the string”, so we actually want our Fourier series to contain only the normal modes. Since λ1=2L, our periodic representation of the string must have period 2L otherwise the Fourier series won’t contain the fundamental mode. Note that it must also be an odd function, because the initial conditions for the string only contains sines. With these constraints, we end up with the following function:

y(x,0)={4dxL,0<x<L44d3(1xL),L4<x<L, (7.121)

where d is the maximum initial displacement of the string. Using the formula for the Fourier coefficients with y(x) as the periodic extension of y(x,0), we get

An =1LLLsin(2πλnx)oddy(x)odddx (7.122)
=2L0Lsin(2πλnx)y(x)dx (7.123)
=2L0Lsin(2πλnx)y(x,0)dx. (7.124)

The second line follows because two odd functions multiplied together make an even function, so we can cut the range of the integral in half and double the result. The last line follows because y(x)=y(x,0) on the domain [0,L], so actually only the initial displacement between 0 and L matters! Now we can find the An’s:

An=8dL20L4xsin(nπLx)dx+8d3LL4Lsin(nπLx)dx8d3L2L4Lxsin(nπLx)dx. (7.125)

We can solve these integrals using the following results

sin(nπLx)dx =Lnπcos(nπLx)+c (7.126)
xsin(nπLx)dx =L2n2π2sin(nπLx)Lxnπcos(nπLx). (7.127)

So we find

An=8d[1n2π2sin(nπ4)14πncos(nπ4)]+8d3[1nπcos(nπ4)1nπcos(nπ)]+8d3[1nπcos(nπ)+1n2π2sin(nπ4)14πncos(nπ4)]. (7.128)

The cosine terms all cancel out, and we are left with

An=32d3n2π2sin(nπ4). (7.129)

sin(nπ4) follows the repeating sequence 12, 1, 12, 0, 12, 1, 12, 0…, so the first few terms of the Fourier series are

y(x,0)=32d3π2[12sin(πLx)+14sin(2πLx)+192+sin(3πLx)1252sin(5πLx)136sin(6πLx)1492sin(7πLx)+] (7.130)

We can plot the frequency spectrum of y(x,0), which is a plot showing An against n. We see that the lowest n are the largest components, and they can smaller as n increases. The gaps in the frequency spectrum are where the modes have a node at the point where the string was plucked. This means that because of where we chose to pluck the string, the resulting vibration will not contain any of those frequencies at all.

With damping effects, we find that all of the normal modes decay away, with the higher frequency modes decaying faster.