4.4 Sine and Cosine Series
4.4.1:Even Periodic Functions
You may have noticed by now that an odd function has no cosine terms in the Fourier series and an even function has no sine terms in the Fourier series. This observation is not a coincidence. Let us look at even and odd periodic function in more detail.
Recall that a function is odd if . A function is even if . For example, is even and is odd. Similarly the function is even if is even and odd when is odd.
If and are both odd, then is odd. Similarly for even functions. On the other hand, if is odd and even, then we cannot say anything about the sum . In fact, the Fourier series of any function is a sum of an odd (the sine terms) and an even (the cosine terms) function.
In this section we consider odd and even periodic functions. We have previously defined the -periodic extension of a function defined on the interval . Sometimes we are only interested in the function on the range and it would be convenient to have an odd (resp. even) function. If the function is odd (resp. even), all the cosine (resp. sine) terms will disappear. What we will do is take the odd (resp. even) extension of the function to and then extend periodically to a -periodic function.
Take a function defined on . On define the functions
Extend and to be -periodic. Then is called the odd periodic extension of , and is called the even periodic extension of . For the odd extension we generally assume that .
Sine and Cosine Series
Let be an odd -periodic function. We write the Fourier series for . First, we compute the coefficients (including ) and get
That is, there are no cosine terms in the Fourier series of an odd function. The integral is zero because is an odd function (product of an odd and an even function is odd) and the integral of an odd function over a symmetric interval is always zero. The integral of an even function over a symmetric interval is twice the integral of the function over the interval . The function is the product of two odd functions and hence is even.
We now write the Fourier series of as
Similarly, if is an even -periodic function. For the same exact reasons as above, we find that and
The formula still works for , in which case it becomes
The Fourier series is then
An interesting consequence is that the coefficients of the Fourier series of an odd (or even) function can be computed by just integrating over the half interval . Therefore, we can compute the Fourier series of the odd (or even) extension of a function by computing certain integrals over the interval where the original function is defined.
The series is called the sine series of and the series is called the cosine series of . We often do not actually care what happens outside of . In this case, we pick whichever series fits our problem better.
It is not necessary to start with the full Fourier series to obtain the sine and cosine series. The sine series is really the eigenfunction expansion of using eigenfunctions of the eigenvalue problem , . The cosine series is the eigenfunction expansion of using eigenfunctions of the eigenvalue problem , , . We could have, therefore, gotten the same formulas by defining the inner produ
and following the procedure of Section 4.2. This point of view is useful, as we commonly use a specific series that arose because our underlying question led to a certain eigenvalue problem. If the eigenvalue problem is not one of the three we covered so far, you can still do an eigenfunction expansion, generalizing the results of this chapter. We will deal with such a generalization in Chapter 5.
Application
Fourier series ties in to the boundary value problems we studied earlier. Let us see this connection in more detail.
Suppose we have the boundary value problem for .
for the Dirichlet boundary conditions . By using the Fredholm alternative (Theorem 4.1.2) we note that as long as is not an eigenvalue of the underlying homogeneous problem, there exists a unique solution. Note that the eigenfunctions of this eigenvalue problem are the functions . Therefore, to find the solution, we first find the Fourier sine series for . We write also as a sine series, but with unknown coefficients. We substitute the series for into the equation and solve for the unknown coefficients. If we have the Neumann boundary conditions and , we do the same procedure using the cosine series.
Let us see how this method works on examples.
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.