[Notes on Diffy Qs home] [PDF version] [Buy cheap paperback version]

[next] [prev] [prev-tail] [tail] [up]

5.3 Steady periodic solutions

Note: 1–2 lectures, §10.3 in [EP], not in [BD]

5.3.1 Forced vibrating string.

Suppose that we have a guitar string of length L . We have studied the wave equation problem in this case, where x was the position on the string, t was time and y was the displacement of the string. See Figure 5.3.


PIC

Figure 5.3: Vibrating string.


The problem is governed by the equations

ytt = a2yxx, y(0,t) = 0, y(L,t) = 0, y(x,0) = f(x), yt(x,0) = g (x).
(5.6)

We saw previously that the solution is of the form

 ∑∞ ( (nπa ) (nπa )) (nπ ) y = An cos -L-t + Bn sin -L--t sin L-x , n=1

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

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) = F0 cos(ωt ) as force per unit mass. Then our wave equation becomes (remember force is mass times acceleration)

 2 ytt = a yxx + F 0cos(ωt),
(5.7)

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, yt(x,0) = 0.
(5.8)

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

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

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

Exercise 5.3.1: Check that y = y + y c p solves (5.7) and the side conditions (5.8).

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

yp(x,t) = X (x )cos(ωt ).

We plug in to get

- ω2X cos(ωt) = a2X′′cos(ωt) + F 0cos(ωt),

or - ω 2X = a2X′′ + F 0 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

 (ω ) (ω ) F X (x) = A cos --x + B sin--x - -02. a a ω

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

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

or A = F02 ω , and also

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

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

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

Therefore,

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

The particular solution y p we are looking for is

|-------------(--------------(--)----------------)---------| | F0 ||| (ω ) cos ωLa - 1 (ω ) ||| | | yp(x,t) = -2-|||(cos --x - -----(ωL)--sin --x - 1|||)cos(ωt). | | ω a sin a- a | ------------------------------------------------------------

Exercise 5.3.2: Check that yp works.

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

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

Example 5.3.1: Let us do the computation for specific values. Suppose F 0 = 1 and ω = 1 and L = 1 and a = 1 . Then

 ( ) cos(1) --1 yp(x,t) = cos(x) - sin(1) sin(x) - 1 cos(t).

Write  cos(1)-1 B = sin(1) for simplicity.

Then plug in t = 0 to get

f(x) = -yp(x,0) = - co sx + Bsinx + 1,

and after differentiating in t we see that  ∂yp g(x) = - ∂t (x,0) = 0 .

Hence to find yc we need to solve the problem

ytt = yxx, y(0,t) = 0, y(1,t) = 0, y(x,0) = - cos x + B sin x + 1, yt(x,0) = 0.
Note that the formula that we use to define y(x, 0) is not odd, hence it is not a simple matter of plugging in to apply the D’Alembert formula directly! You must define F to be the odd, 2-periodic extension of y(x,0) . Then our solution would look like
 F (x + t) + F (x - t) ( cos(1) - 1 ) y(x,t) = ------------------+ cos(x) -----------sin(x) - 1 co s(t). 2 sin(1)
(5.10)


PIC

Figure 5.4: Plot of  F(x+t)+F(x-t) ( cos(1)-1 ) y(x,t) = 2 + cos(x) - sin(1) sin(x) - 1 cos(t) .


It is not hard to compute specific values for an odd extension of a function and hence (5.10) 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 5.4.

5.3.2 Underground temperature oscillations

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


PIC

Figure 5.5: Underground temperature.


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 + A0 cos(ωt ).

For some yearly mean temperature T0 , then 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 T0 - A0 . For simplicity, we will assume that T0 = 0 . The frequency ω is picked depending on the units of t , such that when t = 1y ear , then ωt = 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

ut = kuxx, u(0,t) = A 0cos(ωt).
(5.11)

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

h(x, t) = X(x)eiωt.

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

ht = khxx, h (0,t) = A0eiωt.
(5.12)

Exercise 5.3.3: Suppose h satisfies (5.12). Use Euler’s formula for the complex exponential to check that u = Re h satisfies (5.11).

Substitute h into (5.12).

 iωt ′′iωt iωXe = kX e .

Hence,

kX ′′ - iωX = 0,

or

 ′′ 2 X - α X = 0,

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

 √ -- √ -- X (x ) = Ae -(1+i) ω2kx + Be (1+i) ω2kx.

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 B ⇔ 0 ), while the first term is always bounded. Hence B = 0 .

Exercise 5.3.4: Use Euler’s formula to show that  √ -- e (1+i) ω2kx is unbounded as x → ∞ , while  -(1+i)√-ωx e 2k is bounded as x → ∞ .

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

 √-ω- √ ω- √ ω- √ ω- h(x,t) = A 0e-(1+i) 2kxeiωt = A0e-(1+i) 2kx+iωt = A0e- 2kxei(ωt- 2kx).

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

 √-ω ( ( ∘ --- ) ( ∘ --- )) h(x,t) = A0e- 2kx cos ωt - ω-x + isin ωt - ω-x . 2k 2k

Then finally

 √-ω ( ∘ ω--) u(x,t) = R eh(x,t) = A 0e- 2kxcos ωt - --x . 2k

Yay!

Notice the phase is different at different depths. At depth x 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π----- ---2π-- -7 ω = secondsin ayear = 31,557,341 ≈ 1.99 × 10 . 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  -√-ωx A 0e 2k . 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, A 0 = 15 . Then the maximum temperature variation at 700 centimeters is only ± 0.66∘ Celsius.

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.

5.3.3 Exercises

Exercise 5.3.5: Suppose that the forcing function for the vibrating string is F0 sin(ωt) . Derive the particular solution yp .

Exercise 5.3.6: Take the forced vibrating string. Suppose that L = 1 , a = 1 . Suppose that the forcing function is the square wave that is 1 on the interval 0 < x < 1 and - 1 on the interval - 1 < x < 0 . Find the particular solution. Hint: You may want to use result of Exercise 5.3.5.

Exercise 5.3.7: The units are cgs (centimeters-grams-seconds). For k = 0.005 , ω = 1.9 91 × 10 -7 , A0 = 20 . Find the depth at which the temperature variation is half (± 10 degrees) of what it is on the surface.

Exercise 5.3.8: Derive the solution for underground temperature oscillation without assuming that T 0 = 0 .

Exercise 5.3.101: Take the forced vibrating string. Suppose that L = 1 , a = 1 . Suppose that the forcing function is a sawtooth, that is |x| - 1 2 on - 1 < x < 1 extended periodically. Find the particular solution.

Exercise 5.3.102: The units are cgs (centimeters-grams-seconds). For k = 0.0 1 , ω = 1.991 × 10-7 , A 0 = 2 5 . Find the depth at which the summer is again the hottest point.

2Mythbusters, episode 31, Discovery Channel, originally aired may 18th 2005.