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

Similar documents
Honors Differential Equations

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

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

2. A Motivational Example: Consider the second-order homogeneous linear DE: y y 2y = 0

Chapter 7. Homogeneous equations with constant coefficients

Euler-Cauchy Using Undetermined Coefficients

Second Order Linear Equations

Topic 2 Notes Jeremy Orloff

Non-homogeneous equations (Sect. 3.6).

Section 4.7: Variable-Coefficient Equations

EXAM 2 MARCH 17, 2004

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

First Order Linear Ordinary Differential Equations

Math 31A Discussion Session Week 1 Notes January 5 and 7, 2016

ES.1803 Topic 13 Notes Jeremy Orloff

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

Our goal is to solve a general constant coecient linear second order. this way but that will not always happen). Once we have y 1, it will always

Selected Solutions: 3.5 (Undetermined Coefficients)

MATH 307 Introduction to Differential Equations Autumn 2017 Midterm Exam Monday November

2. If the values for f(x) can be made as close as we like to L by choosing arbitrarily large. lim

1 Some general theory for 2nd order linear nonhomogeneous

Second-Order Linear ODEs

GUIDELINES FOR THE METHOD OF UNDETERMINED COEFFICIENTS

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

DIFFERENTIATION AND INTEGRATION PART 1. Mr C s IB Standard Notes

+ py 1v + py 1 v + qy 1 v = 0

DIFFERENTIAL EQUATIONS

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

Chapter 2: First Order DE 2.4 Linear vs. Nonlinear DEs

MATH 312 Section 4.5: Undetermined Coefficients

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.

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

INHOMOGENEOUS LINEAR SYSTEMS OF DIFFERENTIAL EQUATIONS

3.4 Complex Zeros and the Fundamental Theorem of Algebra

Adding and Subtracting Terms

Nonhomogeneous Equations and Variation of Parameters

Finish up undetermined coefficients (on the midterm, on WW3) Physics applications - mass springs (not on midterm, on WW4)

Sign the pledge. On my honor, I have neither given nor received unauthorized aid on this Exam : 11. a b c d e. 1. a b c d e. 2.

Predator - Prey Model Trajectories and the nonlinear conservation law

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

Key Point. The nth order linear homogeneous equation with constant coefficients

10. Operators and the Exponential Response Formula

Math53: Ordinary Differential Equations Autumn 2004

Homework Solutions: , plus Substitutions

To factor an expression means to write it as a product of factors instead of a sum of terms. The expression 3x

5 Systems of Equations

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

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

Lecture 16. Theory of Second Order Linear Homogeneous ODEs

Problem Score Possible Points Total 150

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

Honors Differential Equations

irst we need to know that there are many ways to indicate multiplication; for example the product of 5 and 7 can be written in a variety of ways:

7.1 Indefinite Integrals Calculus

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Higher-order differential equations

FINAL EXAM SOLUTIONS, MATH 123

Linear Second Order ODEs

Solutions to Math 53 Math 53 Practice Final

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

General Recipe for Constant-Coefficient Equations

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

Algebra & Trig Review

AMATH 351 Mar 15, 2013 FINAL REVIEW. Instructor: Jiri Najemnik

Exam II Review: Selected Solutions and Answers

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

DIFFERENTIATION RULES

Diff. Eq. App.( ) Midterm 1 Solutions

Math 2142 Homework 5 Part 1 Solutions

Chapter 11 - Sequences and Series

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

Second Order Differential Equations Lecture 6

Homogeneous Equations with Constant Coefficients

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

Exponents. Reteach. Write each expression in exponential form (0.4)

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

LESSON EII.F ABSOLUTE VALUE 89

x gm 250 L 25 L min y gm min

x = B sin ( t ) HARMONIC MOTIONS SINE WAVES AND SIMPLE HARMONIC MOTION Here s a nice simple fraction: y = sin (x) Differentiate = cos (x)

Some Review Problems for Exam 2: Solutions

Functions. 1. Any set of ordered pairs is a relation. Graph each set of ordered pairs. A. B. C.

Math 302 Module 4. Department of Mathematics College of the Redwoods. June 17, 2011

Chapter 4: Higher Order Linear Equations

Math 5a Reading Assignments for Sections

Alex s Guide to Word Problems and Linear Equations Following Glencoe Algebra 1

When they compared their results, they had an interesting discussion:

Algebra 1B notes and problems March 12, 2009 Factoring page 1

MAE 305 Engineering Mathematics I

8.5 Taylor Polynomials and Taylor Series

Section 1.8 Matrices as Linear Transformations

Differential Equations

5.9 Representations of Functions as a Power Series

MATH 24 EXAM 3 SOLUTIONS

Numerical method for approximating the solution of an IVP. Euler Algorithm (the simplest approximation method)

Linear maps. Matthew Macauley. Department of Mathematical Sciences Clemson University Math 8530, Spring 2017

Algebra II (Common Core) Summer Assignment Due: September 11, 2017 (First full day of classes) Ms. Vella

Homework Solutions:

2. First Order Linear Equations and Bernoulli s Differential Equation

εx 2 + x 1 = 0. (2) Suppose we try a regular perturbation expansion on it. Setting ε = 0 gives x 1 = 0,

NOTES FOR ES.1803, Spring 2018

Transcription:

ES.1803 Topic 7 Notes Jeremy Orloff 7 Solving linear DEs; Method of undetermined coefficients 7.1 Goals 1. Be able to solve a linear differential equation by superpositioning a particular solution with the general homogeneous solution. 2. Be able to find a particular solution to a linear constant coefficient differential equation with polynomial input. 3. Be able to work with the operator D, e.g. be able to check if two operators are equal by checking their behavior on test functions. 4. Understand the statement of the existence and uniqueness theorem for second-order linear DEs. 7.2 Linear (not necessarily constant coefficient) DEs 7.2.1 Nice simple operator notation The general linear differential equation has the form y (n) + p 1 (t)y (n 1) + + p n (t)y = f(t) (1) We can simplify our notation by defining the differential operator L = D n + p 1 (t)d n 1 + + p n (t)i. Think: We use the letter L because it is a linear operator. You should recall what this means from Topic 6. Remember: to see how how an operator behaves we apply it to a function. In this case: Lx = [ D n + p 1 (t)d n 1 + + p n (t)i ] x = x (n) + p 1 (t)x (n 1) + p n (t)x. So we can rewrite Equation 1 as Ly = f(t) (pretty simple looking). 7.2.2 General solution to a linear inhomogeneous equation The superposition principle for a linear differential operator L says the following: If y p is a particular solution to the inhomogeneous equation Ly = f and y h is a solution to the homogeneous equation Ly = 0 1

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 2 then y = y p + y h is a also solution to Ly = f. The proof of this is a straightforward use of the definition of linearity: Ly = L(y p + y h ) = Ly p + Ly h = f + 0 = f. Strategy for finding the general solution to Ly = f 1. Find the general solution to the homogeneous equation Ly = 0. Call it y h. 2. Find any one particular solution to Ly = f. Call it y p 3. The general solution to Ly = f is y = y p + y h. Example 7.1. Let L = D 2 + 4D + 5. Solve Ly = e t. answer: 1. First we solve the homogeneous equation: Ly = 0. Characteristic equation: p(r) = r 2 + 4r + 5 = 0 Roots: r = 2 ± i. General real-valued homogeneous solution: y h (t) = e 2t (c 1 cos t + c 2 sin t). 2. Find a particular solution using the exponential response formula: y p (t) = e t p( 1) = e t 2. 3. The general real-valued solution to Ly = e t is a superposition of the particular and the homogeneous solutions: y(t) = y p (t) + y h (t) = e t 2 + e 2t (c 2 cos t + c 2 sin t). 7.3 The method of undetermined coefficients for polynomial input The method of undetermined coefficients for polynomial input is yet another version of the method of optimism. In this case, we try a polynomial solution and use algebra to find the coefficients. Example 7.2. Solve y + 5y + 4y = 2t + 3. answer: We follow these steps: 1. First to find a particular solution: (a) We guess a trial solution of the form y p (t) = At + B. Our guess has the same degree as the input. (b) Substitute the guess into the DE and do the algebra to compute the coefficients. Here is one way to present the calculation y p = At + B y p = A y p = 0 p + 5y p + 4y p = 4At + (5A + 4B) y

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 3 Substituting this into the DE we get: 4At + (5A + 4B) = 2t + 3. Now we equate the coefficients on both sides to get two equations in two unknowns. Coefficients of t : 4A = 2 Coefficients of 1 : 5A +4B = 3 This is called a triangular system of equations. It is easy to solve to find A = 1/2, B = 1/8. So, y p (t) = 1 2 t + 1 8. 2. Next we find solution of homogeneous DE: y + 5y + 4y = 0. Characteristic equation: r 2 + 5r + 4 = 0. Roots: r = 1, 4. General homogeneous solution: y h (t) = c 1 e t + c 2 e 4t. 3. Finally, we use the superposition principle to write the general solution to our DE: y(t) = y p (t) + y h (t) = 1 2 t + 1 8 + c 1e t + c 2 e 4t. Example 7.3. Solve y + 5y + 4y = 2t 2 + 3t answer: Guess a trial solution of the form y p (t) = At 2 +Bt+C (same degree as the input). Substitute the guess into the DE (we don t show the algebra): y p + 3y p + 4y p = 4At 2 + (10A + 4B)t + (2A + 5B + 4C) = t 2 + 3t. Equate the coefficents of the polynonials on both sides of the equation: Coeff. of t 2 : 4A = 1 Coeff. of t: 10A +4B = 3 Coeff. of 1: 5A +5B +4C = 0 This triangular system is easy to solve: A = 1/4, B = 1/8, C = 9/32. particular solution is y p (t) = 1 4 t2 + 1 8 t 15 32. Therefore a We can use the homogeneous solution from previous example. So the general solution to the DE is y(t) = y p (t) + y h (t). Example 7.4. What can go wrong (and how to fix it). Find a solution to y + y = t + 1. answer: Since the input is a first-degree polynomial, we try a first-degree solution: y p (t) = At + B. Substituting this into the DE we get A = t + 1.

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 4 This can t be solved! The problem is that there is no y term in y +y (or rather, its coefficient is 0). The fix is to bump all degrees up by the order of the lowest derivative, i.e. try the solution y p = At 2 +Bt. Substitute: 2At + (2A + B) = t + 1. Equate coeff: 2A = 1; (2A + B) = 1. Solve for A and B: A = 1/2, B = 0. Thus, y p (t) = 1 2 t2. Example 7.5. Find a solution to y + 3y = t. answer: The input has degree 1 and the lowest order derivative in the DE is 2. So we guess y p = At 3 + Bt 2. Substitute: 18At + 6A + 6B = t. Equate coeff: 18A = 1; 6A + 6B = 0. Solve for A and B: A = 1/18, B = 1/18. Thus y p (t) = t/18 1/18. Example 7.6. Exponential Shift Rule. Solve y + 5y + 4y = e 2t (t + 3). answer: In operator form this is p(d)y = e 2t (t + 3), where p(d) = D 2 + 5D + 4. First we find a particular solution by looking for one of the form y = e 2t u. We substitute this into the DE and use the exponential shift rule to pull out the exponential. The left-hand side of the equation is p(d)(e 2t u) = e 2t p(d + 2I)u = e 2t ((D + 2I) 2 + 5(D + 2I) + 4I)u = e 2t (D 2 + 9D + 18I)u. Equating this with the right-hand side we have e 2t (D 2 + 9D + 18I)u = e 2t (t + 3) or (D 2 + 9D + 18I)u = t + 3. The method of undetermined coefficients gives (we don t show the algebra): Thus, y p (t) = e 2t u p (t) = e 2t ( 1 18 t + 5 36 u p (t) = 1 18 t + 5 36. ). To finish solving we find the homogenous solution (again without showing the algebra). y h (t) = c 1 e t + c 2 e 4t. So, the general solution to the DE is y(t) = y p (t) + y h (t). 7.4 A bit more on the operator D Remind yourself that D = d dt, i.e. Df = f.

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 5 7.4.1 Algebra with constant coefficients For polynomial differential operators we can add and multiply in any order using the usual rules of arithmetic. Example 7.7. Show that (D 3I)(D 2I) = (D 2I)(D 3I) = D 2 5D + 6I. Note. In words this says that the operators D 3I and D 2I commute and that the usual rules of multiplying polynomials apply. answer: To show two operators are equal we have to show they give the same result when applied to any function. This is easy if a bit tedious: (D 3I)(D 2I)f = (D 3I)(f 2f) = f 3f 2f + 6f = f 5f + 6f (D 2I)(D 3I)f = (D 2I)(f 3f) = f 2f 3f + 6f = f 5f + 6f Since (D 3I)(D 2I) and (D 2I)(D 3I) give the same result when applied to a test function f they are the same operator. The right hand side of both of the equations above shows they both equal D 2 5D + 6I as stated in the problem. The next examples show that we must have constant coefficients for this to work. 7.4.2 Algebra with non-constant coefficient operators Example 7.8. Let M t be the multiplication by t operator, i.e. M t f = tf. Show that M t D DM t, i.e. show M t and D do not commute. answer: We need to apply each operator to a test function f and see that we get different results. M t Df = M t f = tf DM t f = D(tf) = f + tf We see that the two are not equal, so the operators don t commute. Notational note. It is common to use a shorthand and write the operator M t as t. So we could have written the example as: Show td Dt as operators. We will also sometimes write the operator M t as ti. Example 7.9. Show that the operators (D ti)d D(D ti) answer: As is now usual, we show this by applying both operators to a test function y and seeing that we get different results. (D ti)dy = (D ti)y = y ty = (D 2 td)y D(D ti)y = D(y ty) = y ty y = (D 2 td I)y. 7.5 General theory of linear second-order equations In this section we ll collect up much of what we ve already done and add to it the existence and uniqueness theorem. The general second-order linear DE is A(t)y + B(t)y + C(t)y = F (t).

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 6 The standard form is y + p(t)y + q(t)y = f(t) (L) Example 7.10. Here is a linear second-order DE in general and standard form: General: t 2 y + ty + y = e t Standard: y + 1 t y + 1 t 2 e t t 2 = et t 2 Homogeneous (standard form): y + p(t)y + q(t)y = 0 (H) 7.5.1 Superposition/Linearity The general principle of superposition says that for a linear DE superposition of inputs leads to superposition of outputs, i.e. If y 1 solves y + p(t)y + q(t)y = f 1 (t) and y 2 solves y + p(t)y + q(t)y = f 2 (t) then c 1 y 1 + c 2 y 2 solves y + p(t)y + q(t)y = c 1 f 1 (t) + c 2 f 2 (t). We have already made repeated use of the following two forms of the principle. 1. Superposition of homogeneous solutions: If y 1 and y 2 are solutions to Equation H then so is y = c 1 y 1 + c 2 y 2. 2. Superposition of homogeneous and inhomogeneous solutions: If y p is a solution to Equation L and y h is a solution to Equation H then y = y p + y h is also a solution to L. 7.5.2 Existence and Uniqueness The existence and uniqueness theorem is an important technical tool for us. When solving a differential equation it guarantees that we can find a solution and it also tells us when we ve found them all. Theorem. Existence and uniqueness. Consider the initial value problem y + p(t)y + q(t)y = f(t); y(a) = b 0, y (a) = b 1. If p, q and f are continuous on an interval I containing the point a then there exists a unique solution to this differential equation satisfying the given initial conditions. Important graphical note: The theorem tells us that the graphs of two different solutions to the DE can cross but they cannot touch tangentially. (i) If they cross transversally they have the same position at the time they cross, but different velocities.

7 SOLVING LINEAR DES; METHOD OF UNDETERMINED COEFFICIENTS 7 (ii) If they did touch tangentially they would have the same position and the same velocity at the time they touch. By the existence and uniqueness theorem there is exactly one solution not two with that position and velocity, so this is impossible. (a) y (b) y a t a t Figure (a) shows transversal curves. These could both be solutions to a second-order DE that satisfied the conditions of the existence and uniqueness theorem. Figure (b) show curves that touch tangentially. These cannot both be solutions to such a DE.