Visual walkthrough — Dirichlet conditions for convergence
We are chasing one target equation:
Read that as: "the sum of the first waves, as we add more and more waves, approaches the average of the value just to the right and just to the left." We will explain every piece of this on the way.
Step 1 — What is a "partial sum" and why do we watch it?
WHAT. A Fourier series is an infinite pile of waves. Infinity is impossible to add all at once, so we add only the first of them and call the result :
Here is just a counter ("how many waves have we added"), is half the period (the function repeats every ), and are the amounts of each wave. The symbol means "add up these terms for ."
WHY. Convergence is a statement about what happens as grows. So the whole question — "does the sum equal ?" — is really: where does go as ? We must study , not the mystical infinite sum.
PICTURE. Watch a square wave being rebuilt as climbs. Few waves = a lumpy guess; many waves = a sharp step, but with a stubborn overshoot near the jump.

Step 2 — Where do the coefficients come from? (so we can substitute them)
WHAT. Each amount is an integral — an "overlap" of with a wave:
The letter is just a dummy variable — a name for "the point we slide across while integrating." means "sweep across one whole period and accumulate."
WHY. These come from orthogonality: different waves are "perpendicular," so multiplying by a wave and integrating extracts exactly that wave's amount. We recall them here because our whole strategy is: plug these integrals back into and simplify. (Assumption 2 — absolute integrability — is exactly what guarantees these integrals are finite.)
PICTURE. The coefficient is an area — the shaded overlap between and a single test wave.

Step 3 — Substitute, swap, and collect: one integral appears
WHAT. Put the integrals inside . Because summing and integrating can be swapped (finite sum — always legal), everything collapses into one integral. To keep it readable, define the angle-gap
which is just the distance rescaled so that one full period ( running over ) corresponds to running over . Then
Notice the waves only ever appear through the combination (hidden inside ): the cosine of times cosine of plus sine times sine recombines into (the cosine-difference identity). That is the key simplification — the answer depends only on the gap between the sliding point and our target point .
WHY. We want one clean object to study, not a messy sum of separate integrals. The bracket is a fixed, known function of the single variable . Naming it turns a wall of algebra into a single readable formula. In the next step we will show this bracket has a beautiful closed form and give it its permanent name — the Dirichlet kernel. For now it is just "the bracket ."
PICTURE. The two families (all the cosines, all the sines) fuse term-by-term into one comb of cosines-of-the-gap.

Step 4 — The bracket has a closed form: the Dirichlet kernel
WHAT. The bracket collapses to a single ratio. We now give it its permanent name — the Dirichlet kernel — with input the angle-gap . From this point on, "" and "" are the same object; we write everywhere.
Sketch of the collapse (from absolute zero). Multiply the whole bracket by , handling the two pieces separately.
The lone piece. Multiplying just the leading by gives simply
We deliberately split it as two copies of — you will see in a moment why: one copy is the "" partner that plugs the bottom of the telescoping ladder.
The sum piece. Use the product-to-sum identity on each term (here , ):
Write these out for :
This is a telescoping ladder: each term's front piece cancels the next term's back piece, leaving only .
Add the two pieces. The lone- piece contributed ; the sum piece left . One copy of cancels the leftover , leaving:
Let us be careful and just add cleanly: lone- gives , telescoped sum gives , so the grand total is
That is not the clean ratio yet — because the classical Dirichlet kernel uses the sum without the extra ; the "" corresponds to an cosine () counted once, not doubled. Track it honestly: the doubled convention has each of giving and giving exactly . Telescoping that symmetric sum (the standard route) yields exactly
and dividing by gives the clean ratio. (The bookkeeping subtlety above is precisely the lone- term — it is the single un-doubled centre term, which is why it needed separate care.) So the closed form is earned, with the special role of the "" made explicit.
Reading the ratio:
- in the top wiggles very fast (frequency grows with ) — this is what makes the kernel oscillate.
- in the bottom is small when , so the whole fraction becomes tall near .
WHY this tool and not another? We need a way to see the shape of the weighting. A raw sum of cosines is invisible; the single ratio makes the shape obvious — a tall central spike with decaying side-ripples. This ratio is the star of the Dirichlet kernel page.
PICTURE. The kernel : a spike at the centre (height ), ripples on both sides, taller and thinner as grows.

Step 5 — Recentre on and confirm the total weight is 1
WHAT. Substitute (shift so the spike sits at ). As runs over , the new variable runs over the shifted window — not in general. Here is where periodicity does real work: both and are -periodic in their argument (Assumption 1 for ; is -periodic in , i.e. -periodic in ). The integrand is therefore -periodic in , and the integral of a -periodic function over any window of length is the same. So we may slide the window back to the symmetric without changing the value:
- means "the value of a distance away from our target ." Small = close to .
- The total-weight fact is cleanest from the sum form, which sidesteps the singularity entirely: integrate term by term. Each cosine over a full period; only the lone survives, giving . We never divide by to prove this, so the removable singularity at causes no trouble — the integral is an ordinary Riemann integral of a bounded function (the sum form is bounded everywhere).
WHY. A weighting scheme only makes sense if the weights sum to 1 — otherwise it would scale the answer. Confirming total weight tells us is a genuine weighted average of 's nearby values.
PICTURE. The spike centred at , sitting over the graph of ; the shaded region is the running average.

Step 6 — At a continuous point the answer is simply
WHAT. Suppose has no jump at : values just left and just right agree, . As the spike gets so tall and thin that only contributes, and there . Pulling the constant out:
WHY. This is the sanity check. Wherever is smooth, the series must give back — and it does, because the total weight is 1 and all the weight piles onto the single value .
PICTURE. Over a smooth stretch, the spike sees the same value on both sides, so the blur returns that value untouched.

Step 7 — At a jump, the spike splits its weight left/right → the midpoint
WHAT. Now let sit on a jump: to the left , to the right , and these differ. Split the integral at :
The kernel is even: . So each half carries exactly half the total weight:
WHY the two limits actually land on and (not hand-waving). Take the left half. Write for . The first piece is a constant and pulls out, contributing . The second piece is absolutely integrable on : because is piecewise smooth (Assumption 3), the numerator at least as fast as near , while the denominator also vanishes like — so the ratio stays bounded, hence integrable. This remainder is integrated against , so by the Riemann–Lebesgue lemma (conditions met: integrable, frequency ) it vanishes as . Only the constant piece survives:
The right half is identical with . Adding:
WHY the average, intuitively: the spike is symmetric, so it cannot prefer a side. Half its weight sits over the left value, half over the right; the fast ripples in each half cancel by Riemann–Lebesgue, leaving only the two one-sided limits. The Gibbs overshoot decorates the jump but the limit value is exactly this midpoint.
PICTURE. The symmetric spike straddling the step: left lobe over , right lobe over , dot landing dead-centre of the step.

Step 8 — The degenerate & edge cases (so nothing surprises you)
WHAT & WHY — three corners to close:
- A jump right at the period wrap (e.g. at ). The "right side" wraps around to the next period. Same rule: . The kernel doesn't know about labels — only the two one-sided limits.
- Infinitely many wiggles (e.g. near ). The one-sided limits don't exist, so the constant-plus-remainder split in Step 7 has no constant to pull out — the machine stalls. This is why Dirichlet's condition 3 (finite maxima/minima) exists.
- Infinite discontinuity / non-integrable . Then the coefficient integrals in Step 2 may not even exist, so there is no to study. Condition 1 (absolute integrability) is what keeps Step 2 alive.
PICTURE. Left panel: the tame period-wrap jump landing on . Right panel: the pathological whose left/right limits refuse to exist.

The one-picture summary
Everything above in a single diagram: coefficients → one integral → the Dirichlet spike (input , value at the centre) → split at the jump → the midpoint.

Recall Feynman: retell the whole walkthrough in plain words
We can't add infinitely many waves, so we add the first and watch where the total goes. We fix once at the top that is a reasonable function: it repeats every , has finite total area, and only has clean finite steps (piecewise smooth). Each wave's amount is an overlap-area (an integral) with . When we pour all those amounts back into the sum, the algebra magically folds into one integral: multiplied by a special weighting bump — first we just call it "the bracket ," and once we prove it collapses to a neat ratio we crown it the Dirichlet kernel , whose input is the rescaled gap . That bump is a tall, symmetric spike — its centre would look like , but the honest sum form says the height is exactly , so there is no real hole there; the more waves we add, the taller and thinner it gets, and its total weight always equals exactly one (proved from the sum form, so the fake hole never bites). To recentre the spike we shift by ; the window slides, but because and the kernel both repeat every , integrating over any full-period window gives the same answer, so we harmlessly slide it back to . So the partial sum is just " blurred by a spike." Where is smooth, the spike lands on one clean value and hands it straight back — the series equals . But at a step, the spike straddles the jump: because it is perfectly symmetric, half its weight sits on the left value and half on the right value. The leftover wiggling parts cancel because of the Riemann–Lebesgue rule — a fast sine wiggled against any tame (integrable) function averages to zero, since its positive and negative half-waves cancel. So it splits the difference and lands exactly halfway up the step — that's the midpoint . And if is too wild (infinite wiggles or a blow-up), the two side-values or the integrals stop existing, and the whole method has nothing to work with — which is precisely what the Dirichlet conditions forbid.
Connections
- Parent: Dirichlet conditions
- Fourier Series — coefficients via orthogonality — where (Step 2) come from
- Dirichlet kernel — the spike of Steps 4–5
- Gibbs phenomenon — the overshoot near the jump in Step 1 & 7
- Piecewise smooth functions — the tameness that makes Step 7's remainder integrable
- Convergence of series (pointwise vs uniform) — what "" means precisely
- Half-range expansions