Differential EquationsFourier Series and Boundary Value Problems3 of 6
Fourier Series and Boundary Value Problems · 3

Convergence and the Gibbs Phenomenon

We build Fourier series by adding smooth sine and cosine waves, and we need to know what height that infinite sum actually settles on at any point x\atx{x}.

1

Convergence at Smooth Points, Jumps, and Boundaries

We want to find the height a Fourier series converges to at a smooth point inside its interval, right at a vertical jump, and at the left and right edges of the interval.

Convergence at Smooth Points, Jumps, and Boundaries
0\htmlClass{lc-blue}{0}
10\htmlClass{lc-blue}{10}
−6\htmlClass{lc-mute}{-6}
−2\htmlClass{lc-mute}{-2}
0\htmlClass{lc-violet}{0}
2\htmlClass{lc-violet}{2}
6\htmlClass{lc-mute}{6}
4\htmlClass{lc-blue}{4}
0\htmlClass{lc-blue}{0}
2\htmlClass{lc-green}{2}
2\htmlClass{lc-green}{2}
x\htmlClass{lc-mute}{x}
Text solution
Interior point x=0\atx{x = 0}The line on [−2,2][-2, 2] is unbroken at x=0\atx{x = 0}, so the Fourier series settles directly onto the height of the line there.
Height at x=0:2\displaystyle \text{Height at } \atx{x = 0}: \quad \lands{2}
Copy the interval to check the boundary x=2\atx{x = 2}Because sines and cosines repeat forever, the series repeats the line on [2,6][2, 6] and [−6,−2][-6, -2], putting the end of our line at height 4\fn{4} against the start of the next copy at height 0\fn{0}.
Jump at x=2:from 4 on the left to 0 on the right\displaystyle \text{Jump at } \atx{x = 2}: \quad \text{from } \fn{4} \text{ on the left to } \fn{0} \text{ on the right}
Midpoint of the boundary jumpAt any jump, the wave sum passes right through the middle between the left and right heights.
4+02\displaystyle \frac{\fn{4} + \fn{0}}{2} =2\displaystyle = \lands{2}

Even when a curve has no jumps inside [−2,2][-2, 2], repeating it creates a jump at the boundaries whenever its left and right ends sit at different heights.

Repeating the curve creates a jump at the boundaries whenever its two ends don’t match in height, and the Fourier series always lands halfway between them.
2

The Gibbs Overshoot

At a jump, the wave sum crosses through the midpoint, but right next to the jump the waves spike too high on one side and dip too low on the other before settling down. What happens to this Gibbs overshoot as we add more waves?

The Gibbs Overshoot
0\htmlClass{lc-blue}{0}
10\htmlClass{lc-blue}{10}
−2\htmlClass{lc-blue}{-2}
8\htmlClass{lc-blue}{8}
3\htmlClass{lc-green}{3}
8.9\htmlClass{lc-orange}{8.9}
−2.9\htmlClass{lc-orange}{-2.9}
x\htmlClass{lc-mute}{x}
Text solution
Total jump heightFind the full vertical distance from the bottom of the step to the top.
8−(−2)\displaystyle \fn{8} - (\fn{-2}) =10\displaystyle = 10
9% Gibbs overshootTake 9%\gibbs{9\%} of the total jump height to find how far the wave sum goes past each corner.
0.09×10\displaystyle 0.09 \times 10 =0.9\displaystyle = \gibbs{0.9}
Maximum spike and minimum dipAdd the overshoot to the top height of the jump and subtract it from the bottom height.
Maximum=8+0.9=8.9Minimum=−2−0.9=−2.9\displaystyle \begin{aligned} \text{Maximum} &= \fn{8} + \gibbs{0.9} = \gibbs{8.9} \\ \text{Minimum} &= \fn{-2} - \gibbs{0.9} = \gibbs{-2.9} \end{aligned}

For every step height, the wave sum crosses through the midpoint of the jump and overshoots both the top and bottom corners by 9%\gibbs{9\%} of the vertical gap, flattening out completely only when the two halves meet at the same height.

At any vertical step, the wave sum crosses right through the middle of the jump and overshoots both corners by 9% of the gap, flattening out only when the two sides meet.
3

Pointwise vs. Uniform Convergence

Because the 9%\gibbs{9\%} overshoot never shrinks away, we distinguish pointwise convergence, where the wave sum settles onto the right value at any single point you pick, from uniform convergence, where the entire wave sum settles onto the function everywhere at once with no lingering overshoot.

Pointwise vs. Uniform Convergence
0\htmlClass{lc-blue}{0}
10\htmlClass{lc-blue}{10}
5 waves\htmlClass{lc-green}{\text{5 waves}}
−3π\htmlClass{lc-mute}{-3\pi}
−π\htmlClass{lc-violet}{-\pi}
π\htmlClass{lc-violet}{\pi}
3π\htmlClass{lc-mute}{3\pi}
x2\htmlClass{lc-blue}{x^2}
π2\htmlClass{lc-blue}{\pi^2}
π2\htmlClass{lc-blue}{\pi^2}
x\htmlClass{lc-mute}{x}
Text solution
Check the interior of [−π,π][-\pi, \pi]The parabola f(x)=x2\fn{f(x) = x^2} is smooth and unbroken across the entire interval, so there are no interior jumps.
At x=0:f(0)\displaystyle \text{At } \atx{x = 0}: \quad \fn{f(\atx{0})} =02\displaystyle = \atx{0}^2 =0\displaystyle = \fn{0}
Check whether the endpoints match when copiedFind the height at the left and right ends of [−π,π][-\pi, \pi] to see if repeating the graph creates a boundary jump.
f(−π)=(−π)2=π2f(π)=π2\displaystyle \begin{aligned} \fn{f(\atx{-\pi})} &= (\atx{-\pi})^2 = \fn{\pi^2} \\ \fn{f(\atx{\pi})} &= \fn{\pi^2} \end{aligned}
Conclusion on convergenceBecause both ends meet at height π2\fn{\pi^2}, the repeating graph has no jumps anywhere, so the series converges uniformly to x2\fn{x^2} at every point (including π2\lands{\pi^2} at x=±π\atx{x = \pm\pi}) with no Gibbs overshoot.
4

Finding Exact Infinite Sums with Fourier Series

Now that we know the exact height a Fourier series converges to at any point x\atx{x}, we can find the exact sum of an infinite number series like

1+122+132+142+⋯\displaystyle 1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots = ?\displaystyle = \,?

by plugging a specific value of x\atx{x} into a known Fourier series so the sines and cosines turn into +1+1 and −1-1.

Finding Exact Infinite Sums with Fourier Series
f(x)=x2 on [−π,π]\displaystyle \fn{f(x) = x^2} \text{ on } [-\pi, \pi]
π23−4(cos⁡x−cos⁡2x22+cos⁡3x32−⋯)\displaystyle \begin{aligned}\frac{\pi^2}{3} - 4\bigg(&\cos x - \frac{\cos 2x}{2^2}\\[2pt] &+ \frac{\cos 3x}{3^2} - \cdots\bigg)\end{aligned}
1+122+132+142+⋯\displaystyle 1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots =  ?\displaystyle = \;?
Text solution
First example: Using the Fourier series for f(x)=x2\fn{f(x) = x^2} on [−π,π][-\pi, \pi]
π23−4(cos⁡(x)−cos⁡(2x)22+cos⁡(3x)32−cos⁡(4x)42+⋯ )\displaystyle \frac{\pi^2}{3} - 4\left(\cos(x) - \frac{\cos(2x)}{2^2} + \frac{\cos(3x)}{3^2} - \frac{\cos(4x)}{4^2} + \cdots\right)
Plug in x=π\atx{x = \pi} to make every fraction positiveAt x=π\atx{x = \pi}, the cosines alternate as cos⁡(π)=−1\cos(\atx{\pi}) = -1, cos⁡(2π)=+1\cos(2\atx{\pi}) = +1, cos⁡(3π)=−1\cos(3\atx{\pi}) = -1, turning every term inside the parentheses negative so multiplying by −4-4 makes them all positive.
π23−4(cos⁡(π)−cos⁡(2π)22+cos⁡(3π)32−⋯ )=π23−4((−1)−+122+−132−⋯ )=π23+4(1+122+132+⋯ )\displaystyle \begin{aligned} & \frac{\pi^2}{3} - 4\left(\cos(\atx{\pi}) - \frac{\cos(2\atx{\pi})}{2^2} + \frac{\cos(3\atx{\pi})}{3^2} - \cdots\right) \\ &= \frac{\pi^2}{3} - 4\left((-1) - \frac{+1}{2^2} + \frac{-1}{3^2} - \cdots\right) \\ &= \frac{\pi^2}{3} + 4\left(1 + \frac{1}{2^2} + \frac{1}{3^2} + \cdots\right) \end{aligned}
Set equal to the convergence height at x=π\atx{x = \pi}Both copies of x2\fn{x^2} meet at height π2\fn{\pi^2} at the boundary x=π\atx{x = \pi}, so the Fourier series converges to π2\lands{\pi^2} there.
π2\displaystyle \lands{\pi^2} =π23+4(1+122+132+142+⋯ )\displaystyle = \frac{\pi^2}{3} + 4\left(1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots\right)
Subtract π23\frac{\pi^2}{3} and divide by 44Get the number series by itself on one side.
2π23=4(1+122+132+142+⋯ )π26=1+122+132+142+⋯\displaystyle \begin{aligned} \frac{2\pi^2}{3} &= 4\left(1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots\right) \\ \frac{\pi^2}{6} &= 1 + \frac{1}{2^2} + \frac{1}{3^2} + \frac{1}{4^2} + \cdots \end{aligned}
Plugging in x=0\atx{x = 0} instead sets every cos⁡(n⋅0)=+1\cos(n\cdot \atx{0}) = +1 while the parabola sits at 02=0\fn{0^2} = \lands{0}, giving the alternating sum 1−122+132−142+⋯=π2121 - \frac{1}{2^2} + \frac{1}{3^2} - \frac{1}{4^2} + \cdots = \frac{\pi^2}{12}.
Second example: Using the step function (0\fn{0} on [−π,0][-\pi, 0] and 10\fn{10} on [0,π][0, \pi]) to find 1−13+15−17+⋯1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots
5+20π(sin⁡(x)+sin⁡(3x)3+sin⁡(5x)5+sin⁡(7x)7+⋯ )\displaystyle 5 + \frac{20}{\pi}\left(\sin(x) + \frac{\sin(3x)}{3} + \frac{\sin(5x)}{5} + \frac{\sin(7x)}{7} + \cdots\right)
Plug in x=π2\atx{x = \frac{\pi}{2}} to alternate the sinesAt x=π2\atx{x = \frac{\pi}{2}}, the odd sine terms cycle through sin⁡(π2)=1\sin\left(\atx{\frac{\pi}{2}}\right) = 1, sin⁡(3π2)=−1\sin\left(\frac{3\pi}{2}\right) = -1, and sin⁡(5π2)=1\sin\left(\frac{5\pi}{2}\right) = 1.
5+20π(sin⁡(π2)+sin⁡(3π2)3+sin⁡(5π2)5+⋯ )=5+20π(1−13+15−17+⋯ )\displaystyle \begin{aligned} & 5 + \frac{20}{\pi}\left(\sin\left(\atx{\frac{\pi}{2}}\right) + \frac{\sin\left(\frac{3\pi}{2}\right)}{3} + \frac{\sin\left(\frac{5\pi}{2}\right)}{5} + \cdots\right) \\ &= 5 + \frac{20}{\pi}\left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots\right) \end{aligned}
Set equal to the convergence height at x=π2\atx{x = \frac{\pi}{2}} and solveAt x=π2\atx{x = \frac{\pi}{2}}, the step function is flat and connected at height 10\fn{10}, so the series equals 10\lands{10}.
10=5+20π(1−13+15−17+⋯ )5=20π(1−13+15−17+⋯ )π4=1−13+15−17+⋯\displaystyle \begin{aligned} \lands{10} &= 5 + \frac{20}{\pi}\left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots\right) \\ 5 &= \frac{20}{\pi}\left(1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots\right) \\ \frac{\pi}{4} &= 1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \cdots \end{aligned}

At every point x\atx{x} along [−π,π][-\pi, \pi], the cosine series adds up to the height of the repeating parabola x2\fn{x^2}, and at x=0\atx{x = 0} and x=π\atx{x = \pi} all the cosines equal +1+1 or alternate between −1-1 and +1+1.

At every point on the repeating parabola, the cosine series adds up to the curve's height, and at the bottom and corners all the cosines become one or minus one to leave a clean sum of fractions.
5

Worked Example: Convergence and Overshoot on a Piecewise Graph

Now let's put smooth points, interior jumps, boundary jumps, and the Gibbs overshoot together on a single piecewise function. On [−3,3][-3, 3], a function sits flat at height 2\fn{2} from −3-3 to 00, jumps to 6\fn{6} at x=0\atx{x = 0}, and slopes straight down from (0,6)\fn{(0, 6)} to (3,4)\fn{(3, 4)}. Where does its Fourier series converge at x=−1\atx{x = -1}, x=0\atx{x = 0}, and x=3\atx{x = 3}, and what are the highest and lowest values it reaches near x=0\atx{x = 0}?

Worked Example: Convergence and Overshoot on a Piecewise Graph
−3\htmlClass{lc-mute}{-3}
−1\htmlClass{lc-violet}{-1}
0\htmlClass{lc-violet}{0}
3\htmlClass{lc-violet}{3}
2\htmlClass{lc-blue}{2}
6\htmlClass{lc-blue}{6}
4\htmlClass{lc-blue}{4}
x\htmlClass{lc-mute}{x}
−6\htmlClass{lc-mute}{-6}
−3\htmlClass{lc-mute}{-3}
−1\htmlClass{lc-violet}{-1}
0\htmlClass{lc-violet}{0}
3\htmlClass{lc-violet}{3}
6\htmlClass{lc-mute}{6}
2\htmlClass{lc-blue}{2}
6\htmlClass{lc-blue}{6}
4\htmlClass{lc-blue}{4}
2\htmlClass{lc-blue}{2}
2\htmlClass{lc-green}{2}
4\htmlClass{lc-green}{4}
3\htmlClass{lc-green}{3}
6.36\htmlClass{lc-orange}{6.36}
1.64\htmlClass{lc-orange}{1.64}
x\htmlClass{lc-mute}{x}
Text solution
Copy the graph and check the smooth point x=−1\atx{x = -1}Sketch one copy of [−3,3][-3, 3] to the left and right; at x=−1\atx{x = -1}, the graph sits on the flat piece at height 2\fn{2} with no jump.
Convergence at x=−1:2\displaystyle \text{Convergence at } \atx{x = -1}: \quad \lands{2}
Midpoint of the interior jump at x=0\atx{x = 0}At x=0\atx{x = 0}, the graph jumps from 2\fn{2} on the left to 6\fn{6} on the right, so the series lands halfway between them.
2+62\displaystyle \frac{\fn{2} + \fn{6}}{2} =4\displaystyle = \lands{4}
Midpoint of the boundary jump at x=3\atx{x = 3}At x=3\atx{x = 3}, our sloped line ends at height 4\fn{4} on the left while the next copy starts at height 2\fn{2} on the right.
4+22\displaystyle \frac{\fn{4} + \fn{2}}{2} =3\displaystyle = \lands{3}
9% Gibbs overshoot near x=0\atx{x = 0}Take 9%\gibbs{9\%} of the jump height at x=0\atx{x = 0}, then add it to the top corner (6\fn{6}) and subtract it from the bottom corner (2\fn{2}).
Jump height=6−2=4Overshoot=0.09×4=0.36Maximum near x=0=6+0.36=6.36Minimum near x=0=2−0.36=1.64\displaystyle \begin{aligned} \text{Jump height} &= \fn{6} - \fn{2} = 4 \\ \text{Overshoot} &= 0.09 \times 4 = \gibbs{0.36} \\ \text{Maximum near } \atx{x = 0} &= \fn{6} + \gibbs{0.36} = \gibbs{6.36} \\ \text{Minimum near } \atx{x = 0} &= \fn{2} - \gibbs{0.36} = \gibbs{1.64} \end{aligned}

Key concepts

Every question about how a Fourier series behaves comes down to picturing the interval copied to the left and right and checking whether the graph is connected or jumps:

Where the series converges at a point x\atx{x}

  • Connected point (no averaging needed): If the repeating graph is unbroken at x\atx{x}, including at a boundary where the left and right ends of the interval meet at the same height (like f(x)=x2\fn{f(x) = x^2} on [−π,π][-\pi, \pi], where (−π)2=π2(\atx{-\pi})^2 = \fn{\pi^2}), the series lands directly on the function's height f(x)\fn{f(x)}.
  • Interior or boundary jump (midpoint of the two sides): If the graph jumps at x\atx{x}, or if copying the interval puts two different endpoint heights together at the boundary, the series lands halfway between the left and right heights:
    left height+right height2(for a jump from 2 to 6, it lands on 2+62=4)\displaystyle \begin{gathered} \frac{\fn{\text{left height}} + \fn{\text{right height}}}{2} \\ \left(\text{for a jump from } \fn{2} \text{ to } \fn{6}, \text{ it lands on } \frac{\fn{2} + \fn{6}}{2} = \lands{4}\right) \end{gathered}
Overshoot and type of convergence

  • Gibbs overshoot (9%\gibbs{9\%} of the jump): At any interior or boundary jump, the wave sum goes past both the top and bottom of the jump by 0.09×(top−bottom)0.09 \times (\fn{\text{top}} - \fn{\text{bottom}}). For a step from −2\fn{-2} to 8\fn{8}, the jump is 8−(−2)=10\fn{8} - (\fn{-2}) = 10 and the overshoot is 0.09×10=0.90.09 \times 10 = \gibbs{0.9}, giving a peak of 8+0.9=8.9\fn{8} + \gibbs{0.9} = \gibbs{8.9} and a dip of −2−0.9=−2.9\fn{-2} - \gibbs{0.9} = \gibbs{-2.9}.
  • Pointwise vs. uniform convergence: Any jump inside the interval or at a mismatched boundary leaves a 9%\gibbs{9\%} overshoot that gets squeezed closer to the jump as you add more waves without shrinking in height, so the series converges only pointwise. Only when the graph has no interior jumps and its left and right endpoints match in height does the series converge uniformly with no Gibbs overshoot anywhere.
Exact sum of an infinite number series

  • Plug in x=0\atx{x = 0}, π\atx{\pi}, or π2\atx{\frac{\pi}{2}} to turn cos⁡(nx)\cos(n\atx{x}) or sin⁡(nx)\sin(n\atx{x}) into +1+1 and −1-1 with the signs in your target sum, and set the expression equal to the height the Fourier series converges to at that x\atx{x} (which is the midpoint if x\atx{x} sits on a jump).
6

Practice

1

A function jumps from −4\fn{-4} on the left of x=0\atx{x = 0} to 16\fn{16} on the right of x=0\atx{x = 0}. What value does its Fourier series converge to right at x=0\atx{x = 0}, and what are the maximum value it spikes up to and the minimum value it dips down to near x=0\atx{x = 0} when a huge number of waves are used?

First average −4\fn{-4} and 16\fn{16} for the crossing point at x=0\atx{x = 0}, then find the full vertical distance from −4\fn{-4} up to 16\fn{16} to take 9%\gibbs{9\%} of it.

At x=0\atx{x = 0}, the Fourier series converges to the midpoint between the left and right sides:
−4+162\displaystyle \frac{\fn{-4} + \fn{16}}{2} =6\displaystyle = \lands{6}
Next, find the total vertical height of the jump from −4\fn{-4} up to 16\fn{16}:
Jump height\displaystyle \text{Jump height} =16−(−4)\displaystyle = \fn{16} - (\fn{-4}) =20\displaystyle = 20
(Watch out: don't subtract 16−4=1216 - 4 = 12 here. Going from −4\fn{-4} up to 00 and then up to 16\fn{16} is a total climb of 2020. Using 1212 gives an overshoot of 1.081.08, which leads to the wrong peak 17.0817.08 and wrong dip −5.08-5.08.)
Take 9%\gibbs{9\%} of the jump height of 2020:
Overshoot\displaystyle \text{Overshoot} =0.09×20\displaystyle = 0.09 \times 20 =1.8\displaystyle = \gibbs{1.8}
Add the overshoot to the top of the jump and subtract it from the bottom:
Maximum=16+1.8=17.8Minimum=−4−1.8=−5.8\displaystyle \begin{aligned} \text{Maximum} &= \fn{16} + \gibbs{1.8} = \gibbs{17.8} \\ \text{Minimum} &= \fn{-4} - \gibbs{1.8} = \gibbs{-5.8} \end{aligned}
Converges to 66; maximum 17.817.8, minimum −5.8-5.8.
2

On the interval [−2,2][-2, 2], a function is given by the straight line f(x)=3x+4\fn{f(x) = 3x + 4}, which rises from height −2\fn{-2} at x=−2\atx{x = -2} to height 10\fn{10} at x=2\atx{x = 2}. Where does its Fourier series converge at the interior point x=1\atx{x = 1}, and where does it converge at the boundary x=−2\atx{x = -2}?

At x=1\atx{x = 1}, check whether the line is connected. At x=−2\atx{x = -2}, sketch one copy of the line to the left on [−6,−2][-6, -2] to see what height meets −2\fn{-2} at that boundary.

At the interior point x=1\atx{x = 1}, the straight line is smooth and connected, so the series converges directly to the function's height there:
f(1)\displaystyle \fn{f(\atx{1})} =3(1)+4\displaystyle = 3(\atx{1}) + 4 =7\displaystyle = \fn{7}
At the boundary x=−2\atx{x = -2}, copying the interval to the left puts the right end of the previous copy (at height 10\fn{10}) against the left end of our interval (at height −2\fn{-2}). (Watch out: don't just plug x=−2\atx{x = -2} into 3x+4\fn{3x + 4} to get −2-2. Because the two ends of the interval don't match, repeating the graph creates a jump between 10\fn{10} and −2\fn{-2} at the boundary.)
The Fourier series converges to the midpoint of that boundary jump:
10+(−2)2\displaystyle \frac{\fn{10} + (\fn{-2})}{2} =4\displaystyle = \lands{4}
77 at x=1x = 1, and 44 at x=−2x = -2.
3

Three functions are defined on [−π,π][-\pi, \pi]: (A) f(x)=2x\fn{f(x) = 2x}, (B) f(x)=π2−x2\fn{f(x) = \pi^2 - x^2}, and (C) f(x)=0\fn{f(x) = 0} for −π≤x<0-\pi \le x < 0 and f(x)=x2\fn{f(x) = x^2} for 0≤x≤π0 \le x \le \pi. For which of these functions does the Fourier series converge uniformly with no Gibbs overshoot anywhere, and why do the others fail?

None of these three functions have a jump inside [−π,π][-\pi, \pi] (even (C) connects at x=0\atx{x = 0}, since 02=00^2 = 0). Check the endpoint heights at x=−π\atx{x = -\pi} and x=π\atx{x = \pi} for each one.

All three functions are connected inside [−π,π][-\pi, \pi], so we check whether their left and right endpoints match when repeated:
For (A): f(−π)=−2π\fn{f(\atx{-\pi})} = \fn{-2\pi} and f(π)=2π\fn{f(\atx{\pi})} = \fn{2\pi}, which do not match.
For (B): f(−π)=π2−(−π)2=0\fn{f(\atx{-\pi})} = \pi^2 - (\atx{-\pi})^2 = \fn{0} and f(π)=π2−π2=0\fn{f(\atx{\pi})} = \pi^2 - \atx{\pi}^2 = \fn{0}, which match at height 0\fn{0}.
For (C): f(−π)=0\fn{f(\atx{-\pi})} = \fn{0} and f(π)=π2\fn{f(\atx{\pi})} = \fn{\pi^2}, which do not match.
(Watch out: it is easy to include (C) alongside (B) because its two pieces meet cleanly at x=0\atx{x = 0} with 02=00^2 = 0, but its outer endpoints at −π\atx{-\pi} and π\atx{\pi} are at heights 0\fn{0} and π2\fn{\pi^2}, creating a boundary jump when copied.)
Both (A) and (C) have jumps and Gibbs overshoots at the boundaries and converge only pointwise. Only (B) converges uniformly with no Gibbs overshoot.
4

On the interval [−4,4][-4, 4], a function is flat at height 1\fn{1} for −4≤x<0-4 \le x < 0, jumps to 5\fn{5} at x=0\atx{x = 0}, and then slopes straight up from 5\fn{5} at x=0\atx{x = 0} to 11\fn{11} at x=4\atx{x = 4}. With a very large number of terms, what is the highest value the Fourier series reaches near x=0\atx{x = 0}, and what is the highest value it reaches near the boundary x=4\atx{x = 4}?

Near x=0\atx{x = 0}, use the jump from 1\fn{1} to 5\fn{5}. Near x=4\atx{x = 4}, copy the interval to [4,12][4, 12] to see what height the graph drops to on the right side of x=4\atx{x = 4}.

Near x=0\atx{x = 0}, the graph jumps from 1\fn{1} on the left to 5\fn{5} on the right, so the jump height is 5−1=4\fn{5} - \fn{1} = 4:
Overshoot near x=0=0.09×4=0.36Maximum near x=0=5+0.36=5.36\displaystyle \begin{aligned} \text{Overshoot near } \atx{x = 0} &= 0.09 \times 4 = \gibbs{0.36} \\ \text{Maximum near } \atx{x = 0} &= \fn{5} + \gibbs{0.36} = \gibbs{5.36} \end{aligned}
(Watch out: take 9%\gibbs{9\%} of the jump 5−1=4\fn{5} - \fn{1} = 4, not 9%\gibbs{9\%} of 55, which would give 5.455.45; and add 0.36\gibbs{0.36} to the top corner 5\fn{5}, not to the midpoint 3\lands{3}, which would give 3.363.36.)
At the boundary x=4\atx{x = 4}, the sloped line ends at height 11\fn{11} on the left while the next copy starts at height 1\fn{1} on the right, creating a boundary jump of 11−1=10\fn{11} - \fn{1} = 10: (Watch out: the next copy starts at height 1\fn{1}, not 00, so the boundary jump is 11−1=10\fn{11} - \fn{1} = 10 rather than 1111, which would give the wrong peak 11.9911.99.)
Overshoot near x=4=0.09×10=0.9Maximum near x=4=11+0.9=11.9\displaystyle \begin{aligned} \text{Overshoot near } \atx{x = 4} &= 0.09 \times 10 = \gibbs{0.9} \\ \text{Maximum near } \atx{x = 4} &= \fn{11} + \gibbs{0.9} = \gibbs{11.9} \end{aligned}
5.365.36 near x=0x = 0, and 11.911.9 near x=4x = 4.
5

On [−π,π][-\pi, \pi], the continuous function defined by f(x)=x(π+x)\fn{f(x) = x(\pi + x)} on [−π,0][-\pi, 0] and f(x)=x(π−x)\fn{f(x) = x(\pi - x)} on [0,π][0, \pi] has the Fourier series

8π(sin⁡(x)+sin⁡(3x)33+sin⁡(5x)53+sin⁡(7x)73+⋯ )\displaystyle \frac{8}{\pi}\left(\sin(x) + \frac{\sin(3x)}{3^3} + \frac{\sin(5x)}{5^3} + \frac{\sin(7x)}{7^3} + \cdots\right)

Use this Fourier series to find the exact sum of

1−133+153−173+⋯\displaystyle 1 - \frac{1}{3^3} + \frac{1}{5^3} - \frac{1}{7^3} + \cdots

What value of x\atx{x} turns sin⁡(x),sin⁡(3x),sin⁡(5x),…\sin(x), \sin(3x), \sin(5x), \dots into +1,−1,+1,…+1, -1, +1, \dots?

Plug in x=π2\atx{x = \frac{\pi}{2}}, where sin⁡(π2)=1\sin\left(\atx{\frac{\pi}{2}}\right) = 1, sin⁡(3π2)=−1\sin\left(\frac{3\pi}{2}\right) = -1, sin⁡(5π2)=1\sin\left(\frac{5\pi}{2}\right) = 1, and so on. At x=π2\atx{x = \frac{\pi}{2}}, the function is smooth and connected at height
f(π2)\displaystyle \fn{f\left(\atx{\frac{\pi}{2}}\right)} =π2(π−π2)\displaystyle = \atx{\frac{\pi}{2}}\left(\pi - \atx{\frac{\pi}{2}}\right) =π24\displaystyle = \fn{\frac{\pi^2}{4}}
Set the plugged-in series equal to π24\lands{\frac{\pi^2}{4}}:
π24\displaystyle \lands{\frac{\pi^2}{4}} =8π(1−133+153−173+⋯ )\displaystyle = \frac{8}{\pi}\left(1 - \frac{1}{3^3} + \frac{1}{5^3} - \frac{1}{7^3} + \cdots\right)
Multiply both sides by π8\frac{\pi}{8} to get the sum by itself: (Watch out: don't forget the 8π\frac{8}{\pi} in front of the parentheses and stop at π24\lands{\frac{\pi^2}{4}}, and be sure to multiply by π8\frac{\pi}{8} rather than 8π\frac{8}{\pi}, which would give 2π2\pi.)
1−133+153−173+⋯\displaystyle 1 - \frac{1}{3^3} + \frac{1}{5^3} - \frac{1}{7^3} + \cdots =π8⋅π24\displaystyle = \frac{\pi}{8} \cdot \lands{\frac{\pi^2}{4}} =π332\displaystyle = \frac{\pi^3}{32}
6

On [−π,π][-\pi, \pi], a function is defined by f(x)=0\fn{f(x) = 0} for −π≤x<0-\pi \le x < 0 and f(x)=π−x\fn{f(x) = \pi - x} for 0≤x≤π0 \le x \le \pi. Its Fourier series is

π4+2π(cos⁡(x)+cos⁡(3x)32+cos⁡(5x)52+⋯ )+(sin⁡(x)+sin⁡(2x)2+sin⁡(3x)3+⋯ )\displaystyle \begin{aligned} & \frac{\pi}{4} + \frac{2}{\pi}\left(\cos(x) + \frac{\cos(3x)}{3^2} + \frac{\cos(5x)}{5^2} + \cdots\right) \\ & + \left(\sin(x) + \frac{\sin(2x)}{2} + \frac{\sin(3x)}{3} + \cdots\right) \end{aligned}

Use this series to find the exact sum of

1+132+152+172+⋯\displaystyle 1 + \frac{1}{3^2} + \frac{1}{5^2} + \frac{1}{7^2} + \cdots

Pick an x\atx{x} that makes every sin⁡(nx)=0\sin(n\atx{x}) = 0 and every cos⁡(nx)=1\cos(n\atx{x}) = 1, then check whether the graph is connected or jumps at that x\atx{x}.

Plug in x=0\atx{x = 0}, where every sin⁡(n⋅0)=0\sin(n\cdot \atx{0}) = 0 and every cos⁡(n⋅0)=1\cos(n\cdot \atx{0}) = 1, reducing the Fourier series to
π4+2π(1+132+152+172+⋯ )\displaystyle \frac{\pi}{4} + \frac{2}{\pi}\left(1 + \frac{1}{3^2} + \frac{1}{5^2} + \frac{1}{7^2} + \cdots\right)
At x=0\atx{x = 0}, the function jumps from 0\fn{0} on the left to π−0=π\fn{\pi - \atx{0}} = \fn{\pi} on the right, so the Fourier series converges to the midpoint of the jump:
0+π2\displaystyle \frac{\fn{0} + \fn{\pi}}{2} =π2\displaystyle = \lands{\frac{\pi}{2}}
(Watch out: because x=0\atx{x = 0} sits right on a jump, don't plug x=0\atx{x = 0} into f(0)=π−0=π\fn{f(\atx{0})} = \fn{\pi - \atx{0}} = \fn{\pi} and set the series equal to π\fn{\pi}, which would give the wrong sum 3π28\frac{3\pi^2}{8}, or set it equal to the left side 0\fn{0}, which would give −π28-\frac{\pi^2}{8}.)
Set the plugged-in series equal to the midpoint π2\lands{\frac{\pi}{2}}, subtract π4\frac{\pi}{4}, and multiply by π2\frac{\pi}{2}:
π4+2π(1+132+152+172+⋯ )=π22π(1+132+152+172+⋯ )=π41+132+152+172+⋯=π28\displaystyle \begin{aligned} \frac{\pi}{4} + \frac{2}{\pi}\left(1 + \frac{1}{3^2} + \frac{1}{5^2} + \frac{1}{7^2} + \cdots\right) &= \lands{\frac{\pi}{2}} \\ \frac{2}{\pi}\left(1 + \frac{1}{3^2} + \frac{1}{5^2} + \frac{1}{7^2} + \cdots\right) &= \frac{\pi}{4} \\ 1 + \frac{1}{3^2} + \frac{1}{5^2} + \frac{1}{7^2} + \cdots &= \frac{\pi^2}{8} \end{aligned}