The Method of Undetermined Coefficients.

Similar documents
The Method of Laplace Transforms.

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

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

Matrix Solutions to Linear Systems of ODEs

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

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

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

Variation of Parameters

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

Math 2142 Homework 5 Part 1 Solutions

Extreme Values and Positive/ Negative Definite Matrix Conditions

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

Taylor Polynomials. James K. Peterson. Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Selected Solutions: 3.5 (Undetermined Coefficients)

Second Order and Higher Order Equations Introduction

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

Lecture 1. Scott Pauls 1 3/28/07. Dartmouth College. Math 23, Spring Scott Pauls. Administrivia. Today s material.

Solving systems of ODEs with Matlab

Euler-Cauchy Using Undetermined Coefficients

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

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

Antiderivatives! Outline. James K. Peterson. January 28, Antiderivatives. Simple Fractional Power Antiderivatives

Solutions to Math 53 Math 53 Practice Final

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

Antiderivatives! James K. Peterson. January 28, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Section 2.4 Linear Equations

The integrating factor method (Sect. 1.1)

Complex Numbers. James K. Peterson. September 19, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Complex Numbers. Outline. James K. Peterson. September 19, Complex Numbers. Complex Number Calculations. Complex Functions

Differentiating Series of Functions

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

Solutions to Homework 3

Linear Independence and the Wronskian

Predator - Prey Model Trajectories and the nonlinear conservation law

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

MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

Higher-order differential equations

APPM 2360: Midterm exam 3 April 19, 2017

Second Order Linear Equations

Differential equations

Lecture 8: Ordinary Differential Equations

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

93 Analytical solution of differential equations

1 Some general theory for 2nd order linear nonhomogeneous

A( x) B( x) C( x) y( x) 0, A( x) 0

SOLVING DIFFERENTIAL EQUATIONS. Amir Asif. Department of Computer Science and Engineering York University, Toronto, ON M3J1P3

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

Lecture 31. Basic Theory of First Order Linear Systems

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

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

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

Math K (24564) - Homework Solutions 02

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t)

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

Linear Second Order ODEs

Project One: C Bump functions

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

Exam 2 Study Guide: MATH 2080: Summer I 2016

4. Higher Order Linear DEs

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

Convergence of Sequences

(1 + 2y)y = x. ( x. The right-hand side is a standard integral, so in the end we have the implicit solution. y(x) + y 2 (x) = x2 2 +C.

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.

Geometric Series and the Ratio and Root Test

Math53: Ordinary Differential Equations Autumn 2004

First Order Linear Ordinary Differential Equations

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

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

Math 3313: Differential Equations Second-order ordinary differential equations

MA Ordinary Differential Equations

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

Second-Order Linear ODEs

Theory of Higher-Order Linear Differential Equations

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

Nonhomogeneous Equations and Variation of Parameters

Homework 3 Solutions Math 309, Fall 2015

Chapter 3: Second Order Equations

Chapter 7. Homogeneous equations with constant coefficients

Second order Unit Impulse Response. 1. Effect of a Unit Impulse on a Second order System

Systems of differential equations Handout

On linear and non-linear equations.(sect. 2.4).

Math 307 Lecture 19. Laplace Transforms of Discontinuous Functions. W.R. Casper. Department of Mathematics University of Washington.

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

Higher Order Linear Equations

MATH 24 EXAM 3 SOLUTIONS

Linear Differential Equations. Problems

Convergence of Sequences

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

The First Derivative and Second Derivative Test

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

Second Order Differential Equations Lecture 6

The First Derivative and Second Derivative Test

M343 Homework 6. Enrique Areyan May 31, 2013

1. (10 points) Find the general solution to the following second-order differential equation:

Section 4.7: Variable-Coefficient Equations

A Simple Protein Synthesis Model

Worksheet # 2: Higher Order Linear ODEs (SOLUTIONS)

MB4018 Differential equations

Homogeneous Equations with Constant Coefficients

dx n a 1(x) dy

Transcription:

The Method of Undetermined Coefficients. James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University May 24, 2017

Outline 1 Annihilators 2 Finding The Annihilator L(D) 3 Linear Models with Forcing Functions

Abstract This lecture is about the method of undetermined coefficients for linear ODE.

Annihilators The standard exponential growth/ decay model x = r x; x(0) = A is the same as x r x = 0; x(0) = A (D r)(x) = 0; x(0) = A. Thus, x = 3 x; x(0) = A (D 3)(x) = 0; x(0) = A. x = 2 x; x(0) = A (D + 2)(x) = 0; x(0) = A.

Annihilators Definition Let L(D) be a differential operator for a linear ordinary differential equation. Then L(D) = a 0 D n + a n 1 D n 1 + + a n 1 i.e. L(D) is a n th degree polynomial in D and so the characteristic equation has n roots. The kernel of L(D) is the set of all functions f such that L(D)(f ) = 0. We denote the kernel of L(D) by ker(l(d). L(D) = D 2. Then ker(d 2) = {f : f (t) = Ae 2t } where A is an arbitrary real number. Since every function in ker(d 2) is a multiple of e 2t we say e 2t is a basis for the kernel of D 2. We denote this by writing ker(d 2) =< e 2t >.

Annihilators L(D) = D + 2. Then ker(d + 2) = {f : f (t) = Ae 2t } where A is an arbitrary real number. Since every function in ker(d + 2) is a multiple of e 2t we say e 2t is a basis for the kernel of D + 2. We denote this by writing ker(d + 2) =< e 2t >. L(D) = D. Then ker(d) = {f : f (t) = Ae 0t } = {f : f (t) = A 1} where A is an arbitrary real number. Since every function in ker(d) is a multiple of the constant function 1 we say 1 is a basis for the kernel of D. We denote this by writing ker(d) =< 1 >.

Annihilators L(D) = D 2. Then since the root 0 occurs twice ker(d 2 ) = {f : f (t) = Ae 0t + Bte 0t } = {f : A 1 + B t} where A and B are arbitrary real numbers. Since every function in ker(d 2 ) is a combination of 1 and t, we say {1, t} is a basis for the kernel of D 2. We denote this by writing ker(d 2 ) =< 1, t >. L(D) = D 3. Then since the root 0 occurs three times, an argument similar to what we have already done for roots repeated two times shows ker(d 3 ) = {f : f (t) = Ae 0t + Bte 0t + Ct 2 e 0t } = {f : A 1 + B t + C t 2 } where A, B and C are arbitrary real numbers. Since every function in ker(d 3 ) is a combination of 1, t and t 2 we say {1, t, t 2 } is a basis for the kernel of D 3. We denote this by writing ker(d 3 ) =< 1, t, t 2 >.

Annihilators L(D) = (D 3) 2. Then since the root 3 occurs twice ker((d 3) 2 ) = {f : f (t) = Ae 3t + Bte 3t } where A and B are arbitrary real numbers. Since every function in ker((d 3) 2 ) is a combination of e 3t and te 3t, we say {e 3t, te 3t } is a basis for the kernel of (D 3) 2. We denote this by writing ker((d 3) 2 ) =< e 3t, te 3t >. L(D) = D 2 + 4. The root now is pure imaginary, ±2i and so ker(d 2 + 4) = {f : f (t) = A cos(2t) + B sin(2t)} where A and B are arbitrary real numbers. Since every function in ker(d 2 + 4) is a combination of cos(2t) and sin(2t) we say {cos(2t), sin(2t)} is a basis for the kernel of D 2 + 4. We denote this by writing ker(d 2 + 4) =< cos(2t), sin(2t) >.

Annihilators L(D) = (D 2 + 4) 2. The root now is pure imaginary, ±2i and is repeated. Hence, the complex solutions are combinations of e 2i t, te 2i t and e 2i t, te 2i t. Our argument from before allows us to find real solutions which are combinations of cos(2t), t cos(2t), sin(2t) and t sin(2t). Thus ker((d 2 + 4) 2 ) = {f : f (t) = A cos(2t) + B sin(2t) +Ct cos(2t) + Dt sin(2t)} where A, B, C and D are arbitrary real numbers. Since every function in ker((d 2 + 4) 2 ) is a combination of cos(2t), sin(2t), t cos(2t) and t sin(2t), we say {cos(2t), t cos(2t), sin(2t), t sin(2t)} is a basis for the kernel of (D 2 + 4) 2. We denote this by writing ker((d 2 + 4) 2 ) =< cos(2t), sin(2t), t cos(2t), t sin(2t) >.

Annihilators L(D) = D 2 2D + 5. The roots are 1 ± 2i and so ker(d 2 2D + 5) = {f : f (t) = A cos(2t)e t + B sin(2t)e t } where A and B are arbitrary real numbers. We say {cos(2t)e t, sin(2t)e t } is a basis for the kernel of D 2 2D + 5. Hence, ker(d 2 2D + 5) =< cos(2t)e t, sin(2t)e t >. L(D) = (D 2 2D + 5) 2. The roots 1 ± 2i that occurs twice and so ker((d 2 2D + 5) 2 ) = {f : f (t) = A cos(2t)e t + B sin(2t)e t +Ct cos(2t)e t + Dt sin(2t)} where A, B, C and D are arbitrary real numbers. We say {cos(2t)e t, sin(2t)e t, t cos(2t)e t, t sin(2t)e t } is a basis for the kernel of (D 2 2D + 5) 2. Thus, ker((d 2 + 4) 2 ) =< cos(2t)e t, sin(2t)e t, t cos(2t)e t, t sin(2t)e t >.

Annihilators Definition Let L(D) be a differential operator for a linear ordinary differential equation. Then L(D) = a 0 D n + a n 1 D n 1 + + a n 1 i.e. L(D) is a n th degree polynomial in D and so the characteristic equation has n roots. The functions in the basis of L(D) are said to be annihilated by L(D). Equivalently, we say L(D) annihilates each function in the basis of ker(l(d)). We also say L(D) is an annihilator of each function in the basis of ker(l(d)). L(D) = D 2. Then ker(d 2) =< e 2t >. Hence, D 2 is an annihilator of e 2t.

Annihilators L(D) = D + 2. Then ker(d + 2) =< e 2t >. So D + 2 is an annihilator of e 2t. L(D) = D. Then ker(d) =< 1 >. So D is an annihilator of 1. L(D) = D 2. Then ker(d 2 ) =< 1, t >. So D 2 annihilates any polynomial A + Bt, ie D 2 annihilates 1 and t and any linear combination of them. L(D) = D 3. Then ker(d 3 ) =< 1, t, t 2 >. So D 3 annihilates any polynomial A + Bt + Ct 2, ie D 3 annihilates 1, t and t 2 and any linear combination of them.

Annihilators L(D) = (D 3) 2. Then ker((d 3) 2 ) =< e 3t, te 3t >. So (D 3) 2 annihilates e 3t and te 3t and any linear combination of them. L(D) = D 2 + 4. Then ker(d 2 + 4) =< cos(2t), sin(2t) >. So D 2 + 4 annihilates cos(2t) and sin(2t) and any linear combination of them. L(D) = (D 2 + 4) 2. Then ker((d 2 + 4) 2 ) =< cos(2t), sin(2t), t cos(2t), t sin(2t) >. So (D 2 + 4) 2 annihilates cos(2t), sin(2t), t sin(2t) and t cos(2t) and any linear combination of them.

Annihilators L(D) = D 2 2D + 5. Then ker(d 2 2D + 5) =< cos(2t)e t, sin(2t)e t >. So D 2 2D + 5 annihilates cos(2t)e t and sin(2t)e t and any linear combination of them. L(D) = (D 2 2D + 5) 2. Then ker((d 2 2D + 5) 2 ) =< cos(2t)e t, sin(2t)e t, t cos(2t)e t, t sin(2t)e t > So (D 2 2D + 5) 2 annihilates cos(2t)e t, sin(2t)e t, t cos(2t)e t and t sin(2t)e t and any linear combination of them. L(D) = D 2 9 = (D + 3)(D 3). Then ker(d 3) =< e 3t > and ker(d + 3) =< e 3t >. Thus, ker(d 2 9) =< e 3t, e 3t >. So D 2 9 annihilates e 3t and e 3t and any linear combination of them.

Annihilators L(D) = D 2 + 5D + 6 = (D + 2)(D + 3). Then ker(d + 2) =< e 2t > and ker(d + 3) =< e 3t >. Thus, ker(d 2 + 5D + 6) =< e 2t, e 3t >. So D 2 9 annihilates e 2t and e 3t and any linear combination of them. L(D) = (D 2 + 5D + 6)(D 2 + 4) = (D + 2)(D + 3)(D 2 + 4). Then ker(d + 2) =< e 2t >, ker(d + 3) =< e 3t > and ker(d 2 + 4) =< cos(2t), sin(2t) >. Thus, ker((d 2 + 5D + 6)(D 2 + 4)) =< e 2t, e 3t, cos(2t), sin(2t) >. So (D 2 + 5D + 6)(D 2 + 4) annihilates e 2t, e 3t, cos(2t) and sin(2t). and any linear combination of them. We can clearly find the kernel of differential operators of this type by factoring and finding the kernels of each factor. This tells us the functions the operator annihilates.

Annihilators Homework 26 26.1 For L(D) = (D 2 + 9) 2, find its kernel and the basis of the kernel. and find the functions L(D) annihliates. 26.2 For L(D) = D + 4, find its kernel and the basis of the kernel. and find the functions L(D) annihliates. 26.3 For L(D) = (D 5) 2, find its kernel and the basis of the kernel. and find the functions L(D) annihliates. 26.4 For L(D) = (D + 3) 2 + 16, find its kernel and the basis of the kernel. and find the functions L(D) annihliates. 26.5 For L(D) = (D 2 + 16)(D 2 ), find its kernel and the basis of the kernel. and find the functions L(D) annihliates.

Finding The Annihilator L(D) What is the annihilator of 2 + 4t + 5t 2? Solution D 3 annihilates cubic polynomials. What is the annihilator of 2 + 4t + t cos(3t)? Solution We need D 2 to annihilate 2 + 4t and we need (D 2 + 9) 2 to annihilate t cos(3t). So the annihilator is D 2 (D 2 + 9) 2.

Finding The Annihilator L(D) Homework 27 27.1 Find the annihilator of 3 + 2t 3 + e 3t cos(5t). 27.2 Find the annihilator of sin(4t) + e 3t cos(5t). 27.3 Find the annihilator of t 2 sin(5t). 27.4 Find the annihilator of 10 + t 4. 27.5 Find the annihilator of 4 cos(t) + 5 sin(2t) 7t cos(5t).

Linear Models with Forcing Functions Definition For any linear differential operator L(D) which is a polynomial in D, the homogeneous model is L(D)(x) = 0, plus initial conditions The nonhomogeneous model has the form L(D)(x) = f, plus initial conditions where f is called the forcing function. Of course, if f = 0 the homogeneous and nonhomogeneous models are the same. Comment The forcing function is also the input function or just input.

Linear Models with Forcing Functions We already know how to solve the homogeneous IVP. If the degree of the polynomial L(D) is n, we need n IC s: x(0) = x 0, x (1) (0) = x 1 x (2) (0) = x 2, x (3) (0) = x 3. =. x (n 2) (0) = x n 2, x (n 1) (0) = x n 1 where x (i) is the i th derivative of x. Factor L(D) by finding the roots of the characteristic polynomial. The ker(l(d) is the general solution and involves n unknown constants. Use the ICS to find the values of the constants.

Linear Models with Forcing Functions Solve the problem x + 5x + 6 = 0, x(0) = 2 and x (0) = 3. Solution We know ker(d 2 + 5D + 6) = ker((d + 2)(D + 3)) and so any function in the kernel has the form Ae 2t + Be 3t which is exactly the form we have used for the general solution. Note the roots of the characteristic equation r 2 + 5r + 6 = 0 are just another way to find the kernel of this linear differential operator. We can then use the ICs to find A and B like usual. Solving a model with a third or higher derivative term in it is no different in principle. Once we have the roots to the characteristic polynomial we are essentially done.

Linear Models with Forcing Functions Definition For any linear differential operator L(D) which is a polynomial in D, the general solution to the homogeneous model L(D)(x) = 0 is denoted x h and any solution to the nonhomogeneous model, L(D)(x) = f, is called x p where the p means it is a particular solution to the nonhomogeneous model. At this point the ICs have not yet been used. The general solution to the nonhomogeneous model is then x = x h + x p. The ICS are then used with the general solution to determine the arbitrary constants. Solve the problem x + 5x + 6 = 2 + 3t, x(0) = 2 and x (0) = 3.

Linear Models with Forcing Functions Solution We know ker(d 2 + 5D + 6) = ker((d + 2)(D + 3)) and so any function in the kernel has the form Ae 2t + Be 3t which is exactly the form we have used for the general solution. Hence, x h (t) = Ae 2t + Be 3t To find x p, note that D 2 annihilates the forcing function f (t) = 2 + 3t. Then ker(d 2 ) = {1, t} and any function in the kernel has the form C + Dt. Apply D 2 to the inhomogeneous model to get D 2 (D 2 + 5D + 6) = D 2 (2 + 3t) = 0 The kernel of D 2 (D 2 + 5D + 6) =< 1, t, e 2t, e 3t >

Linear Models with Forcing Functions Solution The kernel of the annihilator of the forcing function and the kernel of the model do not overlap. So guess x p (t) = C + Dt which is the general form of the kernel of the annihilator of the forcing function. x p must solve the nonhomogeneous model, so calculate (D 2 + 5D + 6)(C + Dt) = 0 + 5D + 6(C + Dt) and set this equal to the forcing function 2 + 3t. We get. (5D + 6C) + 6Dt = 2 + 3t

Linear Models with Forcing Functions Solution The only way this is true is if the coefficients of each power of t match. So we get 5D + 6C = 2, 6D = 3 and so D = 1/2 and C = 1/12. So x p (t) = (1/2) + (1/12)t So x = x h + x p = x(t) = Ae 2t + B 3t + (1/2) + (1/12)t Now apply ICs. x(0) = 2 = A + B + (1/2) x (0) = 3 = 2A 3B + (1/12) or A + B = 3/2 2A 3B = 3 (1/12) = 37/12

Linear Models with Forcing Functions Solution [ ] [ ] 1 1 A 2 3 B = [ ] 3/2 37/12 By Cramer s rule ([ ]) ([ ]) 3/2 1 1 1 A = det / det( 37/12 3 2 3 = ( 9/2 + 37/12)/( 1) = 17/12 ([ ]) ([ ]) 1 3/2 1 1 B = det / det( 2 37/12 2 3 = ( 37/12 + 6/2)/( 1) = 1/12 So x(t) = (17/12)e 2t + (1/12)e 3t + (1/2) + (1/12)t

Linear Models with Forcing Functions Solve the problem x + 5x + 6 = 2 + 3t + 10e 3t, x(0) = 2 and x (0) = 3. Solution We know ker(d 2 + 5D + 6) = ker((d + 2)(D + 3)) and so any function in the kernel has the form Ae 2t + Be 3t which is exactly the form we have used for the general solution. Hence, x h (t) = Ae 2t + Be 3t To find x p, note that D 2 (D + 3) annihilates the forcing function f (t) = 2 + 3t + 10e 3t.

Linear Models with Forcing Functions Solution Apply D 2 (D + 3) to the inhomogeneous model to get D 2 (D + 3)(D 2 + 5D + 6) = D 2 (D + 3)(2 + 3t + 10e 3t ) = 0 Factoring, we see D 2 (D + 3)(D 2 + 5D + 6) = D 2 (D + 3) 2 (D + 2) The kernel of D 2 (D + 3) 2 (D + 2) =< 1, t, e 2t, e 3t, te 3t >. The forcing function s annihilator involves D 2 and D + 3. So the part of D 2 (D + 3) 2 (D + 2) we need to keep is everything related to D and D + 3. So we keep D 2 (D + 3) 2. The kernel of D 2 (D + 3) 2 is < 1, t, e 3t, te 3t > and the general form of a function in this kernel is what we choose for x p. Thus, x p (t) = A + Bt + Ce 3t + Ete 3t

Linear Models with Forcing Functions Solution Apply D 2 + 5d + 6 to x p. We will skip some of the steps here, so do them yourself. D 2 + 5D + 6(A + Bt + (C + Et)e 3t ) = D 2 (A + Bt) + D 2 (C + Et)e 3t ) +5D(A + Bt) + 5D(C + Et)e 3t ) +6A + 6Bt + 6(C + Et)e 3t = (9C 6E + 9Et)e 3t + 5B + 5(E 3C 3Et)e 3t = +6A + 6Bt + 6(C + Et)e 3t Equating coefficients of 1, t, e 3t and te 3t, we have E = 10, A = 1/12 and B = 1/2. Hence x p (t) = (1/12) + (1/2)t 10te 3t

Linear Models with Forcing Functions Solution Now use ICs, Recall x h (t) = Ae 2t + Be 3t. So 2 = x(0) = x h (0) + x p (0) = A + B (1/12) 3 = x (0) + x (0) = 2A 3B 10 We then find A and B like usual

Linear Models with Forcing Functions Homework 28 28.1 Solve x + 4x + 4x = 1 + 3t, x(0) = 2, x (0) = 4. 28.2 Solve x 4x 8x = 2 sin(2t), x(0) = 1, x (0) = 1. 28.3 Solve x + 4x + 13x = 40, x(0) = 2, x (0) = 4.