From Boundary Conditions to Fourier
An initial-value problem specifies everything at one point; a boundary-value problem splits conditions between two () — and suddenly solutions exist only for special parameter values.
with : the general solution meets the far boundary only when is an integer — eigenvalues with eigenfunctions . A guitar string of length can vibrate only at frequencies : harmonics are a boundary-value theorem.
The eigenfunctions are orthogonal ( for ), so any reasonable on expands as with each coefficient computed independently: — a projection, exactly as in linear algebra with an orthogonal basis.
The flat function becomes the square-wave series . Why: multiply by and integrate over ; orthogonality kills every term except , which contributes . For : , which is for odd and for even . Each partial sum is a smooth wave that must be at the ends, so near and it overshoots before settling.
Separation of variables turns a PDE into the eigenvalue problem plus simple time behavior. Heat (): each mode decays, — the means fine detail smooths almost instantly while the broad shape lingers.
Wave (): each mode oscillates at frequency , or equivalently d'Alembert's — disturbances travel at speed unchanged. Expand the initial data, evolve each mode by its own simple rule, superpose: that is the whole method.
MP3 compression, noise-cancelling headphones, MRI reconstruction, and spectroscopy all rest on expanding signals in sines and cosines. The heat-equation origin story matters too: Fourier invented the series in 1807 to model heat in a metal bar, was told the idea was rigorous nonsense, and turned out to be the most useful "nonsense" in engineering history.
A bar on with ends at obeys , and its initial temperature is . What is the ratio of the two modes' amplitudes at time ?
Show the answerHide the answer
Separation of variables gives each mode its own decay factor , because multiplies by . So , and the ratio of the amplitude to the amplitude is . The mode decays at times the rate of the fundamental; for example with , by the ratio is . Fine ripples vanish almost at once while the broad shape lingers — which is why heat flow smooths.
Full Fourier Series on [−L, L]
A function on (continued with period ) has the Fourier series
An even has only cosines, an odd only sines. At a jump the series converges to the midpoint .
Why these formulas: on the functions are mutually orthogonal, each cosine and sine has , but the constant has . Projecting onto each function therefore divides by — except the constant, which divides by ; writing the constant term as lets one formula serve all . Why the even/odd shortcut: for even , is odd and integrates to over a symmetric interval.
Find the Fourier series of on .
is even, so every (the integrand is odd) and the cosine coefficients can be computed on half the interval: .
Step 1 — the constant: , so the series starts , the average value of .
Step 2 — by parts, . So : zero for even , for odd .
Step 3 — . The coefficients fall like because has corners but no jumps; two terms are already close.
Step 4 — a payoff: at , , so .
Find the Fourier series of the step for , for . What does the series give at ?
The formulas on : and ; since on the left half, only contributes.
Step 1 — , so the constant term is . For , .
Step 2 — : for odd , for even. So .
Step 3 — at every sine vanishes and the series gives : not , not , but the midpoint of the jump. This is the general rule for piecewise smooth : the series converges to .
Step 4 — near the jump every partial sum overshoots, and the overshoot does not shrink as terms are added: the peaks approach , about of the jump (the Gibbs phenomenon). The peaks only move closer to the jump.
For the formula gives . Writing the series as looks harmless, but at it sums to , not : every value is off by . The constant term of a Fourier series is the average of , which is . A quick guard: check that the constant term equals (here ).
Find the Fourier series of on , and evaluate it at to find .
Show the answerHide the answer
is even, so . The average is . For , integrating by parts twice, . So . The periodic extension of is continuous at (both sides give ), so the series converges to there; with : , hence .
Solving the Heat and Wave Equations
For or on with ends held at :
- the boundary conditions give the modes ;
- expand the initial data in those modes (for the wave equation, both and );
- give each mode its own time factor — heat: ; wave: and ;
- add the modes.
If the ends are held at nonzero values, first subtract the steady state.
Why it works: each times its time factor is an exact solution that meets the boundary conditions; the equations are linear, so sums of solutions are solutions; and orthogonality makes the expansion of the initial data unique, so the sum matches it. The steady state must be removed first because superposition only preserves boundary values of zero: adding two solutions with would give .
A bar on starts at uniform temperature ; from its ends are held at . Solve and find the centre temperature at .
The modes are with decay , and the initial data has the sine series computed above: for odd , for even .
Step 1 — attach each mode's time factor: .
Step 2 — at the centre , alternately for odd : .
Step 3 — at : , and the next term is smaller by the factor , so .
Step 4 — the lesson: at the series needs infinitely many terms to make the flat profile (and still misses the corners), but after a short time one term describes the bar. Heat flow turns any initial shape into the fundamental mode , decaying like .
Solve on with fixed ends, and .
Here , and mode oscillates with angular frequency : .
Step 1 — the initial shape fixes the cosine parts: at , , so and all other .
Step 2 — the initial velocity fixes the sine parts: , so , .
Step 3 — . Check: each term satisfies (for the first, ; for the second, ), and both vanish at .
Step 4 — the motion repeats with period , the common period of and . At the part is momentarily flat and the string is ; at it is . Unlike heat, nothing decays: each mode keeps its energy forever.
Solve on with , and .
The boundary values are not zero, so the sine modes (which vanish at both ends) cannot match them. First find the steady state : with , gives .
Step 1 — the difference has zero boundary values and satisfies the same equation (since ), with .
Step 2 — expand in sines: from the worked problem below, , so .
Step 3 — attach decay factors and add back the steady state: .
Step 4 — as every mode dies and , the straight-line profile that conducts heat steadily from the hot end to the cold end. The slowest mode, , sets the time scale: the gap at the centre shrinks like .
In the last example it is tempting to expand the initial data in sines directly: every coefficient is , so "". But violates — the hot end is simply ignored, because every sine mode is at . Sine modes can only build functions that vanish at both ends, so the boundary values must be carried by the steady state , and only is expanded.
Solve on with zero end temperatures and . After what time is the amplitude less than of the amplitude?
Show the answerHide the answer
The initial data is already a sum of modes, so (mode decays like , and ). The condition is , that is , so . Although the ripple starts times larger than the fundamental, it is negligible after about an eighth of a time unit.
Proofs & Why It Matters
Product-to-sum: . Integrate over : for both cosine integrals vanish (), giving ; for the first term is .
Hence when — every other term integrates away, isolating .
Try in : , so . The left side depends only on , the right only on — a function of equal to a function of must be constant, say .
This splits the PDE into (the boundary-value problem, quantizing ) and (exponential decay ). Superposition assembles the general solution because the heat equation is linear.
Going Deeper: Worked Problems
A bar of length with ends held at starts at temperature . Find for .
Step 1 — separation gives modes (the boundary conditions quantize to integer ), each decaying like (the is the diffusivity).
Step 2 — the initial data is already a finite Fourier sine series: , , all others — no coefficient integrals needed.
Step 3 — evolve each mode: .
Step 4 — check: and — equal ✓; ends: ✓.
Step 5 — by the ripple has shrunk by while the fundamental keeps : the bar forgets its fine structure almost instantly.
Find the Fourier sine series of on .
Step 1 — .
Step 2 — integrate by parts with , : .
Step 3 — so : .
Step 4 — a famous payoff: at the series gives — the Leibniz formula for , falling out of a heat-flow calculation.