On this page
Joseph Fourier had completed his memoir on the propagation of heat in solid bodies by 1807, and in 1808 Lagrange and Laplace objected to its expansions of functions as trigonometric series, according to the MacTutor biography of Fourier. Those series still solve the heat equation on a rod.
What does separation of variables do to the heat equation?
Take a thin rod of length L with insulated sides, both ends held at 0 °C, and a starting temperature f(x). The temperature u(x, t) obeys ∂u/∂t = k ∂²u/∂x², where k is the thermal diffusivity; MIT's 18.303 notes on the 1-D heat equation derive it from Fourier's law and conservation of energy. The ends give u(0, t) = u(L, t) = 0.
Guess a product, u = X(x)T(t). Substituting gives T′/(kT) = X″/X. The left side depends only on t and the right only on x, so both equal a constant, written −λ. That gives two ODEs:
X″ + λX = 0, with X(0) = X(L) = 0
T′ = −kλT
Why are the eigenvalues (nπ/L)²?
The MIT notes check all three cases: if λ < 0 or λ = 0, the end conditions force X = 0. If λ > 0, X = A cos(√λ x) + B sin(√λ x). X(0) = 0 removes A, and X(L) = 0 needs sin(√λ L) = 0, so √λ L = nπ. That gives:
eigenvalues λₙ = (nπ/L)², n = 1, 2, 3, …
eigenfunctions Xₙ = sin(nπx/L)
product solutions uₙ = sin(nπx/L) e^(−k(nπ/L)²t)
This is a Sturm–Liouville problem; our explainer on Sturm–Liouville eigenvalues and eigenfunctions shows the general pattern. If eigenvalues or orthogonality are the gap, the Fermi Concept Library gives every concept in mathematics its own lesson and its place in the map.
How do you match the starting temperature with a Fourier sine series?
The equation is linear, so any sum of product solutions is also a solution:
u(x, t) = Σ bₙ sin(nπx/L) e^(−k n²π² t / L²)
At t = 0 this must equal f(x), which makes it the Fourier sine series of f. The sines are orthogonal: the integral of sin(mπx/L) sin(nπx/L) from 0 to L is 0 when m ≠ n and L/2 when m = n. Multiply both sides by one sine and integrate; every term but one vanishes:
bₙ = (2/L) ∫₀ᴸ f(x) sin(nπx/L) dx
For a rod that starts at a uniform temperature u₀, the MIT notes find bₙ = 4u₀/(nπ) for odd n and zero for even n. Those are the coefficients that build a square wave from sines.
Worked example: a rod that starts as a triangle
Take a copper rod 1 m long with its centre at 100 °C and the temperature falling in straight lines to 0 °C at both ends: f(x) = 200x for x up to 0.5 m and 200(1 − x) after that. The MIT notes give copper's diffusivity as about 1.1 cm²/s.
Integrating by parts on each half gives bₙ = 800 sin(nπ/2)/(n²π²) °C:
b₁ ≈ 81.1 °C
b₂, b₄, b₆ … = 0, because the triangle is symmetric about the centre and the even modes are not
b₃ ≈ −9.0 °C
b₅ ≈ 3.2 °C
b₇ ≈ −1.7 °C
Mode n fades with time constant τₙ = L²/(k n²π²). For this rod τ₁ ≈ 921 s (about 15 minutes), τ₃ ≈ 102 s and τ₅ ≈ 37 s. After 5 minutes the centre is at about 81.1 × e^(−300/921) ≈ 58.5 °C from mode 1, plus about 0.5 °C from mode 3: roughly 59 °C. After 921 s it is about 81.1/e ≈ 29.8 °C.
Why do the high modes die fastest?
In the MIT notes, mode n decays as e^(−n²π²t) in time measured in units of L²/k, so its rate grows as n²: mode 3 dies 9 times faster than mode 1, mode 5 25 times faster. A sine with n half-waves puts hot and cold only L/n apart, and diffusion time scales as length squared over diffusivity. So the triangle's corner rounds off within a few minutes, leaving one sine arch that sinks towards 0 °C.
For a uniform start, the notes show that once kt/L² reaches 1/π², the second term is less than 0.00034 of the first. For a 1 m rod that takes about 15 minutes for copper, 169 minutes for steel and 47 hours for glass. For a numerical check, see our finite difference method for the heat equation, worked by hand.
A six-step checklist for any rod problem
Write the equation, both end conditions and f(x).
Separate: u = X(x)T(t), both sides equal −λ.
Solve for X with the end conditions; list λₙ and Xₙ.
Solve for T: Tₙ = e^(−kλₙt).
Find bₙ by orthogonality, checking symmetry first.
Add a few terms at t = 0 and compare with f; use τ₁ for late times.
For practice, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



