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

linear algebra and differential equations math 54 lecture
SMART_READER_LITE
LIVE PREVIEW

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

Linear algebra and differential equations (Math 54): Lecture 20 Vivek Shende April 11, 2019 Hello and welcome to class! Hello and welcome to class! Last time Hello and welcome to class! Last time We started discussing differential


slide-1
SLIDE 1

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

Vivek Shende April 11, 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 started discussing differential equations.

slide-5
SLIDE 5

Hello and welcome to class!

Last time

We started discussing differential equations. We found a complete set of solutions to the second order linear homogenous constant coefficient ordinary differential equation.

slide-6
SLIDE 6

Hello and welcome to class!

Last time

We started discussing differential equations. We found a complete set of solutions to the second order linear homogenous constant coefficient ordinary differential equation.

This time

slide-7
SLIDE 7

Hello and welcome to class!

Last time

We started discussing differential equations. We found a complete set of solutions to the second order linear homogenous constant coefficient ordinary differential equation.

This time

We’ll say more about the initial value problem

slide-8
SLIDE 8

Hello and welcome to class!

Last time

We started discussing differential equations. We found a complete set of solutions to the second order linear homogenous constant coefficient ordinary differential equation.

This time

We’ll say more about the initial value problem and discuss some methods to approach the inhomogenous case.

slide-9
SLIDE 9

The initial value problem

slide-10
SLIDE 10

The initial value problem

For a differential equation,

slide-11
SLIDE 11

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0,

slide-12
SLIDE 12

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0, Given some starting time t0

slide-13
SLIDE 13

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0, Given some starting time t0 and constants y0 and y′

0,

slide-14
SLIDE 14

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0, Given some starting time t0 and constants y0 and y′

0,

We want to find a function y(t) such that the differential equation is satisfied,

slide-15
SLIDE 15

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0, Given some starting time t0 and constants y0 and y′

0,

We want to find a function y(t) such that the differential equation is satisfied, y(t0) = y0,

slide-16
SLIDE 16

The initial value problem

For a differential equation, in our case ay′′ + by′ + cy = 0, Given some starting time t0 and constants y0 and y′

0,

We want to find a function y(t) such that the differential equation is satisfied, y(t0) = y0, and y′(t0) = y′

0.

slide-17
SLIDE 17

The initial value problem

Theorem

For an ordinary, linear, constant coefficient, homogenous, second-order differential equation,

slide-18
SLIDE 18

The initial value problem

Theorem

For an ordinary, linear, constant coefficient, homogenous, second-order differential equation, the initial value problem has a unique solution.

slide-19
SLIDE 19

The initial value problem

Another way to say this:

slide-20
SLIDE 20

The initial value problem

Another way to say this: the following map is an isomorphism:

slide-21
SLIDE 21

The initial value problem

Another way to say this: the following map is an isomorphism: {Solutions to ay′′ + by′ + cy = 0} → R2 y → (y(t0), y′(t0))

slide-22
SLIDE 22

The initial value problem

Another way to say this: the following map is an isomorphism: {Solutions to ay′′ + by′ + cy = 0} → R2 y → (y(t0), y′(t0)) More precisely, existence asserts that this map is surjective,

slide-23
SLIDE 23

The initial value problem

Another way to say this: the following map is an isomorphism: {Solutions to ay′′ + by′ + cy = 0} → R2 y → (y(t0), y′(t0)) More precisely, existence asserts that this map is surjective, i.e., that there is always a solution with specified value and first derivative,

slide-24
SLIDE 24

The initial value problem

Another way to say this: the following map is an isomorphism: {Solutions to ay′′ + by′ + cy = 0} → R2 y → (y(t0), y′(t0)) More precisely, existence asserts that this map is surjective, i.e., that there is always a solution with specified value and first derivative, whereas uniqueness asserts that it is injective,

slide-25
SLIDE 25

The initial value problem

Another way to say this: the following map is an isomorphism: {Solutions to ay′′ + by′ + cy = 0} → R2 y → (y(t0), y′(t0)) More precisely, existence asserts that this map is surjective, i.e., that there is always a solution with specified value and first derivative, whereas uniqueness asserts that it is injective, i.e., there is at most one such solution.

slide-26
SLIDE 26

The initial value problem

We won’t prove uniqueness in this class

slide-27
SLIDE 27

The initial value problem

We won’t prove uniqueness in this class although I gave some ideas last time about why it might be true. Let us just accept it.

slide-28
SLIDE 28

The initial value problem

We won’t prove uniqueness in this class although I gave some ideas last time about why it might be true. Let us just accept it. Last time, we saw there was always a two dimensional space of solutions to a differential equation of the form ay′′ + by′ + cy = 0.

slide-29
SLIDE 29

The initial value problem

We won’t prove uniqueness in this class although I gave some ideas last time about why it might be true. Let us just accept it. Last time, we saw there was always a two dimensional space of solutions to a differential equation of the form ay′′ + by′ + cy = 0. Thus we have an injective linear map between 2-dimensional vector spaces

slide-30
SLIDE 30

The initial value problem

We won’t prove uniqueness in this class although I gave some ideas last time about why it might be true. Let us just accept it. Last time, we saw there was always a two dimensional space of solutions to a differential equation of the form ay′′ + by′ + cy = 0. Thus we have an injective linear map between 2-dimensional vector spaces which is therefore an isomorphism.

slide-31
SLIDE 31

The initial value problem

We won’t prove uniqueness in this class although I gave some ideas last time about why it might be true. Let us just accept it. Last time, we saw there was always a two dimensional space of solutions to a differential equation of the form ay′′ + by′ + cy = 0. Thus we have an injective linear map between 2-dimensional vector spaces which is therefore an isomorphism. This settles existence.

slide-32
SLIDE 32

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument.

slide-33
SLIDE 33

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument. For example, consider the equation y′′ + y = 0

slide-34
SLIDE 34

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument. For example, consider the equation y′′ + y = 0 Last time, you learned

slide-35
SLIDE 35

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument. For example, consider the equation y′′ + y = 0 Last time, you learned (or perhaps could have guessed)

slide-36
SLIDE 36

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument. For example, consider the equation y′′ + y = 0 Last time, you learned (or perhaps could have guessed) that cos(t), sin(t) give a basis for the space of solutions.

slide-37
SLIDE 37

Solving the initial value problem

Solving the initial value problem in practice uses the same ideas as the above argument. For example, consider the equation y′′ + y = 0 Last time, you learned (or perhaps could have guessed) that cos(t), sin(t) give a basis for the space of solutions. Let us now “solve the initial value problem” of finding a solution which has y(0) = 3 and y′(0) = 4.

slide-38
SLIDE 38

Solving the initial value problem

Begin with the general solution y(t) = A cos(t) + B sin(t).

slide-39
SLIDE 39

Solving the initial value problem

Begin with the general solution y(t) = A cos(t) + B sin(t). We want to determine the values of A and B for which y(0) = 3 and y′(0) = 4.

slide-40
SLIDE 40

Solving the initial value problem

Begin with the general solution y(t) = A cos(t) + B sin(t). We want to determine the values of A and B for which y(0) = 3 and y′(0) = 4. So we compute: 3 = y(0) = A cos(0) + B sin(0) = A 4 = y′(0) = A cos′(0) + B sin′(0) = −A sin(0) + B cos(0) = B

slide-41
SLIDE 41

Solving the initial value problem

Begin with the general solution y(t) = A cos(t) + B sin(t). We want to determine the values of A and B for which y(0) = 3 and y′(0) = 4. So we compute: 3 = y(0) = A cos(0) + B sin(0) = A 4 = y′(0) = A cos′(0) + B sin′(0) = −A sin(0) + B cos(0) = B So the solution to this “initial value problem” is y(t) = 3 cos(t) + 4 sin(t)

slide-42
SLIDE 42

Solving the initial value problem

In general, the last step may involve more complicated linear algebra.

slide-43
SLIDE 43

Solving the initial value problem

In general, the last step may involve more complicated linear

  • algebra. Suppose instead we wanted a solution with y(1) = 1 and

y′(1) = 2.

slide-44
SLIDE 44

Solving the initial value problem

In general, the last step may involve more complicated linear

  • algebra. Suppose instead we wanted a solution with y(1) = 1 and

y′(1) = 2. Then we would have 1 = y(0) = A cos(1) + B sin(1) 2 = y′(0) = −A sin(1) + B cos(1)

slide-45
SLIDE 45

Solving the initial value problem

In general, the last step may involve more complicated linear

  • algebra. Suppose instead we wanted a solution with y(1) = 1 and

y′(1) = 2. Then we would have 1 = y(0) = A cos(1) + B sin(1) 2 = y′(0) = −A sin(1) + B cos(1) Or in other words,

slide-46
SLIDE 46

Solving the initial value problem

In general, the last step may involve more complicated linear

  • algebra. Suppose instead we wanted a solution with y(1) = 1 and

y′(1) = 2. Then we would have 1 = y(0) = A cos(1) + B sin(1) 2 = y′(0) = −A sin(1) + B cos(1) Or in other words, 1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

slide-47
SLIDE 47

Solving the initial value problem

1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

slide-48
SLIDE 48

Solving the initial value problem

1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

  • Fortunately, you know how to solve this.
slide-49
SLIDE 49

Solving the initial value problem

1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

  • Fortunately, you know how to solve this. Inverting the matrix,

A B

  • =

cos(1) − sin(1) sin(1) cos(1) 1 2

  • =

cos(1) − 2 sin(1) sin(1) + 2 cos(1)

slide-50
SLIDE 50

Solving the initial value problem

1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

  • Fortunately, you know how to solve this. Inverting the matrix,

A B

  • =

cos(1) − sin(1) sin(1) cos(1) 1 2

  • =

cos(1) − 2 sin(1) sin(1) + 2 cos(1)

  • and the solution to the initial value problem is:
slide-51
SLIDE 51

Solving the initial value problem

1 2

  • =
  • cos(1)

sin(1) − sin(1) cos(1) A B

  • Fortunately, you know how to solve this. Inverting the matrix,

A B

  • =

cos(1) − sin(1) sin(1) cos(1) 1 2

  • =

cos(1) − 2 sin(1) sin(1) + 2 cos(1)

  • and the solution to the initial value problem is:

y(t) = (cos(1) − 2 sin(1)) cos(t) + (sin(1) + 2 cos(1)) sin(t)

slide-52
SLIDE 52

Inhomogenous equations

slide-53
SLIDE 53

Inhomogenous equations

We will now try and solve equations of the form ay′′(t) + by′(t) + cy(t) = f (t) for some pre-given function f .

slide-54
SLIDE 54

Inhomogenous equations

We will now try and solve equations of the form ay′′(t) + by′(t) + cy(t) = f (t) for some pre-given function f . Let us write this as

  • a d2

dt2 + b d dt + c

  • y(t) = f (t)
slide-55
SLIDE 55

Inhomogenous equations

We will now try and solve equations of the form ay′′(t) + by′(t) + cy(t) = f (t) for some pre-given function f . Let us write this as

  • a d2

dt2 + b d dt + c

  • y(t) = f (t)

This is a linear equation

slide-56
SLIDE 56

Inhomogenous equations

We will now try and solve equations of the form ay′′(t) + by′(t) + cy(t) = f (t) for some pre-given function f . Let us write this as

  • a d2

dt2 + b d dt + c

  • y(t) = f (t)

This is a linear equation just like our matrix equations Ax = b.

slide-57
SLIDE 57

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A.

slide-58
SLIDE 58

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range,

slide-59
SLIDE 59

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A,

slide-60
SLIDE 60

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A, and finding a way to write b as a linear combination of these columns.

slide-61
SLIDE 61

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A, and finding a way to write b as a linear combination of these columns. In the finite dimensional case, we had sitting in front of us a spanning set for the range.

slide-62
SLIDE 62

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A, and finding a way to write b as a linear combination of these columns. In the finite dimensional case, we had sitting in front of us a spanning set for the range. In this present, infinite dimensional case,

slide-63
SLIDE 63

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A, and finding a way to write b as a linear combination of these columns. In the finite dimensional case, we had sitting in front of us a spanning set for the range. In this present, infinite dimensional case, we not have such a basis,

slide-64
SLIDE 64

Inhomogenous equations

Recall that Ax = b could be solved if and only if b was in the range of A. Moreover, solving this equation was the same as taking the given spanning set for the range, namely the columns of A, and finding a way to write b as a linear combination of these columns. In the finite dimensional case, we had sitting in front of us a spanning set for the range. In this present, infinite dimensional case, we not have such a basis, but any such would be infinite.

slide-65
SLIDE 65

Inhomogenous equations

In a systematic treatment, we would try understand the range of the linear transformation

  • a d2

dt2 + b d dt + c

slide-66
SLIDE 66

Inhomogenous equations

In a systematic treatment, we would try understand the range of the linear transformation

  • a d2

dt2 + b d dt + c

  • But, this would involve infinite dimensional linear algebra in a

serious way,

slide-67
SLIDE 67

Inhomogenous equations

In a systematic treatment, we would try understand the range of the linear transformation

  • a d2

dt2 + b d dt + c

  • But, this would involve infinite dimensional linear algebra in a

serious way, and is beyond the scope of this class.

slide-68
SLIDE 68

Inhomogenous equations

Instead, we will just feed some

slide-69
SLIDE 69

Inhomogenous equations

Instead, we will just feed some (perhaps somewhat arbitrary)

slide-70
SLIDE 70

Inhomogenous equations

Instead, we will just feed some (perhaps somewhat arbitrary) functions into the linear transformation

  • a d2

dt2 + b d dt + c

slide-71
SLIDE 71

Inhomogenous equations

Instead, we will just feed some (perhaps somewhat arbitrary) functions into the linear transformation

  • a d2

dt2 + b d dt + c

  • and thereby learn some elements of the range.
slide-72
SLIDE 72

Inhomogenous equations

Instead, we will just feed some (perhaps somewhat arbitrary) functions into the linear transformation

  • a d2

dt2 + b d dt + c

  • and thereby learn some elements of the range.

Then, whenever we want to try and solve

  • a d2

dt2 + b d dt + c

  • y(t) = f (t)
slide-73
SLIDE 73

Inhomogenous equations

Instead, we will just feed some (perhaps somewhat arbitrary) functions into the linear transformation

  • a d2

dt2 + b d dt + c

  • and thereby learn some elements of the range.

Then, whenever we want to try and solve

  • a d2

dt2 + b d dt + c

  • y(t) = f (t)

we will ask whether the f (t) in question is in the span of those elements of the range we have found.

slide-74
SLIDE 74

First order inhomogenous equations

Let’s do the first-order case.

slide-75
SLIDE 75

First order inhomogenous equations

Let’s do the first-order case. I.e., we want to study the range of d

dt − r.

slide-76
SLIDE 76

First order inhomogenous equations

Let’s do the first-order case. I.e., we want to study the range of d

dt − r.

We’ll do so by just computing ( d

dt − r)f (x) for various functions.

slide-77
SLIDE 77

First order inhomogenous equations: polynomials

Let’s begin with polynomials.

slide-78
SLIDE 78

First order inhomogenous equations: polynomials

Let’s begin with polynomials. d dt − r

  • 1 = −r
slide-79
SLIDE 79

First order inhomogenous equations: polynomials

Let’s begin with polynomials. d dt − r

  • 1 = −r

d dt − r

  • t = 1 − rt
slide-80
SLIDE 80

First order inhomogenous equations: polynomials

Let’s begin with polynomials. d dt − r

  • 1 = −r

d dt − r

  • t = 1 − rt

d dt − r

  • t2 = 2t − rt2
slide-81
SLIDE 81

First order inhomogenous equations: polynomials

Let’s begin with polynomials. d dt − r

  • 1 = −r

d dt − r

  • t = 1 − rt

d dt − r

  • t2 = 2t − rt2

d dt − r

  • t3 = 3t2 − rt3
slide-82
SLIDE 82

First order inhomogenous equations: polynomials

Let’s begin with polynomials. d dt − r

  • 1 = −r

d dt − r

  • t = 1 − rt

d dt − r

  • t2 = 2t − rt2

d dt − r

  • t3 = 3t2 − rt3
slide-83
SLIDE 83

First order inhomogenous equations: polynomials

We see that all polynomials are in the range.

slide-84
SLIDE 84

First order inhomogenous equations: polynomials

We see that all polynomials are in the range. More precisely, d dt − r

  • Pn =
  • Pn,

r = 0 Pn−1, r = 0

slide-85
SLIDE 85

Example

Solve the differential equation y′ + y = t2.

slide-86
SLIDE 86

Example

Solve the differential equation y′ + y = t2. We know that t2 is contained in d

dt + 1

  • P2.
slide-87
SLIDE 87

Example

Solve the differential equation y′ + y = t2. We know that t2 is contained in d

dt + 1

  • P2.

To find the elements which map to it is now a linear algebra problem.

slide-88
SLIDE 88

Example

Solve the differential equation y′ + y = t2. We know that t2 is contained in d

dt + 1

  • P2.

To find the elements which map to it is now a linear algebra problem. We could solve it by e.g. choosing a basis in P2 and writing d

dt + 1

  • as a matrix.
slide-89
SLIDE 89

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C.

slide-90
SLIDE 90

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C.

slide-91
SLIDE 91

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C. This is called “the method of undetermined coefficients”.

slide-92
SLIDE 92

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C. This is called “the method of undetermined coefficients”. It could also just be called linear algebra.

slide-93
SLIDE 93

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C. This is called “the method of undetermined coefficients”. It could also just be called linear algebra. In this case, by inspection A = 1, B = −2, C = 2,

slide-94
SLIDE 94

Example

Or in other words, we write t2 = d dt + 1

  • (At2 + Bt + C) = A(2t + t2) + B(1 + t) + C

and then solve for A, B, C. This is called “the method of undetermined coefficients”. It could also just be called linear algebra. In this case, by inspection A = 1, B = −2, C = 2, and a solution is given by y(t) = t2 − 2t + 2.

slide-95
SLIDE 95

First order inhomogenous equations: exponentials

Now let’s try an exponential function.

slide-96
SLIDE 96

First order inhomogenous equations: exponentials

Now let’s try an exponential function. d dt − r

  • est = sest − rest = (s − r)est
slide-97
SLIDE 97

First order inhomogenous equations: exponentials

Now let’s try an exponential function. d dt − r

  • est = sest − rest = (s − r)est

So, est is in the range, at least if s = r.

slide-98
SLIDE 98

First order inhomogenous equations: poly times exp

Now let’s try a polynomial times an exponential function.

slide-99
SLIDE 99

First order inhomogenous equations: poly times exp

Now let’s try a polynomial times an exponential function. d dt − r

  • est = sest − rest = (s − r)est
slide-100
SLIDE 100

First order inhomogenous equations: poly times exp

Now let’s try a polynomial times an exponential function. d dt − r

  • est = sest − rest = (s − r)est

d dt − r

  • test = est + stest − rtest = est + (s − r)test
slide-101
SLIDE 101

First order inhomogenous equations: poly times exp

Now let’s try a polynomial times an exponential function. d dt − r

  • est = sest − rest = (s − r)est

d dt − r

  • test = est + stest − rtest = est + (s − r)test

d dt − r

  • t2est = 2test + st2est − rt2est = 2test + (s − r)t2est
slide-102
SLIDE 102

First order inhomogenous equations: poly times exp

Now let’s try a polynomial times an exponential function. d dt − r

  • est = sest − rest = (s − r)est

d dt − r

  • test = est + stest − rtest = est + (s − r)test

d dt − r

  • t2est = 2test + st2est − rt2est = 2test + (s − r)t2est

d dt − r

  • t3est = 3t2est + st3est − rt3est = 3t2est + (s − r)t3est
slide-103
SLIDE 103

First order inhomogenous equations: poly times exp

Thus any polynomial times est is in the range.

slide-104
SLIDE 104

First order inhomogenous equations: poly times exp

Thus any polynomial times est is in the range. More precisely, writing Pnest := {(degree ≤ n polynomial)est}

slide-105
SLIDE 105

First order inhomogenous equations: poly times exp

Thus any polynomial times est is in the range. More precisely, writing Pnest := {(degree ≤ n polynomial)est} we have d dt − r

  • Pnest =
  • Pnest,

r = s Pn−1est, r = s

slide-106
SLIDE 106

Helpful fact

d dt − r f (t)ert = f ′(t)ert + f (t)rert − f (t)rert = f ′(t)ert

slide-107
SLIDE 107

Example

Solve the equation y′ − 3y = te3t.

slide-108
SLIDE 108

Example

Solve the equation y′ − 3y = te3t. We know that te3t is in the image of P2e3t

slide-109
SLIDE 109

Example

Solve the equation y′ − 3y = te3t. We know that te3t is in the image of P2e3t so we should try a general element of this space.

slide-110
SLIDE 110

Example

Solve the equation y′ − 3y = te3t. We know that te3t is in the image of P2e3t so we should try a general element of this space. te3t = d dt − 3

  • (At2e3t + Bte3t + Ce3t) = A · 2te3t + B · e3t
slide-111
SLIDE 111

Example

Solve the equation y′ − 3y = te3t. We know that te3t is in the image of P2e3t so we should try a general element of this space. te3t = d dt − 3

  • (At2e3t + Bte3t + Ce3t) = A · 2te3t + B · e3t

so A = 1/2 and B = 0

slide-112
SLIDE 112

Example

Solve the equation y′ − 3y = te3t. We know that te3t is in the image of P2e3t so we should try a general element of this space. te3t = d dt − 3

  • (At2e3t + Bte3t + Ce3t) = A · 2te3t + B · e3t

so A = 1/2 and B = 0 and a solution is y(t) = 1 2t2e3t

slide-113
SLIDE 113

Second order equations

slide-114
SLIDE 114

Second order equations

We return now to the second order case ay′′(t) + by′(t) + cy(t) = f (t)

slide-115
SLIDE 115

Second order equations

We return now to the second order case ay′′(t) + by′(t) + cy(t) = f (t) We should now study the range of the operator a d dt 2 + b d dt

  • + c
slide-116
SLIDE 116

Factoring

Let r± be the roots of the equation ax2 + bx + c.

slide-117
SLIDE 117

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

slide-118
SLIDE 118

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

  • What does that mean?
slide-119
SLIDE 119

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

  • What does that mean?

Each of the above items are linear transformations on the space of (sufficiently) differentiable functions to itself.

slide-120
SLIDE 120

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

  • What does that mean?

Each of the above items are linear transformations on the space of (sufficiently) differentiable functions to itself. We are asserting that the composition of the two on the right is the one on the left.

slide-121
SLIDE 121

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

  • What does that mean?

Each of the above items are linear transformations on the space of (sufficiently) differentiable functions to itself. We are asserting that the composition of the two on the right is the one on the left. (Note that we could have written them in the other order.)

slide-122
SLIDE 122

Factoring

Let r± be the roots of the equation ax2 + bx + c. Then a d dt 2 + b d dt

  • + c = a

d dt − r+ d dt − r−

  • What does that mean?

Each of the above items are linear transformations on the space of (sufficiently) differentiable functions to itself. We are asserting that the composition of the two on the right is the one on the left. (Note that we could have written them in the other order.)

slide-123
SLIDE 123

Factoring

We already saw d dt − r

  • Pnest =
  • Pnest,

r = s Pn−1est, r = s

slide-124
SLIDE 124

Factoring

We already saw d dt − r

  • Pnest =
  • Pnest,

r = s Pn−1est, r = s Doing it twice, d dt − r+ d dt − r−

  • Pnest =

     Pnest, s / ∈ {r+, r−} Pn−1est, s = r+ orr−, not both Pn−2est, s = r+ = r−

slide-125
SLIDE 125

Factoring

Let’s just rewrite that:

  • a

d dt 2 + b d dt

  • + c
  • Pnest =

     Pnest, s / ∈ {r+, r−} Pn−1est, s = r+ orr−, not both Pn−2est, s = r+ = r− where r± are the roots of ax2 + bx + c.

slide-126
SLIDE 126

Example

Solve the equation y′′ − 4y′ + 4 = e2t.

slide-127
SLIDE 127

Example

Solve the equation y′′ − 4y′ + 4 = e2t. Let’s rewrite that as d dt − 2 2 y(t) = e2t

slide-128
SLIDE 128

Example

Solve the equation y′′ − 4y′ + 4 = e2t. Let’s rewrite that as d dt − 2 2 y(t) = e2t We know that e2t is in the image of P2e2t.

slide-129
SLIDE 129

Example

Solve the equation y′′ − 4y′ + 4 = e2t. Let’s rewrite that as d dt − 2 2 y(t) = e2t We know that e2t is in the image of P2e2t. So we should try the general element of this space.

slide-130
SLIDE 130

Example

e2t = d dt − 2 2 (At2 + Bt + C)e2t = 2Ae2t

slide-131
SLIDE 131

Example

e2t = d dt − 2 2 (At2 + Bt + C)e2t = 2Ae2t So a solution is given by y(t) = 1 2t2e2t

slide-132
SLIDE 132

Example

Solve the equation y′′ − 4y′ + 4 = e2t + e3t.

slide-133
SLIDE 133

Example

Solve the equation y′′ − 4y′ + 4 = e2t + e3t. Observe that if we solve, separately, the equations y′′ − 4y′ + 4 = e2t and y′′ − 4y′ + 4 = e3t

slide-134
SLIDE 134

Example

Solve the equation y′′ − 4y′ + 4 = e2t + e3t. Observe that if we solve, separately, the equations y′′ − 4y′ + 4 = e2t and y′′ − 4y′ + 4 = e3t then we can add the solutions to get a solution to the equation above, by linearity.

slide-135
SLIDE 135

Example

Solve the equation y′′ − 4y′ + 4 = e2t + e3t. Observe that if we solve, separately, the equations y′′ − 4y′ + 4 = e2t and y′′ − 4y′ + 4 = e3t then we can add the solutions to get a solution to the equation above, by linearity. In the context of differential equations,

slide-136
SLIDE 136

Example

Solve the equation y′′ − 4y′ + 4 = e2t + e3t. Observe that if we solve, separately, the equations y′′ − 4y′ + 4 = e2t and y′′ − 4y′ + 4 = e3t then we can add the solutions to get a solution to the equation above, by linearity. In the context of differential equations, linearity is sometimes called “the superposition principle”.

slide-137
SLIDE 137

Example

We already found a solution to y′′ − 4y′ + 4 = e2t,

slide-138
SLIDE 138

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

slide-139
SLIDE 139

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

Let us now solve y′′ − 4y′ + 4 = e3t. This time, 3 is not a root of the auxilliary equation,

slide-140
SLIDE 140

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

Let us now solve y′′ − 4y′ + 4 = e3t. This time, 3 is not a root of the auxilliary equation, so we know e3t ∈ d

dt − 2

2 P0e3t.

slide-141
SLIDE 141

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

Let us now solve y′′ − 4y′ + 4 = e3t. This time, 3 is not a root of the auxilliary equation, so we know e3t ∈ d

dt − 2

2 P0e3t. So we try the general element of this space.

slide-142
SLIDE 142

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

Let us now solve y′′ − 4y′ + 4 = e3t. This time, 3 is not a root of the auxilliary equation, so we know e3t ∈ d

dt − 2

2 P0e3t. So we try the general element of this space. Since d dt − 2 2 Ae3t = Ae3t

slide-143
SLIDE 143

Example

We already found a solution to y′′ − 4y′ + 4 = e2t, namely y(t) = 1

2t2e2t.

Let us now solve y′′ − 4y′ + 4 = e3t. This time, 3 is not a root of the auxilliary equation, so we know e3t ∈ d

dt − 2

2 P0e3t. So we try the general element of this space. Since d dt − 2 2 Ae3t = Ae3t a solution is given by y(t) = e3t.

slide-144
SLIDE 144

Example

Finally, adding the formulas d dt − 2 2 1 2t2e2t

  • = e2t

d dt − 2 2 e3t = e3t

slide-145
SLIDE 145

Example

Finally, adding the formulas d dt − 2 2 1 2t2e2t

  • = e2t

d dt − 2 2 e3t = e3t we find d dt − 2 2 1 2t2e2t + e3t

  • = e2t + e3t
slide-146
SLIDE 146

Example

Finally, adding the formulas d dt − 2 2 1 2t2e2t

  • = e2t

d dt − 2 2 e3t = e3t we find d dt − 2 2 1 2t2e2t + e3t

  • = e2t + e3t
  • r in other words, y(t) = 1

2t2e2t + e3t solves the equation

y′′ − 4y′ + 4y = e2t + e3t.

slide-147
SLIDE 147

The general solution to an inhomogenous equation

For the equation Ax = b,

slide-148
SLIDE 148

The general solution to an inhomogenous equation

For the equation Ax = b, we observed on the one hand that Ax0 = b & Ay = 0 = ⇒ A(x0 + y) = b

slide-149
SLIDE 149

The general solution to an inhomogenous equation

For the equation Ax = b, we observed on the one hand that Ax0 = b & Ay = 0 = ⇒ A(x0 + y) = b and on the other hand that Ax0 = b & Ax1 = b = ⇒ A(x1 − x0) = 0

slide-150
SLIDE 150

The general solution to an inhomogenous equation

In other words: given one solution to the inhomogenous equation,

slide-151
SLIDE 151

The general solution to an inhomogenous equation

In other words: given one solution to the inhomogenous equation, all other solutions can be found by adding to it a solution of the homogenous equation.

slide-152
SLIDE 152

The general solution to an inhomogenous equation

In other words: given one solution to the inhomogenous equation, all other solutions can be found by adding to it a solution of the homogenous equation. The same is true in the context of linear differential equations,

slide-153
SLIDE 153

The general solution to an inhomogenous equation

In other words: given one solution to the inhomogenous equation, all other solutions can be found by adding to it a solution of the homogenous equation. The same is true in the context of linear differential equations, and for exactly the same reason.

slide-154
SLIDE 154

Existence and uniqueness: inhomogenous case

Theorem

Assume ay′′ + by′ + cy = f (t) has a solution ˜ y(t). Then for any t0 and specified values y0, y′

0, there exists a unique solution to the

initial value problem, i.e., a unique y(t) satisfying the differential equation such that y(t0) = y0 and y′(t0) = y′

0.

slide-155
SLIDE 155

Existence and uniqueness: inhomogenous case

Theorem

Assume ay′′ + by′ + cy = f (t) has a solution ˜ y(t). Then for any t0 and specified values y0, y′

0, there exists a unique solution to the

initial value problem, i.e., a unique y(t) satisfying the differential equation such that y(t0) = y0 and y′(t0) = y′

0.

Proof.

The desired y is the sum of ˜ y and the unique yh satisfying the homogenous equation ay′′ + by′ + cy = 0 subject to the initial value condition yh(t0) = y0 − ˜ y(t0) and y′

h(t0) = y′ 0 − ˜

y′(t0).

slide-156
SLIDE 156

Example

Find a solution to y′′ − 4y′ + 4y = e2t + e3t satisfying the conditions y(0) = 1 and y′(0) = 2. We already found one solution to the inhomogenous equation, namely 1

2t2e2t + e3t.

From last time, we know how to find solutions to the homogenous equation,

slide-157
SLIDE 157

Example

Find a solution to y′′ − 4y′ + 4y = e2t + e3t satisfying the conditions y(0) = 1 and y′(0) = 2. We already found one solution to the inhomogenous equation, namely 1

2t2e2t + e3t.

From last time, we know how to find solutions to the homogenous equation, a basis is given by e2t, te2t

slide-158
SLIDE 158

Example

So our desired solution takes the form 1 2t2e2t + e3t + Ae2t + Bte2t

slide-159
SLIDE 159

Example

So our desired solution takes the form 1 2t2e2t + e3t + Ae2t + Bte2t This has derivative te2t + t2e2t + 3e3t + 2Ae2t + Be2t + 2tBe2t

slide-160
SLIDE 160

Example

So our desired solution takes the form 1 2t2e2t + e3t + Ae2t + Bte2t This has derivative te2t + t2e2t + 3e3t + 2Ae2t + Be2t + 2tBe2t Plugging in t = 0 and comparing to our desired values: 1 = y(0) = 1 + A 2 = y′(0) = 3 + 2A + B

slide-161
SLIDE 161

Example

So our desired solution takes the form 1 2t2e2t + e3t + Ae2t + Bte2t This has derivative te2t + t2e2t + 3e3t + 2Ae2t + Be2t + 2tBe2t Plugging in t = 0 and comparing to our desired values: 1 = y(0) = 1 + A 2 = y′(0) = 3 + 2A + B hence A = 0 and B = −1

slide-162
SLIDE 162

Example

So our desired solution takes the form 1 2t2e2t + e3t + Ae2t + Bte2t This has derivative te2t + t2e2t + 3e3t + 2Ae2t + Be2t + 2tBe2t Plugging in t = 0 and comparing to our desired values: 1 = y(0) = 1 + A 2 = y′(0) = 3 + 2A + B hence A = 0 and B = −1 and the solution to the initial value problem is given by y(t) = 1 2t2e2t + e3t − te2t