Professional Documents
Culture Documents
Lawal G.S
University of Ibadan
gslawal@hotmail.com
1 Variation of Parameters
K10 y1n−1 + K20 y2n−1 + K30 y3n−1 + ... + Kn0 ynn−1 = R(x)
where the last equation represents the condition that the given differential
equation be satisfied. From these equations, K10 , K20 , K30 , ..., Kn0 .
K1 , K2 , K3 , ..., Kn can then be found by integration leading to the required
equation. This method is applicable whenever the complementary solution
can be found including cases where a0 , a1 , a2 , ..., an are not constants.
Example I:
Solve the differential equation using method of variation of parameters
(D 2 − 3D + 2)y = e 5x
Solution:
The differential equation can also be written as
y 00 − 3y 0 + 2y = e 5x
yc = c1 e x + c2 e 2x
y = K1 e x + K2 e 2x (i)
Continuation...
Differentiating (i) yields
Since there are two functions, we must arrive at two conditions for
determining them. One of these conditions is that
y 0 = K1 e x + 2K2 e 2x (iv )
substituting (i), (iv) and (v) into the given differential equation, we
obtain Thus,
Lawal G.S (Department of Mathematics) MAT 241 April 26, 2021 6 / 15
Variation of Parameters
Continuation...
Continuation...
−K20 e 2 x + 2K20 e 2x = e 5x
K20 e 2x = e 5x
1
K20 = e 3x =⇒ K2 = e 3x + c2
3
Continuation...
hence
1 1
y = (− e 4x + c1 )e x + ( e 3x + c2 )e 2x
4 3
rearranging, we have
1 5x
y = c1 e x + c2 e 2x + e
12
Example II:
Solve the differential equation
(D 2 + 4)y = 8 sin 2x
Solution:
The differential equation can also be written as
y 00 + 4y = 8 sin 2x
yc = c1 cos 2x + c2 sin 2x
Continuation...
Differentiating (*) yields
y 0 = −2K1 sin 2x + K10 cos 2x + 2K2 cos 2x + K20 sin 2x (∗∗)
Since there are two functions, we must arrive at two conditions for
determining them. One of these conditions is that
K10 cos 2x + K20 sin 2x = 0
such that (**) becomes
y 0 = −2K1 sin 2x + 2K2 cos 2x
Differentiating again
y 00 = −4K1 cos 2x − 2K10 sin 2x − 4K2 sin 2x + 2K20 cos 2x
Thus,
y 00 + 4y = −2K10 sin 2x + 2K20 cos 2x = 8 sin 2x (∗ ∗ ∗)
Continuation...
From the two equations,
K10 cos 2x + K20 sin 2x = 0
0
−2K1 sin 2x + 2K20 cos 2x = 8 sin 2x
From here,
−K20 sin 2x
K10 =
cos 2x
substituting into the second equation, we obtain
−K20 sin 2x
−2 sin 2x + 2K20 cos 2x = 8 sin 2x
cos 2x
Multiply all by cos 2x, then
2K20 sin2 2x + 2K20 cos2 2x = 8 sin 2x cos 2x
Continuation...
Continuation...
Hence
1
y = c1 cos 2x + c2 sin 2x − 2x cos 2x + sin 4x cos 2x + sin3 2x
2
Tutorial Questions: