W3 First Order Differential Equations Part 2 - Module
W3 First Order Differential Equations Part 2 - Module
1
First Order Differential Equations
Certain first order differential equations are not of the ‘variable-separable’ type, but can be
made separable by changing the variable.
𝒅𝒚
An equation of the form 𝑷 𝒅𝒙 = 𝑸, where P and Q are functions of both x and y of the same
degree throughout, is said to be homogeneous in y and x.
For example, 𝑓 (𝑥, 𝑦) = 𝑥 2 + 3𝑥𝑦 + 𝑦 2 is a homogeneous function since each of the three
𝑥 2 −𝑦
terms are of degree 2. However, 𝑓 (𝑥, 𝑦) = 2𝑥2 +𝑦2 is not homogeneous since the term in y in
the numerator is of degree 1 and the other three terms are of degree 2.
𝒅𝒚
Procedure to solve differential equations of the form 𝑷 =𝑸
𝒅𝒙
𝑑𝑦 𝑑𝑦 𝑄
(i) Rearrange 𝑃 = 𝑄 into the form =
𝑑𝑥 𝑑𝑥 𝑃
𝑑𝑦 𝑑𝑦 𝑄
(iii) Substitute for both 𝑦 and 𝑑𝑥 in the equation = . Simplify by cancelling, and an
𝑑𝑥 𝑃
equation results in which the variables are separable
(iv) Separate the variables and solve using the method in Module 2 of this course.
Course Module
𝑦
(v) Substitute 𝑣 = to solve in terms of the original variables.
𝑥
SAMPLE PROBLEM 1:
𝑑𝑦
Solve the differential equation, 𝑦 − 𝑥 = 𝑥 𝑑𝑥 , given x=1, and y=2.
Solution:
𝑑𝑦
(i) Rearranging y−𝑥 = 𝑥 𝑑𝑥 gives:
𝑑𝑦 𝑦 − 𝑥
=
𝑑𝑥 𝑥
𝑑𝑦 𝑑𝑣
(ii) Let 𝑦 = 𝑣𝑥, then =𝑣+𝑥
𝑑𝑥 𝑑𝑥
𝑑𝑦
(iii) Substituting for y and 𝑑𝑥 gives:
𝑑𝑦 1
𝑥 𝑑𝑥 = 𝑣 − 1 − 𝑣, from which 𝑑𝑣 = − 𝑥 𝑑𝑥
1
∫ 𝑑𝑣 = ∫ − 𝑑𝑥
𝑥
Hence, 𝑣 = −𝑙𝑛𝑥 + 𝑐
𝑥
(iv) Replacing 𝑣 by 𝑦
gives:
𝒚
= −𝒍𝒏𝒙 + 𝒄, which is the general solution.
𝒙
𝒚
= −𝒍𝒏𝒙 + 𝟐
𝒙
Differential Equations
3
First Order Differential Equations
SAMPLE PROBLEM 2:
𝑑𝑦 𝑥 2 +𝑦 2
Find the particular solution of the equation 𝑥 𝑑𝑥 = , given the boundary
𝑦
conditions that y=4, when x=1.
Solution:
𝑑𝑦 𝑥 2 +𝑦 2
(i) Rearranging 𝑥 𝑑𝑥 = gives:
𝑦
𝑑𝑦 𝑥 2 + 𝑦 2
=
𝑑𝑥 𝑥𝑦
Which is homogeneous in x and y since each of the three terms on the right hand side
are of the same degree.
𝑑𝑦 𝑑𝑣
(ii) Let 𝑦 = 𝑣𝑥, then 𝑑𝑥 = 𝑣 + 𝑥 𝑑𝑥
𝑑𝑦
(iii) Substituting for y and 𝑑𝑥 gives:
𝑑𝑣 𝑥 2 + 𝑣 2𝑥 2 𝑥 2 + 𝑣 2 𝑥 2 1 + 𝑣 2
𝑣+𝑥 = = =
𝑑𝑥 𝑥(𝑥𝑣) 𝑣𝑥 2 𝑣
𝑑𝑣 1 + 𝑣 2 1 + 𝑣2 − 𝑣2 1
𝑥 = −𝑣= =
𝑑𝑥 𝑣 𝑣 𝑣
Hence,
1
𝑣𝑑𝑣 = 𝑑𝑥
𝑥
1
∫ 𝑣𝑑𝑣 = ∫ 𝑑𝑥
𝑥
From which,
Course Module
𝑣2
= 𝑙𝑛𝑥 + 𝑐
2
𝑦
(v) Replacing v by 𝑥 gives the general solution:
𝒚𝟐
= 𝒍𝒏𝒙 + 𝒄
𝟐𝒙𝟐
16
= ln(1) + 𝑐
2
𝒚𝟐
= 𝒍𝒏𝒙 + 𝟖
𝟐𝒙𝟐
𝒅𝒚
An equation of the form 𝒅𝒙 + 𝑷𝒚 = 𝑸 where P and Q are functions of x and is called a linear
differential equation since y and it’s derivatives are of the first degree.
𝒅𝒚
Procedure to solve differential equations of the form + 𝑷𝒚 = 𝑸
𝒅𝒙
𝑑𝑦
(i) Rearrange the differential equation into the form 𝑑𝑥 + 𝑃𝑦 = 𝑄, where P and Q are
functions of x.
Equation (1):
(v) Integrate the right hand side of Equation (1) to give the general solution of the differential
equation. Given boundary conditions, the particular solution may be determined
Differential Equations
5
First Order Differential Equations
SAMPLE PROBLEM 3:
1 𝑑𝑦
Solve + 4𝑦 = 2.
𝑥 𝑑𝑥
Solution:
𝑑𝑦
+ 4𝑥𝑦 = 2𝑥
𝑑𝑥
𝑑𝑦
Which is of the form 𝑑𝑥 + 𝑃𝑦 = 𝑄 where P=4x and Q=2x.
𝟐 𝟏 𝟐
𝒚𝒆𝟐𝒙 = 𝟐 𝒆𝟐𝒙 + 𝒄
Course Module
SAMPLE PROBLEM 4:
𝑑𝑦
−𝑥+𝑦 = 0
𝑑𝑥
Solution:
𝑑𝑦
+𝑦 = 𝑥
𝑑𝑥
𝑑𝑦
Which is of the form + 𝑃𝑦 = 𝑄 where P=1 and Q=x.
𝑑𝑥
𝑦𝑒 𝑥 = ∫ 𝑒 𝑥 (𝑥)𝑑𝑥
∫ 𝑒 𝑥 (𝑥)𝑑𝑥 = 𝑥𝑒 𝑥 − 𝑒 𝑥 + 𝑐
𝑦𝑒 𝑥 = 𝑥𝑒 𝑥 − 𝑒 𝑥 + 𝑐
2𝑒 0 = 0 − 𝑒 0 + 𝑐
𝒚𝒆𝒙 = 𝒙𝒆𝒙 − 𝒆𝒙 + 𝟑
Course Module