6.2: New Variables
( \newcommand{\kernel}{\mathrm{null}\,}\)
In order to understand the solution in all mathematical details we make a change of variables
w=x+ct,z=x−ct.
We write u(x,t)=ˉu(w,z). We find
∂∂xu=∂∂wˉu∂∂xw+∂∂zˉu∂∂xz=∂∂wˉu+∂∂zˉu,∂2∂x2u=∂2∂w2ˉu+2∂2∂w∂zˉu+∂∂zˉu,∂∂tu=∂∂wˉu∂∂tw+∂∂zˉu∂∂tz=c(∂∂wˉu−∂∂zˉu),∂2∂t2u=c2(∂2∂w2ˉu−2∂2∂w∂zˉu+∂∂zˉu)
We thus conclude that
∂2∂x2u(x,t)−1c2∂2∂t2u(x,t)=4∂2∂w∂zˉu=0
An equation of the type ∂2∂w∂zˉu=0 can easily be solved by subsequent integration with respect to z and w. First solve for the z dependence,
∂∂wˉu=Φ(w),
where Φ is any function of w only. Now solve this equation for the w dependence, ˉu(w,z)=∫Φ(w)dw=F(w)+G(z)
6.2.1: Infinite String
Equation ??? is quite useful in practical applications. Let us first look at how to use this when we have an infinite system (no limits on x). Assume that we are treating a problem with initial conditions
u(x,0)=f(x),∂∂tu(x,0)=g(x).
Let me assume f(±∞)=0. I shall assume this also holds for F and G (we don’t have to, but this removes some arbitrary constants that don’t play a rôle in u). We find
F(x)+G(x)=f(x),c(F′(x)−G′(x))=g(x).
The last equation can be massaged a bit to give
F(x)−G(x)=1c∫x0g(y)dy⏟=Γ(x)+C
Note that Γ is the integral over g. So Γ will always be a continuous function, even if g is not!
And in the end we have
F(x)=12[f(x)+Γ(x)+C]G(x)=12[f(x)−Γ(x)−C]
Suppose we choose (for simplicity we take c=1m/s)
f(x)={x+1if −1<x<01−xif 0<x<10elsewhere.
and g(x)=0. The solution is then simply given by u(x,t)=12[f(x+t)+f(x−t)].

6.2.2: Finite String
The case of a finite string is more complex. There we encounter the problem that even though f and g are only known for 0<x<a, x±ct can take any value from −∞ to ∞. So we have to figure out a way to continue the function beyond the length of the string. The way to do that depends on the kind of boundary conditions: Here we shall only consider a string fixed at its ends.
u(0,t)=u(a,t)=0,u(x,0)=f(x)∂∂tu(x,0)=g(x).
Initially we can follow the approach for the infinite string as sketched above, and we find that
F(x)=12[f(x)+Γ(x)+C],G(x)=12[f(x)−Γ(x)−C].
Look at the boundary condition u(0,t)=0. It shows that
12[f(ct)+f(−ct)]+12[Γ(ct)−Γ(−ct)]=0.
Now we understand that f and Γ are completely arbitrary functions – we can pick any form for the initial conditions we want. Thus the relation found above can only hold when both terms are zero
f(x)=−f(−x),Γ(x)=Γ(x).
Now apply the other boundary condition, and find
f(a+x)=−f(a−x),Γ(a+x)=Γ(a−x).

The reflection conditions for f and Γ are similar to those for sines and cosines, and as we can see from Figure 6.2.2 both f and Γ have period 2a.