The 1D wave equation: d'Alembert's solution
We now look at the wave equation,
the wave equation (2.166) is the simplest equation which is second order in both independent variables and it represents a combination of Newton's second law and Hooke's law where is some constant representing elasticity. The constant gives a ratio of mass density and elasticity. The equation may be solved using the method of separation of variables discussed in the previous sections. Here, we choose to solve this by introducing a change of variable.
As a motivation to the method, let us define the following operator for the 1D wave equation,
this is known as the d'Alembert operator2 In this case the operator acts on the function . Now, observe that, while is constant, the d'Alembert operator can be factored:
when this acts on , it gives us the 1D wave equation as given in Eq. (2.166). This factorisation implies that we can look for solutions that satisfy the individual first order equations:
Note that we have seen this type of first order PDE in Subsec. 2.2.1. Using the method of characteristics, we showed that the general solution to the PDE takes the form,
The general solution to Eq. (2.166) can therefore be constructed by forming linear combinations of the two solutions, namely:
Let us now derive this using the change of variables technique. Suppose we have:
motivated by what we discussed above. In terms of these new variables, we have:
We compute the following to substitute back in Eq. (2.166):
it really is represented by a box. Then, upon substitution of Eqs. (2.175) and (2.176), yields:
which, upon dividing through by , we can express as:
This tells us that the term is independent of and can therefore be written as:
where is an arbitary function of only. Integrating Eq. (2.179) with respect to yields,
where and is an arbitrary function of the variable we have kept constant in the integration (i.e. ). Writing the solution in terms of the original variables gives:
The solution to the wave equation is a superposition of two travelling waves, one travelling from right to left [given by ] and the second travelling from left to right [given by . The two wave profiles and are determined by the initial conditions. The initial conditions are defined for and for all values of in the spatial domain we are interested to solve the and at an initial time, say . Suppose these are given as
Using the solution (2.181), we write:
Differentiating once, we get the following pair of equations:
We can solve Eqs. (2.184) for and as follows:
which, upon integrating yield:
These give the solution in the final form:
A nice feature of the solution given by Eq. (2.187) is that if and are discontinuous functions the solution is still valid and makes sense considering it from a distributional perspective. Note also that when we have boundary conditions representing the value of the function or its spatial derivative at particular points in the domain (say at and ) it is usually best to use the method of separation of variables to solve Eq. (2.166).