Loading [MathJax]/jax/output/CommonHTML/fonts/TeX/fontdata.js
Paul's Online Notes
  • Go To
  • Notes
  • Practice and Assignment problems are not yet written. As time permits I am working on them, however I don't have the amount of free time that I used to so it will take a while before anything shows up here.
  • Show/Hide
  • Show all Solutions/Steps/etc.
  • Hide all Solutions/Steps/etc.
Paul's Online Notes
Home / Differential Equations / Boundary Value Problems & Fourier Series / Periodic Functions & Orthogonal Functions
Hide Mobile Notice  
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best viewed in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (you should be able to scroll/swipe to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 8.3 : Periodic Functions & Orthogonal Functions

This is going to be a short section. We just need to have a brief discussion about a couple of ideas that we’ll be dealing with on occasion as we move into the next topic of this chapter.

Periodic Function

The first topic we need to discuss is that of a periodic function. A function is said to be periodic with period T if the following is true,

f(x+T)=f(x)for all x

The following is a nice little fact about periodic functions.

Fact 1

If f and g are both periodic functions with period T then so is f+g and fg.

This is easy enough to prove so let’s do that.

(f+g)(x+T)=f(x+T)+g(x+T)=f(x)+g(x)=(f+g)(x)(fg)(x+T)=f(x+T)g(x+T)=f(x)g(x)=(fg)(x)

The two periodic functions that most of us are familiar are sine and cosine and in fact we’ll be using these two functions regularly in the remaining sections of this chapter. So, having said that let’s close off this discussion of periodic functions with the following fact,

Fact 2

sin(ωx) and cos(ωx) are periodic functions with period T=2πω.

Even and Odd Functions

The next quick idea that we need to discuss is that of even and odd functions.

Recall that a function is said to be even if,

f(x)=f(x)

and a function is said to be odd if,

f(x)=f(x)

The standard examples of even functions are f(x)=x2 and g(x)=cos(x) while the standard examples of odd functions are f(x)=x3 and g(x)=sin(x). The following fact about certain integrals of even/odd functions will be useful in some of our work.

Fact 3

  1. If f(x) is an even function then, LLf(x)dx=2L0f(x)dx
  2. If f(x) is an odd function then, LLf(x)dx=0

Note that this fact is only valid on a “symmetric” interval, i.e. an interval in the form [L,L]. If we aren’t integrating on a “symmetric” interval then the fact may or may not be true.

Orthogonal Functions

The final topic that we need to discuss here is that of orthogonal functions. This idea will be integral to what we’ll be doing in the remainder of this chapter and in the next chapter as we discuss one of the basic solution methods for partial differential equations.

Let’s first get the definition of orthogonal functions out of the way.

Definition

  1. Two non-zero functions, f(x) and g(x), are said to be orthogonal on axb if, baf(x)g(x)dx=0
  2. A set of non-zero functions, {fi(x)}, is said to be mutually orthogonal on axb (or just an orthogonal set if we’re being lazy) if fi(x) and fj(x) are orthogonal for every ij. In other words,

    bafi(x)fj(x)dx={0ijc>0i=j

Note that in the case of i=j for the second definition we know that we’ll get a positive value from the integral because,

bafi(x)fi(x)dx=ba[fi(x)]2dx>0

Recall that when we integrate a positive function we know the result will be positive as well.

Also note that the non-zero requirement is important because otherwise the integral would be trivially zero regardless of the other function we were using.

Before we work some examples there are a nice set of trig formulas that we’ll need to help us with some of the integrals.

sinαcosβ=12[sin(αβ)+sin(α+β)]sinαsinβ=12[cos(αβ)cos(α+β)]cosαcosβ=12[cos(αβ)+cos(α+β)]

Now let’s work some examples that we’ll need over the course of the next couple of sections.

Example 1 Show that {cos(nπxL)}n=0 is mutually orthogonal on LxL.
Show Solution

This is not too difficult to do. All we really need to do is evaluate the following integral.

LLcos(nπxL)cos(mπxL)dx

Before we start evaluating this integral let’s notice that the integrand is the product of two even functions and so must also be even. This means that we can use Fact 3 above to write the integral as,

LLcos(nπxL)cos(mπxL)dx=2L0cos(nπxL)cos(mπxL)dx

There are two reasons for doing this. First having a limit of zero will often make the evaluation step a little easier and that will be the case here. We’ll discuss the second reason after we’re done with the example.

Now, in order to do this integral we’ll actually need to consider three cases.

n=m=0_
In this case the integral is very easy and is,

LLdx=2L0dx=2L

n=m0_
This integral is a little harder than the first case, but not by much (provided we recall a simple trig formula). The integral for this case is,

LLcos2(nπxL)dx=2L0cos2(nπxL)dx=L01+cos(2nπxL)dx=(x+L2nπsin(2nπxL))|L0=L+L2nπsin(2nπ)

Now, at this point we need to recall that n is an integer and so sin(2nπ)=0 and our final value for the integral is,

LLcos2(nπxL)dx=2L0cos2(nπxL)dx=L

The first two cases are really just showing that if n=m the integral is not zero (as it shouldn’t be) and depending upon the value of n (and hence m) we get different values of the integral. Now we need to do the third case and this, in some ways, is the important case since we must get zero out of this integral in order to know that the set is an orthogonal set. So, let’s take care of the final case.

nm_
This integral is the “messiest” of the three that we’ve had to do here. Let’s just start off by writing the integral down.

LLcos(nπxL)cos(mπxL)dx=2L0cos(nπxL)cos(mπxL)dx

In this case we can’t combine/simplify as we did in the previous two cases. We can however, acknowledge that we’ve got a product of two cosines with different arguments and so we can use one of the trig formulas above to break up the product as follows,

LLcos(nπxL)cos(mπxL)dx=2L0cos(nπxL)cos(mπxL)dx=L0cos((nm)πxL)+cos((n+m)πxL)dx=[L(nm)πsin((nm)πxL)+L(n+m)πsin((n+m)πxL)]L0=L(nm)πsin((nm)π)+L(n+m)πsin((n+m)π)

Now, we know that n and m are both integers and so nm and n+m are also integers and so both of the sines above must be zero and all together we get,

LLcos(nπxL)cos(mπxL)dx=2L0cos(nπxL)cos(mπxL)dx=0

So, we’ve shown that if nm the integral is zero and if n=m the value of the integral is a positive constant and so the set is mutually orthogonal.

In all of the work above we kept both forms of the integral at every step. Let’s discuss why we did this a little bit. By keeping both forms of the integral around we were able to show that not only is {cos(nπxL)}n=0 mutually orthogonal on LxL but it is also mutually orthogonal on 0xL. The only difference is the value of the integral when n=mand we can get those values from the work above.

Let’s take a look at another example.

Example 2 Show that {sin(nπxL)}n=1 is mutually orthogonal on LxL and on 0xL.
Show Solution

First, we’ll acknowledge from the start this time that we’ll be showing orthogonality on both of the intervals. Second, we need to start this set at n=1 because if we used n=0 the first function would be zero and we don’t want the zero function to show up on our list.

As with the first example all we really need to do is evaluate the following integral.

LLsin(nπxL)sin(mπxL)dx

In this case integrand is the product of two odd functions and so must be even. This means that we can again use Fact 3 above to write the integral as,

LLsin(nπxL)sin(mπxL)dx=2L0sin(nπxL)sin(mπxL)dx

We only have two cases to do for the integral here.

n=m_
Not much to this integral. It’s pretty similar to the previous examples second case.

LLsin2(nπxL)dx=2L0sin2(nπxL)dx=L01cos(2nπxL)dx=(xL2nπsin(2nπxL))|L0=LL2nπsin(2nπ)=L

Summarizing up we get,

LLsin2(nπxL)dx=2L0sin2(nπxL)dx=L

nm_
As with the previous example this can be a little messier but it is also nearly identical to the third case from the previous example so we’ll not show a lot of the work.

LLsin(nπxL)sin(mπxL)dx=2L0sin(nπxL)sin(mπxL)dx=L0cos((nm)πxL)cos((n+m)πxL)dx=[L(nm)πsin((nm)πxL)L(n+m)πsin((n+m)πxL)]L0=L(nm)πsin((nm)π)L(n+m)πsin((n+m)π)

As with the previous example we know that n and m are both integers a and so both of the sines above must be zero and all together we get,

LLsin(nπxL)sin(mπxL)dx=2L0sin(nπxL)sin(mπxL)dx=0

So, we’ve shown that if nm the integral is zero and if n=m the value of the integral is a positive constant and so the set is mutually orthogonal.

We’ve now shown that {sin(nπxL)}n=1 is mutually orthogonal on LxL and on 0xL.

We need to work one more example in this section.

Example 3 Show that {sin(nπxL)}n=1 and {cos(nπxL)}n=0 are mutually orthogonal on LxL.
Show Solution

This example is a little different from the previous two examples. Here we want to show that together both sets are mutually orthogonal on LxL. To show this we need to show three things. First (and second actually) we need to show that individually each set is mutually orthogonal and we’ve already done that in the previous two examples. The third (and only) thing we need to show here is that if we take one function from one set and another function from the other set and we integrate them we’ll get zero.

Also, note that this time we really do only want to do the one interval as the two sets, taken together, are not mutually orthogonal on 0xL. You might want to do the integral on this interval to verify that it won’t always be zero.

So, let’s take care of the one integral that we need to do here and there isn’t a lot to do. Here is the integral.

LLsin(nπxL)cos(mπxL)dx

The integrand in this case is the product of an odd function (the sine) and an even function (the cosine) and so the integrand is an odd function. Therefore, since the integral is on a symmetric interval, i.e. LxL, and so by Fact 3 above we know the integral must be zero or,

LLsin(nπxL)cos(mπxL)dx=0

So, in previous examples we’ve shown that on the interval LxL the two sets are mutually orthogonal individually and here we’ve shown that integrating a product of a sine and a cosine gives zero. Therefore, as a combined set they are also mutually orthogonal.

We’ve now worked three examples here dealing with orthogonality and we should note that these were not just pulled out of the air as random examples to work. In the following sections (and following chapter) we’ll need the results from these examples. So, let’s summarize those results up here.

  1. {cos(nπxL)}n=0 and {sin(nπxL)}n=1 are mutually orthogonal on LxL as individual sets and as a combined set.

  2. {cos(nπxL)}n=0 is mutually orthogonal on 0xL.

  3. {sin(nπxL)}n=1 is mutually orthogonal on 0xL.

We will also be needing the results of the integrals themselves, both on LxL and on 0xL so let’s also summarize those up here as well so we can refer to them when we need to.

  1. LLcos(nπxL)cos(mπxL)dx={2Lif n=m=0Lif n=m00if nm

  2. L0cos(nπxL)cos(mπxL)dx={Lif n=m=0L2if n=m00if nm

  3. LLsin(nπxL)sin(mπxL)dx={Lif n=m0if nm

  4. L0sin(nπxL)sin(mπxL)dx={L2if n=m0if nm

  5. LLsin(nπxL)cos(mπxL)dx=0

With this summary we’ll leave this section and move off into the second major topic of this chapter : Fourier Series.