Fourier Sine Series
In this section we are going to start taking a look at Fourier series. We should point out that this is a subject that can span a whole class and what we’ll be doing in this section (as well as the next couple of sections) is intended to be nothing more than a very brief look at the subject. The point here is to do just enough to allow us to do some basic solutions to partial differential equations in the next chapter. There are many topics in the study of Fourier series that we’ll not even touch upon here.
So, with that out of the way let’s get started, although we’re not going to start off with Fourier series. Let’s instead think back to our Calculus class where we looked at Taylor Series. With Taylor Series we wrote a series representation of a function, f(x), as a series whose terms were powers of x−a for some x=a. With some conditions we were able to show that,
and that the series will converge to f(x) on |x−a|<R for some R that will be dependent upon the function itself.
There is nothing wrong with this, but it does require that derivatives of all orders exist at x=a. Or in other words f(n)(a) exists for n=0,1,2,3,… Also for some functions the value of R may end up being quite small.
These two issues (along with a couple of others) mean that this is not always the best way of writing a series representation for a function. In many cases it works fine and there will be no reason to need a different kind of series. There are times however where another type of series is either preferable or required.
We’re going to build up an alternative series representation for a function over the course of the next couple of sections. The ultimate goal for the rest of this chapter will be to write down a series representation for a function in terms of sines and cosines.
We’ll start things off by assuming that the function, f(x) , we want to write a series representation for is an odd function (i.e. f(−x)=−f(x)). Because f(x) is odd it makes some sense that we should be able to write a series representation for this in terms of sines only (since they are also odd functions).
What we’ll try to do here is write f(x) as the following series representation, called a Fourier sine series, on −L≤x≤L.
There are a couple of issues to note here. First, at this point, we are going to assume that the series representation will converge to f(x) on −L≤x≤L. We will be looking into whether or not it will actually converge in a later section. However, assuming that the series does converge to f(x) it is interesting to note that, unlike Taylor Series, this representation will always converge on the same interval and that the interval does not depend upon the function.
Second, the series representation will not involve powers of sine (again contrasting this with Taylor Series) but instead will involve sines with different arguments.
Finally, the argument of the sines, , may seem like an odd choice that was arbitrarily chosen and in some ways it was. For Fourier sine series the argument doesn’t have to necessarily be this but there are several reasons for the choice here. First, this is the argument that will naturally arise in the next chapter when we use Fourier series (in general and not necessarily Fourier sine series) to help us solve some basic partial differential equations.
The next reason for using this argument is the fact that the set of functions that we chose to work with, in this case, need to be orthogonal on the given interval, −L≤x≤L in this case, and note that in the last section we showed that in fact they are. In other words, the choice of functions we’re going to be working with and the interval we’re working on will be tied together in some way. We can use a different argument but will need to also choose an interval on which we can prove that the sines (with the different argument) are orthogonal.
So, let’s start off by assuming that given an odd function, f(x) , we can in fact find a Fourier sine series, of the form given above, to represent the function on −L≤x≤L. This means we will have,
As noted above we’ll discuss whether or not this even can be done and if the series representation does in fact converge to the function in later section. At this point we’re simply going to assume that it can be done. The question now is how to determine the coefficients, Bn, in the series.
Let’s start with the series above and multiply both sides by where m is a fixed integer in the range {1,2,3,…}. In other words, we multiply both sides by any of the sines in the set of sines that we’re working with here. Doing this gives,
Now, let’s integrate both sides of this from x=−L to x=L.
At this point we’ve got a small issue to deal with. We know from Calculus that an integral of a finite series (more commonly called a finite sum….) is nothing more than the (finite) sum of the integrals of the pieces. In other words, for finite series we can interchange an integral and a series. For infinite series however, we cannot always do this. For some integrals of infinite series we cannot interchange an integral and a series. Luckily enough for us we actually can interchange the integral and the series in this case. Doing this and factoring the constant, Bn, out of the integral gives,
Now, recall from the last section we proved that
So, what does this mean for us. As we work through the various values of n in the series and compute the value of the integrals all but one of the integrals will be zero. The only non-zero integral will come when we have n=m, in which case the integral has the value of L. Therefore, the only non-zero term in the series will come when we have n=m and our equation becomes,
Finally, all we need to do is divide by L and we now have an equation for each of the coefficients.
Next, note that because we’re integrating two odd functions the integrand of this integral is even and so we also know that,
Summarizing all this work up the Fourier sine series of an odd function f(x) on −L≤x≤L is given by,
Let’s take a quick look at an example.
Example 1 Find the Fourier sine series for f(x)=x on −L≤x≤L.
Solution:
First note that the function we’re working with is in fact an odd function and so this is something we can do. There really isn’t much to do here other than to compute the coefficients for f(x)=x
Here is that work and note that we’re going to leave the integration by parts details to you to verify. Don’t forget that n, L, and π are constants!
These integrals can, on occasion, be somewhat messy especially when we use a general L for the endpoints of the interval instead of a specific number.
Now, taking advantage of the fact that n is an integer we know that sin(nπ)=0 and that cos(nπ)=(−1)n. We therefore have,
The Fourier sine series is then,
At this point we should probably point out that we’ll be doing most, if not all, of our work here on a general interval (−L≤x≤L or 0≤x≤L) instead of intervals with specific numbers for the endpoints. There are a couple of reasons for this. First, it gives a much more general formula that will work for any interval of that form which is always nice. Secondly, when we run into this kind of work in the next chapter it will also be on general intervals so we may as well get used to them now.
Now, finding the Fourier sine series of an odd function is fine and good but what if, for some reason, we wanted to find the Fourier sine series for a function that is not odd? To see how to do this we’re going to have to make a change. The above work was done on the interval −L≤x≤L. In the case of a function that is not odd we’ll be working on the interval 0≤x≤L. The reason for this will be made apparent in a bit.
So, we are now going to do is to try to find a series representation for f(x) on the interval 0≤x≤L that is in the form,
or in other words,
As we did with the Fourier sine series on −L≤x≤L we are going to assume that the series will in fact converge to f(x) and we’ll hold off discussing the convergence of the series for a later section.
There are two methods of generating formulas for the coefficients, Bn, although we’ll see in a bit that they really the same way, just looked at from different perspectives.
The first method is to just ignore the fact that f(x) is not odd and proceed in the same manner that we did above only this time we’ll take advantage of the fact that we proved in the previous section that also forms an orthogonal set on 0≤x≤L and that,
So, if we do this then all we need to do is multiply both sides of our series by integrate from 0 to L and interchange the integral and series to get,
Now, plugging in for the integral we arrive at,
Upon solving for the coefficient we arrive at,
Note that this is identical to the second form of the coefficients that we arrived at above by assuming f(x) was odd and working on the interval −L≤x≤L. The fact that we arrived at essentially the same coefficients is not actually all the surprising as we’ll see once we’ve looked the second method of generating the coefficients.
Before we look at the second method of generating the coefficients we need to take a brief look at another concept. Given a function, f(x) , we define the odd extension of f(x) to be the new function,
It’s pretty easy to see that this is an odd function.
g(−x)=−f(−(−x))=−f(x)=−g(x) for 0<x<L
and we can also know that on 0≤x≤L we have that g(x)=f(x). Also note that if f(x) is already an odd function then we in fact get g(x)=f(x) on −L≤x≤L. Let’s take a quick look at a couple of odd extensions before we proceed any further.
Example 2 Sketch the odd extension of each of the given functions.
(a) f(x)=L−x on 0≤x≤L
Solution:
Not much to do with these other than to define the odd extension and then sketch it.
(a) f(x)=L−x on 0≤x≤L
Here is the odd extension of this function.
Below is the graph of both the function and its odd extension. Note that we’ve put the “extension” in with a dashed line to make it clear the portion of the function that is being added to allow us to get the odd extension.
(b) f(x)=1+x2 on 0≤x≤L
First note that this is clearly an even function. That does not however mean that we can’t define the odd extension for it. The odd extension for this function is,
The sketch of the original function and its odd extension are ,
Let’s first write down the odd extension for this function.
The sketch of the original function and its odd extension are,
With the definition of the odd extension (and a couple of examples) out of the way we can now take a look at the second method for getting formulas for the coefficients of the Fourier sine series for a function f(x) on 0≤x≤L. First, given such a function define its odd extension as above. At this point, because g(x) is an odd function, we know that on −L≤x≤L the Fourier sine series for g(x) (and NOT f(x) yet) is,
However, because we know that g(x)=f(x) on 0≤x≤L we can also see that as long as we are on 0≤x≤L we have,
So, exactly the same formula for the coefficients regardless of how we arrived at the formula and the second method justifies why they are the same here as they were when we derived them for the Fourier sine series for an odd function.
Now, let’s find the Fourier sine series for each of the functions that we looked at in Example 2. Note that again we are working on general intervals here instead of specific numbers for the right endpoint to get a more general formula for any interval of this form and because again this is the kind of work we’ll be doing in the next chapter.
Also, we’ll again be leaving the actually integration details up to you to verify. In most cases it will involve some fairly simple integration by parts complicated by all the constants (n , L, π, etc.) that show up in the integral.
Example 3 Find the Fourier sine series for f(x)=L−x on 0≤x≤L.
Solution:
There really isn’t much to do here other than computing the coefficients so here they are,
In the simplification process don’t forget that n is an integer.
So, with the coefficients we get the following Fourier sine series for this function.
In the next example it is interesting to note that while we started out this section looking only at odd functions we’re now going to be finding the Fourier sine series of an even function on 0≤x≤L. Recall however that we’re really finding the Fourier sine series of the odd extension of this function and so we’re okay.
Example 4 Find the Fourier sine series for f(x)=1+x2 on 0≤x≤L.
Solution:
In this case the coefficients are liable to be somewhat messy given the fact that the integrals will involve integration by parts twice. Here is the work for the coefficients.
As noted above the coefficients are not the most pleasant ones, but there they are. The Fourier sine series for this function is then,
In the last example of this section we’ll be finding the Fourier sine series of a piecewise function and can definitely complicate the integrals a little but they do show up on occasion and so we need to be able to deal with them.
Example 5 Find the Fourier sine series for
Solution:
Here is the integral for the coefficients.
Note that we need to split the integral up because of the piecewise nature of the original function. Let’s do the two integrals separately
Putting all of this together gives,
So, the Fourier sine series for this function is,
As the previous two examples has shown the coefficients for these can be quite messy but that will often be the case and so we shouldn’t let that get us too excited.
Fourier Cosine Series
In this section we’re going to take a look at Fourier cosine series. We’ll start off much as we did in the previous section where we looked at Fourier sine series. Let’s start by assuming that the function, f(x), we’ll be working with initially is an even function (i.e. f(−x)=f(x)) and that we want to write a series representation for this function on −L≤x≤L in terms of cosines (which are also even). In other words, we are going to look for the following,
This series is called a Fourier cosine series and note that in this case (unlike with Fourier sine series) we’re able to start the series representation at n=0 since that term will not be zero as it was with sines. Also, as with Fourier Sine series, the argument of in the cosines is being used only because it is the argument that we’ll be running into in the next chapter. The only real requirement here is that the given set of functions we’re using be orthogonal on the interval we’re working on.Note as well that we’re assuming that the series will in fact converge to f(x) on −L≤x≤L at this point. In a later section we’ll be looking into the convergence of this series in more detail.
So, to determine a formula for the coefficients, An, we’ll use the fact thatdo form an orthogonal set on the interval −L≤x≤L as we showed in a previous section. In that section we also derived the following formula that we’ll need in a bit.
We’ll get a formula for the coefficients in almost exactly the same fashion that we did in the previous section. We’ll start with the representation above and multiply both sides by cos where m is a fixed integer in the range {0,1,2,3,…}. Doing this gives,
Next, we integrate both sides from x=−L to x=L and as we were able to do with the Fourier Sine series we can again interchange the integral and the series.
We now know that the all of the integrals on the right side will be zero except when n=m because the set of cosines form an orthogonal set on the interval −L≤x≤L. However, we need to be careful about the value of m (or n depending on the letter you want to use). So, after evaluating all of the integrals we arrive at the following set of formulas for the coefficients.
m=0:
m≠0:
Summarizing everything up then, the Fourier cosine series of an even function, f(x) on −L≤x≤L is given by,
Finally, before we work an example, let’s notice that because both f(x) and the cosines are even the integrand in both of the integrals above is even and so we can write the formulas for the An’s as follows,
Now let’s take a look at an example.
Example 1 Find the Fourier cosine series for f(x)=x2 on −L≤x≤L.
Solution:
We clearly have an even function here and so all we really need to do is compute the coefficients and they are liable to be a little messy because we’ll need to do integration by parts twice. We’ll leave most of the actual integration details to you to verify.
The coefficients are then,
The Fourier cosine series is then,
Note that we’ll often strip out the n=0 from the series as we’ve done here because it will almost always be different from the other coefficients and it allows us to actually plug the coefficients into the series.
Now, just as we did in the previous section let’s ask what we need to do in order to find the Fourier cosine series of a function that is not even. As with Fourier sine series when we make this change we’ll need to move onto the interval 0≤x≤L now instead of −L≤x≤L and again we’ll assume that the series will converge to f(x) at this point and leave the discussion of the convergence of this series to a later section.
We could go through the work to find the coefficients here twice as we did with Fourier sine series, however there’s no real reason to. So, while we could redo all the work above to get formulas for the coefficients let’s instead go straight to the second method of finding the coefficients.
In this case, before we actually proceed with this we’ll need to define the even extension of a function, f(x) on −L≤x≤L. So, given a function f(x) we’ll define the even extension of the function as,
Showing that this is an even function is simple enough.
g(−x)=f(−(−x))=f(x)=g(x) for 0<x<L
and we can see that g(x)=f(x) on 0≤x≤L and if f(x) is already an even function we get g(x)=f(x) on −L≤x≤L.
Let’s take a look at some functions and sketch the even extensions for the functions.
Example 2 Problem Statement.
(a) f(x)=L−x on 0≤x≤L
Solution:
Here is the even extension of this function.
Here is the graph of both the original function and its even extension. Note that we’ve put the “extension” in with a dashed line to make it clear the portion of the function that is being added to allow us to get the even extension
(b) f(x)=x3 on 0≤x≤L
The even extension of this function is,
The sketch of the function and the even extension is,
Here is the even extension of this function,
The sketch of the function and the even extension is,
Okay, let’s now think about how we can use the even extension of a function to find the Fourier cosine series of any function f(x) on 0≤x≤L.
So, given a function f(x) we’ll let g(x) be the even extension as defined above. Now, g(x) is an even function on −L≤x≤L and so we can write down its Fourier cosine series. This is,
and note that we’ll use the second form of the integrals to compute the constants.
Now, because we know that on 0≤x≤L we have f(x)=g(x) and so the Fourier cosine series of f(x) on 0≤x≤L is also given by,
Let’s take a look at a couple of examples.
Example 3 Find the Fourier cosine series for f(x)=L−x on 0≤x≤L.
Solution:
All we need to do is compute the coefficients so here is the work for that,
The Fourier cosine series is then,
Note that as we did with the first example in this section we stripped out the A0 term before we plugged in the coefficients.
Next, let’s find the Fourier cosine series of an odd function. Note that this is doable because we are really finding the Fourier cosine series of the even extension of the function.
Example 4 Find the Fourier cosine series for f(x)=x3 on 0≤x≤L.
Solution:
The integral for A0 is simple enough but the integral for the rest will be fairly messy as it will require three integration by parts. We’ll leave most of the details of the actual integration to you to verify. Here’s the work,
The Fourier cosine series for this function is then,
Finally, let’s take a quick look at a piecewise function.
Example 5 Find the Fourier cosine series for
Solution:
We’ll need to split up the integrals for each of the coefficients here. Here are the coefficients.
For the rest of the coefficients here is the integral we’ll need to do.
To make life a little easier let’s do each of these separately.
Putting these together gives,
So, after all that work the Fourier cosine series is then,
Note that much as we saw with the Fourier sine series many of the coefficients will be quite messy to deal with.
112 videos|65 docs|3 tests
|
1. What is a Fourier sine series? |
2. How is a Fourier cosine series different from a Fourier sine series? |
3. What is the purpose of using Fourier series in mathematics? |
4. Can Fourier series be used to represent non-periodic functions? |
5. How do you determine the coefficients in a Fourier series? |
|
Explore Courses for Mathematics exam
|