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

linear algebra and differential equations math 54 lecture
SMART_READER_LITE
LIVE PREVIEW

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

Linear algebra and differential equations (Math 54): Lecture 24 Vivek Shende April 23, 2019 Hello and welcome to class! Hello and welcome to class! For some time now Hello and welcome to class! For some time now We have been studying linear


slide-1
SLIDE 1

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

Vivek Shende April 23, 2019

slide-2
SLIDE 2

Hello and welcome to class!

slide-3
SLIDE 3

Hello and welcome to class!

For some time now

slide-4
SLIDE 4

Hello and welcome to class!

For some time now

We have been studying linear ordinary differential equations.

slide-5
SLIDE 5

Hello and welcome to class!

For some time now

We have been studying linear ordinary differential equations.

This time

slide-6
SLIDE 6

Hello and welcome to class!

For some time now

We have been studying linear ordinary differential equations.

This time

We turn to linear partial differential equations.

slide-7
SLIDE 7

Hello and welcome to class!

For some time now

We have been studying linear ordinary differential equations.

This time

We turn to linear partial differential equations. These are equations in which the function for which we are solving may depend on many variables, and we may take derivatives with respect to all of them.

slide-8
SLIDE 8

Hello and welcome to class!

For some time now

We have been studying linear ordinary differential equations.

This time

We turn to linear partial differential equations. These are equations in which the function for which we are solving may depend on many variables, and we may take derivatives with respect to all of them. Rather than develop a systematic theory, we will mostly focus on a few examples of physical importance.

slide-9
SLIDE 9

The heat equation

slide-10
SLIDE 10

The heat equation

Let us try and understand how heat flows in a substance.

slide-11
SLIDE 11

The heat equation

Let us try and understand how heat flows in a substance. We will first discuss the one dimensional case.

slide-12
SLIDE 12

The heat equation

Let us try and understand how heat flows in a substance. We will first discuss the one dimensional case. This means either you should imagine the substance is one dimensional,

slide-13
SLIDE 13

The heat equation

Let us try and understand how heat flows in a substance. We will first discuss the one dimensional case. This means either you should imagine the substance is one dimensional, or close to it, e.g. a very thin wire,

slide-14
SLIDE 14

The heat equation

Let us try and understand how heat flows in a substance. We will first discuss the one dimensional case. This means either you should imagine the substance is one dimensional, or close to it, e.g. a very thin wire, or just that the temperature is constant in two of the dimensions, and only varies along the third.

slide-15
SLIDE 15

The heat equation

Let us try and understand how heat flows in a substance. We will first discuss the one dimensional case. This means either you should imagine the substance is one dimensional, or close to it, e.g. a very thin wire, or just that the temperature is constant in two of the dimensions, and only varies along the third. We will moreover imagine that the material in question is uniform.

slide-16
SLIDE 16

Temperature facts

Imagine that we add energy (heat) to the system.

slide-17
SLIDE 17

Temperature facts

Imagine that we add energy (heat) to the system. The temperature will change proportionally.

slide-18
SLIDE 18

Temperature facts

Imagine that we add energy (heat) to the system. The temperature will change proportionally. That is, per unit time: change in temperature ∼ change in heat amount of stuff

slide-19
SLIDE 19

Temperature facts

Imagine that we add energy (heat) to the system. The temperature will change proportionally. That is, per unit time: change in temperature ∼ change in heat amount of stuff Also, as it turns out, having a temperature difference causes heat to flow, proportionally to the difference

slide-20
SLIDE 20

Temperature facts

Imagine that we add energy (heat) to the system. The temperature will change proportionally. That is, per unit time: change in temperature ∼ change in heat amount of stuff Also, as it turns out, having a temperature difference causes heat to flow, proportionally to the difference heat flow per unit time ∼ change in temperature distance to flow

slide-21
SLIDE 21

The heat equation

Let’s rewrite things in terms of symbols.

slide-22
SLIDE 22

The heat equation

Let’s rewrite things in terms of symbols.

slide-23
SLIDE 23

The heat equation

Let’s rewrite things in terms of symbols. We’ll write u(x, t) for the function giving the temperature at location x and time t, and H(x, t) for the heat flowing.

slide-24
SLIDE 24

The heat equation

Let’s rewrite things in terms of symbols. We’ll write u(x, t) for the function giving the temperature at location x and time t, and H(x, t) for the heat flowing. Then the first equation change in temperature per unit time ∼ change in heat (amount of stuff)(per unit time) says δu(x, t) δt ∼ δH δxδt

slide-25
SLIDE 25

The heat equation

The second equation heat flow per unit time ∼ change in temperature distance to flow says δH δt ∼ δu δx

slide-26
SLIDE 26

The heat equation

The second equation heat flow per unit time ∼ change in temperature distance to flow says δH δt ∼ δu δx Combining this with the previous equation δu

δt ∼ δH δxδt ,

slide-27
SLIDE 27

The heat equation

The second equation heat flow per unit time ∼ change in temperature distance to flow says δH δt ∼ δu δx Combining this with the previous equation δu

δt ∼ δH δxδt , and

replacing difference with derivative,

slide-28
SLIDE 28

The heat equation

The second equation heat flow per unit time ∼ change in temperature distance to flow says δH δt ∼ δu δx Combining this with the previous equation δu

δt ∼ δH δxδt , and

replacing difference with derivative, we get the heat equation ∂u ∂t ∼ ∂2u ∂x2

slide-29
SLIDE 29

The heat equation

We restore now the proportionality constant. It will depend on various properties of the substance; the heat capacity, the density, the thermal conductivity; but is a positive constant. ∂u ∂t = β ∂2u ∂x2

slide-30
SLIDE 30

The heat equation

We restore now the proportionality constant. It will depend on various properties of the substance; the heat capacity, the density, the thermal conductivity; but is a positive constant. ∂u ∂t = β ∂2u ∂x2 The analogue of the “initial value problem” in this setting is the following.

slide-31
SLIDE 31

The heat equation

We restore now the proportionality constant. It will depend on various properties of the substance; the heat capacity, the density, the thermal conductivity; but is a positive constant. ∂u ∂t = β ∂2u ∂x2 The analogue of the “initial value problem” in this setting is the

  • following. One should specify the temperature distribution in the

wire at some initial time t0.

slide-32
SLIDE 32

The heat equation

We restore now the proportionality constant. It will depend on various properties of the substance; the heat capacity, the density, the thermal conductivity; but is a positive constant. ∂u ∂t = β ∂2u ∂x2 The analogue of the “initial value problem” in this setting is the

  • following. One should specify the temperature distribution in the

wire at some initial time t0. This is the data of a function in one variable, u(x, t0).

slide-33
SLIDE 33

The heat equation

We restore now the proportionality constant. It will depend on various properties of the substance; the heat capacity, the density, the thermal conductivity; but is a positive constant. ∂u ∂t = β ∂2u ∂x2 The analogue of the “initial value problem” in this setting is the

  • following. One should specify the temperature distribution in the

wire at some initial time t0. This is the data of a function in one variable, u(x, t0). One should also say how the ends of the wire will behave during the whole evolution.

slide-34
SLIDE 34

Separation of variables

slide-35
SLIDE 35

Separation of variables

Recall that we understand linear vector ODE, i.e., equations like d dt u = Au

slide-36
SLIDE 36

Separation of variables

Recall that we understand linear vector ODE, i.e., equations like d dt u = Au Given a function of two variables like u(x, t), one can specify one

  • f the variables to get a function in the other. I.e., u(x, 0) and

u(x, 1) are just functions in x.

slide-37
SLIDE 37

Separation of variables

Recall that we understand linear vector ODE, i.e., equations like d dt u = Au Given a function of two variables like u(x, t), one can specify one

  • f the variables to get a function in the other. I.e., u(x, 0) and

u(x, 1) are just functions in x. So, one way to think of a function of two variables like u(t, x)

slide-38
SLIDE 38

Separation of variables

Recall that we understand linear vector ODE, i.e., equations like d dt u = Au Given a function of two variables like u(x, t), one can specify one

  • f the variables to get a function in the other. I.e., u(x, 0) and

u(x, 1) are just functions in x. So, one way to think of a function of two variables like u(t, x) is as a function of t valued in the vector space of functions in x.

slide-39
SLIDE 39

Separation of variables

Now our equation d dt u(x, t) = β d2 dx2 u(x, t) looks a lot like d dt u(t) = Au(t)

slide-40
SLIDE 40

Separation of variables

Now our equation d dt u(x, t) = β d2 dx2 u(x, t) looks a lot like d dt u(t) = Au(t) where now the vector space V in which u(t) takes values is replaced by the vector space of functions in x,

slide-41
SLIDE 41

Separation of variables

Now our equation d dt u(x, t) = β d2 dx2 u(x, t) looks a lot like d dt u(t) = Au(t) where now the vector space V in which u(t) takes values is replaced by the vector space of functions in x, and the linear transformation A on V is replaced by the linear transformation

d2 dx2 on the space of functions of x.

slide-42
SLIDE 42

Separation of variables

We know how to solve d

dt u(t) = Au(t):

slide-43
SLIDE 43

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ,

slide-44
SLIDE 44

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt.

slide-45
SLIDE 45

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t),

slide-46
SLIDE 46

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t), we want an eigenvector v(x) of

the operator β d2

dx2

slide-47
SLIDE 47

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t), we want an eigenvector v(x) of

the operator β d2

dx2 (in this context, often called an eigenfunction),

slide-48
SLIDE 48

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t), we want an eigenvector v(x) of

the operator β d2

dx2 (in this context, often called an eigenfunction),

with eigenvalue λ,

slide-49
SLIDE 49

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t), we want an eigenvector v(x) of

the operator β d2

dx2 (in this context, often called an eigenfunction),

with eigenvalue λ, and then a solution will be given by v(x)eλt.

slide-50
SLIDE 50

Separation of variables

We know how to solve d

dt u(t) = Au(t): given an eigenvector v of

A with eigenvalue λ, a solution is given by veλt. To solve d

dt u(x, t) = β d2 dx2 u(x, t), we want an eigenvector v(x) of

the operator β d2

dx2 (in this context, often called an eigenfunction),

with eigenvalue λ, and then a solution will be given by v(x)eλt. Finding an eigenfunction of β d2

dx2 of eigenvalue λ means solving

β d2 dx2 v(x) = λv(x)

slide-51
SLIDE 51

Separation of variables

The general solution of β d2

dx2 v(x) = λv(x) is

v(x) = Aex√

λ/β + Be−x√ λ/β

slide-52
SLIDE 52

Separation of variables

The general solution of β d2

dx2 v(x) = λv(x) is

v(x) = Aex√

λ/β + Be−x√ λ/β

where we will have to replace these by sin and cos in case λ/β < 0, (i.e., since β > 0, when λ < 0).

slide-53
SLIDE 53

Separation of variables

The general solution of β d2

dx2 v(x) = λv(x) is

v(x) = Aex√

λ/β + Be−x√ λ/β

where we will have to replace these by sin and cos in case λ/β < 0, (i.e., since β > 0, when λ < 0). So some solutions to d

dt u(x, t) = β d2 dx2 u(x, t) are given by

u(x, t) = eλt(Aλex√

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

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

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

λ < 0

slide-54
SLIDE 54

Separation of variables

As for the equation d

dt u(t) = Au(t), we can get more solutions by

taking linear combinations of these solutions: u(x, t) =

  • λ>0

eλt(Aλex√

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

+ A0 + B0x +

  • λ<0

eλt(Aλ cos(x

  • −λ/β) + Bλ sin(x
  • −λ/β))
slide-55
SLIDE 55

Boundary values

Suppose our system system is a wire of length L in which the temperature at the ends is fixed at zero.

slide-56
SLIDE 56

Boundary values

Suppose our system system is a wire of length L in which the temperature at the ends is fixed at zero. Let us coordinatize our wire to run from 0 to L.

slide-57
SLIDE 57

Boundary values

Suppose our system system is a wire of length L in which the temperature at the ends is fixed at zero. Let us coordinatize our wire to run from 0 to L. This constrains which functions in the previous expression are allowed.

slide-58
SLIDE 58

Boundary values

Suppose our system system is a wire of length L in which the temperature at the ends is fixed at zero. Let us coordinatize our wire to run from 0 to L. This constrains which functions in the previous expression are allowed. One can think of it as restricting saying that we are considering solving the equations inside the vector space of functions with the above properties.

slide-59
SLIDE 59

Boundary values

slide-60
SLIDE 60

Boundary values

So, let us see which of the expressions Aλex√

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

and Aλ cos(x

  • −λ/β) + Bλ sin(x
  • −λ/β) can possibly vanish at

x = 0 and x = L.

slide-61
SLIDE 61

Boundary values

So, let us see which of the expressions Aλex√

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

and Aλ cos(x

  • −λ/β) + Bλ sin(x
  • −λ/β) can possibly vanish at

x = 0 and x = L. Aλex√

λ/β + Bλe−x√ λ/β evaluates to

Aλ + Bλ = 0 AλeL√

λ/β + Bλe−L√ λ/β = 0

slide-62
SLIDE 62

Boundary values

So, let us see which of the expressions Aλex√

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

and Aλ cos(x

  • −λ/β) + Bλ sin(x
  • −λ/β) can possibly vanish at

x = 0 and x = L. Aλex√

λ/β + Bλe−x√ λ/β evaluates to

Aλ + Bλ = 0 AλeL√

λ/β + Bλe−L√ λ/β = 0

Hence Aλ = Bλ = 0, since otherwise eL√

λ/β = e−L√ λ/β, which

can never happen (take a log).

slide-63
SLIDE 63

Boundary values

Trying A0 + B0x, we find this says A0 = 0 and A0 + B0L = 0, hence A0 = B0 = 0.

slide-64
SLIDE 64

Boundary values

Trying A0 + B0x, we find this says A0 = 0 and A0 + B0L = 0, hence A0 = B0 = 0. Finally, we consider Aλ cos(x

  • −λ/β) + Bλ sin(x
  • −λ/β).
slide-65
SLIDE 65

Boundary values

Trying A0 + B0x, we find this says A0 = 0 and A0 + B0L = 0, hence A0 = B0 = 0. Finally, we consider Aλ cos(x

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

vanishing at x = 0 implies that Aλ = 0.

slide-66
SLIDE 66

Boundary values

Trying A0 + B0x, we find this says A0 = 0 and A0 + B0L = 0, hence A0 = B0 = 0. Finally, we consider Aλ cos(x

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

vanishing at x = 0 implies that Aλ = 0. The vanishing at x = L implies that L

  • −λ/β must be some integer multiple of π, let us

say Nπ.

slide-67
SLIDE 67

Boundary values

Trying A0 + B0x, we find this says A0 = 0 and A0 + B0L = 0, hence A0 = B0 = 0. Finally, we consider Aλ cos(x

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

vanishing at x = 0 implies that Aλ = 0. The vanishing at x = L implies that L

  • −λ/β must be some integer multiple of π, let us

say Nπ. In other words,

  • −λ/β = Nπ/L

λ = −β Nπ L 2

slide-68
SLIDE 68

Boundary values

In sum, the solutions which obey the boundary value conditions are: u(x, t) =

  • N=1

cNe−β( Nπ

L ) 2t sin

Nπ L x

slide-69
SLIDE 69

An initial-boundary value problem

slide-70
SLIDE 70

An initial-boundary value problem

Consider a wire of length π (from x = 0 to x = π), diffusivity β = 1, and with initial temperature (t = 0) distributed as u(x, 0) = sin(x) + 3 sin(2x) + 5 sin(3x) What is the temperature distribution at time t = 1?

slide-71
SLIDE 71

An initial-boundary value problem

Consider a wire of length π (from x = 0 to x = π), diffusivity β = 1, and with initial temperature (t = 0) distributed as u(x, 0) = sin(x) + 3 sin(2x) + 5 sin(3x) What is the temperature distribution at time t = 1? Setting β = 1 and L = π in our general solutions gives u(x, t) =

  • N=1

cNe−N2t sin (Nx)

slide-72
SLIDE 72

An initial-boundary value problem

Consider a wire of length π (from x = 0 to x = π), diffusivity β = 1, and with initial temperature (t = 0) distributed as u(x, 0) = sin(x) + 3 sin(2x) + 5 sin(3x) What is the temperature distribution at time t = 1? Setting β = 1 and L = π in our general solutions gives u(x, t) =

  • N=1

cNe−N2t sin (Nx) Asking for this to agree with the initial condition means that c1 = 1, c2 = 3, c3 = 5 and all other coefficients vanish.

slide-73
SLIDE 73

An initial-boundary value problem

Consider a wire of length π (from x = 0 to x = π), diffusivity β = 1, and with initial temperature (t = 0) distributed as u(x, 0) = sin(x) + 3 sin(2x) + 5 sin(3x) What is the temperature distribution at time t = 1? Setting β = 1 and L = π in our general solutions gives u(x, t) =

  • N=1

cNe−N2t sin (Nx) Asking for this to agree with the initial condition means that c1 = 1, c2 = 3, c3 = 5 and all other coefficients vanish. So, u(x, 1) = e−1 sin(x) + 3e−4 sin(2x) + 5e−9 sin(3x)

slide-74
SLIDE 74

The wave equation

Consider a string stretched horizontally between two points,

slide-75
SLIDE 75

The wave equation

Consider a string stretched horizontally between two points, but free to vibrate up and down.

slide-76
SLIDE 76

The wave equation

Consider a string stretched horizontally between two points, but free to vibrate up and down. We will write y(x, t) for the height at horizontal position x and time t.

slide-77
SLIDE 77

The wave equation

Consider a string stretched horizontally between two points, but free to vibrate up and down. We will write y(x, t) for the height at horizontal position x and time t. It turns out that the vibration of the string is governed by the equation ∂2 ∂t2 y(x, t) = α2 ∂2 ∂x2 y(x, t)

slide-78
SLIDE 78

The wave equation

Consider a string stretched horizontally between two points, but free to vibrate up and down. We will write y(x, t) for the height at horizontal position x and time t. It turns out that the vibration of the string is governed by the equation ∂2 ∂t2 y(x, t) = α2 ∂2 ∂x2 y(x, t) In fact, one can derive this equation by imagining that the string is made up of infinitely many tiny springs, but I won’t do this here.

slide-79
SLIDE 79

The wave equation

To solve this equation, let’s again compare it to the ODE d2 dt2 y(t) = Ay(t)

slide-80
SLIDE 80

The wave equation

To solve this equation, let’s again compare it to the ODE d2 dt2 y(t) = Ay(t) Given an eigenvector v for A with eigenvalue λ, we would get solutions of the form Ae

√ λt + Be− √ λt for λ > 0, or solutions

A cos(t √ −λ) + B sin(t √ −λ) for λ < 0.

slide-81
SLIDE 81

The wave equation

To solve this equation, let’s again compare it to the ODE d2 dt2 y(t) = Ay(t) Given an eigenvector v for A with eigenvalue λ, we would get solutions of the form Ae

√ λt + Be− √ λt for λ > 0, or solutions

A cos(t √ −λ) + B sin(t √ −λ) for λ < 0. For the vibrating string with endpoints fixed at say 0, L, the

  • perator A above is replaced with the operator α2 d2

dx2 on the vector

space of functions in x which vanish at 0, L.

slide-82
SLIDE 82

The wave equation

We saw that the eigenfunctions for α2 d2

dx2 with these boundary

conditions are given by sin nπx

L

  • , which has eigenvalue −α2 nπ

L

2

slide-83
SLIDE 83

The wave equation

We saw that the eigenfunctions for α2 d2

dx2 with these boundary

conditions are given by sin nπx

L

  • , which has eigenvalue −α2 nπ

L

2 The corresponding solution to the wave equation will be y(x, t) =

  • A cos

nπαt L

  • + B sin

nπαt L

  • sin

nπx L

  • More general solutions will be given as linear combinations of these.