Fourier Series
On , almost any periodic function is a constant plus cosines plus sines: the cosines carry its even part and the sines its odd part. Where the function jumps, the series splits the difference and lands on the midpoint.
What the symbols mean
- Cosine coefficients
The even part of f.
- Sine coefficients
The odd part of f.
Explanation
A Fourier series is simply a way to write almost any repeating pattern, even one with sharp jumps, as a stack of simple sine and cosine waves. (It's named after Joseph Fourier, and the sine and cosine series from the last two lessons are special cases of it.) It's how engineers break sounds, signals and vibrations into the frequencies they're made of. The formula looks like a lot, but it's just three kinds of pieces added together: (the average level), (the even, mirror-symmetric waves) and (the odd, flipped-symmetric waves). Each coefficient formula is the same "multiply by one wave and integrate" trick you've already used. It's the sine series and the cosine series glued together, so bear with it.
The sine series and the cosine series only worked on , because you got to choose how to extend . On the full interval you don't get that choice. A function with no symmetry has both an even part and an odd part, so you need both cosines and sines.
Why in front now instead of ? You're integrating over all of , where (the orthogonality lesson's case), and the cosines work the same way. And the constant term is again the average of , now over an interval of length .
Shortcuts: an odd function has only sine terms; an even function has only cosine terms (plus ). That's because an odd function times an even cosine is odd, and an odd function integrates to over . The same thing kills the sine terms of an even function.
Convergence. For piecewise smooth , the series converges to wherever is continuous, and to the average of the left and right limits at a jump.
Gibbs phenomenon. Near a jump, partial sums overshoot by about 9% of the jump size. Adding terms narrows the overshoot but never removes it.
A common mistake. It's tempting to think enough terms will eventually get rid of the overshoot, because the series converges. It won't: the spike stays at about 9% and only gets narrower. Convergence still holds at each fixed point, since the spike slides closer and closer to the jump and eventually passes any point you pick. There's a graph with a slider further down where you can watch this happen.
See it
Worked examples
Find the Fourier series of the square wave on , on .
- 1
is odd, so every is and only the sines remain: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find for on .
Find for on .
Find for the square wave in the example.
What value does the square wave's Fourier series give at the jump ?
About how big is the Gibbs overshoot near a jump?
A square-wave voltage is V for and V for , repeating. Find its Fourier coefficients and , in that order.
The hardest one here. Get it, and you've got this lesson.
On , has the Fourier series . Evaluate it at to find the exact value of .
Where it's used
Every sound you hear and every signal your phone sends is analyzed in terms of Fourier series; the Fourier series lab builds a square wave from sines term by term.