A1230 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 4/(nπ).
  • 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 e−π2αt: 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, sin⁡(πx/L)?

Name it

The method

For ut=αuxx on 0<x<L with u(0,t)=u(L,t)=0:

  1. Separate: try u=X(x)T(t). Then T′αT=X′′X=−λ, a constant, since one side depends only on t and the other only on x.
  2. Solve the space problem: X′′+λX=0 with X(0)=X(L)=0 has nonzero solutions only for λn=(nπ/L)2: Xn=sin⁡(nπx/L).
  3. Solve the time problem: Tn=e−αλnt.
  4. Superpose and fit the initial condition:
u=∑n=1∞bnsin⁡nπxLe−α(nπ/L)2t,bn=2L∫0Lf(x)sin⁡nπxLdx

Other boundary conditions

  • Insulated ends (ux=0): cosines, λn=(nπ/L)2 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 τ=L2απ2: 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
  1. Subtract the steady state. The excess starts at 60 °C and must fall to 10 °C.
  2. First mode at the center. Its amplitude is 4π×60=76.4°C
  3. Its time constant. τ=0.0529.7×10−5π2s=2.61s
  4. Solve for the time. Set the center's excess to 10 °C: 76.4e−t/2.61=10 t=2.61ln⁡7.64=5.3s 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 u=x on 0<x<1. What temperature does it settle to?

Show the solution
  1. Insulated ends. They keep the heat in, so the rod settles to the average.
  2. The average. ∫01xdx=0.5 This is the n = 0 cosine term.

Answer it settles to 0.5 everywhere.

Worked example

A 10 cm copper rod (α=1.1×10−4 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
  1. The steady state. It's the straight line from 100 °C to 20 °C, which is 60 °C at the midpoint.
  2. Subtract it. The remainder w starts as −80(1−x/L) and has zero ends, so it's a sine series.
  3. The sine series. The sine coefficients of 1−x/L are 2nπ, so w=−∑160nπsin⁡nπxLe−t/τn with τn=L2n2π2α.
  4. At the midpoint. The n = 1 term is −50.9e−t/τ1, with τ1=0.01π2×1.1×10−4s=9.21s Even modes vanish there, and n = 3 decays 9 times faster.
  5. Solve for the time. 50.9e−t/τ1=1 t=9.21ln⁡50.9=36s
  6. Check the next term. By then the n = 3 term is about 10−14 °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 bn 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 u=2x on 0<x<1. 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 −ku′′=q 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°.

Explain why

Why does a heated rod's cooling time grow as the square of its length?

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.