Separation of variables for the heat and wave equations

Database › Mathematics › Applied mathematics › Differential equations

DE-0016MethodUndergraduate

Separation of variables turns a linear PDE with boundaries on coordinate surfaces into ODE eigenvalue problems; the solution is a series of product modes whose coefficients come from orthogonality with the initial or boundary data.

$$u=X(x)T(t):\ \frac{X''}{X}=\frac{\dot T}{DT}=-k^2;\qquad u=\sum_nb_n\sin\frac{n\pi x}Le^{-n^2\pi^2Dt/L^2},\ \ b_n=\frac2L\int_0^Lu_0\sin\frac{n\pi x}Ldx$$

Explanation

Both sides of the separated equation depend on different variables, so equal a constant; boundary conditions quantise it. Inhomogeneous boundary values are first removed by subtracting a steady-state solution. The same procedure in polar, cylindrical and spherical coordinates generates Bessel functions and spherical harmonics.

For the wave equation $T$ oscillates as $\cos(n\pi ct/L)$ instead of decaying; for Laplace's equation one direction is oscillatory and the other exponential.

Example 1

A rod at uniform temperature $T_0=100$ has its ends suddenly held at 0. Find the centre temperature at $t=L^2/(\pi^2D)$.

Solution

$b_n=\frac{4T_0}{n\pi}$ ($n$ odd). At the centre $u\approx\frac{400}{\pi}e^{-1}\approx46.8$; the $n=3$ term is $\approx-0.005$, negligible.

Example 2

A string fixed at both ends is released from rest with $u_0=\sin\frac{\pi x}L+0.2\sin\frac{3\pi x}L$. Write $u(x,t)$.

Solution

Each mode oscillates independently: $u=\sin\frac{\pi x}L\cos\frac{\pi ct}L+0.2\sin\frac{3\pi x}L\cos\frac{3\pi ct}L$.

Related entries