Differential Equations - MTH401 Handouts Lecture 19
Differential Equations - MTH401 Handouts Lecture 19
Lecture 19
Undetermined Coefficients:
Annihilator Operator Approach
The method of undetermined coefficients that utilizes the concept of annihilator operator
approach is also limited to non-homogeneous linear differential equations
That have constant coefficients, and
Where the function g (x ) has a specific form.
The form of g (x ) :The input function g (x ) has to have one of the following forms:
A constant function k .
A polynomial function
An exponential function e
x
The trigonometric functions sin(β x), cos(β x)
Finite sums and products of these functions.
Otherwise, we cannot apply the method of undetermined coefficients.
The Method
Step 1 Write the given non-homogeneous linear differential equation in the form
L( y ) = g ( x)
Step 2 Find the complementary solution yc by finding the general solution of the
associated homogeneous differential equation:
L( y ) = 0
Step 3 Operate on both sides of the non-homogeneous equation with a differential
operator L1 that annihilates the function g(x).
Step 4 Find the general solution of the higher-order homogeneous differential equation
174
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
L1 L( y ) = 0
Step 5 Delete all those terms from the solution in step 4 that are duplicated in the
complementary solution yc, found in step 2.
Step 6 Form a linear combination yp of the terms that remain. This is the form of a
particular solution of the non-homogeneous differential equation
L (y) = g ( x )
Step 7 Substitute yp found in step 6 into the given non-homogeneous linear differential
equation
L( y ) = g ( x)
Match coefficients of various functions on each side of the equality and solve the
resulting system of equations for the unknown coefficients in yp .
Step 8 With the particular integral found in step 7, form the general solution of the given
differential equation as:
y = yc + y p
Example 1
d2y dy
Solve 2
+ 3 + 2 y = 4x 2 .
dx dx
Solution:
dy d2y
Step 1 Since = Dy, = D2 y
dx 2
dx
Therefore, the given differential equation can be written as
( D 2 + 3D + 2 ) y = 4 x 2
Step 2 To find the complementary function y c , we consider the associated homogeneous
differential equation
( D 2 + 3D + 2 ) y = 0
The auxiliary equation is
m 2 + 3m + 2 = (m + 1)(m + 2) = 0
⇒ m = −1, −2
Therefore, the auxiliary equation has two distinct real roots.
m1 = −1 , m2 = −2 ,
Thus, the complementary function is given by
y c = c1e − x + c 2 e − 2 x
Step 3 In this case the input function is
g ( x) = 4 x 2
Further D 3 g ( x) = 4 D 3 x 2 = 0
175
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
D 3 ( D 2 + 3D + 2) y = 4 D 3 x 2
D 3 ( D 2 + 3D + 2) y = 0
This is the homogeneous equation of order 5. Next we solve this higher order equation.
y p = A + Bx + Cx 2 ,
Where the constants c1 , c2 and c3 have been replaced, with A, B, and C, respectively.
Step 7 Since y p = A + Bx + Cx 2
y ′p = B + 2Cx,
y ′p′ = 2C
Therefore y ′p′ + 3 y ′p + 2 y p = 2C + 3B + 6Cx + 2 A + 2 Bx + 2Cx 2
or y ′p′ + 3 y ′p + 2 y p = (2C ) x 2 + (2 B + 6C ) x + (2 A + 3B + 2C )
Substituting into the given differential equation, we have
(2C ) x 2 + (2 B + 6C ) x + (2 A + 3B + 2C ) = 4 x 2 + 0 x + 0
Equating the coefficients of x 2 , x and the constant terms, we have
2C = 4
2 B + 6C = 0
2 A + 3B + 2C = 0
Solving these equations, we obtain
A = 7, B = −6, C = 2
176
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Hence y p = 7 − 6x + 2x 2
Step 8 The general solution of the given non-homogeneous differential equation is
y = yc + y p
y = c1e − x + c 2 e −2 x + 7 − 6 x + 2 x 2 .
Example 2
d2y dy
Solve −3 = 8e 3 x + 4 sin x
dx 2 dx
Solution:
dy d2y
Step 1 Since = Dy, = D2 y
dx 2
dx
Therefore, the given differential equation can be written as
(D 2 − 3D) y = 8e3x + 4 sin x
Step 2 We first consider the associated homogeneous differential equation to find y c
The auxiliary equation is
m( m − 3) = 0 ⇒ m = 0, 3
Thus the auxiliary equation has real and distinct roots. So that we have
y c = c1 + c 2 e 3 x
Step 4 The auxiliary equation of the higher order equation found in step 3 is
(m − 3)(m 2 + 1)(m 2 − 3m) = 0
m(m − 3) 2 (m 2 + 1) = 0
⇒ m = 0, 3, 3, ± i
Thus, the general solution of the differential equation
y = c1 + c 2 e 3 x + c3 xe 3 x + c 4 cos x + c5 sin x
177
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
178
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
y c = c1 cos 2 2 x + c2 sin 2 2 x
Step 7 Since y p = A + Bx + Ce − x
y = c1 cos 2 2 x + c2 sin 2 2 x + x + e− x .
5 2
or
8 9
179
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Example 4
d2y
Solve + y = x cos x − cos x
dx 2
Solution:
Step 5 Since first two terms in the above solution are already present in y c
c1 cos x + c2 sin x
Therefore, we remove these terms.
180
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Example 5
Determine the form of a particular solution for
d2y dy
−2 + y = 10e − 2 x cos x
dx 2 dx
Solution
181
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Step 5 Since the terms c1e x + c 2 xe x are already present in y c , therefore, we remove these
and the remaining terms are c3e −2 x cos x + c4e −2 x sin x
Step 6 Therefore, the form of the particular solution of the non-homogeneous equation is
∴ y p = Ae −2 x cos x + Be −2 x sin x
Note that the steps 7 and 8 are not needed, as we don’t have to solve the given
differential equation.
Example 6
Determine the form of a particular solution for
d3y d2y dy
−4 +4 = 5 x 2 − 6 x + 4 x 2 e 2 x + 3e 5 x .
3 2 dx
dx dx
Solution:
Step 3 Since g ( x) = 5 x 2 − 6 x + 4 x 2 e 2 x + 3e 5 x
Further D 3 (5 x 2 − 6 x) = 0
( D − 2) 3 x 2 e 2 x = 0
( D − 5)e 5 x = 0
Therefore the following operator must annihilate the input function g (x ) . Therefore,
applying the operator D 3 ( D − 2) 3 ( D − 5) to both sides of the non-homogeneous equation,
we have
D 3 ( D − 2) 3 ( D − 5)( D 3 − D 2 + 4 D) y = 0
or D 4 ( D − 2) 5 ( D − 5) y = 0
This is homogeneous differential equation of order 10.
182
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Step 4 The auxiliary equation for the 10th order differential equation is
m 4 (m − 2) 5 (m − 5) = 0
⇒ m = 0, 0, 0, 0, 2, 2, 2, 2, 2, 5
Hence the general solution of the 10th order equation is
y = c1 + c 2 x + c3 x 2 + c 4 x 3 + c5 e 2 x + c6 xe 2 x + c7 x 2 e 2 x + c8 x 3 e 2 x + c9 x 4 e 2 x + c10 e 5 x
Step 5 Since the following terms constitute the complementary function y c , we remove
these c1 + c5 e 2 x + c6 xe 2 x
183
© Copyright Virtual University of Pakistan
Differential Equations (MTH401) VU
Exercise
Solve the given differential equation by the undetermined coefficients.
1. 2 y ′′ − 7 y ′ + 5 y = −29
2. y ′′ + 3 y ′ = 4 x − 5
3. y ′′ + 2 y ′ + 2 y = 5e 6 x
4. y ′′ + 4 y = 4 cos x + 3 sin x − 8
5. y ′′ + 2 y ′ + y = x 2 e − x
6. y ′′ + y = 4 cos x − sin x
7. y ′′′ − y ′′ + y ′ − y = xe x − e − x + 7
8. y ′′ + y = 8 cos 2 x − 4 sin x , y (π / 2) = −1 , y ′(π / 2) = 0
9. y ′′′ − 2 y ′′ + y ′ = xe x + 5 , y(0)=2, y ′(0) = 2 , y ′′(0) = −1
10. y ( 4 ) − y ′′′ = x + e x , y(0)=0, y ′(0) = 0 , y ′′(0) = 0 , y ′′′(0) = 0
184
© Copyright Virtual University of Pakistan