2 Method of separation of variables - general approach

In Section 25.2 we showed that

  1. u ( x , y ) = sin x cosh y

    is a solution of the two-dimensional Laplace equation

  2. u ( x , t ) = e 2 π 2 t sin π x

    is a solution of the one-dimensional heat conduction equation

  3. u ( x , t ) = u 0 sin π x cos π c t

    is a solution of the one-dimensional wave equation.

All three solutions here have a specific form: in 1. u ( x , y ) is a product of a function of x alone, sin x , and a function of y alone, cosh y . Similarly, in both 2. and 3., u ( x , t ) is a product of a function of x alone and a function of t alone.

The method of separation of variables involves finding solutions of PDEs which are of this product form. In the method we assume that a solution to a PDE has the form.

u ( x , t ) = X ( x ) T ( t ) ( or u ( x , y ) = X ( x ) Y ( y ) )

where X ( x ) is a function of x only, T ( t ) is a function of t only and Y ( y ) is a function y only.

You should note that not all solutions to PDEs are of this type; for example, it is easy to verify that

u ( x , y ) = x 2 y 2

(which is not of the form u ( x , y ) = X ( x ) Y ( y ) ) is a solution of the Laplace equation.

However, many interesting and useful solutions of PDEs are obtainable which are of the product form. We shall firstly consider the types of solution obtainable for our three basic PDEs using trial solutions of the product form.

2.1 Heat conduction equation

2 u x 2 = 1 k u t k > 0 (1)

Assuming that

u = X ( x ) T ( t ) = X T for short

(2)

then

u x = d X d x T = X T for short 2 u x 2 = d 2 X d x 2 T = X T for short u t = X d T d t = X T for short

Substituting into the original PDE (1)

X T = 1 k X T

which can be re-arranged as

X X = 1 k T T (3)

Now the left-hand side of (3) involves functions of x only and the right-hand side expression contain functions of t only. Thus altering the value of t cannot change the left-hand side of (3) i.e. it stays constant. Hence so must the right-hand side be constant. We conclude that T ( t ) is a function such that

1 k T T = K (4)

where K is a constant whose sign is yet to be determined.

By a similar argument, altering the value of x cannot change the right-hand side of (3) and consequently the left-hand side must be a constant, i.e.

X X = K (5)

We see that the effect of assuming a product trial solution of the form (2) converts the PDE (1) into the two ODEs (4) and (5).

Both these ODEs are types whose solution we revised at the beginning of this Workbook but we shall not attempt to solve them yet. In particular the solution of (5) depends on whether the constant K is positive or negative.

Wave equation

2 u x 2 = 1 c 2 2 u t 2 (6)

Task!

By following a similar procedure to the above, assume a product solution

u ( x , t ) = X ( x ) T ( t )

for the wave equation and find the two ODEs satisfied by X ( x ) and T ( t ) .

First obtain 2 u x 2 and 2 u t 2 :

u = X ( x ) T ( t ) gives 2 u x 2 = X T and 2 u t 2 = X T

Now substitute these results into (6) and transpose so the variables are separated i.e. all functions of x are on the left-hand side, all funtions of t on the right-hand side:

We get X T = 1 c 2 X T and, transposing, X X = 1 c 2 T T

Finally, write down the required ordinary differential equations:

Equating both sides to the same constant K gives

X X = K or d 2 X d x 2 K X = 0 (7)

and

1 c 2 T T = K or d 2 T d t 2 K c 2 T = 0 (8)

The solution of the ODEs (7) and (8) has been obtained earlier, and will depend on the sign of K .

Laplace’s equation

2 u x 2 + 2 u y 2 = 0 (9)

Task!

Separating the variables for Laplace’s equation follows similar lines to the previous Task. Obtain the ODEs satisfied by X ( x ) and Y ( y ) .

Assuming u ( x , y ) = X ( x ) Y ( y )  leads to: 2 u x 2 = X Y 2 u y 2 = X Y so

X Y + X Y = 0 or X X = Y Y

Equating each side to a constant K

X X = K or d 2 X d x 2 K X = 0 (10a)

Y Y = K or d 2 Y d y 2 + K Y = 0 (10b)

(Note carefully the different signs in the two ODEs. Yet again the sign of the “separation constant” K will determine the solutions.)