The separation of variables method is a technique for solving partial differential equations subject to boundary conditions and is used to solve problems where
-
The partial differential equation to be solved is linear and homogeneous.
-
The boundary conditions are of the form
where
are constants.
-
The solution obeys the initial condition
I will illustrate the method with an example.
(1)
We look for solutions of the form
Substitution into the original differential equation givesDivide by
to gives
The left hand side is a function of t only and the right hand side is a function of x only. Since x and t are independent variables, we must have that both sides are constant. Suppose that both sides equal k. We can write
and
or
(2)
Ifthe solution to the first is
This solution tends to infinity as
tends to infinity so we must have
Put
then the two equations (2) become
with solutions
so all solutions take the form
since
are arbitrary. We now fit these solutions to the boundary conditions.
Since the original equation is linear, any linear combination of these solutions is also a solution. We can write the most general solution to (1) as
We now fit these solutions to the initial condition
In general fitting the most general solutionto the initial condition will involve finding the coefficients of a Fourier series.