Nonhomogeneous Equations and Variation of Parameters

Similar documents
Second Order Linear Equations

Second Order Differential Equations Lecture 6

Section 4.7: Variable-Coefficient Equations

6. Linear Differential Equations of the Second Order

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

1 Differential Equations

Chapter 4: Higher Order Linear Equations

Exam II Review: Selected Solutions and Answers

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

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

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

Study guide - Math 220

Homogeneous Equations with Constant Coefficients

Non-homogeneous equations (Sect. 3.6).

Partial proof: y = ϕ 1 (t) is a solution to y + p(t)y = 0 implies. Thus y = cϕ 1 (t) is a solution to y + p(t)y = 0 since

A First Course in Elementary Differential Equations: Problems and Solutions. Marcel B. Finan Arkansas Tech University c All Rights Reserved

First and Second Order Differential Equations Lecture 4

Lecture 9. Scott Pauls 1 4/16/07. Dartmouth College. Math 23, Spring Scott Pauls. Last class. Today s material. Group work.

Math53: Ordinary Differential Equations Autumn 2004

Second-Order Linear ODEs

GUIDELINES FOR THE METHOD OF UNDETERMINED COEFFICIENTS

3.5 Undetermined Coefficients

MATH 308 Differential Equations

Solutions to Homework 3

Linear Second Order ODEs

Second Order Linear Equations

First Order Linear Ordinary Differential Equations

= 2e t e 2t + ( e 2t )e 3t = 2e t e t = e t. Math 20D Final Review

Worksheet # 2: Higher Order Linear ODEs (SOLUTIONS)

كلية العلوم قسم الرياضيات المعادالت التفاضلية العادية

Math 20D: Form B Final Exam Dec.11 (3:00pm-5:50pm), Show all of your work. No credit will be given for unsupported answers.

Name: Solutions Final Exam

MATH 308 Differential Equations

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.

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

Chapter 3: Second Order Equations

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

Review. To solve ay + by + cy = 0 we consider the characteristic equation. aλ 2 + bλ + c = 0.

A: Brief Review of Ordinary Differential Equations

Euler-Cauchy Using Undetermined Coefficients

144 Chapter 3. Second Order Linear Equations

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.

17.2 Nonhomogeneous Linear Equations. 27 September 2007

dx n a 1(x) dy

Section 2.4 Linear Equations

Linear Independence and the Wronskian

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

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

Second order linear equations

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

Higher-order differential equations

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS II: Nonhomogeneous Equations. David Levermore Department of Mathematics University of Maryland

Math K (24564) - Lectures 02

MATH 251 Examination I February 23, 2017 FORM A. Name: Student Number: Section:

Work sheet / Things to know. Chapter 3

MA 266 Review Topics - Exam # 2 (updated)

ODE Homework Solutions of Linear Homogeneous Equations; the Wronskian

Lecture 10 - Second order linear differential equations

Section 9.8 Higher Order Linear Equations

UNDETERMINED COEFFICIENTS SUPERPOSITION APPROACH *

Section 3.1 Second Order Linear Homogeneous DEs with Constant Coefficients

MIDTERM 1 PRACTICE PROBLEM SOLUTIONS

µ = e R p(t)dt where C is an arbitrary constant. In the presence of an initial value condition

Ordinary Differential Equations

Ma 221. The material below was covered during the lecture given last Wed. (1/29/14). Homogeneous Linear Equations with Constant Coefficients

4. Higher Order Linear DEs

1 Solution to Homework 4

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

Math 308 Week 8 Solutions

dt 2 roots r = 1 and r =,1, thus the solution is a linear combination of e t and e,t. conditions. We havey(0) = c 1 + c 2 =5=4 and dy (0) = c 1 + c

Second In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 31 March 2011

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

Homework #6 Solutions

SMA 208: Ordinary differential equations I

MAT292 - Calculus III - Fall Solution for Term Test 2 - November 6, 2014 DO NOT WRITE ON THE QR CODE AT THE TOP OF THE PAGES.

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

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

Math 266 Midterm Exam 2

VANDERBILT UNIVERSITY. MATH 2610 ORDINARY DIFFERENTIAL EQUATIONS Practice for test 1 solutions

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

Introductory Differential Equations

Problem Score Possible Points Total 150

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.

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

Higher Order Linear Equations

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

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

The Theory of Second Order Linear Differential Equations 1 Michael C. Sullivan Math Department Southern Illinois University

Form A. 1. Which of the following is a second-order, linear, homogenous differential equation? 2

Jim Lambers MAT 285 Spring Semester Practice Exam 2 Solution. y(t) = 5 2 e t 1 2 e 3t.

Solutions to Homework 5, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y 4y = 48t 3.

Problem Score Possible Points Total 150

1 Some general theory for 2nd order linear nonhomogeneous

c 1 = y 0, c 2 = 1 2 y 1. Therefore the solution to the general initial-value problem is y(t) = y 0 cos(2t)+y sin(2t).

Math 215/255: Elementary Differential Equations I Harish N Dixit, Department of Mathematics, UBC

ORDINARY DIFFERENTIAL EQUATIONS

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

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.

APPM 2360: Midterm exam 1 February 15, 2017

Math Ordinary Differential Equations

Transcription:

Nonhomogeneous Equations Variation of Parameters June 17, 2016 1 Nonhomogeneous Equations 1.1 Review of First Order Equations If we look at a first order homogeneous constant coefficient ordinary differential equation by + cy = 0. then the corresponding auxiliary equation has a root r 1 = c/a we have a solution ar + c = 0 y h (t) = ce r1t = c 1 e ct/a If the equation is nonhomogeneous by + cy = f. Then, we introduce the integrating factor e ct/b d dt (ect/b y) = e ct/b f e ct/a y(t) = c 1 + e ct/a f(t)dt y(t) = c 1 e ct/b + e ct/b e ct/b f(t)dt y(t) = y h (t) + y p (t) The solution is a sum of y h (t), the solution to the homogeneous equation. (by h + cy h = 0). It has the constant that will be determined by the initial condition. y p (t), a solution that involves f. Then, b(y h + y p ) + c(y h + y p ) = (by h + cy h ) + (by p + cy p ) = 0 + f = f. 1

We next take an similar, but less formal approach to second order equations, writing, y = y h + y p where y h is a general solution to y p is a particular solution to ay h + by h + cy h = 0. ay p + by p + cy p = f. 1.2 Examples We gain intuition in the nature of particular solution through some illustrative exampels Example 1. For we try a particular solution y p (t) = At + B. Then y + y + 4y = 2t, y p (t) = At +B y p(t) = A y p (t) = 0 Thus, 4y p (t) = 4At +4B y p(t) = A y p (t) = 0 4At + (A + 4B) = 2t 4A = 2, A + 4B = 0 A = 1 2 B = 1 8 y p (t) = 1 3 t 1 8. we can turn this suggestion into a strategy for the case that f is a polynomial. If the degree is m, then we will look for a particular solution y p (t) = A m x m + + A 1 x + A 0 that is also a polynomial of degree m. If this case the expression ay p + by p + cy is also a polynomial of degree m. The undetermined coefficients A 0, A 1,..., A m are selected so that the coefficients of 1, t,..., t m to match those of f. This gives us m + 1 equation in m unknowns. This technique is called the bf method of undetermined coefficients. 2

Example 2. For the differential equation 4y 3y y = 2 cos t, we note that the derivatives of sine will introduce the cosine. Thus, we search for a particular solution with undetermined coefficients A B. Therefore, Example 3. For the differential equation y p (t) = A cos t + B sin t y p (t) = A cos t +B sin t y p(t) = B cos t A sin t y p (t) = A cos t B sin t y p (t) = A cos t B sin t 3y p(t) = 3B cos t +3A sin t 4y p (t) = 4A cos t 4B sin t 4y p (t) 3y p(t) y(t) = ( 5A 3B) cos t + ( 5B + 3A) sin t 5A + 3B = 2, 5B + 3A = 0, B = 3 5 A, 5A 33 25 9 A, = A = 34 5 5 5 A = 2, A = 5 17, B = 3 5 A = 3 5 5 17 = 3 17 3y 2y + 6y = e 2t, we look for a solution of the form y p (t) = Ae 2t with undetermined coefficient A. This suffices because the derivative of y p (t) are all multiples of e 2t. Then 3y 2y + 6y = 12Ae 2t 4Ae 2t + 6Ae 2t = 14Ae 2t Thus, A = 1/14 is a particular solution. y p (t) = 1 14 e2t Example 4. For the differential equation y + y 6y = e 2t, we have the auxiliary equation r 2 + r 6 = (r 2)(r + 3) = 0. 3

In this case, e 2t is a solution to the homogeneous equation. As in the case of double roots, we add a term te 2t look for a particular solution of the form y p (t) = (At + B)e 2t. A = 1/5. Thus, y p (t) = Ate 2t +Be 2t y p(t) = 2Ate 2t +Ae 2t + 2Be 2t y p (t) = 4Ate 2t +2Ae 2t + 2Ae 2t + 4Be 2t 6y p (t) = 6Ate 2t 6Be 2t y p(t) = 2Ate 2t +(A + 2B)e 2t y p (t) = 4Ate 2t +(4A + 4B)e 2t y p (t) + y p(t) 6y p (t) = 5Ae 2t y p (t) = 1 5 te2t. The inclusion of the B term was not necessary. In general, when we have a nonhomogeneous differential equation for p(t) a polynomial of degree m, we take ay + by + cy = p(t)e rt y p (t) = t s q(t)r rt where q is a polynomial of degree m s = 0, 1, 2 is the number of times r is a solution to the auxiliary equation. 2 Variation of Parameters Variation of parameters, also known as variation of constants, is a more general method to solve inhomogeneous linear ordinary differential equations. For first-order inhomogeneous linear differential equations, we were able to determine a solution using an integrating factor. For second order equations, we have used a heuristic approach they may fail for many choices of f. 2.1 Review of First Order Equations To solve for a first order equation Recall that the general solution of the corresponding homogeneous equation y + p(t)y = q(t) (1) y + p(t)y = 0 4

This homogeneous differential equation can be solved by different methods, for example separation of variables, we note that is equation is separable. dy h dt + p(t)y h = 0 dy h dt = p(t)y h 1 dy h = p(t)y h y h dt 1 dy h y h dt dt = p(t) dt 1 dy h = p(t) dt y h ln y h = p(t) dt + c y h = exp( p(t) dt + c) ( ) y h = A exp p(t) dt = Aµ(t) Now we return to solving the non-homogeneous equation (1). The method variation of parameters forms the particular solution by multiplying solution by an unknown function v(t) y p = v(t)µ(t) By substituting y p into the non-homogeneous equation, (1) we can find v. y p + py p = q (vµ) + p(vµ) = q v µ + vµ + p(vµ) = q v µ + v(µ + pµ) = q v µ = q (Note that µ + pµ = 0. v = q/µ v(t) = q(t)/µ(t)dt ( v(t) = q(t) exp ) p(t) dt dt We only need a single particular solution, so we can set the constant of integration to be 0. Now we have the solution y(t) = y h (t) + y p (t). 2.2 General Procedure for Second Order Equation Write y h (t) = c 1 y 1 (t) + c 2 y 2 (t) 5

as the general solution to Now, we seek a solution of of the form The derivative, by the product rule, is ay + by + cy = 0. (2) ay + by + cy = f (3) y p (t) = v 1 (t)y 1 (t) + v 2 (t)y 2 (t) (4) y p(t) = (v 1(t)y 1 (t) + v 2(t)y 2 (t)) + (v 1 (t)y 1(t) + v 2 (t)y 2(t)). In order to avoid second derivatives on v 1 v 2, we attempt a solution with Take one more derivative. We now substitute this into (3) simplify, 0 = v 1(t)y 1 (t) + v 2(t)y 2 (t) (5) y p(t) = v 1 (t)y 1(t) + v 2 (t)y 2(t). (6) y p (t) = v 1(t)y 1(t) + v 1 (t)y 1 (t) + v 2(t)y 2(t) + v 2 (t)y 2 (t). (7) f = ay p + by p + cy p f = a(v 1y 1 + v 1 y 1 + v 2y 2 + v 2 y 2 ) + b(v 1 y 1 + v 2 y 2) + c(v 1 y 1 + v 2 y 2 ) f = a(v 1y 1 + v 2y 2) + v 1 (ay 1 + by 1 + c) + v 2 (ay 2 + by 2 + c) f = a(v 1y 1 + v 2y 2) 1 a f = v 1y 1 + v 2y 2 (8) Here, we use the fact that y 1 y 2 solve the homogeneous equation (2). Now we have two linear equations for v 1 v 2, namely, (5) (8). We can solve for v 2 in (5), substitute into (8), simplify then substitute the solution of v 1 back into (5). This results in the solutions Finally, we integrate, ( v 1 (t) = substitute into (4). v 1 fy 2 = a(y 1 y 2 y 1 y 2) f(t)y 2 (t) a(y 1 (t)y 2 (t) y 1(t) y 2 (t)) v 2 = fy 2 a(y 1 y 2 y 1 y 2). ) ( dt v 2 (t) = f(t)y 2 (t) a(y 1 (t)y 2 (t) y 1 (t)y 2(t)) Remark 5. The expression W (y 1, y 2 ) = y 1 y 2 y 1y 2 is the 2 2 example of the Wronskian Written as a determinant ( ) y1 y W (y 1, y 2 ) = det 2 y 1 ] y 2 Then v 1 fy 2 = aw (y 1, y 2 ) v 2 = 6 fy 2 aw (y 1, y 2 ). ) dt.

2.3 Examples Rather than using the general expression for the solution, we will follow the process to derive these equations beginning with to determine v 1 v 2 then substitute into Example 6. For the auxiliary equation is with solutions r ± = ±2i. This gives the solutions 0 = v 1(t)y 1 (t) + v 2(t)y 2 (t) 1 a f(t) = v 1(t)y 1(t) + v 2 (t) y 2(t) y p (t) = v 1 (t)y 1 (t) + v 2 (t)y 2 (t) y + 4y = t, r 2 + 4 = 0. y 1 (t) = cos 2t y 2 (t) = sin 2t. with derivatives Thus, y 1(t) = 2 sin 2t y 2(t) = 2 cos 2t. 0 = v 1(t) cos 2t + v 2(t) sin 2t t = 2v 1(t) sin 2t + 2v 2(t) cos 2t We solve for v 1, v 2, integrate, cos 2t v 2 (t) = sin 2t v 1(t) t = 2v 1(t) sin 2t t sin 2t = 2v 1(t) cos 2t sin 2t v 1(t) cos 2t v 1(t) = 1 2 t sin t, v 1(t) = 1 (2t cos 2t sin 2t) 8 v 2(t) cos 2t = sin 2t 1 2 t sin 2t = 1 2 t cos 2t v 2(t) = 1 (2t sin 2t + cos 2t) 8 substitute into the equation for y p y p (t) = 1 8 (2t cos 2t sin 2t) cos 2t + 1 8 (2t sin 2t + cos 2t) sin 2t = 1 4 t. 7

Example 7. To find a solution to y 5y + 6y = 2e t Note that the auxiliary equation for the homogeneous equation is r 2 5r + 6 = (r 2)(r 3). This gives two linearly independent solutions y 1 (t) = e 2t y = e 3t. The Wronskian Thus, A general solution is W (y 1, y 2 ) = e 2t (3e 3t ) (2e 2t )e 3t = e 5t. v 1(t) = 2et e 2t e 5t = 2e 2t v 2(t) = 2et e 3t v 1 (t) = = e 2t v 2 (t) = e t y p (t) = ( e 2t )(e 3t ) + (2e t )(e 2t ) = e t. y(t) = c 1 y 1 (t) + c 2 y 2 (t) + y p (t). e 5t = 2e t. 8