## Section 5.3 Steady periodic solutions

### Subsection 5.3.1 Forced vibrating string

Consider a guitar string of length \(L\text{.}\) 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 5.3.

The problem is governed by the wave equation

We found that the solution is of the form

where \(A_n\) and \(B_n\) are determined by the initial conditions. The natural frequencies of the system are the (angular) frequencies \(\frac{n \pi a}{L}\) for integers \(n \geq 1\text{.}\)

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

with the same boundary conditions of course.

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

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

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

#### Exercise 5.3.1.

Check that \(y = y_c + y_p\) solves (5.7) and the side conditions (5.8).

So the big issue here is to find the particular solution \(y_p\text{.}\) We look at the equation and we make an educated guess

We plug in to get

or \(-\omega^2 X = a^2 X'' + 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

The endpoint conditions imply \(X(0) = X(L) = 0\text{.}\) So

or \(A = \frac{F_0}{\omega^2}\text{,}\) and also

Assuming that \(\sin ( \frac{\omega L}{a} )\) is not zero we can solve for \(B\) to get

Therefore,

The particular solution \(y_p\) we are looking for is

#### Exercise 5.3.2.

Check that \(y_p\) works.

Now we get to the point that we skipped. Suppose \(\sin ( \frac{\omega L}{a} ) = 0\text{.}\) What this means is that \(\omega\) is equal to one of the natural frequencies of the system, i.e. a multiple of \(\frac{\pi a}{L}\text{.}\) We notice that if \(\omega\) 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 \(\omega = \frac{n \pi a}{L}\) for \(n\) even, then \(\cos (\frac{\omega L}{a}) = 1\) and hence we really get that \(B=0\text{.}\) So resonance occurs only when both \(\cos (\frac{\omega L}{a}) = -1\) and \(\sin (\frac{\omega L}{a}) = 0\text{.}\) That is when \(\omega = \frac{n \pi a }{L}\) for *odd* \(n\text{.}\)

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 \(\omega\) gets close to a resonance frequency. In real life, pure resonance never occurs anyway.

The calculation above explains why a string begins 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 does 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 easy^{ 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 result above. You may also need to solve the problem above 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 \(\omega = 1\) and \(L=1\) and \(a=1\text{.}\) Then

Write \(B = \frac{\cos (1) - 1}{\sin (1)}\) for simplicity.

Then plug in \(t=0\) to get

and after differentiating in \(t\) we see that \(g(x) = -\frac{\partial y_p}{\partial t}(x,0) = 0\text{.}\)

Hence to find \(y_c\) we need to solve the problem

The formula that we use to define \(y(x,0)\) is not odd, hence it is not a simple matter of plugging in the expression for \(y(x,0)\) to the d'Alembert formula directly! You must define \(F\) to be the odd, 2-periodic extension of \(y(x,0)\text{.}\) Then our solution is

It is not hard to compute specific values for an odd periodic 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.

### Subsection 5.3.2 Underground temperature oscillations

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

The temperature \(u\) satisfies the heat equation \(u_t = ku_{xx}\text{,}\) 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

where \(T_0\) is the yearly mean temperature, and \(t=0\) is midsummer (you can put negative sign above to make it midwinter if you wish). \(A_0\) gives the typical variation for the year. That is, the hottest temperature is \(T_0 + A_0\) and the coldest is \(T_0 - A_0\text{.}\) For simplicity, we assume that \(T_0 = 0\text{.}\) The frequency \(\omega\) is picked depending on the units of \(t\text{,}\) such that when \(t=\unit[1]{year}\text{,}\) then \(\omega t = 2 \pi\text{.}\) For example if \(t\) is in years, then \(\omega = 2\pi\text{.}\)

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

for the problem

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

We look for an \(h\) such that \(\operatorname{Re} h = u\text{.}\) To find an \(h\text{,}\) whose real part satisfies (5.11), we look for an \(h\) such that

#### Exercise 5.3.3.

Suppose \(h\) satisfies (5.12). Use Euler's formula for the complex exponential to check that \(u = \operatorname{Re} h\) satisfies (5.11).

Substitute \(h\) into (5.12).

Hence,

or

where \(\alpha = \pm \sqrt{\frac{i\omega}{k}}\text{.}\) Note that \(\pm \sqrt{i} = \pm \frac{1+i}{\sqrt{2}}\) so you could simplify to \(\alpha = \pm (1+i)\sqrt{\frac{\omega}{2k}}\text{.}\) Hence the general solution is

We assume that an \(X(x)\) that solves the problem must be bounded as \(x \to \infty\) 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, note that the second term is unbounded (if \(B \not = 0\)), while the first term is always bounded. Hence \(B=0\text{.}\)

#### Exercise 5.3.4.

Use Euler's formula to show that \(e^{(1+i)\sqrt{\frac{\omega}{2k}} \, x}\) is unbounded as \(x \to \infty\text{,}\) while \(e^{-(1+i)\sqrt{\frac{\omega}{2k}} \, x}\) is bounded as \(x \to \infty\text{.}\)

Furthermore, \(X(0) = A_0\) since \(h(0,t) = A_0 e^{i \omega t}\text{.}\) Thus \(A=A_0\text{.}\) This means that

We need to get the real part of \(h\text{,}\) so we apply Euler's formula to get

Then finally

Yay!

Notice the phase is different at different depths. At depth \(x\) the phase is delayed by \(x \sqrt{\frac{\omega}{2k}}\text{.}\) For example in cgs units (centimeters-grams-seconds) we have \(k=0.005\) (typical value for soil), \(\omega = \frac{2\pi}{\text{seconds in a year}} = \frac{2\pi}{31,557,341} \approx 1.99 \times {10}^{-7}\text{.}\) Then if we compute where the phase shift \(x \sqrt{\frac{\omega}{2k}} = \pi\) 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 \(A_0 e^{-\sqrt{\frac{\omega}{2k}} x}\text{.}\) This function decays *very* quickly as \(x\) (the depth) grows. Let us again take typical parameters as above. We also assume that our surface temperature swing is \(\pm {15}^\circ\) Celsius, that is, \(A_0 = 15\text{.}\) Then the maximum temperature variation at 700 centimeters is only \(\pm {0.66}^\circ\) 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 fact above. 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.

### Subsection 5.3.3 Exercises

#### Exercise 5.3.5.

Suppose that the forcing function for the vibrating string is \(F_0 \sin (\omega t)\text{.}\) Derive the particular solution \(y_p\text{.}\)

#### Exercise 5.3.6.

Take the forced vibrating string. Suppose that \(L=1\text{,}\) \(a=1\text{.}\) 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\text{.}\) 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\text{,}\) \(\omega = 1.991 \times {10}^{-7}\text{,}\) \(A_0 = 20\text{.}\) Find the depth at which the temperature variation is half (\(\pm 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\text{.}\)

#### Exercise 5.3.101.

Take the forced vibrating string. Suppose that \(L=1\text{,}\) \(a=1\text{.}\) Suppose that the forcing function is a sawtooth, that is \(\lvert x \rvert -\frac{1}{2}\) on \(-1 < x < 1\) extended periodically. Find the particular solution.

\(y_p(x,t) = \sum\limits_{\substack{n=1 \\ n \text{ odd}}}^\infty \frac{-4}{n^4 \pi^4} \left( \cos(n \pi x ) - \frac{\cos ( n \pi ) - 1}{\sin( n \pi)} \sin( n \pi x) -1 \right) \cos (n \pi t) .\)

#### Exercise 5.3.102.

The units are cgs (centimeters-grams-seconds). For \(k=0.01\text{,}\) \(\omega = 1.991 \times {10}^{-7}\text{,}\) \(A_0 = 25\text{.}\) Find the depth at which the summer is again the hottest point.

Approximately 1991 centimeters

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