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

Similar documents
Linear algebra and differential equations (Math 54): Lecture 19

Differential Equations Practice: 2nd Order Linear: Nonhomogeneous Equations: Undetermined Coefficients Page 1

The Method of Undetermined Coefficients.

Math 2142 Homework 5 Part 1 Solutions

Worksheet # 2: Higher Order Linear ODEs (SOLUTIONS)

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

Second Order Linear Equations

DIFFERENTIAL EQUATIONS REVIEW. Here are notes to special make-up discussion 35 on November 21, in case you couldn t make it.

Section 3.1 Second Order Linear Homogeneous DEs with Constant Coefficients

APPM 2360 Section Exam 3 Wednesday November 19, 7:00pm 8:30pm, 2014

Today. The geometry of homogeneous and nonhomogeneous matrix equations. Solving nonhomogeneous equations. Method of undetermined coefficients

MAE 105 Introduction to Mathematical Physics HOMEWORK 1. Due on Thursday October 1st 2015

1 Some general theory for 2nd order linear nonhomogeneous

Math 20D Final Exam 8 December has eigenvalues 3, 3, 0 and find the eigenvectors associated with 3. ( 2) det

Example. Mathematics 255: Lecture 17. Example. Example (cont d) Consider the equation. d 2 y dt 2 + dy

Nonhomogeneous Equations and Variation of Parameters

Math53: Ordinary Differential Equations Autumn 2004

MATH 24 EXAM 3 SOLUTIONS

Chapter 7. Homogeneous equations with constant coefficients

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

MA Ordinary Differential Equations

Higher-order differential equations

LINEAR EQUATIONS OF HIGHER ORDER. EXAMPLES. General framework

Solutions to Math 53 Math 53 Practice Final

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

Lecture 8: Ordinary Differential Equations

First and Second Order Differential Equations Lecture 4

Math K (24564) - Homework Solutions 02

Math 3313: Differential Equations Second-order ordinary differential equations

Calculus (Math 1A) Lecture 4

Calculus (Math 1A) Lecture 4

Lecture 17: Nonhomogeneous equations. 1 Undetermined coefficients method to find a particular

GUIDELINES FOR THE METHOD OF UNDETERMINED COEFFICIENTS

Second-Order Homogeneous Linear Equations with Constant Coefficients

APPM 2360: Midterm exam 3 April 19, 2017

Lecture Notes for Math 251: ODE and PDE. Lecture 30: 10.1 Two-Point Boundary Value Problems

Modes and Roots ... mx + bx + kx = 0. (2)

Selected Solutions: 3.5 (Undetermined Coefficients)

Euler-Cauchy Using Undetermined Coefficients

UNDETERMINED COEFFICIENTS SUPERPOSITION APPROACH *

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS. David Levermore Department of Mathematics University of Maryland.

Chapter 4: Higher Order Linear Equations

Ex. 1. Find the general solution for each of the following differential equations:

IV Higher Order Linear ODEs

Nonhomogeneous Linear Differential Equations with Constant Coefficients - (3.4) Method of Undetermined Coefficients

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

ES.1803 Topic 19 Notes Jeremy Orloff. 19 Variation of parameters; exponential inputs; Euler s method

Calculus IV - HW 3. Due 7/ Give the general solution to the following differential equations: y = c 1 e 5t + c 2 e 5t. y = c 1 e 2t + c 2 e 4t.

7 Planar systems of linear ODE

Exam II Review: Selected Solutions and Answers

Differential Equations Practice: 2nd Order Linear: Nonhomogeneous Equations: Variation of Parameters Page 1

Table of contents. d 2 y dx 2, As the equation is linear, these quantities can only be involved in the following manner:

Higher Order Linear ODEs

Step 1. Step 2. Step 4. The corrected trial solution y with evaluated coefficients d 1, d 2,..., d k becomes the particular solution y p.

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

1. Why don t we have to worry about absolute values in the general form for first order differential equations with constant coefficients?

Advanced Eng. Mathematics

we get y 2 5y = x + e x + C: From the initial condition y(0) = 1, we get 1 5 = 0+1+C; so that C = 5. Completing the square to solve y 2 5y = x + e x 5

Linear Second Order ODEs

Existence Theory: Green s Functions

Linear Homogeneous ODEs of the Second Order with Constant Coefficients. Reduction of Order

ES.1803 Topic 13 Notes Jeremy Orloff

Calculus (Math 1A) Lecture 5

Chapter 3: Second Order Equations

MAT187H1F Lec0101 Burbulla

Non-homogeneous equations (Sect. 3.6).

ES.1803 Topic 7 Notes Jeremy Orloff. 7 Solving linear DEs; Method of undetermined coefficients

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

Second Order Linear Equations

First Order Linear Ordinary Differential Equations

Homework 3 Solutions Math 309, Fall 2015

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

6. Linear Differential Equations of the Second Order

Solving Quadratic Equations

Predicting the future with Newton s Second Law

Second Order Differential Equations Lecture 6

Lecture Notes for Math 251: ODE and PDE. Lecture 12: 3.3 Complex Roots of the Characteristic Equation

Review of Lecture 9 Existence and Uniqueness

Math 304 Answers to Selected Problems

Lecture 11. Andrei Antonenko. February 26, Last time we studied bases of vector spaces. Today we re going to give some examples of bases.

Answer Key b c d e. 14. b c d e. 15. a b c e. 16. a b c e. 17. a b c d. 18. a b c e. 19. a b d e. 20. a b c e. 21. a c d e. 22.

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

MATH 308 Differential Equations

Exam Basics. midterm. 1 There will be 9 questions. 2 The first 3 are on pre-midterm material. 3 The next 1 is a mix of old and new material.

Modeling and Simulation with ODE for MSE

= L y 1. y 2. L y 2 (2) L c y = c L y, c.

Homework 9 - Solutions. Math 2177, Lecturer: Alena Erchenko

Exam Question 10: Differential Equations. June 19, Applied Mathematics: Lecture 6. Brendan Williamson. Introduction.

Math 308 Discussion Problems #4 Chapter 4 (after 4.3)

MATH 304 Linear Algebra Lecture 10: Linear independence. Wronskian.

Chapter 13: General Solutions to Homogeneous Linear Differential Equations

Chapter 3 : Linear Differential Eqn. Chapter 3 : Linear Differential Eqn.

Lecture 10 - Second order linear differential equations

Math Ordinary Differential Equations

ENGI Second Order Linear ODEs Page Second Order Linear Ordinary Differential Equations

Lecture Notes for Math 251: ODE and PDE. Lecture 13: 3.4 Repeated Roots and Reduction Of Order

Math 216 Second Midterm 19 March, 2018

MATH Topics in Applied Mathematics Lecture 2-6: Isomorphism. Linear independence (revisited).

Vector Spaces and SubSpaces

Lecture 2. Classification of Differential Equations and Method of Integrating Factors

Transcription:

Linear algebra and differential equations (Math 54): Lecture 20 Vivek Shende April 7, 2016

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.

The initial value problem For a differential equation, in our case ay + by + cy = 0, Given some starting time t 0 and constants y 0 and y 0, We want to find a function y(t) such that the differential equation is satisfied, y(t 0 ) = y 0, and y (t 0 ) = y 0.

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

The initial value problem Another way to say this: the following map is an isomorphism: {Solutions to ay + by + cy = 0} R 2 y (y(t 0 ), y (t 0 )) 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.

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.

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.

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)

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 ]

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 cos(1) sin(1) 1 cos(1) 2 sin(1) = = B sin(1) cos(1) 2 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)

Inhomogenous equations We will now try and solve equations of the form for some pre-given function f. ay (t) + by (t) + cy(t) = f (t) Let us write this as (a d 2 dt 2 + b d dt + c ) y(t) = f (t) This is a linear equation just like our matrix equations Ax = b.

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.

Inhomogenous equations In a systematic treatment, we would try understand the range of the linear transformation (a d 2 dt 2 + b d ) dt + c But, this would involve infinite dimensional linear algebra in a serious way, and is beyond the scope of this class.

Inhomogenous equations Instead, we will just feed some (perhaps somewhat arbitrary) functions into the linear transformation (a d 2 dt 2 + b d ) dt + c and thereby learn some elements of the range. Then, whenever we want to try and solve (a d 2 dt 2 + 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.

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.

First order inhomogenous equations: polynomials Let s begin with polynomials. ( ) d dt r 1 = r ( ) d dt r t = 1 rt ( ) d dt r t 2 = 2t rt 2 ( ) d dt r t 3 = 3t 2 rt 3

First order inhomogenous equations: polynomials We see that all polynomials are in the range. More precisely, ( ) { d dt r P n, r 0 P n = P n 1, r = 0

Example Solve the differential equation y + y = t 2. We know that t 2 is contained in ( d dt + 1) P 2. 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 P 2 and writing ( d dt + 1) as a matrix.

Example Or in other words, we write ( ) d t 2 = dt + 1 (At 2 + Bt + C) = A(2t + t 2 ) + 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) = t 2 2t + 2.

First order inhomogenous equations: exponentials Now let s try an exponential function. ( ) d dt r e st = se st re st = (s r)e st So, e st is in the range, at least if s r.

First order inhomogenous equations: poly times exp Now let s try a polynomial times an exponential function. ( ) d dt r e st = se st re st = (s r)e st ( ) d dt r te st = e st + ste st rte st = e st + (s r)te st ( ) d dt r t 2 e st = 2te st + st 2 e st rt 2 e st = 2te st + (s r)t 2 e st ( ) d dt r t 3 e st = 3t 2 e st + st 3 e st rt 3 e st = 3t 2 e st + (s r)t 3 e st

First order inhomogenous equations: poly times exp Thus any polynomial times e st is in the range. More precisely, writing P n e st := {(degree n polynomial)e st } we have ( ) { d dt r P n e st P n e st, = P n 1 e st, r s r = s

Helpful fact ( ) d (f dt r (t)e rt ) = f (t)e rt + f (t)re rt re rt = f (t)e rt

Example Solve the equation y 3y = te 3t. We know that te 3t is in the image of P 2 e 3t so we should try a general element of this space. ( ) d te 3t = dt 3 (At 2 e 3t + Bte 3t + Ce 3t ) = A 2te 3t + B e 3t so A = 1/2 and B = 0 and a solution is y(t) = 1 2 t2 e 3t

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 ( ) d 2 ( ) d a + b + c dt dt

Factoring Let r ± be the roots of the equation ax 2 + bx + c. Then ( ) d 2 ( ) ( ) ( ) d d d a + b + c = a dt dt dt r + 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.)

Factoring We already saw ( ) d dt r P n e st = { P n e st, P n 1 e st, r s r = s Doing it twice, ( ) ( ) d d dt r + dt r P n e st = P n e st, s / {r +, r } P n 1 e st, s = r + orr, not both P n 2 e st, s = r + = r

Factoring ( a Let s just rewrite that: ( ) d 2 ( ) ) d + b + c P n e st = dt dt where r ± are the roots of ax 2 + bx + c. P n e st, s / {r +, r } P n 1 e st, s = r + orr, not both P n 2 e st, s = r + = r

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

Example e 2t = So a solution is given by ( ) d 2 dt 2 ( (At 2 + Bt + C)e 2t) = 2Ae 2t y(t) = 1 2 t2 e 2t

Example Solve the equation y 4y + 4 = e 2t + e 3t. Observe that if we solve, separately, the equations y 4y + 4 = e 2t and y 4y + 4 = e 3t 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.

Example We already found a solution to y 4y + 4 = e 2t, namely y(t) = 1 2 t2 e 2t. Let us now solve y 4y + 4 = e 3t. This time, 3 is not a root of the auxilliary equation, so we know e 3t ( d dt 2) 2 P0 e 3t. So we try the general element of this space. Since a solution is given by y(t) = e 3t. ( ) d 2 dt 2 Ae 3t = Ae 3t

Example Finally, adding the formulas ( ) d 2 ( ) 1 dt 2 2 t2 e 2t = e 2t we find ( ) d 2 dt 2 e 3t = e 3t ( ) d 2 ( ) 1 dt 2 2 t2 e 2t + e 3t = e 2t + e 3t or in other words, y(t) = 1 2 t2 e 2t + e 3t solves the equation y 4y + 4y = e 2t + e 3t.

The general solution to an inhomogenous equation For the equation Ax = b, we observed on the one hand that Ax 0 = b & Ay = 0 = A(x 0 + y) = b and on the other hand that Ax 0 = b & Ax 1 = b = A(x 1 x 0 ) = 0

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.

Existence and uniqueness: inhomogenous case Theorem Assume ay + by + cy = f (t) has a solution ỹ(t). Then for any t 0 and specified values y 0, 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(t 0 ) = y 0 and y (t 0 ) = y 0. Proof. The desired y is the sum of ỹ and the unique y h satisfying the homogenous equation ay + by + cy = 0 subject to the initial value condition y h (t 0 ) = y 0 ỹ(t 0 ) and y h (t 0) = y 0 ỹ (t 0 ).

Example Find a solution to y 4y + 4y = e 2t + e 3t satisfying the conditions y(0) = 1 and y (0) = 2. We already found one solution to the inhomogenous equation, namely 1 2 t2 e 2t + e 3t. From last time, we know how to find solutions to the homogenous equation, a basis is given by e 2t, te 2t

Example So our desired solution takes the form This has derivative 1 2 t2 e 2t + e 3t + Ae 2t + Bte 2t te 2t + t 2 e 2t + 3e 3t + 2Ae 2t + Be 2t + 2tBe 2t 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 2 t2 e 2t + e 3t te 2t