A12 · Lesson 30 · The heat equation by separation of variables
Splitting a diffusion problem into modes that each decay on their own
How long does a hot component take to cool once its ends are clamped to a heat sink? How long until a voltage step diffuses down a long RC line? Both are the heat equation, and both yield to the same method: separation of variables. Guess solutions that are a shape in space times a function of time, find which shapes fit the boundary conditions (sines, for ends held at zero), and build the actual initial condition as a Fourier series of those shapes. Each term then decays at its own rate, and the slowest one sets the time scale engineers quote.
- A rod at temperature 1 has both ends dropped to 0 at t = 0. The curve is the separated solution: the first six odd sine modes, with amplitudes .
- At t = 0 the sum wiggles around the flat initial value (and the ends' jump), as Fourier series do near a discontinuity. Advance t a little: the wiggles, high modes, vanish almost at once.
- After that, the profile is essentially one sine hump shrinking as : the readout compares the true center temperature with that single-mode estimate.
Predict
The rod starts uniformly at 1 with its ends held at 0. What's the amplitude of its first sine mode, ?
: the Fourier sine coefficient of a constant is for odd n and 0 for even n. The first mode overshoots 1 because the other modes (negative at the center) bring the sum back down.
Name it
The method
For on with :
- Separate: try . Then , a constant, since one side depends only on t and the other only on x.
- Solve the space problem: with has nonzero solutions only for : .
- Solve the time problem: .
- Superpose and fit the initial condition:
Other boundary conditions
- Insulated ends (): cosines, for n = 0, 1, 2, ..., and the n = 0 term is the average temperature, which never changes.
- Ends held at fixed nonzero temperatures: subtract the steady straight-line solution first; what's left has zero ends.
The slow mode
After a short while only the first mode remains, so the whole rod relaxes with the time constant : proportional to the square of the length. Halving a heat path quarters its cooling time.
Worked example
A 5 cm aluminum bar (α = 9.7 × 10⁻⁵ m²/s), initially at 80 °C, has its ends clamped at 20 °C. When is its center below 30 °C?
Show the solution
- Subtract the steady state. The excess starts at 60 °C and must fall to 10 °C.
- First mode at the center. Its amplitude is
- Its time constant.
- Solve for the time. Set the center's excess to 10 °C: By then the higher modes are negligible.
Answer the center is below 30 °C after about 5.3 s.
Worked example
A rod with insulated ends starts with on . What temperature does it settle to?
Show the solution
- Insulated ends. They keep the heat in, so the rod settles to the average.
- The average. This is the n = 0 cosine term.
Answer it settles to 0.5 everywhere.
Worked example
A 10 cm copper rod ( m²/s) sits at 20 °C. One end is suddenly raised to 100 °C, and the other stays at 20 °C. When is the midpoint within 1 °C of its final temperature?
Show the solution
- The steady state. It's the straight line from 100 °C to 20 °C, which is 60 °C at the midpoint.
- Subtract it. The remainder w starts as and has zero ends, so it's a sine series.
- The sine series. The sine coefficients of are , so with .
- At the midpoint. The n = 1 term is , with Even modes vanish there, and n = 3 decays 9 times faster.
- Solve for the time.
- Check the next term. By then the n = 3 term is about °C, so the one-term answer is exact for practical purposes.
Answer the midpoint is within 1 °C of its final 60 °C after about 36 s.
Check
A rod starts uniformly at 1 with ends held at 0. What's the amplitude of mode n = 3?
Check
What's the slowest time constant of a rod of length 0.05 m, diffusivity 0.0001 m²/s, with both ends held at a fixed temperature?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A rod's excess temperature starts uniformly at 60 K; its slow mode has τ = 10 s. Using the first mode alone, when does the center's excess fall to 5 K?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A rod of length 1 m has its ends held at 20 °C and 80 °C. In the steady state, what's the temperature at x = 0.5 m?
Check
A rod with insulated ends starts with on . What temperature does it settle to?
Check
Why do only sines appear when both ends of the rod are held at 0?
Check
A rod 0.05 m long with diffusivity 0.00011 m²/s has both ends at one temperature. One end is suddenly raised by 80 K.
(a)
What is the time constant of the slowest mode?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
When is the midpoint within 1 K of its final temperature?
Check
A strip heated uniformly at q per unit volume, with conductivity k and both edges held at 0, satisfies on (0, L).
Step 1
What is u(x)?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the hottest temperature?
Explain why
Why does a heated rod's cooling time grow as the square of its length?
The rod's slowest mode is the single sine hump , and the heat equation makes a mode with wavenumber k decay at the rate . For that hump , so its rate is and its time constant . Physically, heat must diffuse about half the length to escape, and diffusion covers a distance d in a time proportional to , not to d, because it's a random walk rather than a steady flow. Doubling the length therefore quadruples the cooling time.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.