Math 385 Supplement: the method of undetermined

Similar documents
The Method of Partial Fractions Math 121 Calculus II Spring 2015

2 Integrating Both Sides

19.6. Finding a Particular Integral. Introduction. Prerequisites. Learning Outcomes. Learning Style

Integrals of Rational Functions

Vieta s Formulas and the Identity Theorem

Nonhomogeneous Linear Equations

r (t) = 2r(t) + sin t θ (t) = r(t) θ(t) + 1 = 1 1 θ(t) Write the given system in matrix form x = Ax + f ( ) sin(t) x y z = dy cos(t)

How To Understand The Theory Of Algebraic Functions

1.5. Factorisation. Introduction. Prerequisites. Learning Outcomes. Learning Style

1.7. Partial Fractions Rational Functions and Partial Fractions. A rational function is a quotient of two polynomials: R(x) = P (x) Q(x).

1 Lecture: Integration of rational functions by decomposition

is identically equal to x 2 +3x +2

Math 4310 Handout - Quotient Vector Spaces

JUST THE MATHS UNIT NUMBER 1.8. ALGEBRA 8 (Polynomials) A.J.Hobson

Partial Fractions. (x 1)(x 2 + 1)

Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.

a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

Differentiation and Integration

Polynomial Invariants

Zeros of Polynomial Functions

Separable First Order Differential Equations

tegrals as General & Particular Solutions

LS.6 Solution Matrices

Click on the links below to jump directly to the relevant section

4.5 Linear Dependence and Linear Independence

Objectives. Materials

Microeconomic Theory: Basic Math Concepts

Lagrange Interpolation is a method of fitting an equation to a set of points that functions well when there are few points given.

Solving DEs by Separation of Variables.

Section 4.4. Using the Fundamental Theorem. Difference Equations to Differential Equations

Linear and quadratic Taylor polynomials for functions of several variables.

3.3. Solving Polynomial Equations. Introduction. Prerequisites. Learning Outcomes

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style

Linearly Independent Sets and Linearly Dependent Sets

INTEGRATING FACTOR METHOD

Integration ALGEBRAIC FRACTIONS. Graham S McDonald and Silvia C Dalla

Techniques of Integration

Discrete Mathematics: Homework 7 solution. Due:

Methods of Solution of Selected Differential Equations Carol A. Edwards Chandler-Gilbert Community College

Equations, Inequalities & Partial Fractions

Class Meeting # 1: Introduction to PDEs

3.6. Partial Fractions. Introduction. Prerequisites. Learning Outcomes

Math 120 Final Exam Practice Problems, Form: A

1. First-order Ordinary Differential Equations

To add fractions we rewrite the fractions with a common denominator then add the numerators. = +

Factoring Polynomials

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

Solving Cubic Polynomials

What does the number m in y = mx + b measure? To find out, suppose (x 1, y 1 ) and (x 2, y 2 ) are two points on the graph of y = mx + b.

1 Shapes of Cubic Functions

Chapter 20. Vector Spaces and Bases

Week 2: Exponential Functions

The Division Algorithm for Polynomials Handout Monday March 5, 2012

TOPIC 4: DERIVATIVES

Week 1: Functions and Equations

Factoring Polynomials and Solving Quadratic Equations

How To Solve A Linear Dierential Equation

Solving Quadratic Equations

The Mean Value Theorem

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

Recognizing Types of First Order Differential Equations E. L. Lady

is identically equal to x 2 +3x +2

Polynomials and Factoring

Integration by substitution

Inner Product Spaces

5 Scalings with differential equations

Linear Equations in One Variable

College Algebra - MAT 161 Page: 1 Copyright 2009 Killoran

Algebra I Notes Relations and Functions Unit 03a

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

COMPLEX NUMBERS. a bi c di a c b d i. a bi c di a c b d i For instance, 1 i 4 7i i 5 6i

3. KINEMATICS IN TWO DIMENSIONS; VECTORS.

Wentzville School District Algebra 1: Unit 8 Stage 1 Desired Results

FACTORING QUADRATICS and 8.1.2

SECOND-ORDER LINEAR DIFFERENTIAL EQUATIONS

3.2 The Factor Theorem and The Remainder Theorem

Review of Fundamental Mathematics

5 Numerical Differentiation

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

Second Order Linear Differential Equations

FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover)

The Convolution Operation

100. In general, we can define this as if b x = a then x = log b

H/wk 13, Solutions to selected problems

2.2 Derivative as a Function

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

Homogeneous systems of algebraic equations. A homogeneous (ho-mo-geen -ius) system of linear algebraic equations is one in which

u dx + y = 0 z x z x = x + y = 0 6) 2

Reducibility of Second Order Differential Operators with Rational Coefficients

A Brief Review of Elementary Ordinary Differential Equations

General Theory of Differential Equations Sections 2.8, , 4.1

Math 55: Discrete Mathematics

System of First Order Differential Equations

Zeros of Polynomial Functions

correct-choice plot f(x) and draw an approximate tangent line at x = a and use geometry to estimate its slope comment The choices were:

Lecture 3 : The Natural Exponential Function: f(x) = exp(x) = e x. y = exp(x) if and only if x = ln(y)

Partial Fractions. p(x) q(x)

THE FUNDAMENTAL THEOREM OF ALGEBRA VIA PROPER MAPS

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

So far, we have looked at homogeneous equations

Transcription:

Math 385 Supplement: the method of undetermined coefficients It is relatively easy to implement the method of undetermined coefficients as presented in the textbook, but not easy to understand why it works. This handout explains the idea behind the method, and is aimed at those students who want to understand mathematics at a deeper level. Review of homogeneous equations The homogeneous constant coefficient linear equation a n y (n) + +a 1 y +a 0 y = 0 has the characteristic polynomial a n r n + +a 1 r+a 0 = 0. From the roots r 1,..., r n of the polynomial we can construct the solutions y 1,..., y n, such as y 1 = e r1x. We can also rewrite the equation in a weird-looking but useful way, using the symbol D = d dx. Examples: equation: y 5y + 6y = 0. polynomial: r 2 5r + 6 = 0. (factored): (r 2)(r 3) = 0. roots: 2, 3 weird-looking form of equation: (D 2)(D 3)y = 0 or (D 2 5D + 6)y = 0. linearly independent solutions: y 1 = e 2x, y 2 = e 3x. general solution: y = c 1 e 2x + c 2 e 3x. equation: y + 10y + 25y = 0. polynomial: r 2 + 10r + 25 = 0. (factored): (r + 5) 2 = 0. roots: 5, 5 weird-looking form of equation: (D + 5) 2 y = 0 or (D 2 + 10D + 25)y = 0. linearly independent solutions: y 1 = e 5x, y 2 = xe 5x. general solution: y = c 1 e 5x + c 2 xe 5x. equation: y 4y + 8y = 0. polynomial: r 2 4r + 8 = 0. (factored): (r 2 2i)(r 2 + 2i) = 0. roots: 2 + 2i, 2 2i w-l. f. of equation: (D 2 2i)(D 2 + 2i)y = 0 or (D 2 4D + 8)y = 0. linearly independent solutions: y 1 = e 2x cos 2x, y 2 = e 2x sin 2x. general solution: y = e 2x (c 1 cos 2x + c 2 sin 2x). equation: (already in a weird-looking form) (D 2 + 1) 2 (D 1) 3 y = 0. polynomial: (r 2 + 1) 2 (r 1) 3 y = 0. roots: i, i, i, i, 1, 1, 1. general solution: y = (c 1 + c 2 x) cos x + (c 3 + c 4 x) sin x + (c 5 + c 6 x + c 7 x 2 )e x. Annihilators If f is a function, then the annihilator of f is a differential operator L = a n D n + + a n D + a 0 with the property that Lf = 0. By reversing the thought process we use for homogeneous equations, we can easily find the annihilator for lots of functions: Examples function: f(x) = e x annihilator: L = (D 1) check: (D 1)f = De x e x = d dx ex e x = 0. 1

2 function: f(x) = x 2 e 7x annihilator: L = (D 7) 3 function: f(x) = e x cos 4x. corresponding root of polynomial : 1 ± 4i. polynomial with this root: (r + 1 + 4i)(r + 1 4i) = r 2 + 2r + 5. annihilator: L = D 2 + 2D + 5. function: f(x) = x k e αx. corresponding root of polynomial : α (with multiplicity k + 1)) corresponding polynomial: (r α) k+1. annihilator: L = (D α) k+1. function: f(x) = x k e ax sin bx. corresponding root of polynomial : a ± bi (with multiplicity (k + 1) polynomial with this root: ((r a bi)(r a+bi)) k+1 = (r 2 2ar+(a 2 +b 2 )) k+1. annihilator: L = (D 2 2aD + (a 2 + b 2 )) k+1. function: e x + cos 2x. To do this one, note that if L 1 annihilates f 1, and L 2 annihilates f 2, then L 1 L2 annihilates f 1 + f 2. This is true because L 1 L2 (f 1 + f 2 ) = L 1 L2 f 1 + L 1 L2 f 2 = L 1 L2 f 1 + 0 = L 2 L1 f 1 = 0. So the annihilator is (D 1)(D 2 + 4). (You can also check directly that this works.) The Method of Undetermined Coefficients To find a particular solution of the equation Ly = f, we want to guess the correct form of y p and then substitute and adjust the coefficients to get a solution. How do we determine the correct form? Consider the following... Let L denote the annihilator of f. By definition Lf = 0. If y is a solution of Ly = f, then 0 = Lf = L(Ly). That is, y is also a solution of the homogeneous equation LLy = 0. We can call this the annihilator equation associated with the original equation Ly = f. We know how to find all solutions of the annihilator equation (since it is a constant coefficient homogeneous DE), and this will tell us the correct form for our guess. So we have the following procedure for determining the particular solution y p of Ly = f: Step 1. Find the annihilator for f. Call it L. Step 2. Let y a denote the general solution of the annihilator equation LLy a = 0. Find y a Step 3 Find the general solution y c of the complementary homogeneous equation Ly c = 0. Step 4 Our guess y p will consist of the general solution y a of the annihilator equation except with all terms from the complementary solution y c omitted. (Finally, of course, the general solution of Ly = f is y c + y p.)

3 Remark Suppose we have an equation with a complicated right-hand side consisting of more than one term, which we can write symbolically as Ly = f 1 + f 2. One way to deal with this is to consider each of the two terms on the right-hand side separately. In other words, suppose we can find functions y 1 and y 2 that solve Ly 1 = f 1, Ly 2 = f 2. Then let y = y 1 + y 2. We claim that y solves our original problem. This is easy to check, since Ly = L(y 1 + y 2 ) = L(y 1 ) + L(y 2 ) = f 1 + f 2 by linearity of the equation. For example, equation 4 below is y (5) y = e x + 2x 2 + 5. We could break the right-hand side up into two pieces: f 1 = e x, f 2 = 2x 2 + 5. Then by going through my procedure, we would find (guess for f 1 ) : y p,1 = Axe x, (guess for f 2 ) : y p,2 = Bx 3 + Cx 4 + Dx 5 and so (guess for whole problem) y p = Axe x + Bx 3 + Cx 4 + Dx 5. Examples equation 1: y + 4y + 4y = 2e x, equivalently (D + 2) 2 y = 2e x, or Ly = 2e x for L = (D 2 + 4D + 4). Step 1: annihilator of right-hand side: L = (D 1) Step 2: If we apply the operator L = D 1 to both sides of the equation y + 4y + 4y = 2e x, we get (D 1)(D 2 + 4D + 4)y = (D 1)(2e x ) = d dx (2ex ) 1 2e x = 0. So the annihilator equation is (D 1)(D + 2) 2 y a = 0. We could have found this by just using the general expression for the annihilator equation: LLya = 0. The general solution of the annihilator equation is y a = c 1 e x + (c 2 + c 3 x)e 2x. Step 3: general solution of complementary equation is y c = (c 2 + c 3 x)e 2x. Step 4: So we guess y p = c 1 e x. If we substitute y p = c 1 e x into the equation then we find Ly p = y p + 4y p + 4y p = 9c 1 e x. So to solve Ly p = 2e x we have to take c 1 = 2/9. Then we get the solution y = 2 9 ex. What happens if instead we substitute y = y a = c 1 e x + (c 2 + c 3 x)e 2x into the equation? If we do this and do all the calculations, we ll find that Ly = y + 4y + 4y = 9c 1 e x. So to solve Ly = 2e x we have to take c 1 = 2/9. But there are no conditions on c 2, c 3, so they can be anything. So this gives us the general solution of the inhomogeneous equation: y = 2 9 ex + (c 2 + c 3 x)e 2x.

4 So we see: if we substitute y p into the equation and solve for the undetermined coefficients we get a particular solution. If we substitute y a into the equation and try to solve, we get the general solution. However, in practice it is much better to substitute y p, because the algebra is much simpler. equation 2: y + 4y + 4y = e 2x, equivalently (D + 2) 2 y = e 2x, or Ly = e 2x for L = (D 2 + 4D + 4). Step 1: annihilator of right-hand side: L = (D + 2) Step 2: If we apply the operator L = D + 2 to both sides of the equation y + 4y + 4y = e 2x, we get (D + 2)(D + 2) 2 y = (D + 2)(e 2x ) = d dx (e 2x ) + 2 e 2x = 0. So the annihilator equation is (D 2) 3 y a = 0. Again we could have found this just from the formula LLy a = 0. The general solution of the annihilator equation is y a = (c 1 + c 2 x + c 3 x 2 )e 2x. Step 3: general solution of complementary equation is y c = (c 2 + c 3 x)e 2x. Step 4: So we guess y p = c 1 x 2 e 2x. As above: if we substitute y p into the equation and solve for the undetermined coefficients we get a particular solution. If we substitute y a into the equation and try to solve, we get the general solution. However, in practice it is much better to substitute y p, because the algebra is much simpler. equation 3: y + 9y = x 2 sin 3x, equivalently (D + 3i)(D 3i)Dy = x 2 sin 3x, or Ly = x 2 sin 3x for L = (D 2 + 9)D. Step 1: annihilator of right-hand side: L = (D 2 + 9) 3 Step 2: annihilator equation is LLy a = 0, i.e. (D 2 + 9) 4 Dy a = 0, i.e. (D 2) 4 Dy a = 0. General solution is y a = (A + Bx + Cx 2 + Dx 3 ) cos 3x + (E + F x + Gx 2 + Hx 3 ) sin x + K Step 3: general solution of complementary equation is y c = A cos 3x + B sin xc. Step 4: So we guess y p = (Bx + Cx 2 + Dx 3 ) cos 3x + (F x + Gx 2 + Hx 3 ) sin x. equation 4: y (5) y = e x + 2x 2 + 5. We can write the left-hand side as (D 5 D 3 )y = D 3 (D 1)(D + 1)y. Step 1: annihilator of right-hand side: L = (D 1)D 3. Step 2: annihilator equation is LLy a = 0, i.e. D 6 (D 1) 2 (D+1)y a = 0. General solution is y a = A + Bx + Cx 2 + Dx 3 + Ex 4 + F x 5 + (G + Hx)e x + Ie x. Step 3: general solution of complementary equation is y c = A + Bx + Cx 2 + De x + Ee x Step 4: So we guess y p = Ax 3 + Bx 4 + Cx 5 + Dxe x. equation 5: y 6y + 13y = xe 3x sin 2x. We can write the left-hand side as (D 3 + 2i)(D 3 2i)y or as (D 2 6D + 13)y. Step 1: annihilator of right-hand side: the function xe 3x sin 2x corresponds to the root 3 ± 2i, repeated twice (because of the factor of x). So L = ((D 3 + 2i)(D 3 2i)) 2 = (D 2 6D + 13) 2. Step 2: annihilator equation is LLy a = 0, i.e. (D 2 6D + 13) 3 y a = 0. General solution is y a = (A + Bx + Cx 2 )e 3x cos 2x + (D + Ex + F x 2 )e 3x sin 2x. Step 3: general solution of complementary equation is y c = Ae 3x cos 2x + Be 3x sin 2x.

5 Step 4: So we guess y p = (Bx + Cx 2 )e 3x cos 2x + (Ex + F x 2 )e 3x sin 2x. equation 6: y (4) 2y +y = x 2 cos x. We can write the left-hand side as (D 2 1) 2 y or as (D 1) 2 (D + 1) 2 y. Step 1: annihilator of right-hand side: the function x 2 cos x corresponds to the root i, repeated three times (because of the factor of x 2 ). So L = ((D i)(d+i)) 3 = (D 2 + 1) 3. Step 2: annihilator equation is LLy a = 0, i.e. ((D i)(d + i)) 3 (D 1) 2 (D + 1) 2 y a = 0. General solution is y a = (A + Bx + Cx 2 ) cos x + (D + Ex + F x 2 ) sin x + (G + Hx)e x + (I + Jx)e x. Step 3: general solution of complementary equation is y c = (A + Bx)e x + (C + Dx)e x. Step 4: So we guess y p = (A + Bx + Cx 2 ) cos x + (D + Ex + F x 2 ) sin x.