Hexa Scholar

Separation of variables and Fourier modes

A straight copper-colored rod suspended horizontally between two cream-colored blocks.
The two end blocks stand for reservoirs that hold the rod ends at the same fixed temperature.

The question

If you know how each sine wave cools, can you predict the temperature along the whole rod?

  1. 1 SeePick a mode and test your guess.
  2. 2 TryChange rod length and elapsed time.
  3. 3 ProveDerive the shapes, rates, and coefficients.
  4. 4 ApplySolve five problems with Fourier modes.
Before you start · 3 quick checks on sine, differentiation, and exponentials

Two ideas before you start

2 ideas

A shape that meets the ends

A sine curve starts and ends on the horizontal axis.

Shape

A mode is a shape that keeps its form while its height changes. Look at the ends when you switch between these sine shapes.

Exact definition

Write \(x\) for position on a rod of length \(L\gt0\). For a positive integer \(n\), the sine shape \(\phi_n(x)=\sin(n\pi x/L)\) has \(n\) half-waves between the ends. At the left end its angle is zero. At the right end its angle is an integer multiple of \(\pi\). Both sine values are zero.

A mode of the heat equation here is a separated solution \(a_n(t)\phi_n(x)\), where \(a_n(t)\) is its signed coefficient and \(t\) is elapsed time. A negative value of the product is a contribution below the reservoir baseline.

Build a profile by adding shapes

The solid sine and the optional extra sine add point by point to give the dashed curve.

Include

At a given position, add the signed heights. Where the shapes have opposite signs, their contributions offset each other.

Exact definition

A finite Fourier sine sum is a linear combination \(f(x)=\sum_{n=1}^{N} b_n\phi_n(x)\), with real coefficients \(b_n\) and positive integer \(N\). A zero coefficient means that mode is absent. If two solutions both satisfy the zero endpoint conditions, their sum satisfies the same conditions and the same linear heat equation.

Refresher: the heat equation with fixed ends

Let \(u(x,t)\) be the temperature minus the common reservoir temperature. The model is a uniform one-dimensional rod with constant diffusivity \(\kappa\gt0\), insulated sides, no internal heat source, and both ends held at the same constant temperature. In the interior, the rate of change in time is proportional to the second derivative in space, which measures how the profile bends.

\[u_t=\kappa u_{xx},\qquad 0\lt x\lt L.\]

To read \(u_t\), hold \(x\) fixed and follow one point in time. To read \(u_{xx}\), freeze time and differentiate the spatial profile twice. At the ends \(u(0,t)=u(L,t)=0\). The starting profile is \(u(x,0)=f(x)\). All starting profiles in the activities are finite sine sums and already meet the endpoint conditions.

A slope field describes the time derivative of a single unknown function. Separation produces ordinary differential equations of that kind by treating shape and time dependence separately.

1 See

Which mode lasts longest?

2 Try

Change the size of the rod

The explorer and its goals open after you check your prediction.

3 Prove

Separate the shape from its clock

Theorem for a rod with fixed ends

Let \(L,\kappa\gt0\), with \(\kappa\) constant. Suppose \(u_t=\kappa u_{xx}\) for \(0\lt x\lt L,\ t\gt0\), with \(u(0,t)=u(L,t)=0\). For a nonzero separated solution \(u(x,t)=X(x)T(t)\), take \(X\) real and twice continuously differentiable up to the ends and \(T\) real and continuously differentiable up to \(t=0\).

Then \(X\) is a nonzero multiple of some \(\phi_n\) with \(n\) a positive integer. With \(\lambda_n=(n\pi/L)^2\), its time factor is proportional to \(e^{-\kappa\lambda_n t}\). For finite sine data \(f\), a solution is

\[u(x,t)=\sum_{n=1}^{N} b_n e^{-\kappa\lambda_n t}\phi_n(x),\] \[b_n=\frac{2}{L}\int_0^L f(x)\phi_n(x)\,dx.\]
How the separation starts

Substitution gives \(XT'=\kappa X''T\). Pick a positive time \(t_*\) with \(T(t_*)\ne0\). Set \(-\lambda=T'(t_*)/(\kappa T(t_*))\). Using the product equation at that time gives \(X''=-\lambda X\) at every interior point, even where \(X\) vanishes. The endpoint equations at \(t_*\) give \(X(0)=X(L)=0\).

Now pick an interior point with \(X\ne0\). The product equation there gives a single ordinary differential equation for \(T\) at all positive times. This argument avoids dividing by a factor at its zeros. The minus sign in the name \(-\lambda\) is a convention. The proof has to find the sign of \(\lambda\).

Start from \(X''=-\lambda X\) and the two zero endpoints. Pick the true statement at each step. When the proof reaches \(a_n(t)\), it is the time factor normalized to start at one.

4 Apply

Use the modes to solve problems

Use the constant-diffusivity model with both ends held at the same temperature. For problems written in terms of \(\tau=\kappa\pi^2t/L^2\), the time factor is \(e^{-n^2\tau}\). Each problem has a hint and a worked solution.

Key point Read off or project the initial coefficients, apply the time factor to each, and evaluate the sum at the requested position. When asked for an actual temperature, add the common reservoir temperature to the excess.
Level Undergraduate Prerequisites Derivatives, integrals, and elementary ordinary differential equations Time About 35 min

For diffusion on an unbounded line, see the heat kernel lesson. The localized pulse there spreads along the line. Here the fixed ends determine which separated shapes can occur.

Further reading