Ordinary Differential Equations
Exact Equations and Integrating Factor Abadi
Universitas Negeri Surabaya
Exact Equations & Integrating Factors
ο΄ Consider a first order ODE of the form π π₯, π¦ + π π₯, π¦ π¦β² = 0
ο΄ Suppose there is a function οΉ such that ππ₯ π₯, π¦ = π π₯, π¦ , ππ¦ π₯, π¦ = π(π₯, π¦)
and such that π π₯, π¦ = π defines π¦ = π(π₯) implicitly.
Then
π π₯, π¦ + π π₯, π¦ π¦β² = ππ
ππ₯ + ππ
ππ¦ ππ¦
ππ₯ = π
ππ₯ π(π₯, π π₯ ) and hence the original ODE becomes
π
ππ₯ π π₯, π π₯ = 0
ο΄ Thus π π₯, π¦ = π defines a solution implicitly.
ο΄ In this case, the ODE is said to be exact.
Suppose an ODE can be written in the form
π π₯, π¦ + π π₯, π¦ π¦
β²= 0 (1)
where the functions π, π, ππ¦ and ππ₯ are all continuous in the rectangular region β: π₯, π¦ β πΌ, π½ Γ (πΎ, πΏ). Then Eq. (1) is an exact differential equation iff
π
π¦π₯, π¦ = π
π₯π₯, π¦ , β π₯, π¦ β β (2)
That is, there exists a function π satisfying the conditions
π
π₯π₯, π¦ = π π₯, π¦ , π
π¦π₯, π¦ = π π₯, π¦ (3)
iff π and π satisfy Eq. (2).
Theorem 1
Example 1: Exact Equation
(1 of 4)Consider the following differential equation.
ππ¦
ππ₯ = β π₯ + 4π¦ 4π₯ β π¦ Then π π₯, π¦ = π₯ + 4π¦, π π₯, π¦ = 4π₯ β π¦ and hence
ππ¦ π₯, π¦ = 4 = ππ₯ π₯, π¦ β ODE is exact From Theorem 1, there exist π π₯, π¦ such that
ππ₯ π₯, π¦ = π₯ + 4π¦, ππ¦ π₯, π¦ = 4π₯ β π¦ Thus
π π₯, π¦ = β« ππ₯ π₯, π¦ ππ₯ = β« π₯ + 4π¦ ππ₯ = 1
2 π₯2 + 4π₯π¦ + πΆ(π¦)
Example 1: Solution
(2 of 4)We have ππ₯ π₯, π¦ = π₯ + 4π¦, ππ¦ π₯, π¦ = 4π₯ β π¦ and
π π₯, π¦ = β« ππ₯ π₯, π¦ ππ₯ = β« π₯ + 4π¦ ππ₯ = 1
2π₯2 + 4π₯π¦ + πΆ(π¦) It follows that
ππ¦ π₯, π¦ = 4π₯ β π¦ = 4π₯ β πΆβ² π¦ β πΆβ² π¦ = βπ¦ β πΆ π¦ = β 1
2 π¦2 + π Thus
π π₯, π¦ = 1
2 π₯2 + 4π₯π¦ β 1
2 π¦2 + π By Theorem 1, the solution is given implicitly by
π₯2 + 8π₯π¦ β π¦2 = π
Example 1:
Direction Field and Solution Curves
Our differential equation and solutions are given by ππ¦
ππ₯ = βπ₯ + 4π¦
4π₯ β π¦ βΊ π₯ + 4π¦ + 4π₯ β π¦ π¦β² = 0 β π₯2 + 8π₯π¦ β π¦2 = 0 A graph of the direction field for this differential equation,
along with several solution curves, is given below.
Example 2: Exact Equation
(1 of 3)Consider the following differential equation.
(π¦ cos π₯ + 2π₯ππ¦) + (sin π₯ + π₯2ππ¦ β 1)π¦β² = 0.
Then π π₯, π¦ = π¦ cos π₯ + 2π₯ππ¦, π π₯, π¦ = sin π₯ + π₯2ππ¦ β 1 and hence
ππ¦ π₯, π¦ = cos π₯ + 2π₯ππ¦ = ππ₯ π₯, π¦ β ODE is Exact From Theorem 1,
ππ₯ π₯, π¦ = π = π¦ cos π₯ + 2π₯ππ¦, ππ¦ π₯, π¦ = π = sin π₯ + π₯2ππ¦ β 1 Thus
π π₯, π¦ = β« ππ₯ π₯, π¦ ππ₯ = β« π¦ cos π₯ + 2π₯ππ¦ ππ₯ = π¦ sin π₯ + π₯2ππ¦ + πΆ(π¦)
Example 2: Solution
(2 of 3)From this
π π₯, π¦ = β« ππ₯ π₯, π¦ ππ₯ = β« π¦ cos π₯ + 2π₯ππ¦ ππ₯ = π¦ sin π₯ + π₯2ππ¦ + πΆ(π¦) It follows that
ππ¦ π₯, π¦ = sin π₯ + π₯2ππ¦ β 1 = sin π₯ + π₯2ππ¦ + πΆβ²(π¦)
β πΆβ² π¦ = β1 β πΆ π¦ = βπ¦ + π Thus
π π₯, π¦ = π¦ sin π₯ + π₯2ππ¦ β π¦ + π Theorem 1, the solution is given implicitly by
π¦ sin π₯ + π₯2ππ¦ β π¦ = π.
Example 2:
Direction Field and Solution Curves
Our differential equation and solutions are given by (π¦ cos π₯ + 2π₯ππ¦) + (sin π₯ + π₯2ππ¦ β 1)π¦β² = 0
π¦ sin π₯ + π₯2ππ¦ β π¦ = π.
A graph of the direction field for this differential
equation, along with several solution curves, is given below.
Example 3: Non-Exact Equation
(1 of 3)Consider the following differential equation.
3π₯π¦ + π¦2 + 2π₯π¦ + π₯3 π¦β² = 0 Then
π π₯, π¦ = 3π₯π¦ + π¦2, π π₯, π¦ = 2π₯π¦ + π₯3 and hence
ππ¦ π₯, π¦ = 3π₯ + 2π¦ β 2π¦ + 3π₯2 = ππ₯ π₯, π¦ β ODE is not exact To show that our differential equation cannot be solved by this method, let us seek a function π such that
ππ₯ π₯, π¦ = π = 3π₯π¦ + π¦2, ππ¦ π₯, π¦ = π = 2π₯π¦ + π₯3 Thus
π π₯, π¦ = β« ππ₯ π₯, π¦ ππ₯ = β« 3π₯π¦ + π¦2 ππ₯ = 3
2 π₯2π¦ + π₯π¦2 + πΆ(π¦)
Example 3: Non-Exact Equation
(2 of 3)It follows that
ππ¦ π₯, π¦ = 2π₯π¦ + π₯3 = 3
2π₯2 + 2π₯π¦ + πΆβ²(π¦)
β πΆβ² π¦ = π₯3 β 3
2 π₯2 β πΆ π¦ = π₯3π¦ β 3
2π₯2π¦ + π Thus there is no such function π. However, if we (incorrectly) proceed as before, we obtain
π₯3π¦ + π₯π¦2 = π
as our implicitly defined y, which is not a solution of ODE.
? ??
It is sometimes possible to convert a differential equation that is not exact into an exact equation by multiplying the equation by a
suitable integrating factor π π₯, π¦ :
π π₯, π¦ + π π₯, π¦ π¦β² = 0
π π₯, π¦ π π₯, π¦ + π π₯, π¦ π π₯, π¦ π¦β² = 0 For this equation to be exact, we need
ππ π¦ = ππ π₯ βΊ πππ¦ β πππ₯ + ππ¦ β ππ₯ π = 0
This partial differential equation may be difficult to solve. If π is a function of π₯ alone, then ππ¦ = 0 and hence we solve
ππ
ππ₯ = ππ¦ β ππ₯
π π
provided right side is a function of x only.
Similarly if π is a function of π¦ alone.
β
ππππ¦
= β
ππ¦βππ₯π
π
Integrating Factors
Example 4: Non-Exact Equation
Consider the following non-exact differential equation.
3π₯π¦ + π¦2 + π₯2 + π₯π¦ π¦β² = 0
Seeking an integrating factor, we solve the linear equation ππ
ππ₯ = ππ¦ β ππ₯
π π βΊ ππ
ππ₯ = π
π₯ β π π₯ = π₯
Multiplying our differential equation by ο, we obtain the exact equation
3π₯2π¦ + π₯π¦2 + π₯3 + π₯2π¦ π¦β² = 0, which has its solutions given implicitly by
π₯3π¦ + 1
2 π₯2π¦2 = π.
Integrating Factor
For π = π(π’), where π’ = π(π₯, π¦) we have
ππ π¦ = ππ π₯ βΊ πππ¦ β πππ₯ + ππ¦ β ππ₯ π = 0 That becomes
π ππ
ππ’ π’π¦ β π ππ
ππ’ π’π₯ + ππ¦ β ππ₯ π = 0 or
ππ
π = ππ₯ β ππ¦
ππ’π¦ β ππ’π₯ ππ’
Solve the equation π¦ ππ₯ + π₯2 + π¦2 β π₯ ππ¦ = 0 using the integrating factor as a function of π₯2 + π¦2
Solution :
First of all we check this equation for exactness:
ππ
ππ¦ = ππ¦ = 1, ππ
ππ₯ = ππ₯ = 2π₯ β 1
The partial derivatives of ππ¦ β ππ₯ are not equal to each other.
Therefore, this equation is not exact.
Now we try to use the integrating factor in the form π’ = π₯2 + π¦2. Here we have ππ’
ππ₯ = 2π₯, and ππ’
ππ¦ = 2π¦
EXAMPLE 4: INTEGRATING FACTOR π = π(π)
Then 1
π ππ ππ’ =
ππ
ππ¦βππ
ππ₯
πππ’
ππ₯βπππ’
ππ¦
= 1β(2π₯β1)
(π₯2+π¦2βπ₯)2π₯β π¦ 2π¦
= 2 β 2π₯
π₯2 + π¦2 2π₯ β 2 = 1
β π₯2 + π¦2 = β1 π’ 1
π ππ = β1 π’ ππ’ π = π’β1 = 1
π₯2 + π¦2
By the function π(π₯, π¦) we can convert the original differential equation into exact π¦
π₯2 + π¦2 ππ₯ + π₯2 + π¦2 β π₯
π₯2 + π¦2 ππ¦ = 0 where π π₯, π¦ = π¦
π₯2+π¦2 and π π₯, π¦ = π₯2+π¦2βπ₯
π₯2+π¦2 = 1 β π₯
π₯2+π¦2
Integrate the first equation with respect to the variable π₯ (considering π¦ as a constant):
π π₯, π¦ = ΰΆ± π π₯, π¦ ππ₯ = ΰΆ± π¦
π₯2 + π¦2 ππ₯ = arctanπ₯
π¦ + πΆ(π¦)
Substitute this in the first equation system to get:
ππ’(π₯, π¦)
ππ¦ = βπ₯
π₯
2+ π¦
2+ πΆ
β²π¦ = π(π₯, π¦)
We have πΆ
β²π¦ = 1 then C π¦ = π¦ + π
Hence, the general solution of the given differential equation is written in the form:
arctan π₯
π¦ + π¦ + π = 0
where π is any real number.
Exercises
Find the integrating factor, then solve the following ODEs:
1. π₯ + π¦ ππ₯ + ππ¦ = 0
2. 2π₯π¦ 1 + π¦2 ππ₯ β 1 + π₯2 + π₯2π¦2 ππ¦ = 0
3. π¦ + π₯π¦2 + π₯ β π₯2π¦ π¦β² = 0 using an integrating factor as a function of π₯π¦.