Convergence of Fourier series: continuity points, jumps, endpoints and the Gibbs phenomenon

What the convergence theorem answers

Once you have computed the Fourier series of a function, a separate question remains: what number does the series actually add up to at each x? The answer is “f(x)” only under conditions, and at some points it is something else. This lesson is about that question, not about computing coefficients.

Hypotheses and statement

Let f be 2L-periodic and piecewise smooth on [−L, L]. That means the interval splits into finitely many pieces on which f and f′ are continuous, with finite one-sided limits of f and f′ at the break points. Then for every real x, the partial sums SN(x) of the Fourier series converge to


½ [f(x+) + f(x−)],


the average of the right- and left-hand limits. Three consequences follow:


  • At a point of continuity the two limits agree, and the series converges to f(x).
  • At a jump the series converges to the midpoint of the jump. The value you assign to f at that single point is irrelevant, because the coefficients are integrals, and changing one value does not change them.
  • At the ends of the interval the series represents the periodic extension. At x = ±L the relevant one-sided limits are f(L−), approaching from inside the interval, and f(−L+), which is where the next period begins. So the series converges to ½[f(−L+) + f(L−)]. Whenever those two values differ, the endpoint is a hidden jump, even if the formula for f is smooth on the open interval.


For x outside [−L, L], first subtract a multiple of 2L to bring x into the basic interval.

Worked examples

  1. f(x) = 1 for −π < x < 0 and 5 for 0 < x < π, period 2π.
  • At x = π/2 (continuity) the series gives 5.
  • At x = 0 it gives (5 + 1)/2 = 3.
  • At x = π it gives ½[f(−π+) + f(π−)] = (1 + 5)/2 = 3.
  1. f(x) = x2 + x on (−π, π), period 2π. The formula is smooth, but f(π−) = π2 + π and f(−π+) = π2 − π. So the series converges to π2 at x = π, not to π2 + π. It also converges to π2 at x = 3π, by periodicity.
  2. Half-range series. The sine series of cos x on (0, π) represents the odd 2π-periodic extension. At x = 0 the one-sided limits are +1 and −1, so the series gives 0, although cos 0 = 1. A cosine series uses the even extension, which does not create jumps at 0 or at L.

Pointwise versus uniform convergence: the Gibbs phenomenon

  • If the periodic extension is continuous everywhere and piecewise smooth, the series converges uniformly to f.
  • If the extension has a jump, convergence cannot be uniform on any interval containing it. Each SN is continuous, and a uniform limit of continuous functions would have to be continuous.
  • Near each jump the partial sums overshoot. As N grows, the overshoot moves closer to the jump and becomes narrower, but its height does not shrink. It approaches about 8.95% of the jump size on each side. For example, a jump from 1 to 5 (size 4) gives peaks near 5.36 and troughs near 0.64 for large N. This is the Gibbs phenomenon.


Pointwise convergence still holds at every fixed x, because for a fixed x ≠ jump the overshoot eventually moves past it.

Why the hypotheses matter

  • Continuity alone is not enough. There exist continuous periodic functions whose Fourier series diverge at some points. Piecewise smoothness, or weaker conditions such as bounded variation or Dini’s condition, is what guarantees the midpoint result.
  • For any square-integrable f the series always converges in mean square. That does not say what happens at a particular point.
  • Always check the hypotheses on the periodic extension, including the endpoints, before quoting the theorem.


Common errors to avoid: reporting f(x) at a jump; using the formula’s value at the endpoint instead of the endpoint average; believing the Gibbs overshoot disappears for large N; confusing pointwise with uniform convergence; and assuming a continuous function automatically has a pointwise-convergent series.


Computing the coefficients, standard waveform expansions and Fourier transforms are treated separately.

Let f be 2π-periodic with f(x) = −1 for −π < x < 0 and f(x) = 3 for 0 < x < π. To what value does the Fourier series of f converge at x = 0?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

The function f(x) = ex on −1 < x < 1 is extended to be periodic with period 2. To what value does its Fourier series converge at x = 1? Give the exact value and a decimal to three decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Let f have period 4, with

f(x) = x + 1 for −2 < x < 0, and f(x) = x2 for 0 ≤ x < 2.

Give the value to which the Fourier series of f converges at each of: (1) x = −1; (2) x = 0; (3) x = 2; (4) x = 5.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors