Lecture 17 PDF
Lecture 17 PDF
Lecture 17
3. That the general solution of the non-homogeneous linear differential equation is given
by
Finding
Complementary function has been discussed in the previous lecture. In the next three
lectures we will discuss methods for finding a particular integral for the non-
homogeneous equation, namely
Page 1 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
The input function g (x) can have one of the following forms:
A constant function k.
A polynomial function
x
An exponential function e
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
Consist of performing the following steps.
Step 1 Determine the form of the input function g (x) .
Step 2 Assume the general form of y according to the form of g (x)
p
Step 3 Substitute in the given non-homogeneous differential equation.
Step 4 Simplify and equate coefficients of like terms from both sides.
Step 5 Solve the resulting equations to find the unknown coefficients.
Step 6 Substitute the calculated values of coefficients in assumed y
p
Restriction on g ?
The input function g is restricted to have one of the above stated forms because of the
reason:
The derivatives of sums and products of polynomials, exponentials etc are again
sums and products of similar kind of functions.
// /
The expression ay + by + cy has to be identically equal to the input
p p p
function g ( x) .
Therefore, to make an educated guess, y p is assured to have the same form as g .
Caution!
In addition to the form of the input function g ( x) , the educated guess for y must
p
take into consideration the functions that make up the complementary function y .
c
No function in the assumed y must be a solution of the associated homogeneous
p
differential equation. This means that the assumed y p should not contain terms
that duplicate terms in y .
c
Taking for granted that no function in the assumed y p is duplicated by a function in y ,
c
some forms of g and the corresponding forms of y p are given in the following table.
Page 2 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
If g ( x ) equals a sum?
Suppose that
The input function g ( x ) consists of a sum of m terms of the kind listed in the
above table i.e.
g ( x ) = g1 ( x ) + g 2 ( x ) + L + g m ( x ).
The trial forms corresponding to g1 ( x ), g 2 ( x ), K , g m ( x ) be y p1 , y p 2 ,K, y p m .
Page 3 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 1
Solve y // + 4 y / − 2 y = 2 x 2 − 3x + 6
Solution:
Complementary function
To find y , we first solve the associated homogeneous equation
c
y // + 4 y / − 2 y = 0
We put y = e mx , y ′ = me mx , y ′′ = m 2 e mx
Then the associated homogeneous equation gives
(m 2 + 4m − 2)e mx = 0
Therefore, the auxiliary equation is
m 2 + 4m − 2 = 0 as e mx ≠ 0, ∀ x
Using the quadratic formula, roots of the auxiliary equation are
m = −2 ± 6
Thus we have real and distinct roots of the auxiliary equation
m1 = −2 − 6 and m 2 = −2 + 6
Hence the complementary function is
− (2 + 6 ) x ( −2 + 6 ) x
y = c1e + c2 e
c
Particular Integral
2 A + 8 Ax + 4 B − 2 Ax 2 − 2 Bx − 2C = 2 x 2 − 3 x + 6
or − 2 Ax 2 + (8 A − 2 B ) x + (2 A + 4 B − 2C ) = 2 x 2 − 3x + 6
Equating the coefficients of the like powers of x , we have
- 2A = 2 , 8A - 2B = - 3 , 2A + 4B - 2C = 6
Page 4 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
A = −1, B = − 5 2, C = −9.
5
y p = −x 2 − x−9.
2
Hence, the general solution of the given non-homogeneous differential equation is given
by
y = y + yp
c
5
or y = −x2 − x − 9 + c1e − (2 + 6 ) x + c2 e (−2 + 6 ) x
2
Example 2
y // − y / + y = 2 sin 3x
Solution:
Complementary function
To find y , we solve the associated homogeneous differential equation
c
y // − y / + y = 0
Put y = e mx , y′ = me mx , y′′ = m 2e mx
Substitute in the given differential equation to obtain the auxiliary equation
1± i 3
m2 − m +1 = 0 or m=
2
Hence, the auxiliary equation has complex roots. Hence the complementary function is
(1 / 2) x 3 3
y =e c1 cos x + c 2 sin x
c 2 2
Particular Integral
Since successive differentiation of
g ( x) = sin 3x
produce sin 3 x and cos 3 x
Therefore, we include both of these terms in the assumed particular solution, see table
Page 5 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Corresponding to g1 ( x) y = Ax + B
p
1
Page 6 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
yp = yp + yp
1 2
i.e. y p = Ax + B + (Cx + D) e 2 x
Then y ′p = A + 2(Cx + D) e 2 x + Ce 2 x
with x n , n being the least positive integer that eliminates the duplication.
Page 7 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 4
Find a particular solution of the following non-homogeneous differential equation
y // − 5 y / + 4 y = 8e x
Solution:
y = c1e x + c2 e 4 x − (8 / 3) x e x
Example 5
Page 8 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
(a) y // − 8 y / + 25 y = 5 x 3e − x − 7e − x
(b) y // + 4 y = x cos x.
Solution:
Page 9 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 6
Determine the form of a particular solution of
y // − y / + y = 3x 2 − 5sin 2 x + 7 xe6 x
Solution:
To find y c , we solve the associated homogeneous differential equation
y // − y / + y = 0
Put y = e mx
Then the auxiliary equation is
1± i 3
m2 − m + 1 = 0 ⇒ m =
2
3 3
Therefore yc = e (1 / 2) x c1 cos x + c2 sin x
2 2
Since g ( x) = 3 x 2 − 5sin 2 x + 7 xe6 x = g1 ( x) + g 2 ( x) + g3 ( x)
Corresponding to g1 ( x) = 3x 2 : y p1 = Ax 2 + Bx + C
Corresponding to g 2 ( x) = −5sin 2 x : y p2 = D cos 2 x + E sin 2 x
Corresponding to g3 ( x) = 7 xe6 x : y p 3 = ( Fx + G ) e6x
Page 10 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Since g ( x) = e x
Therefore, we assume that
y p = Ae x
This assumption fails because of duplication between yc and y p . We multiply with x
Therefore, we now assume
y p = Axe x
However, the duplication is still there. Therefore, we again multiply with x and assume
y p = Ax 2 e x
Since there is no duplication, this is acceptable form of the trial y p
1
y p = x 2e x
2
Example 8
Solve the initial value problem
y // + y = 4 x + 10 sin x,
y(π ) = 0, y / (π ) = 2
Solution
Consider the associated homogeneous differential equation
y // + y = 0
Put y = e mx
Then the auxiliary equation is
m2 +1 = 0 ⇒ m = ± i
The roots of the auxiliary equation are complex. Therefore, the complementary function
is
yc = c1 cos x + c 2 sin x
Since g ( x) = 4 x + 10 sin x = g1 ( x) + g 2 ( x)
Therefore, we assume that
y p1 = Ax + B , y p 2 = C cos x + D sin x
So that y p = Ax + B + C cos x + D sin x
Clearly, there is duplication of the functions cos x and sin x . To remove this duplication
we multiply y p 2 with x . Therefore, we assume that
y p = Ax + B + C x cos x + Dx sin x.
y′′p = −2C sin x − Cx cos x + 2 D cos x − Dx sin x
So that y p // + y p = Ax + B − 2C sin x + 2 Dx cos x
Substituting into the given non-homogeneous differential equation, we have
Ax + B − 2C sin x + 2 Dx cos x = 4 x + 10 sin x
Equating constant terms and coefficients of x , sin x , x cos x , we obtain
B = 0, A = 4, − 2C = 10, 2 D = 0
Page 11 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
So that A = 4, B = 0, C = −5, D = 0
Thus y p = 4 x − 5 x cos x
Hence the general solution of the differential equation is
y = yc + y p = c1 cos x + c2 sin x + 4 x - 5 x cos x
We now apply the initial conditions to find c1 and c 2 .
y (π ) = 0 ⇒ c1 cos π + c2 sin π + 4π − 5π cos π = 0
Since sin π = 0, cos π = −1
Therefore c1 = 9π
Now y / = −9π sin x + c2 cos x + 4 + 5 x sin x − 5 cos x
Therefore y / (π ) = 2 ⇒ −9π sin π + c2 cos π + 4 + 5π sin π − 5 cos π = 2
∴ c 2 = 7.
Hence the solution of the initial value problem is
y = 9π cos x + 7 sin x + 4 x − 5 x cos x.
Example 9
Solve the differential equation
y // − 6 y / + 9 y = 6 x 2 + 2 − 12e 3 x
Solution:
The associated homogeneous differential equation is
y // − 6 y / + 9 y = 0
Put y = e mx
Then the auxiliary equation is
m 2 − 6m + 9 = 0 ⇒ m = 3, 3
Thus the complementary function is
y c = c1e 3 x + c 2 xe 3 x
Since g ( x) = ( x 2 + 2) − 12e 3 x = g1 ( x) + g 2 ( x)
We assume that
Corresponding to g1 ( x) = x 2 + 2 : y p1 = Ax 2 + Bx + C
Corresponding to g 2 ( x) = −12e 3 x : y p 2 = De 3 x
Thus the assumed form of the particular solution is
y p = Ax 2 + Bx + C + De 3 x
The function e 3 x in y p 2 is duplicated between yc and y p . Multiplication with x does not
remove this duplication. However, if we multiply y p 2 with x 2 , this duplication is
removed.
Thus the operative from of a particular solution is
y p = Ax 2 + Bx + C + Dx 2 e 3 x
Page 12 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 10
Solve y /// + y // = e x cos x
Solution:
To find the complementary function we solve the associated homogeneous differential
equation
y /// + y // = 0
Put y = e mx , y ′ = me mx , y ′′ = m 2 e mx
Then the auxiliary equation is
m3 + m 2 = 0
or m 2 (m + 1) = 0 ⇒ m = 0,0,−1
The auxiliary equation has equal and distinct real roots. Therefore, the complementary
function is
y c = c1 + c 2 x + c3 e − x
Since g ( x) = e x cos x
Therefore, we assume that
y p = Ae x cos x + Be x sin x
Page 13 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Since g ( x) = 1 − e − x = g1 ( x) + g 2 ( x)
Corresponding to g1 ( x) = 1 : y p1 = A
Corresponding to g 2 ( x) = −e − x : y p 2 = Be − x
Therefore, the normal assumption for the particular solution is
y p = A + Be − x
Clearly there is duplication of
(i) The constant function between yc and y p .
1
(ii) The exponential function e − x between yc and y p .
2
To remove this duplication, we multiply y p with x 3 and y p 2 with x . This duplication
1
can’t be removed by multiplying with x and x 2 . Hence, the correct assumption for the
particular solution y p is
Page 14 of 15
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
y p = Ax 3 + Bxe − x
Exercise
Solve the following differential equations using the undetermined coefficients.
1 //
1. y + y / + y = x 2 + 2x
4
2. y // − 8 y / + 20 y = 100 x 2 − 26 xe x
3. y // + 3 y = −48 x 2 e 3 x
4. 4 y // − 4 y / − 3 y = cos 2 x
5. y // + 4 y = ( x 2 − 3) sin 2 x
6. y // − 5 y / = 2 x 3 − 4 x 2 − x + 6
7. y // − 2 y / + 2 y = e 2 x (cos x − 3 sin x)
8. y // + 4 y / + 4 y = (3 + x)e −2 x , y( 0 ) = 2 ,y / ( 0 ) = 5
d 2x
9. 2
+ ω 2 x = F0 cos γt , x(0) = 0, x / (0) = 0
dt
Page 15 of 15
© Copyright Virtual University of Pakistan