Differential Equations · Undergraduate
The Heat Equation and Separation of Variables
Quick answer
The heat equation u_t = k u_xx describes temperature u(x, t) along a rod. With both ends held at 0 and starting temperature f(x), separation of variables looks for solutions X(x)T(t). The boundary conditions allow only the modes sin(nπx/L), and each decays like e^(−k(nπ/L)²t). The full solution is a sum of these modes, with coefficients from the Fourier sine series of f. High frequencies die out fastest, so any starting profile soon smooths into a single sine hump that fades away.
What you'll learn
- Interpret the heat equation and its boundary and initial conditions
- Separate variables to find the product solutions
- Find the sine series coefficients for a starting temperature
- Explain why high-frequency modes decay fastest
Temperature along a rod
A thin rod of length has temperature at position and time . Heat flows from hot to cold, which gives the heat equation
with diffusivity . We hold both ends at , , and start from a temperature profile .
The solution. It is a sum of decaying sine modes:
Why separating variables works
Try . The equation becomes , and dividing by :
The left side depends only on and the right only on . A function of can equal a function of for all and only if both are the same constant, . So with , whose only nonzero solutions are with . Then gives . The equation is linear, so sums of these products are solutions too, and the Fourier series of picks the right sum.
Worked examples
- t = 0
- t = 0.1
- t = 0.5
Common mistakes
Practice problems
-
Solve on , zero ends, .
Answer
Full solution
Mode decays like .
-
With and , how much faster does mode decay than mode ?
Answer
Its rate is times as large.
Full solution
The rates are and .
-
On , find for .
Answer
Full solution
, using integration by parts twice.
-
What are the allowed spatial modes on a rod of length with zero ends?
Answer
,
Full solution
vanishes at and .
-
In Example 1, find .
Answer
About
Full solution
, so .
-
What is for any starting profile with zero ends?
Answer
Full solution
Every mode has a negative exponent, so every term decays to .
-
In Example 3, the rod’s diffusivity doubles to . When does the center temperature halve?
Answer
At
Full solution
The decay rate doubles to about , so the halving time is cut in half.
-
A student writes the solution of Example 1 as . What is wrong?
Answer
Each mode has its own rate; the term decays like .
Full solution
Check: has but , which do not match.
Frequently asked questions
What does the heat equation say?
u_t = k u_xx: temperature rises where the profile curves upward (a cool spot between warmer neighbors) and falls where it curves downward. k is the diffusivity of the material.
What is separation of variables?
Trying u = X(x)T(t). Substituting splits the PDE into two ordinary differential equations, one in x and one in t, linked by a constant.
Why only sine functions?
The ends are held at 0, so X(0) = X(L) = 0. Among the solutions of X″ + λX = 0, only sin(nπx/L) vanish at both ends.
How are the coefficients found?
Set t = 0: f(x) = Σ bₙ sin(nπx/L). So bₙ = (2/L)∫₀ᴸ f(x) sin(nπx/L) dx, the Fourier sine coefficients of f.
What happens as time goes on?
Every mode decays to 0, the higher ones much faster. After a while only the first mode is visible, then it too fades and the rod reaches temperature 0.