Method of Separation of Variables: Module 5: Heat Equation
Method of Separation of Variables: Module 5: Heat Equation
Method of Separation of Variables: Module 5: Heat Equation
Separation of variables is one of the oldest technique for solving initial-boundary value
problems (IBVP) and applies to problems, where
where X(x) is some function of x and T (t) in some function of t. The solutions are simple
because any temperature u(x, t) of this form will retain its basic “shape” for different
values of time t. The separation of variables reduced the problem of solving the PDE
to solving the two ODEs: One second order ODE involving the independent variable x
and one first order ODE involving t. These ODEs are then solved using given initial and
boundary conditions.
To illustrate this method, let us apply to a specific problem. Consider the following
IBVP:
Step 1:(Reducing to the ODEs) Assume that equation (1) has solutions of the form
Now, substituting these expression into ut = α2 uxx and separating variables, we obtain
T ′ (t) X ′′ (x)
⇒ = .
α2 T (t) X(x)
MODULE 5: HEAT EQUATION 12
Since a function of t can equal a function of x only when both functions are constant.
Thus,
T ′ (t) X ′′ (x)
= =c
α2 T (t) X(x)
for some constant c. This leads to the following two ODEs:
Thus, the problem of solving the PDE (1) is now reduced to solving the two ODEs.
Thus, either T (t) = 0 for all t > 0, which implies that u(x, t) = 0, or X(0) = X(L) = 0.
Ignoring the trivial solution u(x, t) = 0, we combine the boundary conditions X(0) =
X(L) = 0 with the differential equation for X in (5) to obtain the BVP:
There are three cases: c < 0, c > 0, c = 0 which will be discussed below. It is convenient
to set c = −λ2 when c < 0 and c = λ2 when c > 0, for some constant λ > 0.
Case 1. (c = λ2 > 0 for some λ > 0). In this case, a general solution to the differential
equation (5) is
X(0) = C1 + C2 = 0, (7)
X(L) = C1 eλL + C2 e−λL = 0. (8)
From the first equation, it follows that C2 = −C1 . The second equation leads to
C1 (eλL − e−λL ) = 0,
⇒ C1 (e2λL − 1) = 0,
⇒ C1 = 0.
MODULE 5: HEAT EQUATION 13
X(x) = C3 + C4 x.
C5 = 0,
C5 cos(λL) + C6 sin(λL) = 0.
Let us consider solving equation (4). The general solution to (4) with c = −λ2 = ( nπ
L )
2
is
Tn (t) = bn e−α
2 ( nπ )2 t
L .
MODULE 5: HEAT EQUATION 14
Combing this with (9), the product solution u(x, t) = X(x)T (t) becomes
nπx
)bn e−α ( L ) t
2 nπ 2
un (x, t) := Xn (x)Tn (t) = an sin(
L
−α2 ( nπ ) 2t nπx
= cn e L sin( ), n = 1, 2, 3, . . . ,
L
where cn is an arbitrary constant.
which will be a solution to (1)-(3), provided the infinite series has the proper convergence
behavior.
which is called a Fourier sine series (FSS) with cn ’s are given by the formula
∫
2 L nπx
cn = f (x) sin( )dx. (12)
L 0 L
Then the infinite series (10) with the coefficients cn given by (12) is a solution to the
problem (1)-(3).
EXAMPLE 1. Find the solution to the following IBVP:
Solution. Comparing (13) with (1), we notice that α2 = 3 and L = π. Using formula
(10), we write a solution u(x, t) as
∞
∑
cn e−3n t sin(nx).
2
u(x, t) =
n=1
MODULE 5: HEAT EQUATION 15
c2 = 3 and c5 = −6,
and the remaining cn ’s are zero. Hence, the solution to the problem (13)-(15) is
Practice Problems