The Method of Undetermined Coefficients and the Shifting Rule. Math 5330, Spring 1996

Similar documents
Math 2142 Homework 5 Part 1 Solutions

Atoms An atom is a term with coefficient 1 obtained by taking the real and imaginary parts of x j e ax+icx, j = 0, 1, 2,...,

A Brief Review of Elementary Ordinary Differential Equations

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

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

Solutions to Exam 2, Math 10560

Alan H. SteinUniversity of Connecticut. Linear Differential Equations With Constant Coefficients

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

Ordinary Differential Equations

Solution of Constant Coefficients ODE

Integration by Parts

ODE classification. February 7, Nasser M. Abbasi. compiled on Wednesday February 07, 2018 at 11:18 PM

MATH 312 Section 4.5: Undetermined Coefficients

Chapter 3. Reading assignment: In this chapter we will cover Sections dx 1 + a 0(x)y(x) = g(x). (1)

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

Mathematics 104 Fall Term 2006 Solutions to Final Exam. sin(ln t) dt = e x sin(x) dx.

Theory of Higher-Order Linear Differential Equations

0.1 Problems to solve

McGill University Math 325A: Differential Equations LECTURE 12: SOLUTIONS FOR EQUATIONS WITH CONSTANTS COEFFICIENTS (II)

MA Ordinary Differential Equations

Tangent Lines Sec. 2.1, 2.7, & 2.8 (continued)

Ordinary Differential Equations

Math 2Z03 - Tutorial # 6. Oct. 26th, 27th, 28th, 2015

arxiv: v1 [math.gm] 16 Feb 2018

B Ordinary Differential Equations Review

IV Higher Order Linear ODEs

Math 2Z03 - Tutorial # 4. Oct. 5th, 6th, 7th, 2015

Solving Quadratic Equations

Review for Exam 2. Review for Exam 2.

Math 240 Calculus III

Math 601 Solutions to Homework 3

Linear DifferentiaL Equation

Practice Problems: Integration by Parts

Math Assignment 5

MATH 312 Section 4.3: Homogeneous Linear Equations with Constant Coefficients

Math 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

Ordinary Differential Equations (ODEs)

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

5 Linear Dierential Equations

Solutions to Exam 1, Math Solution. Because f(x) is one-to-one, we know the inverse function exists. Recall that (f 1 ) (a) =

WeBWorK, Problems 2 and 3

Math 115 HW #10 Solutions

June 2011 PURDUE UNIVERSITY Study Guide for the Credit Exam in (MA 262) Linear Algebra and Differential Equations

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

Title: Solving Ordinary Differential Equations (ODE s)

Second-Order Homogeneous Linear Equations with Constant Coefficients

Overview of Complex Numbers

Updated: January 16, 2016 Calculus II 7.4. Math 230. Calculus II. Brian Veitch Fall 2015 Northern Illinois University

6 Second Order Linear Differential Equations

2.3 Linear Equations 69

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

Chapter 7: Techniques of Integration

Essential Ordinary Differential Equations

Differential Equations Class Notes

Examples: Solving nth Order Equations

3.4.1 Distinct Real Roots

Math 480 The Vector Space of Differentiable Functions

4 Differential Equations

Math 2250 Lab 08 Lab Section: Class ID: Name/uNID: Due Date: 3/23/2017

Math 21B - Homework Set 8

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

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

MATH 101: PRACTICE MIDTERM 2

Basic Theory of Linear Differential Equations

Lesson 3: Linear differential equations of the first order Solve each of the following differential equations by two methods.

numerical analysis 1

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

General Recipe for Constant-Coefficient Equations

Review For the Final: Problem 1 Find the general solutions of the following DEs. a) x 2 y xy y 2 = 0 solution: = 0 : homogeneous equation.

dx n a 1(x) dy

Math 222 Spring 2013 Exam 3 Review Problem Answers

Solution/Correction standard, second Test Mathematics A + B1; November 7, 2014.

Partial Fractions. (Do you see how to work it out? Substitute u = ax + b, so du = a dx.) For example, 1 dx = ln x 7 + C, x x (x 3)(x + 1) = a

Chapter 13: General Solutions to Homogeneous Linear Differential Equations

dx dx [x2 + y 2 ] = y d [tan x] + tan x = 2x + 2y = y sec 2 x + tan x dy dy = tan x dy dy = [tan x 2y] dy dx = 2x y sec2 x [1 + sin y] = sin(xy)

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

Handbook of Ordinary Differential Equations

Math 221 Notes on Rolle s Theorem, The Mean Value Theorem, l Hôpital s rule, and the Taylor-Maclaurin formula. 1. Two theorems

How to Solve Linear Differential Equations

MATH Test II

Math 304 Answers to Selected Problems

Course Notes for Calculus , Spring 2015

Assignment # 7, Math 370, Fall 2018 SOLUTIONS: y = e x. y = e 3x + 4xe 3x. y = e x cosx.

MATH 31B: MIDTERM 2 REVIEW. sin 2 x = 1 cos(2x) dx = x 2 sin(2x) 4. + C = x 2. dx = x sin(2x) + C = x sin x cos x

Math 240 Calculus III

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

MATH 2250 Final Exam Solutions

2. Second-order Linear Ordinary Differential Equations

P3.C8.COMPLEX NUMBERS

Problems with the Fundamental Theorem of Algebra.

Test #2 Math 2250 Summer 2003

MULTIPLYING TRINOMIALS

The particular integral :

(a) To show f(z) is analytic, explicitly evaluate partials,, etc. and show. = 0. To find v, integrate u = v to get v = dy u =

School of the Art Institute of Chicago. Calculus. Frank Timmes. flash.uchicago.edu/~fxt/class_pages/class_calc.

Note: Final Exam is at 10:45 on Tuesday, 5/3/11 (This is the Final Exam time reserved for our labs). From Practice Test I

MA 262, Fall 2017, Final Version 01(Green)

Math 106: Review for Exam II - SOLUTIONS

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Introduction to Complex Analysis

Transcription:

The Method of Undetermined Coefficients and the Shifting Rule. Math 5330, Spring 1996 In these notes, we will show how to use operator polynomials and the shifting rule to find a particular solution for a linear, constant coefficient, differential equation. This method works for the same class of forcing functions (right hand sides) as the method discussed in the book. This method is computationally more efficient than the method in the book. It does not require you to solve the homogeneous equation first. To use the method, you have to write the equation in operator form. We use D to stand for the differentiation operator, so Dy = y, D 2 y = D[Dy] = y and so forth. Thus we can write the equation y + 3y + 5y = sin(x) in the form We can rewrite this in the form or just where P (D) is the differential operator D 2 y + 3Dy + 5y = sin(x). (D 2 + 3D + 5)y = sin(x) P (D)y = sin(x) P (D) = D 2 + 3D + 5. This operator can be thought of as a polynomial in the differential operator D. In fact, it can be thought of as the result of substituting D for λ in the polynomial P (λ) = λ 2 + 3λ + 5, which is, of course, the characteristic polynomial of the equation. With this notation, we can state the Shifting Rule as follows: Let P (D) be a polynomial in D and let α be a real or complex number. Then, for any sufficiently differentiable function y, we have e αx P (D)y = P (D α)[e αx y]. Note that if we replace α by α, we get the alternate form e αx P (D)y = P (D + α)[e αx y] of the shifting rule, which is often helpful. We ll give some examples of how to apply the shifting rule to find a particular solution in these notes. Polynomial Right Hand Sides. We first consider the case of an equation of the form P (D)y = q(x) where q(x) is a polynomial of degree n. If P (D) has a non-zero constant term, we look for a solution which is a polynomial of the same degree as q(x). (1) Example: (D 2 + 2D + 1)y = x 2 + 1. We look for a solution which is a polynomial of degree 2. Thus, we try y = Ax 2 + Bx + C. 1

For this to be a solution we must have x 2 + 1 = (D 2 + 2D + 1)y = D 2 y + 2Dy + y = 2A + 2[2Ax + B] + [Ax 2 + Bx + C] = 2A + 4Ax + 2B + Ax 2 + Bx + C = Ax 2 + (4A + B)x + (2A + 2B + C) Equating coefficients of the powers of x on both sides we get A = 1 4A + B = 0 2A + 2B + C = 1. The solution of this system of equations is clearly A = 1, B = 4, C = 7. and so our particular solution is y = x 2 4x + 7 The other case to consider is where P (D) has no constant term. In this case, we take out as many factors of D as we can, which reduces the problem to solving a lower order equation and then integrating. The procedure is shown in the next example. (2) Example: (D 2 + 3D)y = x 2. We rewrite the equation as (D + 3)Dy = x 2. Temporarily, let z = Dy. Then z satisfies (D + 3)z = x 2. We can t pull out any more factors of D, so we look for a solution which is a polynomial of the same degree as the right hand side. Thus, we try Plugging this into the equation for z yields x 2 = Dz + 3z This yields the system of equations z = Ax 2 + Bx + C. = 2Ax + B + 3(Ax 2 + Bx + C) = 2Ax + B + 3Ax 2 + 3Bx + 3C = 3Ax 2 + (2A + 3B)x + (B + 3C) 3A = 1 2A + 3B = 0 B + 3C = 0 2

which have the solution Thus, we get Now, recall that z = Dy. Thus We can then find y be taking anti-derivatives: A = 1 3, B = 2 9, C = 2 27. z = 1 3 x2 2 9 x + 2 27. Dy = 1 3 x2 2 9 x + 2 27. y = 1 9 x3 1 9 x2 + 2 27 x (we can take the constant of integration to be zero because we re looking for a particular solution, i.e., just one function that satisfies the equation). Right Hand Sides of the form q(x)e αx. Suppose we have an equation of the form P (D)y = q(x)e αx. where q(x) is a polynomial. To solve this equation, we rewrite it as By the shifting rule, this is the same as e αx P (D)y = q(x). P (D + α)[e αx y] = q(x). If we let Q(D) = P (D + α) and z = e αx y, then z satisfies the equation Q(D)z = q(x). Since the right hand side is a polynomial, we know how to solve this equation. Once we ve found z, we can solve z = e αx y for y, namely y = e αx z. (3) Example: (D 2 + 2D + 1)y = xe 2x. We write the equation in the form (1) P (D)y = xe 2x where (2) P (D) = D 2 + 2D + 1. We rewrite equation (1) in the form By the shifting rule, this is equivalent to e 2x P (D)y = x. P (D + 2)[e 2x y] = x. 3

Temporarily, let z = e 2x y, so P (D + 2)z = x. Now, we calculate P (D + 2) by substituting D + 2 for D in equation (2). This gives P (D + 2) = (D + 2) 2 + 2(D + 2) + 1 = D 2 + 4D + 4 + 2D + 4 + 1 = D 2 + 6D + 9. Thus, z satisfies the equation (3) (D 2 + 6D + 9)z = x. For z, we try a polynomial of the same degree as the right hand side, so we try z = Ax + B. Plugging this into (3) yields x = D 2 z + 6Dz + 9z = 0 + 6(A) + 9(Ax + B) = 6A + 9Ax + 9B This yields the equations and so we have the solution This gives us 9A = 1, 6A + 9B = 0, A = 1 9, B = 2 27. z = 1 9 x 2 27. Recalling that z = e 2x y, we get y = ze 2x. Thus, finally, we get the particular solution y = ( 1 9 x 2 27 )e2x. (4) Example: (D 2 4D + 3)y = 2e x. For the solution, write the equation as P (D)y = 2e x, P (D) = D 2 4D + 3. Move the exponential over to the left hand side and write the equation as e x P (D)y = 2. By the shifting rule, this is the same as P (D + 1)[e x y] = 2. Let z = e x y, so we want to solve the equation P (D + 1)z = 2. 4

Now calculate P (D + 1) as follows: P (D + 1) = (D + 1) 2 4(D + 1) + 3 = D 2 + 2D + 1 4D 4 + 3 = D 2 2D Thus, the equation for z becomes (D 2 2D)z = 2. Since we can factor out a D, we do so and rewrite the equation as Let w = Dz, so we have the equation (D 2)Dz = 2. (D 2)w = 2 for w. Our trial solution should be a polynomial of the same degree as the right hand side. In this case, the right hand side has degree zero, so we want a polynomial of degree zero, i.e., a constant. Thus, we try w = A. Plugging into the equation yields 2 = Dw 2w = 0 2A = 2A so, clearly, A = 1. Thus we have w = 1. Since w = Dz, we have Dz = 1. Anti-differentiation yields z = x. Recalling that z = e x y, we finally have y = ze x = xe x. Right Hand Sides of the Form q(x)e αx cos(βx) or q(x)e αx sin(βx). Consider the equations P (D)y = q(x)e αx cos(βx) P (D)y = q(x)e αx sin(βx) where we assume that α and β are real numbers, q(x) is a polynomial with real coefficients, and that the coefficients of P (D) are real. To deal with these problems, recall that if σ = α+iβ is the complex number with real part α and imaginary part β, then e σx = e αx cos(βx) + ie αx sin(βx). Of course, the independent variable x is always a real number, so this formula is the expression of e σx is terms of its real and imaginary parts. Thus, q(x)e σx = q(x)e αx cos(βx) + iq(x)e αx sin(βx). 5

Since q(x) is always real, we conclude that Now consider the equation q(x)e αx cos(βx) = Re[q(x)e σx ] q(x)e αx sin(βx) = Im[q(x)e σx ] (4) P (D)y = q(x)e αx cos(βx) = Re[q(x)e σx ]. To solve this equation, we find a complex solution of (5) P (D)y = q(x)e σx. Once we ve found the complex solution, we can get a solution of (4) by taking its real part. Similarly, the imaginary part of the solution of (5) is a solution of (6) P (D)y = Im[q(x)e σx ] = q(x)e αx sin(βx). Thus, by solving the complex equation (5) we solve the two real equations (4) and (6) at the same time. We can solve (5) by exactly the same method we used above for exponential right hand sides; the only difference is that we now have to deal with complex coefficients. (5) Example: (D 2 + 2D + 1)y = x sin(2x) We want to solve (7) (D 2 + 2D + 1)y = x sin(2x) The right hand side if of the form q(x)e αx sin(βx) where α = 0 and β = 2. Thus, The complex equation we want to solve is x sin(2x) = Im[xe 2ix ]. (8) (D 2 + 2D + 1)y = xe 2ix. The solution of (7) will be the imaginary part of the solution of equation (8). We write equation (8) as Moving the exponential over gives By the shifting rule, this can be rewritten as Let z = e 2ix y, so we want to solve Next, we calculate P (D)y = xe 2ix, P (D) = D 2 + 2D + 1. e 2ix P (D)y = x. P (D + 2i)[e 2ix y] = x. P (D + 2i)z = x. P (D + 2i) = (D + 2i) 2 + 2(D + 2i) + 1 = D 2 + 4iD + 4i 2 + 2D + 4i + 1 = D 2 + 4iD 4 + 2D + 4i + 1 = D 2 + (2 + 4i)D + ( 3 + 4i) 6

Thus, the equation for z is [D 2 + (2 + 4i)D + ( 3 + 4i)]z = x. Our trial solution is Plugging this into the equation yields z = Ax + B. x = D 2 z + (2 + 4i)Dz + ( 3 + 4i)z = 0 + (2 + 4i)A + ( 3 + 4i)(Ax + B) = [( 3 + 4i)A]x + [(2 + 4i)A + ( 3 + 4i)B]. Equating coefficients gives the equations (9) (10) ( 3 + 4i)A = 1 (2 + 4i)A + ( 3 + 4i)B = 0 From equation (9) we have A = 1 3 + 4i = 1 3 + 4i Then, from equation (10), we have 3 4i 3 4i = 3 4i ( 3) 2 = 3/25 4i/25. + (4) 2 ( 3 + 4i)B = (2 + 4i)A = ( 2 4i)( 3/25 4i/25) = 6/25 16/25 + 12i/25 + 8i/25 = 2/5 + 4i/5 B = ( 2/5 + 4i/5)/( 3 + 4i) = ( 2/5 + 4i/5)( 3/25 4i/25) = 22/125 4i/125. Thus, we get z = ( 3/25 4i/25)x + (22/125 4i/125) = [( 3/25)x + 22/125] i[(4/25)x + 4/125] Recalling that z = e 2ix y, we get y = ze 2ix = {[( 3/25)x + 22/125] i[(4/25)x + 4/125]}{cos(2x) + i sin(2x)} = {[( 3/25)x + 22/125] cos(2x) + [(4/25)x + 4/125] sin(2x)} + i{[( 3/25)x + 22/125] sin(2x) [(4/25)x + 4/125] cos(2x)} This is a particular solution of the complex equation (8). Taking the imaginary part of this solution, we finally get the particular solution for the original equation (7). Notice that the real part y = [( 3/25)x + 22/125] sin(2x) [(4/25)x + 4/125] cos(2x) [( 3/25)x + 22/125] cos(2x) + [(4/25)x + 4/125] sin(2x) of the solution of (8) is a particular solution of the equation (D 2 + 2D + 1)y = Re[xe 2ix ] = x cos(2x). 7

(6) Example: (D 2 2D + 2)y = e x cos(x). We want to solve (11) (D 2 2D + 2)y = e x cos(x) = Re[e (1+i)x ], so we solve the complex equation (12) (D 2 2D + 2)y = e (1+i)x and then take the real part. We can rewrite the complex equation as Moving the exponential to the left side gives By the shifting rule, this is the same as Let z = e (1+i)x y, so we want to solve Now, we calculate Thus, the equation for z is P (D)y = e (1+i)x, P (D) = D 2 2D + 2. e (1+i)x P (D)y = 1. P (D + (1 + i))[e (1+i)x y] = 1. P (D + (1 + i))z = 1. P (D + (1 + i)) = [D + (1 + i)] 2 2[D + (1 + i)] + 2 We factor out a D and write this as Thus, w = Dz satisfies = D 2 + 2(1 + i)d + (1 + i) 2 2D 2 2i + 2 = D 2 + (2 + 2i)D + 2i 2D 2 2i + 2 = D 2 + 2iD (D 2 + 2iD)z = 1. (D + 2i)Dz = 1. (D + 2i)w = 1. Since the right hand side is a polynomial of degree zero, we try a polynomial of degree zero for w, so let w = A. Plugging into the equation gives just Thus, Since, Dz = w, anti-differentiation gives Since z = e (1+i)x y, we have 2iA = 1. w = A = 1 2i = 1 2 i. y = 1 2 ixe(1+i)x z = 1 2 ix. = 1 2 ix[ex cos(x) + ie x sin(x)] = 1 2 xex sin(x) i[ 1 2 xex cos(x)]. This is a particular solution of the complex equation (12). The real part of this is a particular solution to the original equation, so our final answer (for a particular solution of equation (11)) is y = 1 2 xex sin(x). 8