4.7.5 · D3Partial Differential Equations

Worked examples — Full Fourier series — coefficients derivation

3,573 words16 min readBack to topic

Everything below uses only these three boxed results from the parent note. We restate them once so no symbol is unearned.


The scenario matrix

Every Fourier problem you can be handed falls into one of these cells. The point of the page is that the seven examples below cover all of them.

Cell Situation Symmetry shortcut What survives Example
C1 is odd (e.g. a square wave, or ) all only (sines) Ex 1
C2 is even (e.g. ) all (cosines) Ex 2
C3 has no symmetry (e.g. , or shifted) none — do all three Ex 3
C4 is a constant (degenerate: zero frequency only) trivial only Ex 4
C5 is already one basis wave (limiting / pure tone) orthogonality a single coefficient Ex 5
C6 Real-world word problem + exam twist (interval not centred, must relocate) reduce to C1–C5 depends Ex 6
C7 is discontinuous (a jump / square wave) — Gibbs behaviour symmetry if present (odd jump) Ex 7

A visual map of the same seven cells — glance here to place any problem before you start:

Figure — Full Fourier series — coefficients derivation

Example 1 — Cell C1 (odd function): triangle-slope wave on

Look at the straight line through the origin and its odd flip:

Figure — Full Fourier series — coefficients derivation

The partial sums really do close in on the line (watch the endpoints, discussed later):


Example 2 — Cell C2 (even function): on

The V-shape is its own mirror image across the vertical axis:


Example 3 — Cell C3 (no symmetry): on


Example 4 — Cell C4 (degenerate constant): on


Example 5 — Cell C5 (limiting: already a basis wave)


Example 6 — Cell C6 (word problem + exam twist): a heater on an off-centre interval

A full period is a full period no matter where the window starts — the orange and teal windows below capture identical coefficients:


Example 7 — Cell C7 (discontinuous jump): square wave, endpoints and Gibbs

The square wave leaps from to ; note where the series lands at the jump, and the stubborn overshoot beside it:


Endpoint & discontinuity convergence — the edge case for a "full" series

Recall Case-map self-test

Odd function: which coefficients survive? ::: only the (sines); . Even function: which survive? ::: only and the (cosines); . A constant : full series? ::: , everything else ; the series is just . Does the starting endpoint of a full-period integral matter? ::: No — any interval of length gives the same coefficients. At a jump, what value does the series converge to? ::: the midpoint (average of the left and right limits). At , what value? ::: the average of and — a jump if they differ. What is the Gibbs phenomenon? ::: a fixed ~9% overshoot of the partial sums near a discontinuity that never disappears. (from Ex 2 at ) ::: .

Related: Convergence of Fourier series (Dirichlet conditions) (does the series actually equal at jumps?), Complex (exponential) Fourier series (same coefficients repackaged), Parseval's theorem (energy check on the coefficients above).