lacunary - Mathnotes

Review

Periodic Functions: A function is periodic of period T if f(x+T)=f(x) for all x in the domain of f.

Even Functions: A function that satisfies f(x)=f(x) for all x in the domain of f has a graph that is symmetric with respect to the y-axis. We say such a function is even. The functions 1,x2,x4, are examples of even functions, as is cosx.

Odd Functions: A function f that satisfies f(x)=f(x) for all x in the domain of f has a graph that is symmetric with respect to the origin. It is said to be an odd function. The functions x,x3,x5, are examples of odd functions, as are sinx and tanx.

Knowing these properties can be useful when evaluating indefinite integrals.

If f is an even piecewise continuous function on [a,a], then

aaf(x)dx=20af(x)dx.

if f is an odd piecewise continuous function on [a,a], then

aaf(x)dx=0.

Some Important Integrals

The following three integrals are crucial in Fourier series. In each, m and n are nonnegative integers.

The first integral:

LLsinmπxLcosnπxLdx.(a)

We can simplify this using the trig identity for products of sines and cosines, sin(a)cos(b)=12(sin(ab)+sin(a+b)):

12LLsin(mn)πxL+sin(m+n)πxLdx.

Since this is an integral from L to L over an odd function, it, and thus (a), always equals 0.

The second integral:

LLsinmπxLsinnπxLdx.(b)

This time we use the trig identity sin(a)sin(b)=12(cos(ab)cos(a+b)):

12LLcos(mn)πxLcos(m+n)πxLdx.(b.1)

Here, we have to consider two cases, m=n and mn. If m=n, (mn)=0,(m+n)=2m; also note that this integral is over an even function from L to L, so (b.1)

12LL1cos2mπxLdx=L(Lsin2mπxL2πm)0L=L((Lsin2mπ2πm)0)=L.(b.2)

The final sin in (b.2) is always 0 because sin2mπ for integer m is always 0. So, when m=n, (b) evaluates to L.

When mn, we can't simplify either cos in the integrand and end up with two sin's that are always 0, so when mn, (b) evaluates to 0.

The third integral:

LLcosmπxLcosnπxLdx.(c)

This time we use the trig identity cos(a)cos(b)=12(cos(ab)+cos(a+b)):

12LLcos(mn)πxL+cos(m+n)πxLdx.(c.1)

Here, we need to consider 3 cases: mn; m=n,m,n0; m=n=0. The first two cases work out just like (b), and when mn we get 0, when m=n but m and n are non-zero we get L.

However, when m=n=0, both cos in the integrand end up as cos0=1, and so the integral simplifies to:

LLdx=2L.(c.2)

Thus, when m=n=0, (c) evaluates to 2L.

The following table (from "Differential Equations and Boundary Value Problems", Nagle, et al, 2017, p574) summarizes these integrals nicely:

Summary of important integrals

Fourier Series

Definition: Let f be a piecewise continuous function on the interval [L,L]. The Fourier Series of f is the trigonometric series

f(x)a02+n=1{ancosnπxL+bnsinnπxL},(8)

where the an's and bn's are given by the formulas:

an=1LLLf(x)cosnπxLdx,n=0,1,2,,(9)

bn=1LLLf(x)sinnπxLdx,n=0,1,2,,(10)

Formulas (9) and (10) are called the Euler-Fourier formulas. The symbols in (8) means that the series is associated with f(x) but may not converge to f(x).

Example 1

Find the Fourier series for f(x)=3x, π<x<π.

Here, L = pi. We get lucky here because 3x is even, so all bn terms are 0 (if it were odd, all an terms would be 0). First, we'll find a0 using (8). Since f(x) is even, we simplify and integrate over just the positive half and double the result:

a0=1π=ππ|3x|dx=6π0πxdx=3π.

Now, we find an using (8), again taking advantage of our integrand being even, and then using integration by parts:

an=1πππ|3x|cos(nx)dx=6π0πxcosnxdx=6πn2((1)n1).

Now, using (9) we can write our Fourier series:

|3x|3π2+n=1(6πn2((1)n1)cos(nx))

The first few terms are:

|3x|3π212πcosx129πcos3x1225πcos5x

Extensions

If we have a function f(x) that is defined on 0<x<L, and we recall that an odd function defined on [L,L] has only sine terms, we might wish to construct an artificial extension of f(x) onto (L,L) in such a way that the extended function is odd, so we could construct a Fourier series for the function that consists only of sine terms. We can accomplish this by defining the function

fo(x):={f(x),0<x<L,f(x),L<x<0,

and extending fo(x) to all x using 2L-periodicity (well, all x other than integer multiples of L). Since fo(x) is odd, its Fourier series will contain only sine terms, and since fo(x)=f(x) on (0,L), fo(x) is an extension of f(x). Specifically, it's called the odd 2L-periodic extension of f(x). The resulting Fourier series expansion is called a half-range expansion for f(x), since it represents the function f(x) on (0,L,) which is half the interval (L,L) where it represents fo(x).

Similarly, we can define the even 2L-periodic extension of f(x) as

fe(x):={f(x),0<x<L,f(x),L<x<0.

Its Fourier series would contain only cosines.

Fourier Cosine and Sine Series

Using the notions of expansions above, we have the following definitions.

Let f(x) be a piecewise continuous function on the interval [0,L]. The Fourer cosine series of f(x) on [0,L] is

a02+n=1ancosnπxL,(4)

where

an=2L0Lf(x)cosnπxLdx,n=0,1,.

The Fourer sine series of f(x) on [0,L] is

n=1bnsinnπxL,(6)

where

bn=2L0Lf(x)sinnπxLdx,n=1,2,.

The series in (4) is the Fourier series for fe(x), and that in (6) is the series for fo(x). These are called half-range expansions for f(x).