4.7.9 · D3Partial Differential Equations

Worked examples — Solving heat equation — separation of variables

2,997 words14 min readBack to topic

This page is a shooting gallery. We list every kind of situation the linear-homogeneous heat problem can throw at you, then knock down each one with a full worked example. Keep the parent recipe handy: Solving heat equation — separation of variables.

Recall A word about "every scenario" (scope, honestly stated)

This page exhausts the linear homogeneous rod: all homogeneous boundary types — Dirichlet (), Neumann (), and a note on mixed / Robin ends — plus every input shape (single/multiple/constant/piecewise/zero) and both time limits. What we do not treat here (they need extra machinery and live on other pages): non-homogeneous BCs (ends held at nonzero or time-dependent temperatures — handled by subtracting a steady state), source terms , and full Robin eigenvalue transcendental equations. So "every scenario" means every scenario of the homogeneous separable problem, which is what this chapter builds. The eigenfunction/eigenvalue machinery behind all BC types is Sturm-Liouville Theory.


The scenario matrix

Every worked example below is tagged with the cell it covers.

Cell What makes it special Example
A. Single mode is already one sine — read off, no integral Ex 1
B. Sum of modes is a few sines added — read off several Ex 2
C. Constant profile const — must integrate, only odd survive Ex 3
D. Triangle / tent piecewise-linear peak — integration by parts Ex 4
E. Degenerate input — the trivial (dead) rod, uniqueness Ex 5
F. Limiting behaviour and — convergence subtleties Ex 6
G. Neumann + mixed twist insulated (cosines) and one mixed end Ex 7
H. Word problem real rod, real numbers, "how long to cool?" Ex 8

Cases A–H hit: single/multiple/constant/piecewise inputs, the zero-degenerate input, both time limits (with convergence discussed), the Neumann and mixed boundary families, and a physical estimate.


Ex 1 — Cell A: a single sine mode


Ex 2 — Cell B: a sum of modes


Ex 3 — Cell C: a constant (flat hot) rod


Ex 4 — Cell D: a triangular (tent) initial profile


Ex 5 — Cell E: the degenerate / zero input


Ex 6 — Cell F: limiting behaviour and convergence


Ex 7 — Cell G: the Neumann and mixed twists (cosines, and one of each end)


Ex 8 — Cell H: a real-world word problem


Recall Quick self-test on the matrix

A single-sine needs an integral for ? ::: No — read it off (Cell A). Constant keeps which modes? ::: Only odd (Cell C). As a Dirichlet rod approaches what shape? ::: A half-sine bump, then (Cell F). Why is keeping only at large rigorous? ::: For fixed the series converges uniformly (Weierstrass -test), licensing term-by-term limits. Insulated (Neumann) ends give which eigenfunctions? ::: Cosines, incl. a constant mode that never fades — rod settles to its average (Cell G). One fixed + one insulated end gives? ::: Quarter-wave sines . The zero initial rod evolves to? ::: Stays forever — trivial and unique by the maximum principle (Cell E).


Related: Fourier Series · Sturm-Liouville Theory · Wave Equation · Laplace Equation · Superposition Principle · Boundary Conditions — Dirichlet vs Neumann