Docsity

Introduction to Differential Equations - Study Guide | MATH 300, Study notes of Mathematics

Toggle sidebar
bg1
Lecture Notes in Di¤erential Equations
Dr. Hassan Sedaghat
Important!These instructor notes are made available for convenience to reduce the amount of note-
taking in class and also in case it is not possible to attend class due to circumstances beyond control (e.g.
illness). These notes are not intended as a replacement for class attendance and participation nor as a
substitute for using the textbook. The class presentation may di¤er from these notes and further, these
notes do not contain solutions for homework problems which may be discussed in class.
Section 4.4: Undetermined Coe¢ cients
In this section we discuss a procedure for solving non-homogeneous linear DE with constant coef-
…cients:
any(n)+an1y(n1) + +a2y00 +a1y0+a0y=g(x);(1)
a0; a1; : : : ; anare given real numbers with an6= 0:
From Section 4.1 we recall that the general solution of (1) is written as
y=yc+yp
where the “complementary solution”ycis the solution of the homogeneous part of (1), i.e. with the
right side set equal to 0. So ycis the superposition of nlinearly independent solutions y1; y2; : : : ; yn,
i.e.
yc=c1y1+c2y2+ +cnyn:
The solution ycis obtained as in Section 4.3, using the auxiliary equation. Note that for each
linear DE of order n; there are narbitrary constants c1; : : : ; cnand in the non-homogeneous case
these constants all appear in yc:
The function ypis a “particular solution”of (1), i.e. any one function satisfying (1). In this
section we discuss a method for computing yp:
UC functions g(x)-
The procedure discussed in this section applies only to certain types of functions not to any
arbitrary function g(x). We call these special function types for g(x)UC functions. We use the UC
function g(x)given in a DE to construct the particular solution yp:First, we consider the basic,
most common UC functions:
UC function g(x): Sample: Transforms to yp:
Constant e.g. 2A
Polynomial, degree 1 e.g. 2x1Ax +B
Polynomial, degree 2 e.g. x23x Ax2+Bx +C
Polynomial, degree 3 e.g. x3+ 1 Ax3+Bx2+Cx +D
Trigonometric 3cos(kx)and/or 3sin(kx)Acos(kx) + Bsin(kx)
Exponential 3ekx Aekx
1
pf3
pf4
pf5

Partial preview of the text

Download Introduction to Differential Equations - Study Guide | MATH 300 and more Study notes Mathematics in PDF only on Docsity!

Lecture Notes in Di§erential Equations

Dr. Hassan Sedaghat

Important! These instructor notes are made available for convenience to reduce the amount of note- taking in class and also in case it is not possible to attend class due to circumstances beyond control (e.g. illness). These notes are not intended as a replacement for class attendance and participation nor as a substitute for using the textbook. The class presentation may di§er from these notes and further, these notes do not contain solutions for homework problems which may be discussed in class.

Section 4.4: Undetermined Coe¢ cients

In this section we discuss a procedure for solving non-homogeneous linear DE with constant coef- Öcients:

any(n)^ + an 1 y(n1)^ +    + a 2 y^00 + a 1 y^0 + a 0 y = g(x); (1) a 0 ; a 1 ; : : : ; an are given real numbers with an 6 = 0: From Section 4.1 we recall that the general solution of (1) is written as y = yc + yp

where the ìcomplementary solutionîyc is the solution of the homogeneous part of (1), i.e. with the right side set equal to 0. So yc is the superposition of n linearly independent solutions y 1 ; y 2 ; : : : ; yn, i.e. yc = c 1 y 1 + c 2 y 2 +    + cnyn: The solution yc is obtained as in Section 4.3, using the auxiliary equation. Note that for each linear DE of order n; there are n arbitrary constants c 1 ; : : : ; cn and in the non-homogeneous case these constants all appear in yc: The function yp is a ìparticular solutionî of (1), i.e. any one function satisfying (1). In this section we discuss a method for computing yp:

UC functions g(x)- The procedure discussed in this section applies only to certain types of functions not to any arbitrary function g(x). We call these special function types for g(x) UC functions. We use the UC function g(x) given in a DE to construct the particular solution yp: First, we consider the basic, most common UC functions:

UC function g(x): Sample: Transforms to yp: Constant e.g. 2 A Polynomial, degree 1 e.g. 2 x 1 Ax + B Polynomial, degree 2 e.g. x^2 3 x Ax^2 + Bx + C Polynomial, degree 3 e.g. x^3 + 1 Ax^3 + Bx^2 + Cx + D Trigonometric 3 cos(kx) and/or 3sin(kx) A cos(kx) + B sin(kx) Exponential 3 ekx^ Aekx

The basic function types in the above ìUC-tableîmay be combined to create new UC functions as follows:

Addition: If g(x) is a sum of two or more function types in the Örst column in the above UC-table, then we add the corresponding entries in the third column. For example,

g(x) = (^5) | {z }x 2 deg.1 polynomial

  • cos(3x) | {z } trig., triple

2 sin| {z } x trig., single

gives:

yp = Ax + B + C cos(3x) + D sin(3x) + E cos x + F sin x

Multiplication: If g(x) is a product of two or more function types in the Örst column in the above UC-table, then we multiply the corresponding entries in the third column. For example,

g(x) = 5x^2 e^2 x^ gives: yp = (Ax^2 + Bx + C)e^2 x

and

g(x) = 3e^2 x^ sin x gives: yp = (A sin x + B cos x)e^2 x

Remarks.

  1. In the case of the exponential function, it is not necessary to incorporate its constant since it will be redundant. For example, for 5 x^2 e^2 x^ above, if we picked yp = (Ax^2 + Bx + C)De^2 x^ then the extra constant D could be absorbed into the Örst 3 without loss of information:

yp = (ADx^2 + BDx + CD)e^2 x^ = (A^0 x^2 + B^0 x + C^0 )e^2 x

where it would only be necessary to Önd three undetermined coe¢ cients A^0 , B^0 , and C^0 :

  1. There are some familiar functions that are not of UC type. They include tan x, sec x, ln x, xk^ for k = 1; 2 ; 3 ; : : : If g(x) is one of these types of functions then the UC method does not apply we need to use a di§erent method, such as variation of parameters in Section 4.6.

The method of Undetermined Coe¢ cients, or the UC method. If g(x) in (1) is a UC function then we determine the particular solution yp as above and Önd the numbers A, B, C, etc by substitution in the DE and matching similar functions on the two

Example 3. Find the general solution of the non-homogeneous DE

y^00 y^0 2 y = 6 sin(2x):

First, we Önd yc as in Example 1 above. Next, since g(x) = 6 sin(2x) from the UC-table yp = A cos(2x) + B sin(2x) and we must calculate the coe¢ cients A and B using the DE

y p^0 = 2 A sin(2x) + 2B cos(2x); y p^00 = 4 A cos(2x) 4 B sin(2x) [ 4 A cos(2x) 4 B sin(2x)] [ 2 A sin(2x) + 2B cos(2x)] 2[A cos(2x) + B sin(2x)] = 6 sin(2x) ( 6 A 2 B) cos(2x) + (2A 6 B) sin(2x) = 0 cos(2x) + 6 sin(2x) matching coe¢ cients: 6 A 2 B = 0; 2 A 6 B = 6

B = 3 A; 2 A 6( 3 A) = 6 =) A =

; B =

Therefore, the general solution is

y = yc + yp = c 1 ex^ + c 2 e^2 x^ + 0:3 cos(2x) 0 :9 sin(2x):

A glitch in the UC method. When the complementary solution yc and the choice yp from the UC-table contain a common term (we say that there is an ìoverlapîbetween yc and yp) then the UC method breaks down unless the choice of yp is modiÖed to remove the overlap. For instance, if in Examaple 2 above we had g(x) = 6ex^ then choosing yp = Aex^ gives

y^00 y^0 2 y = 6ex Aex^ (Aex) 2 Aex^ = 6ex 0 = 6ex

which is not possible. This problem occurs because yc = c 1 ex^ + c 2 e^2 x^ and yp = Aex^ both contain ex: This overlap must be removed and we do that using the following rule:

Removing the overlap: Multiply the initial choice of yp by the smallest power xk^ so that the modiÖed or new yp no longer shares common terms with yc:

Example 4. Find the general solution of the non-homogeneous DE

y^00 y^0 2 y = 6ex:

As we saw above, we must modify yp: Multiplying by x gives yp = Axex^ and this no longer overlaps yc (xex^ is a di§erent function than ex^ despite the common factor ex). Now using the product rule we compute the derivatives and then use the DE to calculate A as follows:

y^0 p = Aex^ Axex; y^00 p = 2 Aex^ + Axex; so: [ 2 Aex^ + Axex] [Aex^ Axex] 2 Axex^ = 6ex 3 Aex^ = 6ex^ =) 3 A = 6 =) A = 2 :

Thus yp = 2 xex^ and the general solution comes out as

y = yc + yp = c 1 ex^ + c 2 e^2 x^ 2 xex:

Example 5. Find the general solution of the non-homogeneous 3rd order DE

y^000 y^00 2 y^0 = 6x:

First, we Önd yc using the auxiliary equation

m^3 m^2 2 m = 0 =) m(m + 1)(m 2) = 0 =) m = 0; 1 ; 2 :

These distinct real roots give three linearly independent solutions y 1 = ex, y 2 = e^2 x^ and y 3 = e^0 x^ = 1: Therefore, as in Sec.4.3 we have

yc = c 1 ex^ + c 2 e^2 x^ + c 3 :

Here, as in Example 1, g(x) = 6x: Our Örst choice from the UC-table is yp = Ax + B: However, both yc and this Örst choice of yp overlap in a constant (the arbitrary constant c 3 can in particular be equal to the undetermined but Öxed constant B). Multiplying by x gives the new function

yp = Ax^2 + Bx:

It is clear that there is no longer any overlap between yc and yp so we proceed to calculate the numbers A and B:

y^0 p = 2Ax + B; y^00 p = 2A; y p^000 = 0; so: 0 2 A 2(2Ax + B) = 6x 4 Ax 2 A 2 B = 6x + 0

4 A = 6; 2 A 2 B = 0 =) A =

; B =

Thus yp = 1 : 5 x^2 + 1: 5 x and general solution is found to be

y = yc + yp = c 1 ex^ + c 2 e^2 x^ + c 3 1 : 5 x^2 + 1: 5 x:

Example 7. Consider the DE

y^000 y^0 = sin x + 2ex:

Here the auxiliary equation for the left side is

m^3 m = m(m^2 1) = m(m + 1)(m 1) = 0

so we get three roots m = 0; 1 ; 1 : Therefore,

yc = c 1 + c 2 ex^ + c 3 ex:

Since g(x) = sin x + 2ex^ the UC-table gives the Örst choice of yp as:

yp = A| cos x (^) {z+ B sin x} yp 1

  • (^) |{z}Cex yp 2

This overlaps yc in the term c 3 ex: To remove the overlap we multiply yp 2 = Cex^ by x to get the new yp as: yp = A cos x + B sin x + Cxex: On the other hand, for the DE

y^000 + y^0 = sin x + 2ex

we have m^3 + m = m(m^2 + 1) = 0 =) m = 0 and m^2 = 1 =) m = i: Therefore, in this case yc = c 1 + c 2 cos x + c 3 sin x: Now the Örst choice of yp above overlaps yc in yp 1 so the overlap is removed by multiplying yp 1 by x to get the new yp as yp = Ax cos x + Bx sin x + Cex: A third possible case is seen in the DE

y^000 + y^0 = sin x + 2

where yc = c 1 + c 2 cos x + c 3 sin x and g(x) = sin x + 2 so the Örst choice of yp, namely

yp = A cos x + B sin x + C

overlaps yc in all three terms. In this case, we multiply all terms by x to remove the overlap as

yp = Ax cos x + Bx sin x + Cx: