Chapter 2
Equations of Order One
Glee Ann R. Lumauag
2.1 Separation of Variables
• 𝑀 𝑑𝑥 + 𝑁 𝑑𝑦 = 0 (1), where M and N may
be function of both x and y.
• Equation 1 , can be put in the form
𝐴 𝑥 𝑑𝑥 + 𝐵 𝑦 𝑑𝑦 = 0 2
i.e, the variables can be separated.
• Then the solution can be written as 𝐹 = 𝑐,
where 𝑐 is an arbitrary constant.
𝑑𝑦 2𝑦
Example 1. Solve the equation = 𝑓𝑜𝑟 𝑥 > 0 and 𝑦 > 0.
𝑑𝑥 𝑥
Solution:
𝑑𝑦 2𝑦
=
𝑑𝑥 𝑥
𝑑𝑦 2𝑑𝑥
⟹ =
𝑦 𝑥
𝑑𝑦 2𝑑𝑥
⟹ =
𝑦 𝑥
⟹ ln 𝑦 = 2 ln 𝑥 + 𝑐
⟹ 𝑒 ln 𝑦 = 𝑒 2 ln 𝑥 +𝑐
⟹ 𝑦 = 𝑥2𝑒𝑐
Let 𝑒 𝑐 = 𝑐1 . We get 𝑦 = 𝑥 2 𝑐1 . Since, 𝑥 > 0 and 𝑦 > 0, then 𝑐1 > 0.
Therefore, 𝑦 = 𝑥 2 𝑐1 , 𝑐1 > 0 ∎
Example 2: Solve the equation
1 + 𝑦 2 𝑑𝑥 + 1 + 𝑥 2 𝑑𝑦 = 0, with the initial condition
that 𝑥 = 0, 𝑦 = −1.
Solution:
1 + 𝑦 2 𝑑𝑥 + 1 + 𝑥 2 𝑑𝑦 = 0
𝑑𝑥 𝑑𝑦
⟹ + =0
1+𝑥 2 1+𝑦 2
𝑑𝑥 𝑑𝑦
⟹ + =0
1+𝑥 2 1+𝑦 2
⟹ 𝑎𝑟𝑐 tan 𝑥 + 𝑎𝑟𝑐 tan 𝑦 = 𝑐 1
⟹ 𝑎𝑟𝑐 tan 0 + 𝑎𝑟𝑐 tan −1 = 𝑐
Continuation…
𝜋
⟹ 0+ − =𝑐
4
𝜋
⟹ 𝑐= −
4
From 1 , we have
𝜋
𝑎𝑟𝑐 tan 𝑥 + 𝑎𝑟𝑐 tan 𝑦 = −
4
𝜋
⟹ tan 𝑎𝑟𝑐 tan 𝑥 + 𝑎𝑟𝑐 tan 𝑦 = −
4
tan 𝑎𝑟𝑐 tan 𝑥 +tan 𝑎𝑟𝑐 tan 𝑦 𝜋
⟹ = tan −
1−tan 𝑎𝑟𝑐 tan 𝑥 tan 𝑎𝑟𝑐 tan 𝑦 4
Con’t…
𝑥+𝑦
⟹ = −1
1−𝑥𝑦
⟹ 𝑥 + 𝑦 − 𝑥𝑦 + 1 = 0 ∎
Example 3. Solve the differential equation
𝑦𝑒 2𝑥 = 4 + 𝑒 2𝑥 𝑦 ′
Solution:
⟹ 𝑦𝑒 2𝑥 𝑑𝑥 = 4 + 𝑒 2𝑥 𝑑𝑦
𝑒 2𝑥 𝑑𝑥 𝑑𝑦
⟹ =
4+𝑒 2𝑥 𝑦
1 2𝑒 2𝑥 𝑑𝑥 𝑑𝑦
⟹ =
2 4+𝑒 2𝑥 𝑦
1
⟹ ln 4 + 𝑒 2𝑥 = ln 𝑦 + 𝑐
2
⟹ ln 4 + 𝑒 2𝑥 = 2 ln 𝑦 + 𝑐
⟹ 4 + 𝑒 2𝑥 = 𝑦 2 𝑐 2 ∎
Example 4. Solve for the general solution of the D.E
sin 𝑥 sin 𝑦 𝑑𝑥 + cos 𝑥 cos 𝑦 𝑑𝑦 = 0
Solution:
sin 𝑥 cos 𝑦
⟹ 𝑑𝑥 + 𝑑𝑦 = 0
cos 𝑥 sin 𝑦
sin 𝑥 cos 𝑦
⟹ 𝑑𝑥 + 𝑑𝑦 = 0
cos 𝑥 sin 𝑦
⟹ − ln cos 𝑥 + ln sin 𝑦 = 𝑐
sin 𝑦
⟹ ln =𝑐
cos 𝑥
Continuation…
sin 𝑦
⟹ = 𝑒𝑐
cos 𝑥
sin 𝑦
⟹ =𝑐
cos 𝑥
⟹ sin 𝑦 = 𝑐 cos 𝑥 ∎
Example 5. Solve the D.E
𝑥𝑦 + 𝑥 = 𝑥 2 𝑦 2 + 𝑥 2 + 𝑦 2 + 1 𝑦 ′
Solution:
⟹ 𝑥𝑦 + 𝑥 𝑑𝑥 = 𝑥 2 𝑦 2 + 𝑥 2 + 𝑦 2 + 1 𝑑𝑦
⟹ 𝑥 𝑦 + 1 𝑑𝑥 = 𝑥 2𝑦2 + 𝑥 2 + 𝑦2 + 1 𝑑𝑦
⟹ 𝑥 𝑦 + 1 𝑑𝑥 = 𝑥 2 𝑦 2 + 1 + 𝑦 2 + 1 𝑑𝑦
⟹ 𝑥 𝑦 + 1 𝑑𝑥 = 𝑦2 + 1 𝑥2 + 1 𝑑𝑦
𝑥 𝑑𝑥 𝑦 2 +1
⟹ = 𝑑𝑦
𝑥 2 +1 𝑦+1
Continuation…
𝑥 𝑑𝑥 2
⟹ = 𝑦−1+ 𝑑𝑦
𝑥 2 +1 𝑦+1
1 2𝑥 𝑑𝑥 2
⟹ = 𝑦−1+ 𝑑𝑦
2 𝑥 2 +1 𝑦+1
1 𝑦2
⟹ ln 𝑥2 + 1 = − 𝑦 + 2 ln 𝑦 + 1 + 𝑐
2 2
⟹ ln 𝑥 2 + 1 = 𝑦 2 − 2𝑦 + 4 ln 𝑦 + 1 + 𝑐
Or
ln 𝑥 2 + 1 = 𝑦 2 − 2𝑦 + 4 ln 𝑐(𝑦 + 1)
∎
Practice Exercises
Solve the following differential equations.
a. 𝑥 𝑐𝑜𝑠 2 𝑦 𝑑𝑥 + tan 𝑦 𝑑𝑦 = 0
Ans. 𝑥 2 + 𝑡𝑎𝑛2 𝑦 = 𝑐 2
b. 𝑥𝑦 3 𝑑𝑥 + 𝑦 + 1 𝑒 −𝑥 𝑑𝑦 = 0
𝑥 1 1
Ans. 𝑒 𝑥 − 1 = + 2 + 𝑐
𝑦 2𝑦
′ 𝑦−𝑥 2
c. 𝑦 = 𝑥𝑒 ; 𝑤ℎ𝑒𝑛 𝑥 = 0, 𝑦 = 0
2
Ans. 𝑦 = ln −𝑥2
1+𝑒