Login
📚 Differential Equations for Engineers
Chapters ▾
⇩ Download ▾

5.3 Steady Periodic Solutions

Forced Vibrating String

Consider a guitar string of length L. We studied this setup in Section 4.7. Let x be the position on the string, t the time, and y the displacement of the string. See Figure 1.

Graph of a vibrating string
Figure 1: Vibrating string.

The problem is governed by the equations

y t t = a 2 y x x , y ( 0 , t ) = 0 , y ( L , t ) = 0 , y ( x , 0 ) = f ( x ) , y t ( x , 0 ) = g ( x ) .

(5.3.1)

We saw previously that the solution is of the form

y = n = 1 ( A n cos ( n π a L t ) + B n sin ( n π a L t ) ) sin ( n π L x ) ,

where An and Bn were determined by the initial conditions. The natural frequencies of the system are the (circular) frequencies nπaL for integers n1.

But these are free vibrations. What if there is an external force acting on the string. Let us assume say air vibrations (noise), for example a second string. Or perhaps a jet engine. For simplicity, assume nice pure sound and assume the force is uniform at every position on the string. Let us say F(t)=F0cos(ωt) as force per unit mass. Then our wave equation becomes (remember force is mass times acceleration)

y t t = a 2 y x x + F 0 cos ( ω t ) ,

(5.3.2)

with the same boundary conditions of course.

We want to find the solution here that satisfies the above equation and

y ( 0 , t ) = 0 ,           y ( L , t ) = 0 ,           y ( x , 0 ) = 0 ,           y t ( x , 0 ) = 0 .

(5.3.3)

That is, the string is initially at rest. First we find a particular solution yp of (5.3.2) that satisfies y(0,t)=y(L,t)=0. We define the functions f and g as

f ( x ) = y p ( x , 0 ) ,           g ( x ) = y p t ( x , 0 ) .

We then find solution yc of (5.3.1). If we add the two solutions, we find that y=yc+yp solves (5.3.2) with the initial conditions.

So the big issue here is to find the particular solution yp. We look at the equation and we make an educated guess

y p ( x , t ) = X ( x ) cos ( ω t ) .

We plug in to get

ω 2 X cos ( ω t ) = a 2 X cos ( ω t ) ,

or ωX=a2X+F0 after canceling the cosine. We know how to find a general solution to this equation (it is a nonhomogeneous constant coefficient equation). The general solution is

X ( x ) = A cos ( ω a x ) + B sin ( ω a x ) F 0 ω 2 .

The endpoint conditions imply X(0)=X(L)=0. So

0 = X ( 0 ) = A F 0 ω 2 ,

or A=F0ω2, and also

0 = X ( L ) = F 0 ω 2 cos ( ω L a ) + B sin ( ω L a ) F 0 ω 2 .

Assuming that sin(ωLa) is not zero we can solve for B to get

B = F 0 ( cos ( ω L a ) 1 ) ω 2 sin ( ω L a ) .

(5.3.4)

Therefore,

X ( x ) = F 0 ω 2 ( cos ( ω a x ) cos ( ω L a ) 1 sin ( ω L a ) sin ( ω a x ) 1 ) .

The particular solution yp we are looking for is

y p ( x , t ) = F 0 ω 2 ( cos ( ω a x ) cos ( ω L a ) 1 sin ( ω L a ) sin ( ω a x ) 1 ) cos ( ω t ) .

Now we get to the point that we skipped. Suppose that sin(ωLa)=0. What this means is that ω is equal to one of the natural frequencies of the system, i.e. a multiple of πaL. We notice that if ω is not equal to a multiple of the base frequency, but is very close, then the coefficient B in (5.3.4) seems to become very large. But let us not jump to conclusions just yet. When ω=nπaL for n even, then cos(ωLa)=1 and hence we really get that B=0. So resonance occurs only when both cos(ωLa)=1 and sin(ωLa)=0. That is when ω=nπaL for odd n.

Function graph showing y = (1/w^2)*(cos(w*x) - ((cos(w)-1)/sin(w))*sin(w*x) - 1) on x in [0, 1] and y = x*(1-x)/2 on x in [0, 1]. Adjustable parameter: Forcing frequency ω (w) = 1 rad/s. Viewing window: x from -0.11 to 1.11, y from -0.38 to 0.38.
The steady periodic shape X(x) of the forced string at t = 0, built from this section's worked example — F₀ = 1, L = 1, a = 1 — with its ω = 1 promoted to a slider. The dashed curve is the steady deflection x(1−x)/2 the string would hold under a constant load; drag ω down to 0.2 and X settles onto it. Drag upward instead and at ω = π the curve flies clean off the frame: resonance. Carry on to 2π, where sin(ωL/a) vanishes exactly as it did at π, and nothing happens — cos(ωL/a) = 1 there kills the numerator too, so the shape passes smoothly through as a shallow dip. 3π blows up again; 4π is quiet again. Resonance really does strike only at odd multiples of πa/L.

We could again solve for the resonance solution if we wanted to, but it is, in the right sense, the limit of the solutions as ω gets close to a resonance frequency. In real life, pure resonance never occurs anyway.

The above calculation explains why a string will begin to vibrate if the identical string is plucked close by. In the absence of friction this vibration would get louder and louder as time goes on. On the other hand, you are unlikely to get large vibration if the forcing frequency is not close to a resonance frequency even if you have a jet engine running close to the string. That is, the amplitude will not keep increasing unless you tune to just the right frequency.

Similar resonance phenomena occur when you break a wine glass using human voice (yes this is possible, but not easyto the power 1) if you happen to hit just the right frequency. Remember a glass has much purer sound, i.e. it is more like a vibraphone, so there are far fewer resonance frequencies to hit.

When the forcing function is more complicated, you decompose it in terms of the Fourier series and apply the above result. You may also need to solve the above problem if the forcing function is a sine rather than a cosine, but if you think about it, the solution is almost the same.

It is not hard to compute specific values for an odd extension of a function and hence (5.3.5) is a wonderful solution to the problem. For example it is very easy to have a computer do it, unlike a series solution. A plot is given in Figure 2.

Underground Temperature Oscillations

Let u(x,t) be the temperature at a certain location at depth x underground at time t. See Figure 3.

The temperature u satisfies the heat equation ut=kuxx, where k is the diffusivity of the soil. We know the temperature at the surface u(0,t) from weather records. Let us assume for simplicity that

u ( 0 , t ) = T 0 + A 0 cos ( ω t ) ,

where T0 is the yearly mean temperature, and t=0 is midsummer (you can put negative sign above to make it midwinter if you wish). A0 gives the typical variation for the year. That is, the hottest temperature is T0+A0 and the coldest is T0A0. For simplicity, we will assume that T0=0. The frequency ω is picked depending on the units of t, such that when t=1, then ωt=2π. For example if t is in years, then ω=2π.

It seems reasonable that the temperature at depth x will also oscillate with the same frequency. This, in fact, will be the steady periodic solution, independent of the initial conditions. So we are looking for a solution of the form

u ( x , t ) = V ( x ) cos ( ω t ) + W ( x ) sin ( ω t ) .

for the problem

u t = k u x x ,             u ( 0 , t ) = A 0 cos ( ω t ) .

(5.3.6)

We will employ the complex exponential here to make calculations simpler. Suppose we have a complex valued function

h ( x , t ) = X ( x ) e i ω t .

We will look for an h such that Reh=u. To find an h, whose real part satisfies (5.3.6), we look for an h such that

h t = k h x x ,             h ( 0 , t ) = A 0 e i ω t .

(5.3.7)

Substitute h into (5.3.7).

i ω X e i ω t = k X e i ω t .

Hence,

k X i ω X = 0 ,

or

X α 2 X = 0 ,

where α=±iωk. Note that ±i=±1=i2 so you could simplify to α=±(1+i)ω2k. Hence the general solution is

X ( x ) = A e ( 1 + i ) ω 2 k x + B e ( 1 + i ) ω 2 k x .

We assume that an X(x) that solves the problem must be bounded as x since u(x,t) should be bounded (we are not worrying about the earth core!). If you use Euler’s formula to expand the complex exponentials, you will note that the second term will be unbounded (if B0), while the first term is always bounded. Hence B=0.

Furthermore, X(0)=A0 since h(0,t)=A0eiωt. Thus A=A0. This means that

h ( x , t ) = A 0 e ( 1 + i ) ω 2 k x e i ω t = A 0 e ( 1 + i ) ω 2 k x + i ω t = A 0 e ω 2 k x e i ( ω t ω 2 k x ) .

We will need to get the real part of h, so we apply Euler’s formula to get

h ( x , t ) = A 0 e ω 2 k x ( cos ( ω t ω 2 k x ) + i sin ( ω t ω 2 k x ) ) .

Then finally

u ( x , t ) = R e h ( x , t ) = A 0 e ω 2 k x cos ( ω t ω 2 k x ) .

Yay!

Notice the phase is different at different depths. At depth the phase is delayed by xω2k. For example in cgs units (centimeters-grams-seconds) we have k=0.005 (typical value for soil), ω=2πseconds in a year=2π31,557,3411.99×107. Then if we compute where the phase shift xω2k=π we find the depth in centimeters where the seasons are reversed. That is, we get the depth at which summer is the coldest and winter is the warmest. We get approximately 700 centimeters, which is approximately 23 feet below ground.

Be careful not to jump to conclusions. The temperature swings decay rapidly as you dig deeper. The amplitude of the temperature swings is A0eω2kx. This function decays very quickly as x (the depth) grows. Let us again take typical parameters as above. We will also assume that our surface temperature swing is ±15 Celsius, that is, A0=15. Then the maximum temperature variation at 700 centimeters is only ±0.66 Celsius.

Function graph showing y = 15*exp(-0.136*x)*cos(w - 0.136*x) on x in [0, 51], y = 15*exp(-0.136*x) on x in [0, 51] and y = -15*exp(-0.136*x) on x in [0, 51]. Adjustable parameter: Time of year (ωt) (w) = 0 rad. Viewing window: x from -2.76 to 50.76, y from -16.55 to 16.55.
The section's own solution — a surface swing of A₀ = 15 °C damped and phase-shifted by √(ω/2k) — plotted against depth in feet with the book's soil value k = 0.005, giving a decay constant of 0.136 per foot. Drag the time-of-year slider from midsummer (ωt = 0) to midwinter (ωt = π) and watch the warm band march downward: past about 12 ft the ground already sits on the opposite side of the axis from the surface, reaching full reversal near 23 ft — the flipped season the text describes. The dashed envelope is the amplitude: it has collapsed to the book's ±0.66 °C by 23 ft and is indistinguishable from zero by 50 ft, which is why a wine cellar works.

You need not dig very deep to get an effective “refrigerator,” with nearly constant temperature. That is why wines are kept in a cellar; you need consistent temperature. The temperature differential could also be used for energy. A home could be heated or cooled by taking advantage of the above fact. Even without the earth core you could heat a home in the winter and cool it in the summer. The earth core makes the temperature higher the deeper you dig, although you need to dig somewhat deep to feel a difference. We did not take that into account above.

Footnotes

[1] Mythbusters, episode 31, Discovery Channel, originally aired may 18th 2005.

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.