4.7.9 · D4Partial Differential Equations

Exercises — Solving heat equation — separation of variables

1,945 words9 min readBack to topic

The single setup we reuse (unless a problem says otherwise):

The two boxed results we lean on throughout:


Level 1 — Recognition

(Can you identify the parts and read coefficients off directly?)

Exercise 1.1

State, for the standard problem, (a) the eigenvalues , (b) the eigenfunctions , and (c) the time factor of mode .

Recall Solution 1.1

These come straight from Steps 3–4 of the derivation.

  • (a) , for
  • (b) .
  • (c) .

Why these and nothing else? The zero boundary conditions kill the cosine part and force , i.e. . Only survives (Step 3 tested all three signs).

Exercise 1.2

The initial temperature is . Write without computing any integral.

Recall Solution 1.2

Recognise: is already a single sine mode. Compare term-by-term. Only appears, with ; every other .

Attach that mode's decay (from 1.1 with , so ):

Exercise 1.3

A rod has insulated ends instead of frozen ends: (Neumann). Which family of eigenfunctions replaces the sines?

Recall Solution 1.3

Cosines, for (including the flat mode).

Why? The condition needs a function with zero slope at ; has a flat top there, does not. Matching the eigenfunction to the boundary condition is the whole game — see Boundary Conditions — Dirichlet vs Neumann.


Level 2 — Application

(Run one integral, get one full answer.)

Exercise 2.1

Let , , and (a constant ) on the whole rod. Find and write .

Recall Solution 2.1

Set (project onto sines): a constant is not a single sine, so we must integrate. The factor is for even and for odd . So Sum: Why only odd? A flat profile is symmetric about the midpoint ; even sines are antisymmetric there, so they cannot help build a symmetric shape — their coefficient must vanish. (This is Fourier Series symmetry at work.)

Exercise 2.2

With , , take . Compute .

Recall Solution 2.2

Integrate by parts (, ): The last integral is . So the integral is .

Exercise 2.3

, . Given , write .

Recall Solution 2.3

is a finite combination of sine modes. Match to : the term is , and is . So , , rest zero. Decay rate is :


Level 3 — Analysis

(Reason about behaviour, not just crank formulas.)

Exercise 3.1

Using the answer to 2.1 (with , , ), estimate for large , keeping only the slowest-decaying mode. Give a numerical decay rate.

Recall Solution 3.1

The slowest mode is (smallest ). Its term is . At : , so Decay rate (units ): the amplitude drops by a factor each unit of time. The next mode () decays as times faster — so it's already negligible once is even moderately large. See the figure below.

Figure — Solving heat equation — separation of variables

Exercise 3.2

Two modes start at the same amplitude: . After how much time has the mode shrunk to of the mode's current amplitude? Take .

Recall Solution 3.1 uses one mode; here compare two.

Mode has amplitude . We want the ratio Set this equal to : Interpretation: the gap between modes widens at rate proportional to times the base rate. Wiggly modes lose the race fast — this is exactly why the rod smooths.

Exercise 3.3

Show that for the standard Dirichlet problem, the total "energy" can only decrease (or stay constant) in time. Use .

Recall Solution 3.3

By orthogonality, the cross terms integrate to and each : Every exponential is a decreasing function of (its exponent is negative for increasing). A sum of non-negative terms each decreasing is itself non-increasing, so never grows and as . Physically: with cold ends and no source, stored heat can only leak out. (This is the Sturm-Liouville Theory orthogonality paying off.)


Level 4 — Synthesis

(Combine several ideas, or adapt the method.)

Exercise 4.1

, , . Find and hence .

Recall Solution 4.1

Set: Split into .

Standard results (integration by parts): Combine: So Sanity: is symmetric about and vanishes at both ends — consistent with only odd sines and the zero BCs.

Exercise 4.2 — Non-zero ends (steady-state shift)

Solve on with (both nonzero constants) and . Reduce it to a problem you already know.

Recall Solution 4.2

Why we can't separate directly: would force for all — impossible unless is constant. The homogeneous (zero-BC) machinery needs zero ends.

Trick — subtract the steady state. Look for the eventual profile that no longer changes in time: , a straight line. Fit the ends: Define the deviation . Then:

  • and , so solves the same heat equation.
  • , zero BCs.
  • .

So is the standard Dirichlet problem with initial data : and finally . As , and : the rod settles to the straight-line temperature between its two fixed ends. This same steady-state-plus-decay split powers Laplace Equation.

Figure — Solving heat equation — separation of variables

Level 5 — Mastery

(One clean run using everything.)

Exercise 5.1

A rod of length , diffusivity , has ends held at ° and initial profile (a) Write exactly. (b) At what time does the term's amplitude fall to of its initial value? (c) Which single mode dominates for large , and what is then?

Recall Solution 5.1

(a) Sine + Sum + Set (by inspection). is already a sum of pure sine modes with , so . Read off: , , ; all others . Decay rate . Hence

(b) The amplitude is ; initial value . Set :

(c) Largest exponent (slowest decay) is , rate , vs and for the others — those are gone almost immediately. So for large , At : , giving . The profile is a single half-sine bump that fades to a cold rod — the universal late-time shape (uses Superposition Principle to isolate the surviving mode).


Recall One-line self-check before you leave

Split Solve two ODEs → Sine eigenfunctions from zero BCs → Sum with Set . Nonzero ends? Subtract the straight-line steady state first.