0% found this document useful (0 votes)
51 views

Lecture 15method of Variation of Parameters

1. The document discusses the method of variation of parameters to solve non-homogeneous linear differential equations with constant coefficients. 2. It provides examples of using the method to find the general solution to equations of the form y'' + y = f(x) where f(x) is sec(x), cosec(x), tan(x), and cot(x). 3. The method involves finding the complementary function (general solution to the homogeneous equation) and using it to determine the particular integral to account for the non-homogeneous term.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Lecture 15method of Variation of Parameters

1. The document discusses the method of variation of parameters to solve non-homogeneous linear differential equations with constant coefficients. 2. It provides examples of using the method to find the general solution to equations of the form y'' + y = f(x) where f(x) is sec(x), cosec(x), tan(x), and cot(x). 3. The method involves finding the complementary function (general solution to the homogeneous equation) and using it to determine the particular integral to account for the non-homogeneous term.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

MTH166

Lecture-15
Method of Variation of Parameters
Topic:

Solution of Non-Homogeneous LDE with Constant coefficients.

Learning Outcomes:

To use Method of Variation of Parameters to solve Non-Homogeneous LDE with


constant coefficients.
Method of Variation of Parameters:
Let us consider 2nd order Non-homogeneous LDE with constant coefficients as:
𝑎𝑦 ′′ + 𝑏𝑦 ′ + 𝑐𝑦 = 𝑟(𝑥) (1)
Let two solutions of C.F. 𝑎𝐷2 + 𝑏𝐷 + 𝑐 = 0 be 𝑦1 and 𝑦2
i.e. 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
𝑦1 𝑦2
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′
1

𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊

General solution is: 𝑦 = 𝐶. 𝐹. +𝑃. 𝐼.


i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝
Problem 1. Find the general solution of: 𝑦 ′′ + 𝑦 = sec 𝑥
Solution: The given equation is:
𝑦 ′′ + 𝑦 = sec 𝑥 (1)
𝑑
S.F. : 𝐷2 + 1 𝑦 = sec 𝑥 where 𝐷 ≡
𝑑𝑥
⇒ 𝑓 𝐷 𝑦 = 𝑟(𝑥) where 𝑓 𝐷 = 𝐷2 + 1 and 𝑟 𝑥 = sec 𝑥
To find Complimentary Function (C.F.):
A.E. : 𝑓 𝐷 = 0 ⇒ 𝐷2 + 1 = 0 ⇒ 𝐷 2 = −1 ⇒ 𝐷 = 𝑖, −𝑖
∴ Complimentary function is given by:
𝑦𝑐 = 𝑒 0𝑥 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
⇒ 𝑦𝑐 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
To find Particular Integral (P.I.):
Comparing 𝑦𝑐 with 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
Here 𝑦1 = cos 𝑥, 𝑦2 = sin 𝑥
𝑦1 𝑦2 cos 𝑥 sin 𝑥
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′ = = 𝑐𝑜𝑠 2 𝑥 + 𝑠𝑖𝑛2 𝑥 = 1
1 − sin 𝑥 cos 𝑥
𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. is given by: 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊

sin 𝑥(sec 𝑥) cos 𝑥(sec 𝑥)


⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥 ‫׬‬ 𝑑𝑥
1 1

1
⇒ 𝑦𝑝 = − cos 𝑥 ‫ ׬‬tan 𝑥 𝑑𝑥 + sin 𝑥 ‫𝑥𝑑 ׬‬ 𝑠𝑒𝑐 𝑥 =
cos 𝑥

⇒ 𝑦𝑝 = − cos 𝑥(− log cos 𝑥 ) + sin 𝑥(𝑥)


∴ General solution is given by: 𝑦 = C.F. +P.I.

i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝

⇒ 𝑦 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥 + cos 𝑥(log cos 𝑥 ) + 𝑥 sin 𝑥 Answer.


Polling Question:
The Wronskian of 𝑦 ′′ + 5𝑦 ′ + 4𝑦 = 18𝑒 2𝑥 is:
(A) 3𝑒 5𝑥
(B) -3𝑒 −5𝑥
(C) 3𝑒 −5𝑥
Problem 2. Find the general solution of: 𝑦 ′′ + 𝑦 = cosec 𝑥
Solution: The given equation is:
𝑦 ′′ + 𝑦 = cosec 𝑥 (1)
𝑑
S.F. : 𝐷2 + 1 𝑦 = cosec 𝑥 where 𝐷 ≡
𝑑𝑥
⇒ 𝑓 𝐷 𝑦 = 𝑟(𝑥) where 𝑓 𝐷 = 𝐷2 + 1 and 𝑟 𝑥 = cosec 𝑥
To find Complimentary Function (C.F.):
A.E. : 𝑓 𝐷 = 0 ⇒ 𝐷2 + 1 = 0 ⇒ 𝐷 2 = −1 ⇒ 𝐷 = 𝑖, −𝑖
∴ Complimentary function is given by:
𝑦𝑐 = 𝑒 0𝑥 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
⇒ 𝑦𝑐 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
To find Particular Integral (P.I.):
Comparing 𝑦𝑐 with 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
Here 𝑦1 = cos 𝑥, 𝑦2 = sin 𝑥
𝑦1 𝑦2 cos 𝑥 sin 𝑥
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′ = = 𝑐𝑜𝑠 2 𝑥 + 𝑠𝑖𝑛2 𝑥 = 1
1 − sin 𝑥 cos 𝑥
𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. is given by: 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊

sin 𝑥(cosec 𝑥) cos 𝑥(cosec 𝑥)


⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥 ‫׬‬ 𝑑𝑥
1 1

1
⇒ 𝑦𝑝 = − cos 𝑥 ‫ 𝑥𝑑 ׬‬+ sin 𝑥 ‫ ׬‬cot 𝑥 𝑑𝑥 𝑐𝑜𝑠𝑒𝑐 𝑥 =
sin 𝑥

⇒ 𝑦𝑝 = − cos 𝑥 𝑥 + sin 𝑥 log sin 𝑥


∴ General solution is given by: 𝑦 = C.F. +P.I.

i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝

⇒ 𝑦 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥 + sin 𝑥(log sin 𝑥 ) − 𝑥 cos 𝑥 Answer.


Problem 3. Find the general solution of: 𝑦 ′′ + 𝑦 = tan 𝑥
Solution: The given equation is:
𝑦 ′′ + 𝑦 = tan 𝑥 (1)
𝑑
S.F. : 𝐷2 + 1 𝑦 = tan 𝑥 where 𝐷 ≡
𝑑𝑥
⇒ 𝑓 𝐷 𝑦 = 𝑟(𝑥) where 𝑓 𝐷 = 𝐷2 + 1 and 𝑟 𝑥 = tan 𝑥
To find Complimentary Function (C.F.):
A.E. : 𝑓 𝐷 = 0 ⇒ 𝐷2 + 1 = 0 ⇒ 𝐷 2 = −1 ⇒ 𝐷 = 𝑖, −𝑖
∴ Complimentary function is given by:
𝑦𝑐 = 𝑒 0𝑥 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
⇒ 𝑦𝑐 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
To find Particular Integral (P.I.):
Comparing 𝑦𝑐 with 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
Here 𝑦1 = cos 𝑥, 𝑦2 = sin 𝑥
𝑦1 𝑦2 cos 𝑥 sin 𝑥
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′ = = 𝑐𝑜𝑠 2 𝑥 + 𝑠𝑖𝑛2 𝑥 = 1
1 − sin 𝑥 cos 𝑥
𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. is given by: 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊
sin 𝑥(tan 𝑥) cos 𝑥(tan 𝑥)
⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥 ‫׬‬ 𝑑𝑥
1 1

𝑠𝑖𝑛2 𝑥 sin 𝑥
⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥 ‫ ׬‬sin 𝑥 𝑑𝑥 𝑡𝑎𝑛 𝑥 =
cos 𝑥 cos 𝑥
1−𝑐𝑜𝑠 2 𝑥
⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥(− cos 𝑥)
cos 𝑥

⇒ 𝑦𝑝 = − cos 𝑥 ‫ ׬‬sec 𝑥 − cos 𝑥 𝑑𝑥 − sin 𝑥 cos 𝑥


⇒ 𝑦𝑝 = − cos 𝑥 log sec 𝑥 + tan 𝑥 + cos 𝑥 sin 𝑥 − sin 𝑥 cos 𝑥
∴ General solution is given by: 𝑦 = C.F. +P.I.
i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝
⇒ 𝑦 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥 − cos 𝑥(log sec 𝑥 + tan 𝑥 ) Answer.
Problem 4. Find the general solution of: 𝑦 ′′ + 𝑦 = cot 𝑥
Solution: The given equation is:
𝑦 ′′ + 𝑦 = cot 𝑥 (1)
𝑑
S.F. : 𝐷2 + 1 𝑦 = cot 𝑥 where 𝐷 ≡
𝑑𝑥
⇒ 𝑓 𝐷 𝑦 = 𝑟(𝑥) 2
where 𝑓 𝐷 = 𝐷 + 1 and 𝑟 𝑥 = cot 𝑥
To find Complimentary Function (C.F.):
A.E. : 𝑓 𝐷 = 0 ⇒ 𝐷2 + 1 = 0 ⇒ 𝐷 2 = −1 ⇒ 𝐷 = 𝑖, −𝑖
∴ Complimentary function is given by:
𝑦𝑐 = 𝑒 0𝑥 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
⇒ 𝑦𝑐 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥
To find Particular Integral (P.I.):
Comparing 𝑦𝑐 with 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
Here 𝑦1 = cos 𝑥, 𝑦2 = sin 𝑥
𝑦1 𝑦2 cos 𝑥 sin 𝑥
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′ = = 𝑐𝑜𝑠 2 𝑥 + 𝑠𝑖𝑛2 𝑥 = 1
1 − sin 𝑥 cos 𝑥
𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. is given by: 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊
sin 𝑥(cot 𝑥) cos 𝑥(cot 𝑥)
⇒ 𝑦𝑝 = − cos 𝑥 ‫׬‬ 𝑑𝑥 + sin 𝑥 ‫׬‬ 𝑑𝑥
1 1

𝑐𝑜𝑠 2 𝑥 cos 𝑥
⇒ 𝑦𝑝 = − cos 𝑥 ‫ 𝑥𝑑 𝑥 𝑠𝑜𝑐 ׬‬+ sin 𝑥 ‫׬‬ 𝑑𝑥 𝑐𝑜𝑡 𝑥 =
sin 𝑥 sin 𝑥
1−𝑠𝑖𝑛2 𝑥
⇒ 𝑦𝑝 = − cos 𝑥 (𝑠𝑖𝑛 𝑥) + sin 𝑥 ‫׬‬ 𝑑𝑥
sin 𝑥

⇒ 𝑦𝑝 = − cos 𝑥 𝑠𝑖𝑛 𝑥 + sin 𝑥 ‫ 𝑥𝑐𝑒𝑠𝑜𝑐 ׬‬− sin 𝑥 𝑑𝑥


⇒ 𝑦𝑝 = − cos 𝑥(sin 𝑥) + sin 𝑥 − log 𝑐𝑜𝑠𝑒𝑐𝑥 + cot 𝑥 + sin 𝑥(cos 𝑥)
∴ General solution is given by: 𝑦 = C.F. +P.I.
i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝
⇒ 𝑦 = 𝑐1 cos 𝑥 + 𝑐2 sin 𝑥 − sin 𝑥(log cosec 𝑥 + cot 𝑥 ) Answer.
Polling Question:
The Wronskian of 𝑦 ′′ + 9𝑦 = cos 3𝑥 is:
(A) 1
(B) 3
(C) -3
Problem 5. Find the general solution of: 𝑦 ′′ − 2𝑦 ′ − 3𝑦 = 𝑒 𝑥
Solution: The given equation is:
𝑦 ′′ − 2𝑦 ′ − 3𝑦 = 𝑒 𝑥 (1)
𝑑
S.F. : 𝐷2 − 2𝐷 − 3 𝑦 = 𝑒 𝑥 where 𝐷 ≡
𝑑𝑥
⇒ 𝑓 𝐷 𝑦 = 𝑟(𝑥) where 𝑓 𝐷 = 𝐷2 − 2𝐷 − 3 and 𝑟 𝑥 = 𝑒 𝑥
To find Complimentary Function (C.F.):
A.E. : 𝑓 𝐷 = 0 ⇒ 𝐷 2 − 2𝐷 − 3 = 0 ⇒ 𝐷−3 𝐷+1 =0
⇒ 𝐷 = 3, −1 (real and distinct roots)
∴ Complimentary function is given by:
𝑦𝑐 = 𝑐1 𝑒 3𝑥 + 𝑐2 𝑒 −1𝑥
To find Particular Integral (P.I.):
Comparing 𝑦𝑐 with 𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2
Here 𝑦1 = 𝑒 3𝑥 , 𝑦2 = 𝑒 −𝑥
𝑦1 𝑦2 𝑒 3𝑥
𝑒 −𝑥 = −𝑒 3𝑥 𝑒 −𝑥 − 3𝑒 3𝑥 𝑒 −𝑥 = −4𝑒 2𝑥
Wronskian, 𝑊 = 𝑦 ′ 𝑦2 ′ = 3𝑒 3𝑥
1 −𝑒 −𝑥
𝑦2 𝑟 𝑥 𝑦1 𝑟 𝑥
P.I. is given by: 𝑦𝑝 = −𝑦1 ‫׬‬ 𝑑𝑥 + 𝑦2 ‫׬‬ 𝑑𝑥
𝑊 𝑊

𝑒 −𝑥 (𝑒 𝑥 ) 𝑒 3𝑥 (𝑒 𝑥 )
⇒ 𝑦𝑝 = − 𝑒 3𝑥 ‫ ׬‬−4𝑒 2𝑥 𝑑𝑥 + 𝑒 −𝑥 ‫ ׬‬−4𝑒 2𝑥 𝑑𝑥

𝑒 3𝑥 𝑒 −𝑥
⇒ 𝑦𝑝 = ‫׬‬ 𝑒 −2𝑥 𝑑𝑥 − ‫׬‬ 𝑒 2𝑥 𝑑𝑥
4 4

𝑒 3𝑥 𝑒 −2𝑥 𝑒 −𝑥 𝑒 2𝑥 1
⇒ 𝑦𝑝 = − = − 𝑒𝑥
4 −2 4 2 4

∴ General solution is given by: 𝑦 = C.F. +P.I.

i.e. 𝑦 = 𝑦𝑐 + 𝑦𝑝
1
⇒ 𝑦 = 𝑐1 𝑒 3𝑥 + 𝑐2 𝑒 −1𝑥 − 𝑒 𝑥 Answer.
4

You might also like