The coefficients
The idea behind the derivation of the Fourier coefficients is as follows: we start from the Fourier series expansion of a periodic function, , as in Eq. (1.3) and multiply the whole expression by a function that is orthogonal to the coefficient of (if we want to derive ) or (if we want to derive ). Then, the orthogonality property [see Eq. (1.9)] suggests that upon integration of the expression on the interval , all terms but one will vanish, allowing us to isolate the coefficients or . In what follows, we determine in detail and summarise the method for and .
Derivation
Determining where
Step 1: Multiply (1.3) by a set of functions that is mutually orthogonal to the coefficient of [i.e. ]. We therefore multiply both sides of (1.3) by :
Step 2: Integrate (1.17) between to :
Since is an arbitrary periodic function at this point, we leave the LHS of (1.18) as it is. The first term on the RHS (in blue) will be straightforward to deal with so what we are concerned with are the summation terms that are being integrated with respect to (shown in red). Let's deal with these next. It is possible to swap the order of the integral and the summation such that:
Note: This can always be done if the series is finite. There are certain conditions for which the swapping can be done for infinite series (this is related to Fubini's theorem, which will be discussed in Topic A2 with Prof. Matar). Here, we assume we can in fact integrate the sum term by term and hence, Eq. (1.18) becomes:
Evaluating each integral on the RHS,
Next,
and,
Again, the results in Eqs. (1.22) and (1.23) may be shown using the relations in (1.7a)-(1.7c). Substituting Eqs. (1.21)-(1.23) in Eq. (1.20), yields,
Finally, noticing that is simply an index letter, we can replace by yileding the Fourier coefficient, :
Determining
We integrate (1.3) between to and, using the orthogonality relations, we can show that the terms multiplying the and coefficients vanish leaving us with:
Solving for gives:
Determining where
Similarly to the method used to obtain (for ), to determine , we multiply (1.3) by and integrate between and . Applying orthogonality relations and upon simplifying, yields
Consider a function, satisfying the periodicity condition [given by Eq. (1.4) ] then, its Fourier series is given by Eq. (1.3) and the coefficients and are determined using Eqs. (1.25), (1.27) and (1.28), respectively. Note that Eq. (1.27) may be recovered from (1.25) if . These results are summarised in the box below.
Definition 1.3 The Fourier series of a periodic function defined on is given as:
where the Fourier coefficients are given by:
and
Even/odd coefficients
Given a periodic function, , we can represent it using the Fourier series expansion by calculating the coefficients derived in the previous section. The work involved may be reduced significantly if the function is odd or even. If the function is odd then the Fourier series will represent an expansion in sine modes only and therefore all even coefficients, are zero-valued:
If the function is even, then the Fourier series will represent a series expansion of cosine modes only and therefore all odd coefficients, are zerovalued:
If the function is neither odd nor even then we need to compute and all coefficients and . We look at an example next.
Example 1.1 Find the Fourier series of defined in .
Solution For a function to have a Fourier series representation, it must be periodic. We have the following periodicity condition: . This implies that every , the function repeats it self (see Sec. 1.4 for more details on periodic extension). We need to determine the even coefficients (for ) and the odd coefficients (for ). We check whether the function is odd, even or neither:
Since the function is odd, the even coefficients are zero . We only need to compute the odd coefficients, . Using Eq. (1.31), we have:
but, (this is a useful result to remember) and therefore are given by:
Substituting (for ) and (for ) in Eq. (1.29), we have:
Extension to arbitrary intervals
So far, we have looked at functions which are defined on an interval with periodic extension . We want to look at situations where the function is defined on an arbitrary interval , where , with a periodic extension of . We achieve this through a change of interval. If we introduce a new variable,
and define a new function, such that , then is defined on . If is periodic with period , then is periodic with period . If is piecewise continuous with continuous derivatives, so is . Hence, following Definition 1.3, the Fourier series of is given by:
where the Fourier coefficients are given by:
and
Now, by undoing the change of variable, the formulae given in Eqs. (1.33)(1.35) become:
where,
and
The constants and (Eqs. (1.37) and (1.38), respectively) are the Fourier coefficients of on and Eq. (1.36) is the Fourier series of on . Example 1.2 Find the Fourier series of the function defined as:
Solution Observe that the interval is defined on [4,6] while Eqs. (1.36)(1.38) are defined on . We still use Eqs. (1.36)-(1.38) but we shift them to reflect the interval . Let us first deal with the argument of the sine and cosine functions, i.e. . The constant represents half the periodic extension so . The lower limit in Eqs. (1.37)(1.38) is ; since the left boundary is equal to 4 , we need to shift by 5 units to the right . With and the aforementioned shift, the argument becomes . We have the following equations:
For ,
For ,
We distinguish between even and odd by setting for even and for odd. This allows us to include only the nonzero terms of the Fourier expansion as follows: