Wa0002.
Wa0002.
Wa0002.
The general or complete solution of (1) consists of two parts namely (i) Complementary Func-
tion (C.F.) and the (ii) Particular Integral (P.I).
i.e. y =C.F.+P.I.
To find the complementary function
Putting D = m and F (x) = 0 in (1).
Therefore the auxiliary equation of (1) is ϕ(m) = 0
i.e. a0 mn + a1 mn−1 + . . . + an = 0.
By solving this equation, we get n roots say m1 , m2 , m3 , . . . , mn .
Case (i): If all the roots are real and unequal, i.e. if m1 ̸= m2 ̸= m3 ̸= . . . ̸= mn , then
C.F.=c1 em1 x + c2 em2 x + c3 em3 x + . . . + cn emn x
Case (ii): If two roots are equal (i.e. m1 = m2 = m) and the remaining be real and unequal,
then
C.F.=(c1 + c2 x)emx + c3 em3 x + . . . + cn emn x
Case (iii): If three roots are equal (i.e. m1 = m2 = m3 = m) and the remaining be real and
unequal, then
C.F.=(c1 + c2 x + c3 x2 )emx + c4 em4 x + . . . + cn emn x
Case (iv): If all the roots are equal (i.e. m1 = m2 = m3 = . . . = mn = m) then
C.F.=(c1 + c2 x + c3 x2 + . . . + cn xn−1 )emx
Case (v): If roots are imaginary i.e. if m = α ± iβ, then
C.F.=eαx (c1 cos βx + c2 sin βx)
1
2
1
P.I. = e5x
D2
+ 3D + 2
1
= 2 e5x
5 + 3(5) + 2
e5x
=
42
The general solution is
e5x
y = C.F. + P.I. = Ae−x + Be−2x + .
42
d2 y dy
Example 5: Solve 2
+4 + 4y = e−2x .
dx dx
Solution: (D2 + 4D + 4)y = 0
The auxiliary equation is m2 + 4m + 4 = 0
⇒ (m + 2)2 = 0 ⇒ m = −2, −2
The complementary function (C.F.) is (A + Bx)e−2x
To find Particular integral (P.I.):
1
P.I. = e−2x
D2 + 4D + 4
1
= 2
e−2x
(−2) + 4(−2) + 4
e−2x 1
= = x. e−2x
0 2D + 4
1
= e−2x
2(−2) + 4
e−2x x2
= = e−2x
0 2
4
1
P.I. = (e−x + 3e0x )
D2
+ 2D + 1
1 1
= 2 e−x + 3. 2 e0x
D + 2D + 1 D + 2D + 1
1 −x 1
= e + 3. e0x
(−1)2 + 2(−1) + 1 0+0+1
e−x 1
= + 3 = x. e−x + 3
0 2D + 2
e−x x2
= + 3 = e−x + 3
0 2
The general solution is
x2 −x
y = C.F. + P.I. = (A + Bx)e−x + e + 3.
2
Example 7: Solve (D2 + 9)y = e−2x
Solution:
The auxiliary equation is m2 + 9 = 0
⇒ m = − ± 3i
The complementary function (C.F.) is A cos 3x + B sin 3x
To find Particular integral (P.I.):
1
P.I. = 2
(e−2x
D +9
1
= e−2x
(−2)2 + 9
1
= e−2x
13
5
1
P.I. = sin ax (or) cos ax
ϕ(D)
1
= sin ax (or) cos ax provided ϕ(−a2 ) ̸= 0
ϕ(−a2 )
1
If ϕ(D) = 0 when D2 = −a2 then P.I.=x. ′ sin ax (or) cos ax
ϕ (D)
1 ′
⇒ P.I. = x. ′2
sin ax (or) cos ax provided ϕ (−a2 ) ̸= 0
ϕ (−a )
This process may be repeated till the denominator becoming non zero when replacing D2 by
−a2 .
Example 1: Solve (D2 + 3D + 2)y = sin 3x
Solution:
The auxiliary equation is m2 + 3m + 2 = 0
⇒ (m + 1)(m + 2) = 0 ⇒ m = −1, −2
The complementary function (C.F.) is Ae−x + Be−2x
To find Particular integral (P.I.):
1
P.I. = sin 3x
D2
+ 3D + 2
1
= sin 3x
−(3) + 3D + 2
2
1
= sin 3x
3D − 7
1 (3D + 7)
= . sin 3x
(3D − 7) (3D + 7)
(3D + 7)
= sin 3x
9D2 − 49
[3D(sin 3x) + 7 sin 3x]
=
9(−(32 )) − 49
1
=− [9 cos 3x + 7 sin 3x]
130
The general solution is
1
y = C.F. + P.I. = Ae−x + Be−2x − [9 cos 3x + 7 sin 3x] .
130
6
1 x
= x. cos 2x = sin 2x
2D 4
The general solution is
x
y = C.F. + P.I. = A cos 2x + B sin 2x + sin 2x.
4
Example 3: Solve (D2 + 6D + 8)y = e−2x + cos2 x
Solution:
The auxiliary equation is m2 + 6m + 8 = 0
⇒ (m + 2)(m + 4) = 0 ⇒ m = −2, −4
The complementary function (C.F.) is Ae−2x + Be−4x
To find Particular integral (P.I.):
1
P.I. = e−2x + cos2 x
D2
+ 6D + 8
( )
1 −2x 1 1 + cos 2x
= 2 e + 2
D + 6D + 8 D + 6D + 8 2
1 1 1 1 1
= 2 e−2x + . 2 .e0x + . 2 cos 2x
D + 6D + 8 2 D + 6D + 8 2 D + 6D + 8
= P.I.1 + P.I.2 + P.I.3
1
P.I.1 = e−2x
D2
+ 6D + 8
1
= e−2x
4 − 12 + 8
1
= x. e−2x
2D + 6
1 x
= x. e−2x = e−2x
−4 + 6 2
7
1 1
P.I.2 = . 2 e0x
2 D + 6D + 8
1 1 1
= . e0x =
2 8 16
1 1
P.I.3 = . 2 cos 2x
2 D + 6D + 8
1 1
= . cos 2x
2 −4 + 6D + 8
1 1 1 1
= . cos 2x = . cos 2x
2 6D + 4 4 3D + 2
1 (3D − 2)
= . cos 2x
4 9D2 − 4
1 [3D(cos 2x) − 2 cos 2x] 1
= . = [3 sin 2x + cos 2x]
4 −36 − 4 80
The general solution is
x 1 1
y = Ae−2x + Be−4x + e−2x + + [3 sin 2x + cos 2x] .
2 16 80
1
P.I. = sin 3x cos 2x
− 4D + 3
D2
1 1
= 2 . [sin 5x + sin x]
D − 4D + 3 2
1 1 1 1
= . 2 sin 5x + . 2 sin x
2 D − 4D + 3 2 D − 4D + 3
= P.I.1 + P.I.2
1 1
P.I.1 = . 2 sin 5x
2 D − 4D + 3
1 1
= . sin 5x
2 −25 − 4D + 3
1 1
=− . sin 5x
4 2D + 11
1 (2D + 11)
=− . 2 sin 5x
4 4D − 121
8
1 [2D(sin 5x) + 11 sin 5x]
P.I.1 = − .
4 −100 − 121
1
= [10 cos 5x + 11 sin 5x]
884
1 1
P.I.2 = . 2 sin x
2 D − 4D + 3
1 1
= . sin x
2 −1 − 4D + 3
1 1
=− . sin x
4 2D − 1
1 (2D + 1)
=− . sin x
4 4D2 − 1
1 [2D(sin x) + sin x]
=− .
4 −4 − 1
1
= [2 cos x + sin x]
20
The general solution is
1 1
y = Aex + Be3x + [10 cos 5x + 11 sin 5x] + [2 cos x + sin x] .
884 20
Formula:
1 − cos 2θ
(1) sin2 θ =
2
2 1 + cos 2θ
(2) cos θ =
2
(3) 2 cos A cos B = cos(A + B) + cos(A − B)
(4) 2 sin A sin B = cos(A − B) − cos(A + B)
(5) 2 cos A sin B = sin(A + B) − sin(A − B)
(6) 2 sin A cos B = sin(A + B) + sin(A − B)
Formula:.
(1) (1 + x)−1 = 1 − x + x2 − x3 + . . .
(2) (1 − x)−1 = 1 + x + x2 + x3 + . . .
(3) (1 + x)−2 = 1 − 2x + 3x2 − 4x3 + . . .
9
1
P.I. = x2
D2 + 3D + 2
1 1
= .[ ( 2 )] x2
2 D + 3D
1+
2
[ ( 2 )]−1
1 D + 3D
= . 1+ x2
2 2
[ ( 2 ) ( 2 )2 ]
1 D + 3D D + 3D
= . 1− + − . . . x2
2 2 2
[ ]
1 D2 3D 9D2 2
= . 1− − + x
2 2 2 4
[ ]
1 D2 (x2 ) 3D(x2 ) 9D2 (x2 )
= . x −
2
− +
2 2 2 4
[ ]
1 1 3 9
= . x2 − .2 − .2x + .2
2 2 2 4
[ ]
1 2 7
= x − 3x +
2 2
d2 y dy
Example 2: Solve 2
−5 + 6y = x2 + 3x − 1.
dx dx
Solution:
Given (D2 − 5D + 6)y = x2 + 3x − 1
The auxiliary equation if m2 + 3m + 2 = 0
⇒ (m − 2)(m − 3) = 0 ⇒ m = 2, 3
C.F.=Ae2x + Be3x
10
1
P.I. = (x2 + 3x − 1)
D2 − 5D + 6
1 1
= .[ ( 2 )] (x2 + 3x − 1)
6 D − 5D
1+
6
[ ( 2 )]−1
1 D − 5D
= . 1+ (x2 + 3x − 1)
6 6
[ ( 2 ) ( 2 )2 ]
1 D − 5D D − 5D
= . 1− + − . . . (x2 + 3x − 1)
6 6 6
[ ]
1 D2 5D 25D2
= . 1− + + (x2 + 3x − 1)
6 6 6 36
[ ]
1 D2 (x2 + 3x − 1) 5D(x2 + 3x − 1) 25D2 (x2 + 3x − 1)
= . (x + 3x − 1) −
2
+ +
6 6 6 36
[ ]
1 1 5 25
= . x2 + 3x − 1 − .2 + .(2x + 3) + .2
6 6 6 36
[ ]
1 2 14x 23
= x + +
6 3 9
The general solution is
[ ]
2x 3x 1 2 14x 23
y = Ae + Be + x + +
6 3 9
2
dy dy
Example 3: Solve 2
+2 + 3y = 5x2 .
dx dx
Solution:
Given (D2 + 2D + 3)y = 5x2
equation if m2 + 2m + 3 = 0
The auxiliary √
−2 ± 4 − 12 √
⇒m= = −1 ± i 2
[ 2√ √ ]
C.F.=e−x A cos 2x + B sin 2x
1
P.I. = .5x2
D2
+ 2D + 3
5 1
= .[ ( 2 )] x2
3 D + 2D
1+
3
[ ( 2 )]−1
5 D + 2D
= . 1+ x2
3 3
[ ( 2 ) ( 2 )2 ]
5 D + 2D D + 2D
= . 1− + − . . . x2
3 3 3
11
[ ]
5 D2 2D 4D 2
P.I. = . 1 − − + x2
3 3 3 9
[ ]
5 1 2 4
= . x − .2 − .2x + .2
2
3 3 3 9
[ ]
5 2 4x 2
= x − +
3 3 9
The general solution is [ ]
−x
[ √ √ ] 5 2 4x 2
y=e A cos 2x + B sin 2x + x − +
3 3 9
Type 4: If F (x) = eax f (x) where f (x) = xn or sin ax or cos ax then
1 ax 1
P.I.= e f (x) = eax f (x)
ϕ(D) ϕ(D + a)
1
Now f (x) will be in any one of the previous forms.
ϕ(D + a)
d2 y dy
Example 1: Solve 2
+4 + 4y = e−x sin 2x.
dx dx
Solution: Given (D2 + 4D + 4)y = e−x sin 2x
1
P.I. = x2 e−x
D2
+D+1
1
= e−x x2
(D − 1) + D − 1 + 1
2
1
= e−x 2 x2
D −D+1
[ ]−1 2
= e−x 1 + (D2 − D) x
[ ]
= e−x 1 − (D2 − D) + (D2 − D)2 − . . . x2
[ ]
= e−x 1 − D2 + D + D2 x2 = e−x (1 + D)x2
= (x2 + 2x)e−x
The general
[ solution is
√ √ ]
3 3
y = e−x/2 A cos x + B sin x + (x2 + 2x)e−x
2 2
Example 3: Solve: (D2 + 9)y = (x2 + 1)e3x
The auxiliary equation is m2 + 9 = 0
⇒ m = ±i3
C.F.=A cos 3x + B sin 3x
1
P.I. = (x2 + 1)e3x
D2 + 9
1
= e3x (x2 + 1)
(D + 3)2 + 9
e3x 1
= ( ) (x2 + 1)
18 D2 + 6D
1+
18
[ ( )]−1
e3x D2 + 6D
= 1+ (x2 + 1)
18 18
[ ( ) ( 2 )2 ]
e3x D2 + 6D D + 6D
= 1− + + . . . (x2 + 1)
18 18 18
[ ]
e3x D2 6D 36D2
= 1− − + (x2 + 1)
18 18 18 324
13
[ ]
e3x 2 D2 (x2 + 1) 6D(x2 + 1) 36D2 (x2 + 1)
P.I. = x +1− − +
18 18 18 324
3x
[ ]
e 1 6 36
= x2 + 1 − .2 − .2x + .2
18 18 18 3234
( )
e3x 2x 10
= x −
2
+
18 3 9
The complete solution is ( )
e3x 2x 10
y = A cos 3x + B sin 3x + x −
2
+
18 3 9
d2 y dy
Example 4: Solve +4 + 4y = e−2x + e3x sin x
dx2 dx
Solution: Given (D2 + 4D + 4)y = e−2x + e3x sin x
The auxiliary equation is m2 + 4m + 4 = 0
⇒ (m + 2)2 = 0 ⇐ m = −2, −2
C.F.=(A + Bx)e−2x
1
P.I. = e−2x + e3x sin x
D2+ 4D + 4
1 1
= 2 e−2x + 2 e3x sin x
D + 4D + 4 D + 4D + 4
1 1
= e−2x + e3x sin x
4−8+4 2
(D + 3) + 4(D + 3) + 4
1 1
= x. e−2x + e3x 2 sin x
2D + 4 D + 10D + 25
1 1
= x. e−2x + e3x sin x
−4 + 4 −1 + 10D + 25
1 e3x (5D − 12)
= x2 . e−2x + . sin x
2 2 25D2 − 144
x2 e3x
= e−2x − (5 cos x − 12 sin x).
2 338
The complete solution is
x2 e3x
y = (A + Bx)e−2x + e−2x − (5 cos x − 12 sin x).
2 338
Formula:
ex − e−x
(1) sinh x =
2
ex + e−x
(2) cosh x =
2
Example 1: Solve: (D2 + 4)y = sinh 2x.
Solution: The auxiliary equation is m2 + 4 = 0
⇒ m = ±2i
14
1
P.I. = x sin x
D2 − 2D + 1
1
= Imp. part of 2 xeix
D − 2D + 1
1
= Imp. part of eix x
(D + i) − 2(D + i) + 1
2
1
= Imp. part of eix 2 x
D + 2D(i − 1) − 2i
−eix 1
= Imp. part of [ ]x
2i 1
1 − (D2 + 2D(i − 1))
2i
[ ]
−eix 1 ( 2 ) −1
= Imp. part of 1− D + 2D(i − 1) x
2i 2i
[ ]
−eix D(i − 1)
= Imp. part of 1+ x
2i i
( )
−eix (i − 1)
= Imp. part of x+
2i i
eix
= Imp. part of (xi + i − 1)
2
1
= Imp. part of (cos x + i sin x) [i(x + 1) − 1]
2
1 1
= (x + 1) cos x − sin x
2 2
16
1
= Real part of x2 eix
D2 − 1
1
= Real part of eix x
(D + i)2 − 1
1
= Real part of eix 2 x
D + 2Di − 2
−eix 1
= Real part of [ ( 2 )] x2
2 D + 2Di
1−
2
[ ( )]−1
−eix D2 + 2Di
= Real part of 1− x2
2 2
[ ( ) ( 2 )2 ]
−eix D2 + 2Di D + 2Di
= Real part of 1+ + + . . . x2
2 2 2
[ ]
−eix D2 2Di 4D2 2
= Real part of 1+ + − x
2 2 2 4
[ ]
−eix 2 D2 (x2 ) 2iD(x2 ) 4D2 (x2 )
= Real part of x + + −
2 2 2 4
−eix [ 2 ]
= Real part of x + 2xi − 1
2
−1 [ ]
= Real part of (cos x + i sin x) (x2 − 1) + 2xi
2
1
= − (x2 − 1) cos x + x sin x
2
The general solution is
1
y = Ae−x + Bex − (x2 − 1) cos x + x sin x
2
Example 3: Solve: (D2 − 2D + 1)y = xex sin x
Solution: The auxiliary equation is m2 − 2m + 1 = 0
⇒ (m − 1)2 = 0 ⇒ m = 1, 1
17
C.F.=(A + Bx)ex
1
P.I. = xex sin x
D2− 2D + 1
1
= ex x sin x
(D + 1) − 2(D + 1) + 1
2
1
= ex 2 x sin x
D
1
= ex Imp. part of 2 xeix
D
1
= ex Imp. part of eix x
(D + i)2
1
= ex Imp. part of eix 2 x
D + 2Di − 1
eix 1
= ex Imp. part of x
−1 [1 − (D2 + 2Di)]
eix [ ]−1
= ex Imp. part of 1 − (D2 + 2Di) x
−1
eix
= ex Imp. part of (1 + 2Di)x
−1
= −ex Imp. part of (cos x + i sin x)(x + 2i)
dn y n−1 d
n−1
y
xn + a1 x + . . . + an y = F (x) (1)
dxn dxn−1
where a1 , a2 , . . . an are constants and F (x) is a function of x is called Cauchy’s (Euler’s) homo-
geneous linear differential equation.
Equation (1) can be transformed to a linear differential equation with constant coefficients by
the transformation
dz 1
x = ez or z = log x and =
dx x
dy dy dz 1 dy
Now = . =
dx dz dx x dz
dy dy
⇒x =
dx dz
Hence
′ d ′ d
xDy = D y where D = ,D = (2)
dx dz
Also
() ( )
d2 y d dy d 1 dy
2
= =
dx dx dx dx x dz
( )
1 d dy 1 dy
= − 2
x dx dz x dz
( )
1 d dy dz 1 dy
= − 2
x dz dz dx x dz
1 d2 y 1 1 dy
=2
− 2
x dz x x dz
2
dy d2 y dy
⇒ x2 2 = −
dx dz 2 dz
′2 ′
⇒ x2 D 2 y = D y − D y
Hence
′ ′
x2 D2 y = D (D − 1)y (3)
1
2
Similarly
′ ′ ′
x3 D3 y = D (D − 1)(D − 2)y (4)
Substituting (2), (3), (4) and so on in (1), we get a linear differential equation with constant
coefficients and can be solved by any one of the known method.
d2 y dy
Example 1: Solve: x2 2 + x + y = 4 sin(log x)
dx dx
Solution: Given
Let x = ez or z = log x
′ ′ ′ d ′ d
sothat xD = D , x2 D2 = D (D − 1) where D = ,D =
dx dz
Now equation (5) becomes
′ ′ ′
[D (D − 1) + D + 1]y = 4 sin z
′2
⇒ (D + 1)y = 4 sin z
Let x = ez or z = log x
′ ′ ′ d ′ d
sothat xD = D , x2 D2 = D (D − 1) where D = ,D =
dx dz
3
′2
⇒ (D − 3)y = ze2z
1
P.I. = ze2z
′2
D −3
1
= e2z ′ z
(D + 2)2 − 3
1
= e2z ′2 z
D + 4D′ + 1
[ ′2 ′
]−1
= e2z 1 + (D + 4D ) z
[ ′2 ′
]
= e 1 − (D + 4D ) + . . . z
2z
′
= e2z (1 − 4D )z = e2z (z − 4)
d2 y 1 dy 12 log x
Example 3: Solve: 2
+ +y =
dx x dx x2
Solution:
d2 y 1 dy 12 log x
Given + + y =
dx2 x dx x2
Multiplying throughout by x2 , we get
2
2 d y dy
x 2
+x + y = 12 log x
dx dx
⇒ (x2 D2 + xD)y = 12 log x (7)
Let x = ez or z = log x
′ ′ ′ d ′ d
sothat xD = D , x2 D2 = D (D − 1) where D = ,D =
dx dz
Now equation (7) becomes
′ ′ ′
[D (D − 1) + D ]y = 12z
′2
⇒ D y = 12z
4
Let x = ez or z = log x
′ ′ ′ d ′ d
sothat xD = D , x2 D2 = D (D − 1) where D = ,D =
dx dz
Now equation (8) becomes
′ ′ ′
[D (D − 1) − D + 1]y = 0
′2 ′
⇒ (D − 2D + 1)y = 0
dy dy dz dy a
Now = . = .
dx dz dx dz ax + b
dy dy
⇒ (ax + b) =a
dx dz
′ d ′ d
⇒ (ax + b)Dy = aD y where D = ,D =
dx dz
′ ′ ′ ′ ′
Similarly (ax + b)2 D2 y = a2 D (D − 1)y, (ax + b)3 D3 y = a3 D (D − 1)(D − 2)y and so on.
Substituting these in (9), we get a linear differential equation with constant coefficients which
can be solved by one of the known methods.
d2 y dy
Example 1: Solve: (1 + x)2 2 + (1 + x) + y = 4 cos [log(1 + x)]
dx dx
Solution: Given
[ ]
(1 + x)2 D2 + (1 + x)D + 1 y = 4 cos [log(1 + x)] (10)
Let 1 + x = ez or z = log(1 + x)
′ ′ ′ d ′ d
sothat (1 + x)D = D , (1 + x)2 D2 = D (D − 1) where D = ,D =
dx dz
Now equation (10) becomes
[ ′ ′ ′
]
D (D − 1) + D + 1 y = 4 cos z
′2
⇒ (D + 1)y = 4 cos z
d2 y dy
Example 2: Solve: (2x + 5)2 2
− 6(2x + 5) + 8y = 0
dx dx
Solution: Given
[ ]
(2x + 5)2 D2 − 6(2x + 5)D + 8 y = 0 (11)
Let 2x + 5 = ez or z = log(2x + 5)
′ ′ ′ d ′ d
sothat (2x + 5)D = 2D , (2x + 5)2 D2 = 22 D (D − 1) where D = ,D =
dx dz
Now equation (11) becomes
[ ′ ′ ′
]
4D (D − 1) − 12D + 8 y = 0
′2 ′
⇒ (4D − 16D + 8)y = 0
Let 3x + 2 = ez or z = log(3x + 2)
′ ′ ′ d ′ d
sothat (3x + 2)D = 3D , (3x + 2)2 D2 = 32 D (D − 1) where D = ,D =
dx dz
Now equation (12) becomes
[ ] ( )2 ( )
′ ′ ′ ez − 2 ez − 2
9D (D − 1) + 9D − 36 y = 3 +4 +1
3 3
′2 1 2z
⇒ (D − 4)y = (e − 1)
27
C.F.=Ae2z + Be−2z
1 1
P.I. = ′2 . (e2z − 1)
D − 4 27
[ ]
1 1 1
= e − ′2
2z
e 0z
27 D′2 − 4 D −4
[ ]
1 1 2z 1
= e +
27 4 − 4 4
[ ]
1 1 2z 1
= z e +
27 2D′ 4
[ 2z ]
1 ze 1 1
= + = (ze2z + 1)
27 4 4 108
The complete solution is
1
y = Ae2z + Be−2z + (ze2z + 1)
108
1
=A(3x + 2)2 + B(3x + 2)−2 + [log(3x + 2)(3x + 2)2 + 1]
108
Method of variation of parameters
This method is very useful for finding the particular integral of a second order linear differential
equation whose complementary function is known.
Consider the equation
d2 y dy
2
+ a1 + a2 y = F (x) (1)
dx dx
where a1 , a2 are constants, F (x) is a function of x. Let the complementary function of (1) is
C.F. = c1 f1 + c2 f2
where
∫
f2
P =− ′ ′ F (x) dx
f1 f2 − f2 f1
and
∫
f1
Q= ′ ′ F (x) dx
f1 f2 − f2 f1
Substituting P and Q in (2), we get th P.I.
Hence the complete solution is y = C.F. + P.I.
d2 y
Example 1: Solve: + y = sec x by the method of variation of parameters.
dx2
Solution: Given (D2 + 1)y = sec x
The auxiliary equation is m2 + 1 = 0
⇒ m = ±i
C.F.=c1 cos x + c2 sin x = c1 f1 + c2 f2
′ ′
Here f1 = cos x, f2 = sin x sothat f1 = − sin x, f2 = cos x
′ ′
⇒ f1 f2 − f2 f1 = cos2 x + sin2 x = 1
Let P I = P f1 + Qf2 = P cos x + Q sin x where
∫
f2
P =− ′ ′ F (x) dx
f1 f2 − f2 f1
∫
sin x
=− sec x dx
1
1
2
∫
P =− tan x dx
∫
sin x
=− dx
cos x
= log(cos x)
and
∫
f1
Q= ′ ′ F (x) dx
f1 f2 − f2 f1
∫
cos x
= sec x dx
1
∫
= dx
=x
1 sin 2x
= −2. log(sec 2x + tan 2x) + 2.
2 2
3
and
∫
f1
Q= ′ ′ F (x) dx
f1 f2 − f2 f1
∫
cos 2x
= 4 tan 2x dx
2
∫
= 2 sin 2x dx = − cos 2x
∫
f2
P =− ′ ′ F (x) dx
f1 f2 − f2 f1
∫
e−x sin 2x −x
=− e tan x dx
2e−2x
∫
1
=− sin 2x tan x dx
2
∫ ( )
1 sin x
=− 2 sin x cos x dx
2 cos x
∫
= − sin2 x dx
∫ ( )
1 − cos 2x
=− dx
2
x sin 2x
=− +
2 4
4
and
∫
f1
Q= ′ ′ F (x) dx
f1 f2 − f2 f1
∫
e−x cos 2x −x
= e tan x dx
2e−2x
∫ ( )
1 sin x
= (2 cos x − 1)
2
dx
2 cos x
∫
1
= (2 cos x sin x − tan x) dx
2
∫
1
= (sin 2x − tan x) dx
2
cos 2x 1
=− + log(cos x)
4 2
( ) ( )
x sin 2x −x cos 2x 1
⇒ P.I. = − + e cos 2x + − + log(cos x) e−x sin 2x
2 4 4 2
Hence the complete solution is( ) ( )
−x x sin 2x −x cos 2x 1
y = e [c1 cos 2x + c2 sin 2x] + − + e cos 2x + − + log(cos x) e−x sin 2x
2 4 4 2
d2 y
Example 4: Solve: + y = csc x by the method of variation of parameters.
dx2
Solution: Given (D2 + 1)y = csc x
The auxiliary equation is m2 + 1 = 0
⇒ m = ±i
C.F.=c1 cos x + c2 sin x = c1 f1 + c2 f2
Here f1 = cos x, f2 = sin x
′ ′
sothat f1 = − sin x, f2 = cos x
′ ′
⇒ f1 f2 − f2 f1 = cos2 x + sin2 x = 1
Let P I = P f1 + Qf2 = P cos x + Q sin x where
∫
f2
P =− ′ ′ F (x) dx
f1 f2 − f2 f1
∫
sin x
=− csc x dx
1
∫
= − dx = −x
5
and ∫
f1
Q= ′ ′ F (x) dx
f1 f2 − f2 f1
∫
cos x
= csc x dx
1
∫
cos x
= dx
sin x
∫
= cot x dx = log(sin x)