Convergence
Typically, the approximation of given by the Fourier series expansion in Eq. (1.3), improves with the number of modes, , used. This is illustrated in Fig. 1.1 below. The function represented by the Fourier series expansion is (black curve) and the purple and blue curves represent the Fourier series with and , respectively. The function is defined within and is therefore said to be of period .
Figure 1.1: Convergence of the Fourier series expansion of with increasing number of modes.
Dirichlet's theorem
Before stating Dirichlet's theorem, we start this section by giving the definition of a piecewise continuous function.
Definition 1.4 A function is piecewise continuous on an interval if:
(a) The limits and exist;
(b) is continuous at all but possibly a finite number of points;
(c) At points where is discontinuous, say , the left and right limits (i.e. and ) must exist. Dirichlet's theorem gives sufficient conditions for a function to have a Fourier series representation that converges to .
Theorem: Dirichlet's theorem
The Fourier series of a bounded, periodic and piecewise smooth function, , (i.e. piecewise continuous , will converge to:
(a) at each point in where is continuous because the left and right limits are equal to ;
(b)
at those points in where is discontinuous; and correspond to points immediately left and right of , respectively. So, at a point interior to the interval where has a jump discontinuity 1 , the Fourier series converges to the average of the left and right limits there.
In Fig. [1.1, the Fourier series expansion (see purple and blue curves) seems to approach the function well in the open interval and, as the number of modes increases, the error of the approximation is reduced. As the points of discontinuity are approached however (in Fig. 1.1, the discontinuous points are at ), the Fourier series does not converge to the function ; rather, it is observed to oscillate near the jump discontinuity. These oscillations are not dampened with a higher number of modes; a behaviour known as the Gibbs phenomenon.
As previously mentioned, a function needs to satisfy the periodic condition in order to be represented by a trigonometric Fourier series. In Fig. [1.2, the function (which was defined to be -periodic) is plotted over a wider interval, . The main interval function is shown with a thick, red line; this is then repeated on the wider interval. It is observed that the points , etc. are discontinuous (these are represented by circle markers in the plot). At the discontinuous points, we expect the Fourier series to converge to the value given by Eq. (1.39); this behaviour is shown at in Fig. 1.1 and indicated by a green, square marker in Fig. 1.2.
jump discontinuity is one where the limits immediately left and right of it exist, they are finite, but they are not equal to each other.
Figure 1.2: Periodic extension of . The black and white markers indicate points of discontinuity where the Fourier series will converge to the value given by Eq. (1.39), indicated by the green, square markers. This is also clearly shown to be true at the endpoints of the purple and blue curves in Fig. 1.1. Example 1.3 Consider a periodic function of period , defined by:
where . Suppose the Fourier series representation of is given by . Discuss the convergence of in .
Solution The function is defined in ; we need this to be periodic with period . A sketch of this is shown in Fig. [1.3. To discuss the concervence of , we use Dirichlet's theorem (Theorem 1.2): converges to (as ) wherever is continuous. Within the interval of interest stated in the problem (i.e. ), is continuous in:
At points of discontinuity, i.e. at , we have:
where at the graph has a jump. For example, at , using Eq. (1.40),
this is also true at . At ,
This is also true at . Finally, note that in order to determine the points of convergence of , we did not need to calculate the Fourier series coefficients to find the Fourier series representation of .
Best approximation property
We have already seen that it is possible to approximate a function (given some restrictions on ) by a Fourier series expansion. Simply put, we are interested in approximating a function with another (simpler) function. What we discuss in this section is exactly how good an approximation can be. The question we would like to answer is how functions can best be approximated with
Figure 1.3: Plot of the function, given in Example 1.3. The black curve shows the function as defined in . For a function to have Fourier series representation, it needs to satisfy the periodicity condition, i.e. implying that the function repeats it self every . The periodic extension of is shown in red for .
simpler functions, and how to quantitatively characterise the errors introduced. We start off with a function defined on an interval which can be represented by a Fourier series (in that interval). So far, we have talked about the Fourier series of a function as an infinite series; now we refer to the sum of the first terms of the infinite series as the partial sum, given as follows:
Note the notation since Eq. (1.41) is said to be an approximation of for a fixed value of . Now, suppose we have another function given as
which is a trigonometric polynomial of the same degree as Eq. (1.41). Is Eq. (1.41) the best approximation of for fixed ? To answer that, we discuss error analysis. We want the error between and to be as small as possible to consider the approximation a good one. In terms of Fourier series error analysis, we define the square error, of relative to in the interval as follows:
We want to show that for given , the error of the approximation is minimum if the coefficients and are the Fourier coefficients. Expanding Eq. (1.43) yields:
We deal with each one of the integrals on the RHS of (1.44) separately. The first one we leave as is since we are computing this for any function that has a Fourier series representation in . To determine the third integral on the RHS, we need to square Eq. (1.42) and integrate over the interval. This yields integrals of which are all zero in . The only nonzero integrals are those of and which are equal to , when evaluated between and . Upon making the above-mentioned simplifications, we obtain:
Similary, using Eqs. (1.41) and (1.42) and integrating the second term on the RHS of Eq. (1.44) over the interval, gives:
Substituting Eqs. (1.45) and (1.46) in (1.44), yields:
We now let and in Eq. (1.47) and call this square error, . This gives:
Finally, we compute the error difference by subtracting Eq. (1.48) from Eq. (1.47):
We note that on the RHS of Eq. (1.49), the expression is made up of sums of squares which are always positive for real numbers. Then,
The two square errors, and can only be equal to each other if and only if the coefficients and are equal to and , respectively, which are the Fourier coefficients. It is important to note that the square error as defined in Eq. (1.48) can only decrease with increasing . By including more terms in the approximation therefore (i.e. higher values of ), the partial sums of the Fourier series of yield better approximations to the function . The results shown in this section yield the following minimum square error theorem.
Theorem Minimum square error theorem
Suppose we have a function which has a Fourier series representation on the interval . Given a trigonometric polynomial of degree
its square error relative to the function is minimum if and only if the coefficients in Eq. (1.51) (i.e. ) are the Fourier coefficients of . The minimum value of the square error is given by:
It is interesting to observe that increasing does not change the best coefficients found for smaller . These are always the Fourier series coefficients. The ideas expressed in this section are related to Parseval's theorem which we discuss next. Example 1.4 Compute the minimum square error of for fixed relative to the function , where is given by:
Solution To find the minimum square error, we compute the partial sum of using the Fourier coefficients of . This is given by:
where and for . Using Eq. (1.52), the minimum square error is calculated from:
Parseval's theorem
Parseval's theorem gives a way of relating the Fourier coefficients with the function they describe. In Example 1.5, below, we use this theorem to calculate the sum of an infinite series.
For a piecewise smooth function defined on , the Fourier coefficients on satisfy:
To prove Theorem 1.4, we start from the Fourier series expansion given by Eq. (1.29). We multiply Eq. (1.29) by to get:
We integrate Eq. (1.55) over :
Observe that, by integrating Eq. (1.56) term by term, the integrals in the series on the RHS of Eq. (1.56) are the Fourier coefficients. This gives rise to Eq. (1.54).
Example 1.5 Using Parseval's theorem and the Fourier series of on , calculate the .
Solution The function is even so we only need to compute since for all . For ,
For ,
where we have integrated by parts. The LHS of Eq. (1.54) is given by:
It follows that Eq. (1.54) yields:
The equation above can be solved for the infinite sum: