Skip to content

2203 Fourier Series Definitions and Coefficients

We will first state Fourier's theorem for periodic functions with period . In words, the theorem says that a function with period can be written as a sum of cosines and sines which all have period .

Theorem (Fourier)

Suppose has period then we have where the coefficients and are computed by Some comments are in order.
1. As we saw in the quiz above, each of the functions all have as a period. The same is clearly true for . 2. The series on the right-hand side is called a Fourier series; and the coefficients, in are called the Fourier coefficients of . 3. The letter a is used in because we can think of it as the coefficient of . We don't need a term because . The term constant term is written in this way to make the formula for look just like those of the other cosine coefficients . (We will see why we need the factor of in a later note when we prove that these formulas really do give the coefficients.) 4. In we used the symbol instead of an equal sign because the two sides of might differ at those values of f(t)n = 1n \geq 2$ are called the higher harmonics (or overtones). We will explore the connection between Fourier series and sound in a later session.

Example

Compute the Fourier series of , where is the square wave with period . which is defined over one period by The graph over several periods is shown below.

Solution Computing a Fourier series means computing its Fourier coefficients.
In applying these formulas to the given square wave function, we have to split the integrals into two pieces corresponding to where is +1 and where it is -1. We find
Thus, for
and for
Likewise $$ $$ We have used the simplification to get a nice formula for the coefficients .

This then gives the Fourier series for : seeing the convergence of a Fourier series
However, it is not easy to see that the sum on the right-hand side is in fact converging to the square wave . So let's use a computer to plot the sums of the first terms of the series. for . We get the following four graphs:

Notice that since a finite sum of sine functions is continuous (in fact smooth), the partial sums cannot jump when is an integer multiple of , the way the square way does. But they are certainly "trying" to become the square wave ! And the more terms you add in, the better the fit, with the theoretical limit as being exactly equal to (except actually at the jumps , as we'll see).

Note: In this case we don't have any cosine terms, just sine. This turns out to be not an accident: it follows from the fact that here is an odd function, i.e. , and such functions have only sines (which are also odd functions) in their Fourier series. Similarly for even functions and cosine series: if is even () then all the 's vanish and the Fourier series is simply ; while if is odd then all the 's vanish and the Fourier series is .