december 2 math 2306 sec. 51 fall 2019facultyweb.kennesaw.edu/lritter/dec2_2306_51_f19f.pdfhalf...

32
December 2 Math 2306 sec. 51 Fall 2019 Section 17: Fourier Series: Trigonometric Series The orthogonality relations provide for an expansion of a function f defined on (-p, p) as f (x )= a 0 2 + X n=1 a n cos nπx p + b n sin nπx p where a 0 = 1 p Z p -p f (x ) dx , a n = 1 p Z p -p f (x ) cos nπx p dx , and b n = 1 p Z p -p f (x ) sin nπx p dx November 22, 2019 1 / 56

Upload: others

Post on 09-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

December 2 Math 2306 sec. 51 Fall 2019

Section 17: Fourier Series: Trigonometric Series

The orthogonality relations provide for an expansion of a function fdefined on (−p,p) as

f (x) =a0

2+∞∑

n=1

(an cos

(nπx

p

)+ bn sin

(nπx

p

))where

a0 =1p

∫ p

−pf (x)dx ,

an =1p

∫ p

−pf (x) cos

(nπx

p

)dx , and

bn =1p

∫ p

−pf (x) sin

(nπx

p

)dx

November 22, 2019 1 / 56

Page 2: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Convergence?

We determined that the function f (x) ={

1, −1 < x < 0−2, 0 ≤ x < 1

had

Fourier Series

f (x) = −12+∞∑

n=1

3((−1)n − 1)nπ

sin(nπx).

So the question arises: What does the Fourier series converge to,especially at a jump discontinuity of f?

This is the convergence issue mentioned earlier.

November 22, 2019 2 / 56

Page 3: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Convergence of the Series

Theorem: If f is continuous at x0 in (−p,p), then the series convergesto f (x0) at that point. If f has a jump discontinuity at the point x0 in(−p,p), then the series converges in the mean to the average value

f (x0−) + f (x0+)

2def=

12

(lim

x→x−0

f (x) + limx→x+

0

f (x)

)

at that point.

Periodic Extension:The series is also defined for x outside of the original domain (−p,p).The extension to all real numbers is 2p-periodic.

November 22, 2019 3 / 56

Page 4: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Period Extension with Convergence in the Mean

Figure: Plot of f (x) ={

1, −1 < x < 0−2, 0 ≤ x < 1 together with its Fourier series

over the interval −4 ≤ x ≤ 4

November 22, 2019 4 / 56

Page 5: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

ExampleFind the Fourier Series for f (x) = x , −1 < x < 1

Here, the value of p = 1. This is almost identical to the worksheetexample. The only difference is that p = 1 instead of π. One readilyfinds that

a0 =11

∫ 1

−1x dx = 0

an =11

∫ 1

−1x cos(nπx)dx = 0

bn =11

∫ 1

−1x sin(nπx)dx =

2(−1)n+1

Its series

f (x) =∞∑

n=1

2(−1)n+1

nπsin(nπx)

November 22, 2019 5 / 56

Page 6: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Plot f (x) = x , −1 < x < 1 with its Fourier Series

Figure: f (x) = x for −1 < x < 1 is shown in black.

November 22, 2019 6 / 56

Page 7: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Symmetry

For f (x) = x , −1 < x < 1

f (x) =∞∑

n=1

2(−1)n+1

nπsin(nπx)

Observation: f is an odd function. It is not surprising then that thereare no nonzero constant or cosine terms (which have even symmetry)in the Fourier series for f .

The following plots show f , f plotted along with some partial sums ofthe series, and f along with a partial sum of its series (generated inMatlab©) extended outside of the original domain (−1,1).

November 22, 2019 7 / 56

Page 8: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Figure: Plot of f (x) = x for −1 < x < 1

November 22, 2019 8 / 56

Page 9: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Figure: Plot of f (x) = x for −1 < x < 1 with two terms of the Fourier series.

November 22, 2019 9 / 56

Page 10: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Figure: Plot of f (x) = x for −1 < x < 1 with 10 terms of the Fourier series

November 22, 2019 10 / 56

Page 11: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Figure: Plot of f (x) = x for −1 < x < 1 with the Fourier series plotted on(−3,3). Note that the series repeats the profile every 2 units. At the jumps,the series converges to (−1 + 1)/2 = 0.

November 22, 2019 11 / 56

Page 12: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Section 18: Sine and Cosine Series

Functions with Symmetry

Recall some definitions:

Suppose f is defined on an interval containing x and −x .

If f (−x) = f (x) for all x , then f is said to be even.

If f (−x) = −f (x) for all x , then f is said to be odd.

For example, f (x) = xn is even if n is even and is odd if n is odd. Thetrigonometric function g(x) = cos x is even, and h(x) = sin x is odd.

November 22, 2019 12 / 56

Page 13: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Integrals on symmetric intervals

If f is an even function on (−p,p), then∫ p

−pf (x)dx = 2

∫ p

0f (x)dx .

If f is an odd function on (−p,p), then∫ p

−pf (x)dx = 0.

November 22, 2019 13 / 56

Page 14: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Products of Even and Odd functions

Even × Even = Even,

andOdd × Odd = Even.

WhileEven × Odd = Odd.

So, suppose f is even on (−p,p). This tells us that f (x) cos(nx) iseven for all n and f (x) sin(nx) is odd for all n.

And, if f is odd on (−p,p). This tells us that f (x) sin(nx) is even for alln and f (x) cos(nx) is odd for all n

November 22, 2019 14 / 56

Page 15: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Fourier Series of an Even FunctionIf f is even on (−p,p), then the Fourier series of f has only constantand cosine terms. Moreover

f (x) =a0

2+∞∑

n=1

an cos(

nπxp

)where

a0 =2p

∫ p

0f (x)dx

and

an =2p

∫ p

0f (x) cos

(nπx

p

)dx .

November 22, 2019 15 / 56

Page 16: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Fourier Series of an Odd Function

If f is odd on (−p,p), then the Fourier series of f has only sine terms.Moreover

f (x) =∞∑

n=1

bn sin(

nπxp

)where

bn =2p

∫ p

0f (x) sin

(nπx

p

)dx .

November 22, 2019 16 / 56

Page 17: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Find the Fourier series of f

f (x) ={

x + π, −π < x < 0π − x , 0 ≤ x < π

November 22, 2019 17 / 56

Page 18: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

November 22, 2019 18 / 56

Page 19: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

November 22, 2019 19 / 56

Page 20: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Half Range Sine and Half Range Cosine SeriesSuppose f is only defined for 0 < x < p. We can extend f to the left, tothe interval (−p,0), as either an even function or as an odd function.Then we can express f with two distinct series:

Half range cosine series f (x) =a0

2+∞∑

n=1

an cos(

nπxp

)

where a0 =2p

∫ p

0f (x)dx and an =

2p

∫ p

0f (x) cos

(nπx

p

)dx .

Half range sine series f (x) =∞∑

n=1

bn sin(

nπxp

)

where bn =2p

∫ p

0f (x) sin

(nπx

p

)dx .

November 22, 2019 25 / 56

Page 21: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Extending a Function to be Odd

Figure: f (x) = p − x , 0 < x < p together with its odd extension.November 22, 2019 26 / 56

Page 22: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Extending a Function to be Even

Figure: f (x) = p − x , 0 < x < p together with its even extension.November 22, 2019 27 / 56

Page 23: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Find the Half Range Sine Series of f

f (x) = 2 − x , 0 < x < 2

November 22, 2019 28 / 56

Page 24: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

November 22, 2019 29 / 56

Page 25: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Find the Half Range Cosine Series of f

f (x) = 2 − x , 0 < x < 2

November 22, 2019 36 / 56

Page 26: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

November 22, 2019 37 / 56

Page 27: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

November 22, 2019 38 / 56

Page 28: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Example Continued...

We have two different half range series:

Half range sine: f (x) =∞∑

n=1

4nπ

sin(nπx

2

)

Half range cosine: f (x) = 1 +∞∑

n=1

4(1 − (−1)n)

n2π2 cos(nπx

2

).

We have two different series representations for this function each ofwhich converge to f (x) on the interval (0,2). The following plots showgraphs of f along with partial sums of each of the series. When we plotover the interval (−2,2) we see the two different symmetries. Plottingover a larger interval such as (−6,6) we can see the periodicextensions of the two symmetries.

November 22, 2019 44 / 56

Page 29: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Plots of f with Half range series

Figure: f (x) = 2 − x , 0 < x < 2 with 10 terms of the sine series.November 22, 2019 45 / 56

Page 30: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Plots of f with Half range series

Figure: f (x) = 2 − x , 0 < x < 2 with 10 terms of the sine series, and theseries plotted over (−6,6) November 22, 2019 46 / 56

Page 31: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Plots of f with Half range series

Figure: f (x) = 2 − x , 0 < x < 2 with 5 terms of the cosine series.November 22, 2019 47 / 56

Page 32: December 2 Math 2306 sec. 51 Fall 2019facultyweb.kennesaw.edu/lritter/Dec2_2306_51_F19f.pdfHalf Range Sine and Half Range Cosine Series Suppose f is only defined for 0

Plots of f with Half range series

Figure: f (x) = 2 − x , 0 < x < 2 with 5 terms of the cosine series, and theseries plotted over (−6,6) November 22, 2019 48 / 56