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 30, 2019 Hello, and welcome to class! Hello, and welcome to class! Last time Hello, and welcome to class! Last time We introduced the notion of Fourier


slide-1
SLIDE 1

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

Vivek Shende April 30, 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 introduced the notion of Fourier series, and discussed how to expand a function into one.

slide-5
SLIDE 5

Hello, and welcome to class!

Last time

We introduced the notion of Fourier series, and discussed how to expand a function into one.

slide-6
SLIDE 6

Hello, and welcome to class!

Last time

We introduced the notion of Fourier series, and discussed how to expand a function into one.

This time

slide-7
SLIDE 7

Hello, and welcome to class!

Last time

We introduced the notion of Fourier series, and discussed how to expand a function into one.

This time

Having developed this tool, we return to studying the heat equation.

slide-8
SLIDE 8

Heat equation review

slide-9
SLIDE 9

Heat equation review

The heat equation in one variable is: ∂ ∂t u(x, t) = β ∂2 ∂x2 u(x, t)

slide-10
SLIDE 10

Heat equation review

The heat equation in one variable is: ∂ ∂t u(x, t) = β ∂2 ∂x2 u(x, t) We saw that some solutions are given by u(x, t) = eλt(Aλex√

λ/β + Bλe−x√ λ/β)

λ > 0 u(x, t) = Aλ+Bλx λ = 0 u(x, t) = eλt(Aλ cos(x

  • −λ/β)+Bλ sin(x
  • −λ/β))

λ < 0

slide-11
SLIDE 11

Heat equation review

Last week, we considered a wire of length L,

slide-12
SLIDE 12

Heat equation review

Last week, we considered a wire of length L, whose endpoints were kept at temperature zero.

slide-13
SLIDE 13

Heat equation review

Last week, we considered a wire of length L, whose endpoints were kept at temperature zero. In other words, we imposed boundary conditions u(0, t) = 0 = u(L, t)

slide-14
SLIDE 14

Heat equation review

Of our above solutions, the only ones which take this form are the eλt sin(x

  • −λ/β)

when

  • −λ/β = Nπ/L
slide-15
SLIDE 15

Heat equation review

Of our above solutions, the only ones which take this form are the eλt sin(x

  • −λ/β)

when

  • −λ/β = Nπ/L

This led to a general solution of the form u(x, t) =

  • N=1

cNe−β( Nπ

L ) 2t sin

Nπ L x

slide-16
SLIDE 16

Initial conditions and Fourier expansion

Finally suppose we are given the initial temperature in the form of some function u(x, 0).

slide-17
SLIDE 17

Initial conditions and Fourier expansion

Finally suppose we are given the initial temperature in the form of some function u(x, 0). Our job now is to express u(x, 0) =

  • N=1

cN sin Nπ L x

slide-18
SLIDE 18

Initial conditions and Fourier expansion

Finally suppose we are given the initial temperature in the form of some function u(x, 0). Our job now is to express u(x, 0) =

  • N=1

cN sin Nπ L x

  • In other words, to find values cN making the above formula true.
slide-19
SLIDE 19

Initial conditions and Fourier expansion

Finally suppose we are given the initial temperature in the form of some function u(x, 0). Our job now is to express u(x, 0) =

  • N=1

cN sin Nπ L x

  • In other words, to find values cN making the above formula true.

Because then the solution will be given by u(x, t) =

  • N=1

cNe−β( Nπ

L ) 2t sin

Nπ L x

slide-20
SLIDE 20

Initial conditions and Fourier expansion

The expression u(x, 0) =

  • N=1

cN sin Nπ L x

  • looks much like a Fourier expansion.
slide-21
SLIDE 21

Initial conditions and Fourier expansion

The expression u(x, 0) =

  • N=1

cN sin Nπ L x

  • looks much like a Fourier expansion.

Two differences from last time:

slide-22
SLIDE 22

Initial conditions and Fourier expansion

The expression u(x, 0) =

  • N=1

cN sin Nπ L x

  • looks much like a Fourier expansion.

Two differences from last time: first, the function is only defined

  • n the interval [0, L],
slide-23
SLIDE 23

Initial conditions and Fourier expansion

The expression u(x, 0) =

  • N=1

cN sin Nπ L x

  • looks much like a Fourier expansion.

Two differences from last time: first, the function is only defined

  • n the interval [0, L], and second, we want to expand it only in sin

rather than in sin and cos.

slide-24
SLIDE 24

Fourier series review

The Fourier series of a function f (x) defined on [−L, L] is a0 2 +

  • n=1

an cos nπx L + bn sin nπx L 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-25
SLIDE 25

Initial conditions and Fourier expansion

To absorb these differences, we extend the function f to [−L, L] simply by defining f (−x) = −f (x).

slide-26
SLIDE 26

Initial conditions and Fourier expansion

To absorb these differences, we extend the function f to [−L, L] simply by defining f (−x) = −f (x). This has the virtue of ensuring that the extension is an odd function,

slide-27
SLIDE 27

Initial conditions and Fourier expansion

To absorb these differences, we extend the function f to [−L, L] simply by defining f (−x) = −f (x). This has the virtue of ensuring that the extension is an odd function, which therefore has a Fourier expansion consisting only of sin nπx

L

waves,

slide-28
SLIDE 28

Initial conditions and Fourier expansion

To absorb these differences, we extend the function f to [−L, L] simply by defining f (−x) = −f (x). This has the virtue of ensuring that the extension is an odd function, which therefore has a Fourier expansion consisting only of sin nπx

L

waves, exactly as we wanted.

slide-29
SLIDE 29

Initial conditions and Fourier expansion

To absorb these differences, we extend the function f to [−L, L] simply by defining f (−x) = −f (x). This has the virtue of ensuring that the extension is an odd function, which therefore has a Fourier expansion consisting only of sin nπx

L

waves, exactly as we wanted. In interpreting the answer, we just ignore the value of the function

  • n [−L, 0].
slide-30
SLIDE 30

Example

Consider a wire of length L and diffusivity β in which the initial temperature is described by the function u(x) =

  • x

0 ≤ x ≤ L/2 L − x L/2 ≤ x ≤ L and in which the temperature at the endpoints is kept at zero.

slide-31
SLIDE 31

Example

Consider a wire of length L and diffusivity β in which the initial temperature is described by the function u(x) =

  • x

0 ≤ x ≤ L/2 L − x L/2 ≤ x ≤ L and in which the temperature at the endpoints is kept at zero. Let us determine the temperature in the wire as a function of time.

slide-32
SLIDE 32

Example

Consider a wire of length L and diffusivity β in which the initial temperature is described by the function u(x) =

  • x

0 ≤ x ≤ L/2 L − x L/2 ≤ x ≤ L and in which the temperature at the endpoints is kept at zero. Let us determine the temperature in the wire as a function of time. First, we should expand out u(x) into its sin Fourier series.

slide-33
SLIDE 33

Example

That is, we want to compute bn = 2 L L f (x) sin nπx L

  • dx

= 2 L L/2 x sin nπx L

  • dx +

L

L/2

(L − x) sin nπx L

  • dx
  • =

2 L L nπ 2 nπ/2 u sin u du + π

nπ/2

(nπ − u) sin u du

slide-34
SLIDE 34

Example

That is, we want to compute bn = 2 L L f (x) sin nπx L

  • dx

= 2 L L/2 x sin nπx L

  • dx +

L

L/2

(L − x) sin nπx L

  • dx
  • =

2 L L nπ 2 nπ/2 u sin u du + π

nπ/2

(nπ − u) sin u du

  • Noting
  • u sin udu = sin u − u cos u,
slide-35
SLIDE 35

Example

That is, we want to compute bn = 2 L L f (x) sin nπx L

  • dx

= 2 L L/2 x sin nπx L

  • dx +

L

L/2

(L − x) sin nπx L

  • dx
  • =

2 L L nπ 2 nπ/2 u sin u du + π

nπ/2

(nπ − u) sin u du

  • Noting
  • u sin udu = sin u − u cos u, this is

2 L L nπ 2 sin u − u cos u

  • nπ/2

  • sin u − u cos u

nπ/2

  • nπ cos u

nπ/2

slide-36
SLIDE 36

Example

2 L L nπ 2 sin u − u cos u

  • nπ/2

  • sin u − u cos u

nπ/2

  • nπ cos u

nπ/2

slide-37
SLIDE 37

Example

2 L L nπ 2 sin u − u cos u

  • nπ/2

  • sin u − u cos u

nπ/2

  • nπ cos u

nπ/2

  • = 2

L L nπ 2 2 sin nπ 2

  • =

4L (nπ)2 sin nπ 2

slide-38
SLIDE 38

Example

2 L L nπ 2 sin u − u cos u

  • nπ/2

  • sin u − u cos u

nπ/2

  • nπ cos u

nπ/2

  • = 2

L L nπ 2 2 sin nπ 2

  • =

4L (nπ)2 sin nπ 2 Thus the Fourier expansion of the original function u(x) is u(x) = 4L π2

  • sin(x) − 1

9 sin 3x + 1 25 sin 5x − 1 49 sin 7x + · · ·

slide-39
SLIDE 39

Example

And finally, having written the initial condition as u(x) = 4L π2

  • sin(x) − 1

9 sin 3x + 1 25 sin 5x − 1 49 sin 7x + · · ·

slide-40
SLIDE 40

Example

And finally, having written the initial condition as u(x) = 4L π2

  • sin(x) − 1

9 sin 3x + 1 25 sin 5x − 1 49 sin 7x + · · ·

  • we see that the time evolution is given by

u(x, t) = 4L π2

  • e−β( π

L ) 2t sin(x) − 1

9e−β( 3π

L ) 2t sin 3x + 1

25e−β( π

5L) 2t sin 5x − · · ·

slide-41
SLIDE 41

Example

Another sort of boundary condition we might impose is,

slide-42
SLIDE 42

Example

Another sort of boundary condition we might impose is, instead of fixing the initial and final temperatures to be zero,

slide-43
SLIDE 43

Example

Another sort of boundary condition we might impose is, instead of fixing the initial and final temperatures to be zero, that the wire is insulated,

slide-44
SLIDE 44

Example

Another sort of boundary condition we might impose is, instead of fixing the initial and final temperatures to be zero, that the wire is insulated, i.e., the derivatives

∂ ∂x u(x, t) vanish identically at 0, L.

slide-45
SLIDE 45

Example

Another sort of boundary condition we might impose is, instead of fixing the initial and final temperatures to be zero, that the wire is insulated, i.e., the derivatives

∂ ∂x u(x, t) vanish identically at 0, L.

Let’s revisit our possible solutions. u(x, t) = eλt(Aλex√

λ/β + Bλe−x√ λ/β)

λ > 0 u(x, t) = Aλ+Bλx λ = 0 u(x, t) = eλt(Aλ cos(x

  • −λ/β)+Bλ sin(x
  • −λ/β))

λ < 0

slide-46
SLIDE 46

Example

Another sort of boundary condition we might impose is, instead of fixing the initial and final temperatures to be zero, that the wire is insulated, i.e., the derivatives

∂ ∂x u(x, t) vanish identically at 0, L.

Let’s revisit our possible solutions. u(x, t) = eλt(Aλex√

λ/β + Bλe−x√ λ/β)

λ > 0 u(x, t) = Aλ+Bλx λ = 0 u(x, t) = eλt(Aλ cos(x

  • −λ/β)+Bλ sin(x
  • −λ/β))

λ < 0 Try it yourself: which satisfy the boundary conditions?

slide-47
SLIDE 47

Example

slide-48
SLIDE 48

Example

Yet a third scenario: we could consider ask that at 0 and at L, the temperature is fixed to be some given constants U1 and U2, possibly nonzero.

slide-49
SLIDE 49

Example

Yet a third scenario: we could consider ask that at 0 and at L, the temperature is fixed to be some given constants U1 and U2, possibly nonzero. Again, we should look at our possible solutions, u(x, t) = eλt(Aλex√

λ/β + Bλe−x√ λ/β)

λ > 0 u(x, t) = Aλ+Bλx λ = 0 u(x, t) = eλt(Aλ cos(x

  • −λ/β)+Bλ sin(x
  • −λ/β))

λ < 0

slide-50
SLIDE 50

Example

Yet a third scenario: we could consider ask that at 0 and at L, the temperature is fixed to be some given constants U1 and U2, possibly nonzero. Again, we should look at our possible solutions, u(x, t) = eλt(Aλex√

λ/β + Bλe−x√ λ/β)

λ > 0 u(x, t) = Aλ+Bλx λ = 0 u(x, t) = eλt(Aλ cos(x

  • −λ/β)+Bλ sin(x
  • −λ/β))

λ < 0 Try it yourself: which satisfy the boundary conditions?