Solving the Heat Equation
For a rod with both ends held at 0°, the temperature is a sum of sine modes, and mode fades at a rate proportional to . The fine wiggles die almost instantly while the smooth first mode lingers, which is why heat smooths everything out.
What the symbols mean
- Initial amount of mode n
The sine coefficients of the initial temperature f.
- Decay factor
Mode n fades at a rate proportional to n², so fine detail vanishes first.
- Initial temperature
The profile at t = 0.
Explanation
The series solution of the heat equation is simply the temperature written as a stack of simple waves, each one fading away on its own schedule. It tells you not just the temperature but how fast each part of the pattern dies out, which is how engineers estimate cooling times. The formula has three pieces: (how much of wave was there at the start), (a fading factor that shrinks that wave as time goes on), and (the wave's shape, with humps across the rod). Add them up and you have the temperature everywhere, at every time. It looks heavy, but it's just the recipe from the last lesson with the Fourier coefficients plugged in.
Reading the solution. Each mode keeps its shape and fades. Mode 3 decays 9 times faster than mode 1, mode 10 a hundred times faster. So after a short while only the first mode matters:
There's a graph further down where you can drag time forward and watch the first mode alone catch up with the full solution.
The time scale. The slowest decay rate is . Because is squared in the denominator, doubling a rod's length makes it take four times as long to cool.
Smoothing. Even a discontinuous initial temperature becomes perfectly smooth for every , because the high modes responsible for sharp features are damped by enormous factors. This is the "heat forgets" behavior from the last unit, now coming straight out of the formula. Running time backwards would amplify those modes instead of damping them, which is why the backward heat equation is ill-posed.
See it
Worked examples
Solve on with and .
- 1
The initial condition is already a sine series, so no integrals are needed: and .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Solve on , zero ends, .
Solve on , zero ends, .
Find for on .
How many times faster does mode 3 decay than mode 1?
For large , which mode dominates the solution?
A 1 m steel rod (diffusivity m²/s) has its ends held at 0 °C. Its slowest mode decays like . How long does that mode take to fall by a factor of , in seconds?
A rod on with and both ends held at 0 starts at , so . Using only the first term of the series, estimate the temperature at the center, .
The hardest one here. Get it, and you've got this lesson.
A rod on with starts at a uniform 100° and is plunged into ice, so both ends are held at 0. Its temperature is . Find the center temperature to within 0.1°.
Where it's used
Engineers estimate cooling times of rods, walls and electronic components from the slowest mode; the n² decay is why fine-scale temperature fluctuations vanish so quickly.