1. Heat equation
1.1. Introduction
The heat equation corresponding to no sources and constant thermal properties is given as
Equation (1) describes how heat energy spreads out. Other physical quantities besides temperature smooth out in much the same manner, satisfying the same partial differential equation (1). For this reason, (1) is also called the diffusion equation.
Since the heat equation in (1) has one time derivative, we must be given one initial condition (IC) (usually at t = 0), the initial temperature. It is possible that the initial temperature is not constant, but depends on x. Thus, we must be given the initial temperature distribution,
We also need to know that happens at the two boundaries,
1.2. Separation of Variables (SoV)
When the PDE and the BCs are linear and homogeneous, we use a technique called the method of separation of variables to find the analytic solutions.
We introduce the heat operator,
The heat operator is a linear operator that satisfies the linearity property
A linear equation for the unknown
where
Equation (6) is a linear homogeneous equation.
We now propose to study heat equation with zero temperatures at finite ends:
defined for
Solution. We attempt to determine the product solution in the form of
First, we substitute equation (11) into equation (7),
We can “separate variables” by divide both sides of equation (12) by
Now the variables are “separated” in a sense that the left hand side is only a function of
where
Equation (14) yields 2 ordinary differential equations,
and
We now see that the advantage of the product method is that it transform a PDE, which we do not have to solve, into two ODEs. The boundary conditions impose two conditions on the
where
The ODE in (16) has two boundary conditions:
We call this a boundary value problem for ordinary differential equations. We note that
Now we solve equation (16). For linear and homogeneous second-order ODE, two independent solutions are usually obtained in the form of
and this implies that
We consider the three cases of
If
We use the hyperbolic functions,
We consider the BC from (18). Since
We now consider the case of
Apply
We now consider the case of
Since
For the BC
The eigenvalues are
The eigenfunctions corresponding to the eigenvalues are
Now we know that the product solution consists of
where B is an arbitrary constant.
1.3. Initial value problems
The principle of superposition can be extended to show that if
For example, we wish to solve the following initial value problem:
Solution. We can let
By picking
By superposition principle we know that the product solution of our problem is a linear combinations of
The IC in the previous problem is a finite sum of the sine functions. What should we do in the situation that the IC is not a finite linear combinations of the sine functions? Consider the following problem:
Solution. From equation (32) we know that the solution is
We want to apply the IC to our problem. First, from the previous problem, note that we can solve the heat equation if initially
Thus, we use the theory of Fourier series and claim that “any” (with restrictions) initial condition
We want to determine the coefficient
Multiply (46) by
Solving for
Now, we calculate the coefficient
Solving for
Each succeeding term in the series is much smaller than the first. We can then approximate the infinite series by only the first term:
Let us summarize the method of separation of variables as it appears for the heat equation with homogeneous Dirichlet boundary conditions:
- Make sure that you have a linear and homogeneous PDE with linear and homogeneous BC.
- Temporarily ignore the nonzero IC.
- Separate variables (determine differential equations implied by the assumption of product solutions) and introduce a separation constant.
- Determine separation constants as the eigenvalues of a boundary value problem.
- Solve other differential equations. Record all product solutions of the PDE obtainable by this method.
- Apply the principle of superposition (for a linear combination of all product solutions).
- Attempt to satisfy the initial condition.
- Determine coefficients using the orthogonality of the eigenfunctions.
1.4. Other Boundary Value Problems
The following problem is defined for
This is a heat conduction problem in a one-dimensional rod with constant thermal properties and no sources. The ends of the rod are insulated. Both the PDE and BCs are linear and homogeneous. We call this type of BC the Neumann boundary condition. We apply SoV.
Solution. The assumed product solutions are:
Substitute into the PDE,
where
Solving (64),
The insulated BCs imply that the separated solutions must satisfy
We determine the separation constant
For
We also need
The BC
Since
For
and
Both BCs give
The time dependent part gives
where
For
which gives
and
The BC
For nontrivial solutions,
However, the corresponding eigenfunctions are cosines,
The product solution of the PDE is
where A is a arbitrary multiplicative constant.
In order to satisfy the IC, we use the principle of superposition so that,
The IE
for
To complete the solution, we need to determine the arbitrary coefficient
for
Multiply (83) by
Solving for
