Question: A 1D rod of length L has an initial heat distribution of
If the rod has insulated ends (
) and obeys the heat equation

,
What is the heat distribution of the rod as a function of time?
Answer:
First assume that the solution to the PDE

,
has the form
Therefore, we can reduce the equation to the following:
Since this equation is true for all x and t, therefore both sides of the equation must equal a constant.
which can be written as two ODEs
Solving the first-order differential
is trivial and can easily be shown to have the solution:
Next, we need to solve 
The second-order differential has 3 different cases (
,
,
).
Case 
The ODE for this case would be
which has the solution
If we apply the BC
, we get
which implies
Case 
The ODE for this case would be
which has the solution
Next, we apply the BC
.
Since
, this implies
. Therefore,
If we apply the 2nd BC
, we find the following
Therefore, for non-trivial solutions
where
.
This means,
is a solution.
Case 
The ODE for this case would be
which has the solution
If we apply the BC
,we find
Since
, we know that
which means
is a solution.
If we apply the 2nd BC
, we find
Since
and
, we know that
.
This means that there is no solution where
.
Since the PDE will satify any linear combination of the above solutions, we find that
If we apply the IC
to the solution, we find that
and every other
is zero.
Therefore, the solution would be