Intuition What this page is for
The parent topic note told you the rules . This page is a firing range : we shoot every kind of function at those rules — smooth points, jump points, period-wrap points, functions that pass, functions that fail — so that when an exam throws one at you, you've already seen its twin.
The single question we answer at every point x is:
S ( x ) = 2 f ( x + ) + f ( x − ) .
Here f ( x + ) means "the height f approaches as you walk towards x from the right " and f ( x − ) is "from the left ". Read that formula as: the series lands at the average of the two heights the function has on either side of x .
Throughout this page we say "condition 1/2/3". Here they are, spelled out before any example uses them. They are the Dirichlet conditions applied over one period of a periodic f :
Definition The Dirichlet checklist
Condition 1 — absolute integrability. The total area under ∣ f ∣ is finite: ∫ − L L ∣ f ( x ) ∣ d x < ∞ . (Bans infinite blow-ups; makes the coefficient integrals exist.)
Condition 2 — finitely many finite jumps. Every discontinuity is a jump where both one-sided limits f ( x − ) , f ( x + ) exist and are finite; there are only finitely many. (Bans infinite discontinuities and points with no one-sided limit.)
Condition 3 — finitely many extrema. f has only finitely many maxima and minima in one period. (Bans infinite oscillation.)
If all three hold, the series converges at every x to S ( x ) = 2 f ( x + ) + f ( x − ) . They are sufficient , not necessary. Mnemonic: I-J-W = I ntegrable, finite J umps, finite W iggles.
Before working anything, list every distinct situation a Fourier convergence problem can present. Each worked example below is tagged with the one cell it covers.
#
Case class
What makes it different
Example
A
Continuous interior point
f ( x + ) = f ( x − ) , series = f ( x )
Ex 1
B
Finite jump inside the interval
f ( x + ) = f ( x − ) , both finite
Ex 2
C
Period-wrap jump at the endpoint
jump created by periodicity, not by f 's formula
Ex 3
D
Symmetric jump landing on zero
left and right cancel to 0
Ex 3
E
Asymmetric jump (non-zero midpoint)
midpoint is some non-zero number
Ex 4
F
Removable / "hole" point (defined weirdly at one spot)
f redefined at a single point but limits agree
Ex 5
G
FAILS: infinite wiggles
condition 3 broken
Ex 6
H
FAILS: infinite blow-up (both sides)
condition 1 broken (not absolutely integrable)
Ex 7
K
One-sided infinite limit
one side finite, the other blows up
Ex 8
L
Endpoint continuity (wrap agrees)
f ( π − ) = f ( − π + ) , so S ( π ) = f ( π )
Ex 9
I
Word problem / real signal
a physical square pulse (with Gibbs overshoot)
Ex 10
J
Exam twist: series value used to sum a number series
plug a clever x
Ex 11
We now hit every cell.
Figure 1 — a black function with a jump at x 0 . The left piece ends at the open circle f ( x 0 − ) ; the right piece starts at the open circle f ( x 0 + ) ; the solid red dot sits exactly midway between them. That red dot is S ( x 0 ) , the value the Fourier series converges to. Every example on this page is just "find the two circles, then find the red dot."
Intuition Why halfway, in one sentence
The series is built from sines and cosines, which are perfectly symmetric left-right; at a jump they have no reason to prefer one side, so they split the difference — the Dirichlet kernel samples both sides with equal weight.
Worked example Example 1 —
f ( x ) = x on ( − π , π ) , evaluate at x = 2 π
Forecast: guess the series value before reading on. Is x = π /2 a jump or a smooth spot?
Check the point is interior and continuous. Why this step? The midpoint rule only differs from f at jumps; everywhere else it just equals f . Between − π and π the formula f ( x ) = x is a straight line — no break at π /2 .
Since continuous, f ( x + ) = f ( x − ) = f ( π /2 ) . Why? Walking towards π /2 from either side, the line reaches the same height.
Apply the formula:
S ( 2 π ) = 2 f ( 2 π + ) + f ( 2 π − ) = 2 2 π + 2 π = 2 π .
Verify: at a point of continuity the average of a number with itself is that number, so S = f ( π /2 ) = π /2 ≈ 1.5708 . Sanity: π /2 lies strictly inside ( − π , π ) , so no wrap. ✓
Worked example Example 2 — Square wave, jump at
x = 0
f ( x ) = { − 1 + 1 − π < x < 0 0 < x < π , period 2 π . Find S ( 0 ) .
Forecast: the function is never 0 . Can the series still be 0 there?
Identify the limits at x = 0 . Why? 0 is where the two pieces meet — a jump. From the right the value is + 1 , from the left it is − 1 :
f ( 0 + ) = + 1 , f ( 0 − ) = − 1.
Both limits are finite (condition 2 satisfied) , so the midpoint rule applies. Why this matters: if a side blew up to infinity we could not average — see Ex 8.
Average them:
S ( 0 ) = 2 ( + 1 ) + ( − 1 ) = 0.
Verify: the square wave is an odd function, and every term of its series is sin ( n x ) which is 0 at x = 0 . So the whole partial sum is 0 at x = 0 for every N — the limit is unavoidably 0 . ✓
Figure 2 — square wave. Open circles at f ( 0 − ) = − 1 and f ( 0 + ) = + 1 ; the red dot at height 0 is S ( 0 ) .
Worked example Example 3 —
f ( x ) = x on ( − π , π ) , evaluate at x = π
Forecast: the formula f ( x ) = x looks perfectly continuous. Where could a jump come from?
Remember the function is periodic with period 2 π . Why this step? The Fourier series only knows one period and then repeats it. So just to the right of x = π the graph restarts at the bottom, at − π .
Compute the two limits at x = π :
f ( π − ) = π ( left piece reaches π ) , f ( π + ) = − π ( wrap restarts at − π ) .
Why − π ? Periodicity: f ( π + ) = f (( − π ) + ) = − π .
Average:
S ( π ) = 2 π + ( − π ) = 0.
Verify: the sawtooth's series is 2 ∑ n ≥ 1 n ( − 1 ) n + 1 sin ( n x ) ; at x = π every sin ( nπ ) = 0 , so S ( π ) = 0 . ✓ This is cell C (wrap jump) and , because the two heights are ± π , cell D (symmetric ⇒ midpoint zero).
Figure 3 — sawtooth f ( x ) = x repeated over three periods. At x = π the left circle sits at π , the right circle (wrap) at − π , and the red dot at 0 is S ( π ) .
Worked example Example 4 — a step that does
not average to zero
f ( x ) = { 0 4 − π < x < 0 0 < x < π , period 2 π . Find S ( 0 ) and S ( π ) .
Forecast: which jump gives a non-zero answer, and which gives zero?
At x = 0 : the two pieces meet with f ( 0 − ) = 0 (left flat piece) and f ( 0 + ) = 4 (right flat piece). Why this step? We read each side's height right at the meeting point.
S ( 0 ) = 2 4 + 0 = 2.
Why non-zero? The two sides are not symmetric about zero, so their average is a genuine non-zero value — cell E .
At x = π (period wrap): just left is the top piece f ( π − ) = 4 ; just right wraps to the start of the next period, which is the bottom piece f ( π + ) = f (( − π ) + ) = 0 .
S ( π ) = 2 4 + 0 = 2.
Why also 2 ? Same two heights (4 and 0 ) meet at the wrap — same average.
Verify: Trick — split f = 2 + 2 g where g is the ± 1 square wave from Ex 2. The constant 2 passes through every point of continuity and every jump (constants have no jump). At x = 0 : g ( 0 ) series = 0 , so S ( 0 ) = 2 + 2 ⋅ 0 = 2 . ✓ At x = π : g 's series = 0 there, so S ( π ) = 2 . ✓
First, the tool we lean on. A convergent Fourier series is reconstructed from coefficients built by orthogonality :
Worked example Example 5 — the value at a single point cannot be seen by the series
Take f ( x ) = x on ( − π , π ) but artificially set f ( 0 ) = 100 . Find S ( 0 ) .
Forecast: does the series "see" that we spiked the value to 100 ?
The coefficients a n , b n above are integrals of f . Why this step? Changing f at a single point changes the integral by an area of width zero, i.e. by nothing. So a n , b n are identical to plain f ( x ) = x — the spike leaves no trace in any coefficient.
Compute the one-sided limits, ignoring the spike. Why ignore it? Limits look at what happens approaching 0 , not the value at 0 :
f ( 0 + ) = 0 , f ( 0 − ) = 0.
Average:
S ( 0 ) = 2 0 + 0 = 0.
Verify: f ( x ) = x is continuous at 0 with limits 0 on both sides; the artificial 100 is invisible to a convergent Fourier series (it converges to the limits , not the assigned point value). So S ( 0 ) = 0 = 100 . ✓ This is why piecewise-smooth analysis always works with limits, never with isolated redefinitions.
Worked example Example 6 —
f ( x ) = sin ( 1/ x ) for 0 < ∣ x ∣ < π , extended with period 2 π
Define the function precisely first. Why? You can only take a Fourier series of a fully specified periodic function. Set f ( x ) = sin ( 1/ x ) on 0 < ∣ x ∣ < π , assign f ( 0 ) = 0 (any finite value; it will not matter), and repeat with period 2 π . Forecast: will Dirichlet's theorem guarantee convergence here?
Count the maxima/minima as x → 0 . Why this step? Condition 3 caps the number of wiggles per period. sin ( 1/ x ) hits a peak whenever 1/ x = 2 π + 2 π k , i.e. at x = π /2 + 2 π k 1 — infinitely many peaks bunching up at 0 . Condition 3 is violated.
Also check the limit at x = 0 . Why this second check? Because sin ( 1/ x ) swings between − 1 and + 1 forever as x → 0 , the one-sided limits f ( 0 + ) and f ( 0 − ) do not exist — so condition 2 (a finite jump needs both one-sided limits to exist) fails too.
Two conditions fail , so Dirichlet's theorem says nothing . Why this matters: the theorem is a sufficient checklist; unticked boxes withdraw the guarantee — they do not by themselves prove divergence, they simply leave us without a promise.
Verify: the peaks sit at x k = 1/ ( π /2 + 2 π k ) . For k = 0 , 1 , 2 these are x 0 = π 2 ≈ 0.6366 , x 1 ≈ 0.1273 , x 2 ≈ 0.0688 — an infinite shrinking sequence, so infinitely many extrema; and the values at those peaks stay pinned at + 1 while troughs sit at − 1 , so no one-sided limit exists at 0 . ✓
Figure 4 — sin ( 1/ x ) near 0 . The first three peaks (red dots) crowd towards x = 0 ; there are infinitely many, so the graph never settles — no left/right limit at 0 .
Worked example Example 7 —
f ( x ) = x 2 1 on ( − π , π )
Forecast: the graph shoots to + ∞ on both sides of 0 . Does the coefficient integral even exist?
Test absolute integrability ∫ − π π ∣ f ∣ d x . Why this step? Condition 1 needs a finite total area under ∣ f ∣ ; without it the numbers a n , b n from the recalled formula are not even defined.
∫ 0 π x 2 1 d x = [ − x 1 ] 0 π = − π 1 − ( − ∞ ) = + ∞.
The area is infinite, so condition 1 fails. Why this step? The whole midpoint machinery only kicks in after the three conditions are met; here the very first one (finite area) is broken, so we must stop and report "no guarantee" rather than pretend to average. This infinite discontinuity — both one-sided limits = + ∞ — is exactly the pathology condition 1 exists to ban.
Verify: ∫ ε π x 2 1 d x = ε 1 − π 1 → + ∞ as ε → 0 + . Not absolutely integrable. ✓ Contrast with a finite jump (Ex 2), which is completely fine.
Worked example Example 8 — one side finite, the other blows up
f ( x ) = ⎩ ⎨ ⎧ x 1 0 0 < x < π − π < x < 0 , period 2 π . What can Dirichlet say at x = 0 ?
Forecast: the left side is a flat 0 , the right side rockets to + ∞ . Can we still average?
Read each one-sided limit. Why this step? The midpoint rule needs both limits to be finite numbers before we may average them.
f ( 0 − ) = 0 ( finite ) , f ( 0 + ) = lim x → 0 + x 1 = + ∞ ( does not exist as a finite number ) .
One side is infinite , so this is a one-sided infinite discontinuity . Why it matters: condition 1 already fails — ∫ 0 π x 1 d x = + ∞ — so the coefficients are not defined, and even the midpoint formula has nothing finite to average on the right. The theorem gives no guarantee .
Contrast with cell B. Why include this? A finite jump (both sides finite, Ex 2) is allowed; the moment one side is infinite, the checklist breaks — the finiteness of the other side cannot rescue it.
Verify: ∫ ε π x 1 d x = ln π − ln ε → + ∞ as ε → 0 + , so absolute integrability fails on ( 0 , π ) alone; f ( 0 + ) is infinite while f ( 0 − ) = 0 is finite. ✓
Worked example Example 9 —
f ( x ) = x 2 on ( − π , π ) , evaluate at x = π
Forecast: at the endpoint of f ( x ) = x we got a jump (Ex 3). Does every endpoint jump? Guess before reading.
Compute the left limit at x = π . Why this step? We must know the height the last piece reaches: f ( π − ) = π 2 .
Compute the wrap (right) limit. Why? Just past x = π the graph restarts one period earlier, at x = − π : f ( π + ) = f (( − π ) + ) = ( − π ) 2 = π 2 . The key observation: because x 2 is even , the two ends have the same height — the wrap agrees, so there is no jump at the endpoint.
Since both sides equal π 2 , this is a point of continuity:
S ( π ) = 2 π 2 + π 2 = π 2 .
Verify: f ( − π + ) = π 2 = f ( π − ) , so the periodic extension of x 2 is continuous everywhere (it makes a smooth "scalloped" wall). Numerically π 2 ≈ 9.8696 , and the series equals f ( π ) = π 2 there — no midpoint discount. ✓ This completes the endpoint picture: a wrap creates a jump only when the two ends differ (Ex 3); when they agree, the endpoint behaves like any interior continuous point.
Figure 5 — periodic f ( x ) = x 2 over three periods. At x = π the left height π 2 and the wrapped right height π 2 coincide (single red dot ) — no gap, S ( π ) = π 2 .
Worked example Example 10 — a rectangular voltage pulse
A digital clock line holds 0 volts for the first half of each cycle and 5 volts for the second half:
V ( t ) = { 0 5 0 < t < T /2 T /2 < t < T , period T .
What voltage does its Fourier reconstruction show exactly at the switching instant t = T /2 ?
Forecast: hardware says it's a clean step from 0 to 5 . What does the series draw at that instant?
Read the one-sided limits at the switch t = T /2 . Why this step? t = T /2 is a finite jump — a real physical rise time idealised to zero.
V ( T / 2 − ) = 0 , V ( T / 2 + ) = 5.
Both finite ⇒ midpoint applies:
S ( T /2 ) = 2 0 + 5 = 2 5 = 2.5 volts .
Verify: units are volts throughout; the midpoint 2.5 V lies between 0 and 5 V as any average must. ✓
The Gibbs overshoot (see Figure 6): near the switch the finite partial sum S N does not rise smoothly — it overshoots to about 9% of the jump height. Why does this happen? Each finite partial sum is a smooth wave that, forced to climb a vertical cliff of height 5 V , always shoots past the top before settling — the leftover ripple is stubborn. Concretely the overshoot is about 0.0895 × 5 ≈ 0.45 V , giving a spike near 5.45 V above the top and a matching dip near − 0.45 V below the bottom. Crucially this overshoot does not shrink as N → ∞ (it only narrows), yet the value at the switch stays exactly 2.5 V . This is the Gibbs phenomenon in the flesh — the overshoot decorates the jump, but the limit value is still the midpoint.
Figure 6 — the 0 -to-5 V pulse (black) and a high-N partial sum. The red overshoot horns near the switch never vanish (Gibbs), but the crossover passes exactly through the midpoint 2.5 V .
Worked example Example 11 — evaluate
1 − 3 1 + 5 1 − 7 1 + ⋯
The square wave of Ex 2 has Fourier series
f ( x ) = π 4 ∑ k = 0 ∞ 2 k + 1 s i n ( ( 2 k + 1 ) x ) .
Plug x = 2 π to sum the alternating reciprocals of odd numbers.
Forecast: what value does the left side take at x = π /2 ?
Evaluate f at x = π /2 . Why here? π /2 is inside ( 0 , π ) where f = + 1 , and it is a point of continuity (cell A), so S ( π /2 ) = f ( π /2 ) = 1 .
Evaluate the sines: sin ( ( 2 k + 1 ) 2 π ) cycles + 1 , − 1 , + 1 , − 1 , … for k = 0 , 1 , 2 , 3 . Why? sin ( odd ⋅ 2 π ) = ( − 1 ) k .
Equate both sides:
1 = π 4 ( 1 − 3 1 + 5 1 − 7 1 + ⋯ ) ⟹ 1 − 3 1 + 5 1 − 7 1 + ⋯ = 4 π .
Verify: the partial sum 1 − 3 1 + 5 1 − 7 1 + 9 1 − 11 1 ≈ 0.7440 , converging (slowly) to π /4 ≈ 0.7854 . ✓ This is the Leibniz series — an exam favourite born from a continuity point.
Recall Which cell is this? (hide and answer)
A function jumps from − 3 to + 3 at a point — what does the series give there? ::: The midpoint 2 3 + ( − 3 ) = 0 (cell D).
f ( x ) = x 2 evaluated at an interior point — jump or smooth? ::: Smooth (cell A); series equals f exactly there.
f ( x ) = x 2 evaluated at x = π (endpoint) — jump or smooth? ::: Smooth (cell L); the even function wraps to the same height, so S ( π ) = π 2 .
You redefine f at exactly one point to be a million — does the series change? ::: No (cell F); coefficients are integrals, blind to single points.
1/ x 2 near x = 0 — which condition fails? ::: Condition 1 (infinite discontinuity, both sides blow up, not absolutely integrable) — cell H.
Left side flat at 0 , right side = 1/ x → ∞ — can we average? ::: No (cell K); one infinite side breaks the checklist even though the other is finite.
Square voltage pulse at the switch — series value? ::: 2.5 volts (cell I), the midpoint of 0 and 5 .
Mnemonic The one question that solves every cell
At any point ask: "What are the two heights on my left and right?" Average them. Continuity (interior or an agreeing wrap) ⇒ same height ⇒ just f ( x ) . Finite jump ⇒ two heights ⇒ meet in the middle. Either side infinite, or infinitely many wiggles ⇒ Dirichlet withdraws its guarantee.
same height cells A and L
two finite heights cells B C D E I
both sides infinite cell H
infinitely many peaks cell G
Two heights left and right?
Meet in the middle equals midpoint
Cell J plug clever x to sum a series