Linear algebra and differential equations (Math 54): Lecture 25 - - PowerPoint PPT Presentation

linear algebra and differential equations math 54 lecture
SMART_READER_LITE
LIVE PREVIEW

Linear algebra and differential equations (Math 54): Lecture 25 - - PowerPoint PPT Presentation

Linear algebra and differential equations (Math 54): Lecture 25 Vivek Shende April 26, 2019 Hello and welcome to class! Hello and welcome to class! Last time Hello and welcome to class! Last time We looked at the heat and wave equations


slide-1
SLIDE 1

Linear algebra and differential equations (Math 54): Lecture 25

Vivek Shende April 26, 2019

slide-2
SLIDE 2

Hello and welcome to class!

slide-3
SLIDE 3

Hello and welcome to class!

Last time

slide-4
SLIDE 4

Hello and welcome to class!

Last time

We looked at the heat and wave equations

slide-5
SLIDE 5

Hello and welcome to class!

Last time

We looked at the heat and wave equations and found that, at least for initial conditions which can be decomposed into sums of sines, we could describe a solution.

slide-6
SLIDE 6

Hello and welcome to class!

Last time

We looked at the heat and wave equations and found that, at least for initial conditions which can be decomposed into sums of sines, we could describe a solution.

This time

slide-7
SLIDE 7

Hello and welcome to class!

Last time

We looked at the heat and wave equations and found that, at least for initial conditions which can be decomposed into sums of sines, we could describe a solution.

This time

We learn that all functions can be decomposed into sines and cosines.

slide-8
SLIDE 8

Periodicity

slide-9
SLIDE 9

Periodicity

A function f : R → R is called periodic with period T if f (x + T) = f (x) for all x

slide-10
SLIDE 10

Periodicity

Some functions which are periodic with period 2π:

slide-11
SLIDE 11

Periodicity

Some functions which are periodic with period 2π: sin(x),

slide-12
SLIDE 12

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x),

slide-13
SLIDE 13

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x),

slide-14
SLIDE 14

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x), sin(x + 3).

slide-15
SLIDE 15

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x), sin(x + 3). They are also periodic with period 4π.

slide-16
SLIDE 16

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x), sin(x + 3). They are also periodic with period 4π. They are also periodic with period 6π.

slide-17
SLIDE 17

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x), sin(x + 3). They are also periodic with period 4π. They are also periodic with period 6π. They are also periodic with period 8π.

slide-18
SLIDE 18

Periodicity

Some functions which are periodic with period 2π: sin(x), cos(x), sin(x) + cos(x), sin(x + 3). They are also periodic with period 4π. They are also periodic with period 6π. They are also periodic with period 8π. We say that 2π is the fundamental period of these functions.

slide-19
SLIDE 19

Periodic functions?

slide-20
SLIDE 20

Periodic functions?

Often, we are interested in the behavior of some finite region of space, e.g. [0, L].

slide-21
SLIDE 21

Periodic functions?

Often, we are interested in the behavior of some finite region of space, e.g. [0, L]. Perhaps the most natural thing to do would be to consider functions that are only defined on this region.

slide-22
SLIDE 22

Periodic functions?

Often, we are interested in the behavior of some finite region of space, e.g. [0, L]. Perhaps the most natural thing to do would be to consider functions that are only defined on this region.

slide-23
SLIDE 23

Periodic functions?

We will see it is more convenient to instead consider functions which are defined on all of R but are periodic with period L.

slide-24
SLIDE 24

Periodic functions?

We will see it is more convenient to instead consider functions which are defined on all of R but are periodic with period L.

slide-25
SLIDE 25

Periodic functions?

That is, if we start out with a function f with domain [0, L],

slide-26
SLIDE 26

Periodic functions?

That is, if we start out with a function f with domain [0, L], we can get a function with domain R by setting f (x) := f (x ± whatever multiple of L is required to put it in [0, L])

slide-27
SLIDE 27

Periodic functions?

That is, if we start out with a function f with domain [0, L], we can get a function with domain R by setting f (x) := f (x ± whatever multiple of L is required to put it in [0, L])

slide-28
SLIDE 28

Periodic functions?

Note the result can be discontinuous.

slide-29
SLIDE 29

Periodic functions?

Note the result can be discontinuous. That’s ok, we’ll allow

  • urselves functions with finitely many discontinuities.
slide-30
SLIDE 30

Fourier series

Given a periodic function,

slide-31
SLIDE 31

Fourier series

Given a periodic function, let us say with period 2L,

slide-32
SLIDE 32

Fourier series

Given a periodic function, let us say with period 2L, We will try and express it as a sum of the periodic functions we know with period 2L,

slide-33
SLIDE 33

Fourier series

Given a periodic function, let us say with period 2L, We will try and express it as a sum of the periodic functions we know with period 2L, Namely, sin( nπ

L x) and cos( nπ L x) for integers n > 0,

slide-34
SLIDE 34

Fourier series

Given a periodic function, let us say with period 2L, We will try and express it as a sum of the periodic functions we know with period 2L, Namely, sin( nπ

L x) and cos( nπ L x) for integers n > 0, and the

constant function.

slide-35
SLIDE 35

Fourier series

Given a periodic function, let us say with period 2L, We will try and express it as a sum of the periodic functions we know with period 2L, Namely, sin( nπ

L x) and cos( nπ L x) for integers n > 0, and the

constant function. Such an expression is called a Fourier series.

slide-36
SLIDE 36

Fourier series

Intuitively, the idea is that,

slide-37
SLIDE 37

Fourier series

Intuitively, the idea is that, from very far away,

slide-38
SLIDE 38

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant function.

slide-39
SLIDE 39

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant

  • function. Subtracting off this constant and zooming in, we see
  • scillations at some characteristic frequency.
slide-40
SLIDE 40

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant

  • function. Subtracting off this constant and zooming in, we see
  • scillations at some characteristic frequency. The simplest such
  • scillations look like sin and cos waves; we estimate the function

by these,

slide-41
SLIDE 41

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant

  • function. Subtracting off this constant and zooming in, we see
  • scillations at some characteristic frequency. The simplest such
  • scillations look like sin and cos waves; we estimate the function

by these, subtract this off,

slide-42
SLIDE 42

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant

  • function. Subtracting off this constant and zooming in, we see
  • scillations at some characteristic frequency. The simplest such
  • scillations look like sin and cos waves; we estimate the function

by these, subtract this off, zoom in further,

slide-43
SLIDE 43

Fourier series

Intuitively, the idea is that, from very far away, the graph of a periodic function just looks like a straight line, some constant

  • function. Subtracting off this constant and zooming in, we see
  • scillations at some characteristic frequency. The simplest such
  • scillations look like sin and cos waves; we estimate the function

by these, subtract this off, zoom in further, and repeat the process.

slide-44
SLIDE 44

Orthogonality

The above description of iteratively subtracting off successive approximations may remind you of taking orthogonal projections.

slide-45
SLIDE 45

Orthogonality

The above description of iteratively subtracting off successive approximations may remind you of taking orthogonal projections. Thus our first step is finding an inner product on the space of functions with respect to which sin( nπ

L x) and cos( nπ L x) and the

constant function are orthogonal.

slide-46
SLIDE 46

Orthogonality

The above description of iteratively subtracting off successive approximations may remind you of taking orthogonal projections. Thus our first step is finding an inner product on the space of functions with respect to which sin( nπ

L x) and cos( nπ L x) and the

constant function are orthogonal. Fortunately, we do not have to look very hard.

slide-47
SLIDE 47

Orthogonality

Theorem

The functions sin( nπ

L x), and cos( nπ L x) (for integers n > 0), and the

constant function are orthogonal with respect to the inner product f , g = L

−L

f (x)g(x)dx Their lengths-squared are sin(nπ L x), sin(nπ L x) = L

−L

sin(nπ L x) sin(nπ L x)dx = L cos(nπ L x), cos(nπ L x) = L

−L

cos(nπ L x) cos(nπ L x)dx = L 1, 1 = L

−L

dx = 2L

slide-48
SLIDE 48

Orthogonality

Let’s check some of the assertions of this theorem.

slide-49
SLIDE 49

Orthogonality

Let’s check some of the assertions of this theorem. For instance, it is saying L

−L

sin nπ L x

  • cos

mπ L x

  • dx = 0
slide-50
SLIDE 50

Orthogonality

Let’s check some of the assertions of this theorem. For instance, it is saying L

−L

sin nπ L x

  • cos

mπ L x

  • dx = 0

This is true because the integrand is the product of an even function with an odd function,

slide-51
SLIDE 51

Orthogonality

Let’s check some of the assertions of this theorem. For instance, it is saying L

−L

sin nπ L x

  • cos

mπ L x

  • dx = 0

This is true because the integrand is the product of an even function with an odd function, hence odd

slide-52
SLIDE 52

Orthogonality

Let’s check some of the assertions of this theorem. For instance, it is saying L

−L

sin nπ L x

  • cos

mπ L x

  • dx = 0

This is true because the integrand is the product of an even function with an odd function, hence odd and we are integrating it

  • ver a region symmetric under x → −x.
slide-53
SLIDE 53

Orthogonality

It also is saying, when n = m, L

−L

sin nπ L x

  • sin

mπ L x

  • dx = 0
slide-54
SLIDE 54

Orthogonality

It also is saying, when n = m, L

−L

sin nπ L x

  • sin

mπ L x

  • dx = 0

The identity cos(a + b) = cos(a) cos(b) − sin(a) sin(b), converts the above into the (more visibly true) formula 1 2 L

−L

cos (n − m)π L x

  • − cos

(n + m)π L x

  • = 0
slide-55
SLIDE 55

Orthogonality

It also is saying, when n = m, L

−L

sin nπ L x

  • sin

mπ L x

  • dx = 0

The identity cos(a + b) = cos(a) cos(b) − sin(a) sin(b), converts the above into the (more visibly true) formula 1 2 L

−L

cos (n − m)π L x

  • − cos

(n + m)π L x

  • = 0

Note that when n = m, the first of the above cos is cos(0) = 1, so the integral yields L, as asserted by the theorem.

slide-56
SLIDE 56

Orthogonal projections

slide-57
SLIDE 57

Orthogonal projections

Recall that, in an inner product space, the orthogonal projection of a vector v to the space spanned by the vector w was given by v, w v, v

  • w
slide-58
SLIDE 58

Orthogonal projections

Recall that, in an inner product space, the orthogonal projection of a vector v to the space spanned by the vector w was given by v, w v, v

  • w

And, given an orthogonal set w1, w2, . . . , wn, the orthogonal projection of v to the space they span is given by v, w1 v, v

  • w1 +

v, w2 v, v

  • w2 + · · · +

v, wn v, v

  • wn
slide-59
SLIDE 59

Orthogonal projections

Recall that, in an inner product space, the orthogonal projection of a vector v to the space spanned by the vector w was given by v, w v, v

  • w

And, given an orthogonal set w1, w2, . . . , wn, the orthogonal projection of v to the space they span is given by v, w1 v, v

  • w1 +

v, w2 v, v

  • w2 + · · · +

v, wn v, v

  • wn

If the wi were a basis,

slide-60
SLIDE 60

Orthogonal projections

Recall that, in an inner product space, the orthogonal projection of a vector v to the space spanned by the vector w was given by v, w v, v

  • w

And, given an orthogonal set w1, w2, . . . , wn, the orthogonal projection of v to the space they span is given by v, w1 v, v

  • w1 +

v, w2 v, v

  • w2 + · · · +

v, wn v, v

  • wn

If the wi were a basis, then this is the expression of v in that basis.

slide-61
SLIDE 61

Fourier series

slide-62
SLIDE 62

Fourier series

Now we apply that to the orthogonal set we have just found.

slide-63
SLIDE 63

Fourier series

Now we apply that to the orthogonal set we have just found. If f is a function with domain [−L, L], then its Fourier series is: L

−L f (x)dx

2L

  • · 1 +

  • n=1

L

−L f (x) cos

L x

  • dx

L

  • cos

nπ L x

  • +

  • n=1

L

−L f (x) sin

L x

  • dx

L

  • sin

nπ L x

slide-64
SLIDE 64

Fourier series

Now we apply that to the orthogonal set we have just found. If f is a function with domain [−L, L], then its Fourier series is: L

−L f (x)dx

2L

  • · 1 +

  • n=1

L

−L f (x) cos

L x

  • dx

L

  • cos

nπ L x

  • +

  • n=1

L

−L f (x) sin

L x

  • dx

L

  • sin

nπ L x

  • Note the complicated expressions in parenthesis are just numbers,

and are the analogues of the

  • v,wi

v,v

  • .
slide-65
SLIDE 65

Fourier series

Said with less symbols on each line, the Fourier series of a function is an expression of the form a0 2 +

  • n=1

an cos nπx L + bn sin nπx L where an = 1 L L

−L

f (x) cos nπx L dx bn = 1 L L

−L

f (x) sin nπx L dx

slide-66
SLIDE 66

Fourier series

If we had been working in a finite dimensional vector space,

slide-67
SLIDE 67

Fourier series

If we had been working in a finite dimensional vector space, and if it had been true that the functions sin nπx

L , cos nπx L , plus the

constant function gave a basis,

slide-68
SLIDE 68

Fourier series

If we had been working in a finite dimensional vector space, and if it had been true that the functions sin nπx

L , cos nπx L , plus the

constant function gave a basis, then, by orthogonality, the Fourier series would be the expansion in this basis.

slide-69
SLIDE 69

Fourier series

If we had been working in a finite dimensional vector space, and if it had been true that the functions sin nπx

L , cos nπx L , plus the

constant function gave a basis, then, by orthogonality, the Fourier series would be the expansion in this basis. In particular, a function would be equal to its Fourier series.

slide-70
SLIDE 70

Fourier series

If we had been working in a finite dimensional vector space, and if it had been true that the functions sin nπx

L , cos nπx L , plus the

constant function gave a basis, then, by orthogonality, the Fourier series would be the expansion in this basis. In particular, a function would be equal to its Fourier series. In fact, this is true here as well, in a certain sense and under appropriate conditions.

slide-71
SLIDE 71

Fourier series

Theorem

If f is piecewise continuous on [−L, L], then x

−L f (x)dx can be

computed termwise from the Fourier series.

slide-72
SLIDE 72

Fourier series

Theorem

If f is piecewise continuous on [−L, L], then x

−L f (x)dx can be

computed termwise from the Fourier series. If in addition f ′ is piecewise continuous, then the Fourier series converges pointwise to f away from the discontinuities.

slide-73
SLIDE 73

Fourier series

Theorem

If f is piecewise continuous on [−L, L], then x

−L f (x)dx can be

computed termwise from the Fourier series. If in addition f ′ is piecewise continuous, then the Fourier series converges pointwise to f away from the discontinuities. If in fact f is continuous (and takes the same value at ±L), and f ′ is piecewise continuous, then the convergence is uniform.

slide-74
SLIDE 74

Fourier series

Theorem

If f is piecewise continuous on [−L, L], then x

−L f (x)dx can be

computed termwise from the Fourier series. If in addition f ′ is piecewise continuous, then the Fourier series converges pointwise to f away from the discontinuities. If in fact f is continuous (and takes the same value at ±L), and f ′ is piecewise continuous, then the convergence is uniform. Finally, if f is continuous (and takes the same value at ±L), and f ′ and f ′′ are both piecewise continuous, then the Fourier series for f can be differentiated term-by-term to get the Fourier series of f ′.

slide-75
SLIDE 75

Computing the Fourier coefficients

slide-76
SLIDE 76

Computing the Fourier coefficients

Consider the “square wave” function f (x) with period 2π which takes value −1 on [0, −π] and value 1 on [0, π].

slide-77
SLIDE 77

Computing the Fourier coefficients

Consider the “square wave” function f (x) with period 2π which takes value −1 on [0, −π] and value 1 on [0, π]. Let us determine its Fourier series.

slide-78
SLIDE 78

Computing the Fourier coefficients

Consider the “square wave” function f (x) with period 2π which takes value −1 on [0, −π] and value 1 on [0, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx

slide-79
SLIDE 79

Computing the Fourier coefficients

Consider the “square wave” function f (x) with period 2π which takes value −1 on [0, −π] and value 1 on [0, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx First note the coefficients an all vanish:

slide-80
SLIDE 80

Computing the Fourier coefficients

Consider the “square wave” function f (x) with period 2π which takes value −1 on [0, −π] and value 1 on [0, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx First note the coefficients an all vanish: f (x) is odd, hence cos(x)f (x) is odd, hence its integral from −π to π is zero.

slide-81
SLIDE 81

Computing the Fourier coefficients

slide-82
SLIDE 82

Computing the Fourier coefficients

As for the bn, we have 1 π π

−π

f (x) sin(nx)dx = 2 π π sin(nx)dx = − 2 nπ cos(nx)

  • π

= − 2 nπ((−1)n − 1)

slide-83
SLIDE 83

Computing the Fourier coefficients

As for the bn, we have 1 π π

−π

f (x) sin(nx)dx = 2 π π sin(nx)dx = − 2 nπ cos(nx)

  • π

= − 2 nπ((−1)n − 1) Thus the Fourier series is given by f (x) = 4 π

  • sin(x) + 1

3 sin 3x + 1 5 sin 5x + · · ·

slide-84
SLIDE 84

Computing the Fourier coefficients

slide-85
SLIDE 85

Computing the Fourier coefficients

Consider the periodic function with period 2π given by |x| in [−π, π]. Let us determine its Fourier series.

slide-86
SLIDE 86

Computing the Fourier coefficients

Consider the periodic function with period 2π given by |x| in [−π, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx

slide-87
SLIDE 87

Computing the Fourier coefficients

Consider the periodic function with period 2π given by |x| in [−π, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx First note the coefficients bn all vanish:

slide-88
SLIDE 88

Computing the Fourier coefficients

Consider the periodic function with period 2π given by |x| in [−π, π]. Let us determine its Fourier series. We should compute the coefficients an = 1 π π

−π

f (x) cos(nx)dx bn = 1 π π

−π

f (x) sin(nx)dx First note the coefficients bn all vanish: f (x) is even, hence sin(x)f (x) is odd, hence its integral from −π to π is zero.

slide-89
SLIDE 89

Computing the Fourier coefficients

We have a0 = 1

π

π

−π |x|dx = π2;

slide-90
SLIDE 90

Computing the Fourier coefficients

We have a0 = 1

π

π

−π |x|dx = π2; the other an are:

1 π π

−π

|x| cos(nx)dx = 2 π π x cos(nx)dx = 2 π

  • x sin(nx)

n

  • π

− π sin(nx) n dx

  • =

2 πn2 [cos(nx)|π = 2 πn2 ((−1)n − 1))

slide-91
SLIDE 91

Computing the Fourier coefficients

We have a0 = 1

π

π

−π |x|dx = π2; the other an are:

1 π π

−π

|x| cos(nx)dx = 2 π π x cos(nx)dx = 2 π

  • x sin(nx)

n

  • π

− π sin(nx) n dx

  • =

2 πn2 [cos(nx)|π = 2 πn2 ((−1)n − 1)) Thus the Fourier series is given by f (x) = π2 2 − 4 π

  • cos(x) + 1

9 cos(3x) + 1 25 cos(5x) + · · ·