The sawtooth series sums to at , where the sawtooth itself jumps from down to . Redefining the function at that single point would change no coefficient, so the series has no way of knowing the value written there. This lesson states when a Fourier series converges at each point and to what, explains the overshoot that partial sums keep next to a jump, and shows how data given only on lead to two different half-range series. It ends with the conditions under which a Fourier series may be differentiated term by term.
Key terms
Piecewise smooth function
Definition A function is piecewise continuous on if there are finitely many points such that is continuous on each open interval and has finite one-sided limits at both ends of each of these intervals. It is piecewise smooth on if, in addition, is continuously differentiable on each open interval and has finite one-sided limits at both ends of it. A periodic function is piecewise smooth if it is piecewise smooth on one period. The values of at the break points play no role.
In plain words Over one period the graph is made of finitely many smooth arcs. Jumps and corners are allowed where the arcs meet, but no blow-ups, no vertical tangents and no endless wiggling.
Example The square wave, equal to on and to on and repeated with period , is piecewise smooth, with jumps at the integer multiples of . So is the sawtooth, equal to on , and so is the triangle wave, equal to on , which has corners but no jumps. The function on is continuous but not piecewise smooth, because its derivative tends to at . The function is not even piecewise continuous on , since it has no limit as .
Pointwise convergence
Definition A series of functions converges pointwise on a set if, for each fixed in the set, its partial sums form a convergent sequence of numbers. The pointwise convergence theorem for Fourier series says the following. Let be piecewise smooth and periodic with period , and write and for its left and right limits at . Then at every real the Fourier series of converges, and its sum is
At a point where is continuous this is . At a jump it is the average of the one-sided limits, the midpoint of the jump, whatever value is given at that point. At the ends of the basic interval the limits come from the periodic extension, so the sum at is , which is not unless . If is also continuous on the whole line, the convergence is uniform.
In plain words The series cannot see the single value written at a jump, since no integral changes when that value changes. What it does see are the values just to the left and just to the right, and it settles halfway between them.
Example The square wave is odd, so every is zero, and
which is for odd and for even . So
At the one-sided limits are and , so the sum is , and indeed every term vanishes there. At the left limit is and, by periodicity, the right limit is , so the sum is again . At the function is continuous with value , and the series becomes . A partial sum is only an approximation, even at a point of continuity. The three nonzero modes through give
Gibbs phenomenon
Definition Let be periodic and piecewise smooth with a jump at of size . The Gibbs phenomenon is the overshoot of the partial sums next to . On the side of the larger one-sided limit the partial sums rise above that limit, and on the other side they fall below the smaller one. As , the peak of each overshoot nearest the jump differs from its one-sided limit by an amount that tends to , where
with the integrand taken to be at . So about percent of the jump remains on each side, while the peak moves toward and sits at a distance of about from it. The partial sums therefore do not converge uniformly on any interval that has as an endpoint, even though they converge at every point. On every closed interval that contains no jump of the periodic extension the convergence is uniform. Mean-square convergence still holds, and the two facts fit together because the overshoot occupies a strip whose width tends to zero.
In plain words Adding more terms squeezes the ripples next to a jump into a narrower and narrower strip, but the tallest ripple keeps its height. About percent of the jump survives on each side, however many terms are used.
Example For the square wave , so the peaks approach . The partial sum through peaks at with value about , and the partial sum through peaks at with value about . Over the same range the mean-square error on drops from about to about . The overshoot gets thinner, not lower.
Odd and even extensions
Definition Let be piecewise continuous on . Its even extension is the function on with and for . Its odd extension has and for , with . Each is then repeated with period . The values at and affect no Fourier coefficient. The periodic even extension never has a jump at or at , since its one-sided limits are on both sides of and on both sides of . The periodic odd extension has a jump at unless , and a jump at unless .
In plain words Data on say nothing about negative , so we choose how to fill in that side. The even extension mirrors the graph in the vertical axis, and the odd extension mirrors it and flips its sign. The choice is ours, not a fact about the data.
Example For on , the even extension is the constant and the odd extension is the square wave. For on , the odd extension is the sawtooth, with jumps at the odd multiples of , while the even extension is the triangle wave, which is continuous.
Half-range sine and cosine series
Definition Let be piecewise continuous on . Its half-range sine series is the Fourier series of its odd extension,
and its half-range cosine series is the Fourier series of its even extension,
for . Both use only the data on . If is piecewise smooth on , both series converge at every interior point to , which is where is continuous. They can differ at the ends. Every term of the sine series is zero at and at , so its sum is there. The cosine series converges to at and to at . The sine modes satisfy the Dirichlet conditions , while the cosine modes, the constant among them, satisfy the Neumann conditions . The boundary conditions of a problem decide which series is useful.
In plain words The same data on half a period can be written with sines only or with cosines only. The two series agree inside the interval and part ways at the ends, where the sine series is held at zero and the cosine series follows the data.
Example For on the cosine series has and for , so it is just the constant . The sine series has the square-wave coefficients , so
for , while the sine series sums to at and . That endpoint value comes from the chosen extension and is not a defect of the series. For a heat problem on with initial temperature and both ends held at , the sine series is the natural choice, even though the initial data and the boundary values disagree at the two corners.
Termwise differentiation
Definition To differentiate a Fourier series term by term is to replace each term by its derivative, so the amplitudes of the th modes are multiplied by , with sines and cosines exchanged. The result need not be the Fourier series of , and it need not converge at all. A sufficient condition is the following. If is continuous on the whole line and periodic with period , and is piecewise smooth, then the termwise derivative of the Fourier series of is the Fourier series of , and it converges to at every . The reason is integration by parts. For such an it gives the coefficients and for the cosines and sines of , exactly those of the termwise derivative, while a jump of would add boundary terms to these formulas. Termwise integration needs much less. If is piecewise continuous on , then integrating its Fourier series term by term from to gives a series that converges to for every in , whether or not the Fourier series of itself converges.
In plain words Differentiation multiplies the th amplitude by a multiple of , so a series whose coefficients shrink only like loses all its decay. It is safe when the periodic extension of has no jumps and is itself piecewise smooth. Integration divides by and only helps.
Example The sawtooth series cannot be differentiated term by term. Its termwise derivative is . At the terms are , and at no do they tend to zero, since would force both and . So the differentiated series diverges everywhere, although on . The trouble is the jump of the periodic extension at . The triangle wave has no jumps, and its derivative, the square wave, is piecewise smooth. Its series can be differentiated term by term,
on , and the second series, the square-wave series, is exactly the termwise derivative of the first.
Check yourself
- Let have period , with for and for . To what value does its Fourier series converge at , , and ?
Show the answer
The function is piecewise smooth, so the series converges everywhere to the average of the one-sided limits. At both limits are , so the sum is . At the function is continuous and the sum is . At the left limit is , and by periodicity the right limit is the limit of as , which is . The sum there is , and by periodicity it is also at . No value assigned to at changes these answers.
- Find the half-range cosine series of on . Give the sums of the half-range sine and cosine series of this function at and at , and use the cosine series at to find the sum of over the odd .
Show the answer
The coefficients are and, after integrating by parts, for , which is for odd and for even . So
on . The even extension is the triangle wave, which is continuous, so the cosine series sums to at and to at . The sine series is the sawtooth series, whose terms all vanish at and at , so it sums to at both ends. At that is the midpoint of the sawtooth’s jump from to . Setting in the cosine series gives , so the sum of over odd is .
- To get a series for on , one student differentiates the half-range sine series of term by term, and another differentiates its half-range cosine series. Which result is valid, and why?
Show the answer
The sine series is the Fourier series of the odd extension, the sawtooth, whose periodic extension jumps at the odd multiples of . Its termwise derivative has terms that do not tend to zero, so it diverges. The cosine series is the Fourier series of the triangle wave, which is continuous and has the piecewise smooth square wave as its derivative, so termwise differentiation is valid. The derivative of is , which gives
This converges to for and to at and , the jump averages of the square wave. It is the half-range sine series of the constant .