Separation of variables and Fourier modes
The question
If you know how each sine wave cools, can you predict the temperature along the whole rod?
- 1 SeePick a mode and test your guess.
- 2 TryChange rod length and elapsed time.
- 3 ProveDerive the shapes, rates, and coefficients.
- 4 ApplySolve five problems with Fourier modes.
Before you start · 3 quick checks on sine, differentiation, and exponentials
Two ideas before you start
2 ideasA shape that meets the ends
A sine curve starts and ends on the horizontal axis.
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.
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.
Which mode lasts longest?
- Choose a mode from the starting mixture.
- After the reveal, move time back to the start and forward again.
Compare the bars at the same time. They measure coefficients of sine shapes, so they describe the mixture across the rod. A temperature at one particular position depends on the signed sum there. For example, at a node, where one sine shape crosses zero, that mode contributes no temperature change even while its bar is positive.
Change the size of the rod
The explorer and its goals open after you check your prediction.
Explorer
- Change the mode index, rod length, or time. Compare the dashed current shape with its solid starting shape.
- Use the exponent magnitude to meet each target exactly. The decimal share is rounded.
Goals
Read the time scale
For fixed index \(n\) and constant \(\kappa\), the time needed to reach any given share strictly between zero and the starting share is proportional to \(L^2\). In physical units \(\kappa\) has units of length squared per time. The factor \(\kappa(n\pi/L)^2\) has units of inverse time, which makes its product with \(t\) dimensionless.
The horizontal coordinate in the explorer is \(x/L\). Holding this coordinate fixed compares corresponding positions on rods of different lengths. The solid curve shows the same number of half-waves when you change the rod length. The actual distance occupied by a half-wave is \(L/n\).
Separate the shape from its clock
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.
Beyond a finite mixture
For a twice continuously differentiable starting profile with zero ends, the Fourier sine expansion can have infinitely many terms. Integrating the coefficient formula by parts twice gives coefficients bounded in magnitude by a constant times \(1/n^2\). Completeness of the sine basis then identifies the uniformly convergent sum with \(f\). For positive time the exponential factors give convergence even after the differentiations in the heat equation.
The spatial equation is an example of a Sturm–Liouville eigenvalue problem. In the regular case on a finite interval it has the form
\[-(pX')'+qX=\lambda wX,\]where \(p\) and \(w\) are positive, \(p\) is continuously differentiable, and \(q,w\) are real and continuous. With zero endpoint values, distinct eigenvalues have orthogonal shapes under the weighted integral \(\int wX_mX_n\,dx\). This follows by multiplying each spatial equation by the other shape, subtracting, and integrating. The boundary terms vanish. The sine problem uses \(p=w=1\) and \(q=0\).
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.
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
- W. A. Strauss, Partial Differential Equations: An Introduction, on separation of variables and Fourier series.
- R. Haberman, Applied Partial Differential Equations with Fourier Series and Boundary Value Problems, on heat flow and Sturm–Liouville problems.