first-order-differential-equations
first-order-differential-equations
Equations
DEFINITION OF DIFFERENTIAL EQUATIONS
𝑑𝑦 𝑑2 𝑦 𝑑𝑦 𝑑𝑥 𝑑𝑦
+ 5𝑦 = 𝑥 2𝑒 𝑥 , − + 3𝑦 = 0, + − 4𝑦 = 2𝑥 − 3𝑦
𝑑𝑥 𝑑𝑥 2 𝑑𝑥 𝑑𝑡 𝑑𝑡
𝜕2 𝑢 𝜕2 𝑢 𝜕2 𝑢 𝜕2 𝑢 𝜕𝑢 𝜕𝑢 𝜕𝑣
+ = 0, = + 3 , =
𝜕𝑥 2 𝜕𝑦 2 𝜕𝑥 2 𝜕𝑡 2 𝜕𝑡 𝜕𝑦 𝜕𝑡
𝑦′ + 5𝑦 = 𝑥 2 𝑒 𝑥 , 𝑦′′ − 𝑦′ + 3𝑦 = 0.
The Leibnitz notation has an advantage over the prime notation in
that it clearly displays both the dependent and independent
variables. For Example, in the equation
𝑑2 𝑥 𝑑𝑥
−6 − 7𝑦 = 0
𝑑𝑡 2 𝑑𝑡
NEWTON’S DOT NOTATION
Newton’s dot notation is sometimes used to denote derivative with
respect to time. Hence, the differential equation
𝑑2 𝑠 𝑑𝑠
+ + 3𝑠 = 0 becomes 𝑠ሷ + 𝑠ሶ + 3𝑠 = 0.
𝑑𝑡 2 𝑑𝑡
𝑑2𝑦 𝑑𝑦 4
−5 + 4𝑦 = sin(𝑥)
𝑑𝑥 2 𝑑𝑥
For example,
𝑦 ′′′ + 2𝑒 2𝑡 𝑦 ′′ + 3𝑦𝑦 ′ = cos(𝑡)
𝑀 𝑥, 𝑦 = 𝑀 𝑥 , 𝑁 𝑥, 𝑦 = 𝑁 𝑦 , 𝑡ℎ𝑒𝑛
𝑀 𝑥 𝑑𝑥 + 𝑁 𝑦 𝑑𝑦 = 0
is said to be separable differential equation. Then, we integrate
both side to get the solution of separable differential equation
as follows
𝑥𝑑 𝑥 𝑀 + 𝐶 = 𝑦𝑑 𝑦 𝑁 , 𝐻1 𝑥 + 𝐻2 𝑦 = 𝐶
where 𝐻1 𝑥 = 𝑥𝑑 𝑥 𝑀 and 𝐻2 𝑦 = 𝑦𝑑 𝑦 𝑁 , 𝐶 is a constant of
integration.
SEPARABLE DIFFERENTIAL EQUATIONS: EXAMPLE 1
Find the general solution of the given nonlinear differential
equation
2 𝑑𝑦 1
2𝑦 + 3 𝑥 − sin 𝑦2 − 1 = 0
𝑑𝑥 𝑥
2𝑦 3 1 1
න 2 𝑑𝑦 + න − 𝑑𝑦 + න sin(𝑢) 𝑑𝑢 = 𝐶
𝑦 −1 2 𝑦−1 𝑦+1
1 1
By the substitution, 𝑢 = and 𝑑𝑢 = − 𝑑𝑥.
𝑥 𝑥2
2
3 𝑦−1 1
ln 𝑦 − 1 + 𝑙𝑛 − cos =𝐶
2 𝑦+1 𝑥
the integral curves or the closed form or implicit form of the solution of the
differential equation where 𝐶 is the constant of integration.
SEPARABLE DIFFERENTIAL EQUATIONS: EXAMPLE 2
Find the general solution of the given nonlinear differential
equation
𝑑𝑦 2𝑥 1 + 𝑦2
=
𝑑𝑥 2𝑦 + 1 𝑒 −𝑥 2
We have the separable differential equation is in the form of
𝑑𝑦 2𝑥 1+𝑦 2
= 2 ;
𝑑𝑥 𝑒 −𝑥 2𝑦+1
2𝑦+1 𝑥 2 2𝑦 1 𝑥 2
𝑑𝑦 = 2𝑥𝑒 𝑑𝑥 and 𝑑𝑦 + 𝑑𝑦 = 2𝑥𝑒 𝑑𝑥
1+𝑦 2 1+𝑦 2 1+𝑦 2
SEPARABLE DIFFERENTIAL EQUATIONS: EXAMPLE 2
2𝑦 1 𝑥 2 𝑑𝑥
𝑑𝑦 + 𝑑𝑦 = 2𝑥𝑒
1 + 𝑦2 1 + 𝑦2
or if we let 𝑦 = 𝑢𝑥 in 𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 = 0,
𝑀 𝑥, 𝑢𝑥 𝑑𝑥 + 𝑁 𝑥, 𝑢𝑥 𝑑𝑦 = 𝑥 𝛼 𝑀 1, 𝑢 𝑑𝑥 + 𝑁 1, 𝑢 𝑑𝑦 = 0
is said to be homogeneous diff. eq. or homogeneous dif. eq. with the degree of α.
𝑦
Then the substitution = 𝑢 𝑜𝑟 𝑦 = 𝑢. 𝑥, transform homogeneous
𝑥
differential equation into separable differential equation.
HOMOGENEOUS DIFFERENTIAL EQUATIONS
Let us consider homogeneous differential equation and use 𝑦 = 𝑢𝑥
𝑑𝑦 𝑦
=𝐹
𝑑𝑥 𝑥
𝑑𝑦
= 𝑢 + 𝑢′ 𝑥. 𝑢 + 𝑢′ 𝑥= 𝐹 𝑢 in fact, it is separable differential equation
𝑑𝑥
𝑑𝑢 𝑑𝑥
𝑢′ 𝑥= 𝐹 𝑢 − 𝑢 or =
𝐹 𝑢 −𝑢 𝑥
arctan 𝑢 = 𝑥 + 𝐶 𝑜𝑟 𝑢 = tan(𝑥 + 𝐶)
By back substitution 𝑢 = −4𝑥 + 𝑦 − 1 we obtain,
𝑦 = 4𝑥 + tan 𝑥 + 𝐶 + 1
Impossing the initial condition 𝑦 0 = 1, we get 0 = tan(𝐶) and 𝐶 = 0.
Hence, the solution of initial value problem is
𝑦 = 4𝑥 + tan 𝑥 + 1.
LINEAR DIFFERENTIAL EQUATIONS
If the differential equation is in the form of
𝑑𝑦
+ 𝑝 𝑥 𝑦 = 𝑞 𝑥 with the initial condition 𝑦 𝑥0 = 𝑦0 ,
𝑑𝑥
𝑑𝜆 𝑥 𝑑𝜆 𝑥
= 𝑝 𝑥 𝑑𝑥 or = 𝑥𝑑 𝑥 𝑝
𝜆 𝑥 𝜆 𝑥
𝑑
Hence, 𝑥𝑒 −𝑥 𝑦(𝑥) = 4𝑥 3 𝑜𝑟 𝑑 𝑥𝑒 −𝑥 𝑦(𝑥) = 4𝑥 3 𝑑𝑥.
𝑑𝑥
LINEAR DIFFERENTIAL EQUATIONS: EXAMPLE 5
Integrating both sides with respect to x, we have
𝑒𝑥 𝑑 −𝑥 𝑦(𝑥) = 4𝑥 3 𝑑𝑥 and 𝑥 𝑒 −𝑥 𝑦 𝑥 = 𝑥 4 + 𝐶 or
𝑥 4 +𝐶
𝑦 𝑥 = 𝑒𝑥
𝑥
𝑑 𝑥𝑦 𝐶
= 3𝑥 2 , 𝑥𝑦 = 𝑥3 + 𝐶 or 𝑦 𝑥 = 𝑥2 + then 𝐶 = 0, 𝑦 𝑥 = 𝑥 2 𝑠𝑖𝑛𝑐𝑒 𝑦 1 = 1.
𝑑𝑥 𝑥
BERNOULLI’S DIFFERENTIAL EQUATIONS
If the differential equation is in the form of
𝑑𝑦
+ 𝑝 𝑥 𝑦 = 𝑞 𝑥 𝑦𝑛
𝑑𝑥
𝑑𝑦 1
+ 𝑦 = 3𝑥𝑦 − 3
𝑑𝑥 𝑥
1
𝑝 𝑥 = , 𝑞 𝑥 = 3𝑥 𝑎𝑛𝑑 𝑛 = −3. Then by using the substitution
𝑥
u= 𝑦 1−𝑛= 𝑦 4 , differentiating both sides and by using chain rule
we have 𝑢′ = 4𝑦 3 𝑦′
BERNOULLI’S EQUATIONS: EXAMPLE 7
𝑑𝑦 1 4 1 1
𝑦 3 + 𝑦 = 3𝑥 or 𝑢′ + 𝑢 = 3𝑥
𝑑𝑥 𝑥 4 𝑥
𝑑𝑢 4
+ 𝑢 = 12𝑥
𝑑𝑥 𝑥
then we get the linear differential equation in 𝑢. Integrating factor is
4
𝜇 𝑥 = 𝑒𝑥𝑝 𝑥 = 𝑥𝑑 𝑝𝑥𝑒 = 𝑥𝑑 𝑥 𝑝 4 .
𝑥
𝑑
Hence 𝑥 4 𝑢(𝑥) = 12𝑥 5 𝑜𝑟 𝑑 𝑥 4 𝑢(𝑥) = 12𝑥 5 𝑑𝑥.
𝑑𝑥
Integrating both sides, we have
𝑥 𝑑 4 𝑢(𝑥) = 12𝑥 5 𝑑𝑥 and 𝑥 4 𝑢(𝑥) = 2𝑥 6 + 𝐶 or u 𝑥 = 2𝑥 2 + 𝐶 𝑥 −4 .
1
𝑢 = 𝑦 4 𝑜𝑟 𝑦 4 = 2𝑥 2 + 𝐶 𝑥 −4 or 𝑦 = ± 2𝑥 2 + 𝐶 𝑥 −4 4
LINEAR DIFFERENTIAL EQUATIONS WITH
DISCONTINIOUS COEFFICIENTS
If the differential equation is in the form of
𝑑𝑦
+𝑝 𝑥 𝑦 =𝑞 𝑥
𝑑𝑥
and the coefficients may have discontinuity at 𝑥0 , then we can solve two differential
equations for 𝑥 > 𝑥0 and 𝑥0 < 𝑥 such that the solution is continious at that point.
It means that limit must be exist and equal to funtion at that value
lim 𝑦 𝑥 = 𝑦 (x0 ).
𝑥→±𝑥0
LINEAR DIFFERENTIAL EQUATIONS WITH
DISCONTINIOUS COEFFICIENTS: EXAMPLE 8
Find a continuous solution satisfying the given differential equation and
the indicated initial condition.
𝑑𝑦 1 0, 0<𝑡≤1
+ 𝑝(𝑡)𝑦 = , 𝑦 1 = 2 𝑤ℎ𝑒𝑟𝑒 𝑝 𝑡 = ൝ 1
𝑑𝑡 𝑡 , 𝑡>1
𝑡
𝐷
𝑦 1 = 2 and 2 = limt→1+ 1+ .
𝑡
LINEAR DIFFERENTIAL EQUATIONS WITH
DISCONTINIOUS COEFFICIENTS: EXAMPLE 8
Thus, 𝐷 = 1 and we obtain the solution of initial value problem is
1
𝑦 𝑡 =1 + for 𝑡 > 1.
𝑡
Finally, we obtain the continuous solution of initial value problem is in the
form that
𝑙𝑛𝑡 + 2, 0<𝑡≤1
𝑦 𝑡 =ቐ 1 .
1+ , 𝑡>1
𝑡
RICATTI’S DIFFERENTIAL EQUATIONS
If the differential equation is in the form of
𝑑𝑦
= 𝑃 𝑥 + 𝑄 𝑥 𝑦 + 𝑅(𝑥) 𝑦 2
𝑑𝑥
𝑑𝑦1
= 𝑃 𝑥 + 𝑄 𝑥 𝑦1 + 𝑅(𝑥) 𝑦1 2
𝑑𝑥
RICATTI’S DIFFERENTIAL EQUATIONS
Then the substitution 𝑦 = 𝑦1 𝑥 + 𝑣 −1 transform Ricatti’s
differential equation into linear differential equation is in 𝑣 =
𝑣 𝑥 . Taking the derivative both sides we have
𝑑𝑦
= 𝑦 1′ 𝑥 −𝑣 −2 𝑣 ′
𝑑𝑥
𝑣′ + (𝑄 𝑥 + 2𝑅 𝑥 𝑦1 𝑥 )𝑣 = − 𝑅(𝑥)
−2 𝑑𝑣 𝑑𝑣
−𝑣 = 𝑣 −2 𝑜𝑟, = −1
𝑑𝑥 𝑑𝑥
1
𝑣 = −𝑥 + 𝐶 and therefore, 𝑦 = 𝑠𝑖𝑛𝑥 + 𝑣 . Hence, 𝑦 𝑥 = 𝑠𝑖𝑛𝑥 +
−1
is one
𝐶−𝑥
parameter solution of Riccati’ s Equation.
1 1
𝑦 0 =0+ = 1 or = 1and 𝐶 = 1.
𝐶 𝐶
Therefore, the solution of IVP is
1
𝑦 𝑥 = 𝑠𝑖𝑛𝑥 +
1−𝑥
RICATTI’S EQUATIONS: EXAMPLE 10
Find the general solution of the differential equation if one of the
particular solution is given by 𝑦1 𝑡 = 𝑡.
2
𝑑𝑦
2𝑡 = 𝑡 − 1 𝑦 2 + 2𝑡𝑦 + 𝑡 2 (1 − 𝑡)
𝑑𝑡
We have the differential equation is in the Ricatti’ s form with 𝑃 𝑡 =
𝑡−1 1 −𝑡+1
, 𝑄 𝑡 = and 𝑅 𝑡 = the substitution 𝑦 = 𝑦1 𝑡 + (𝑣(𝑡))−1
2𝑡 2 𝑡 2
reduces Ricatti’ s equation to a linear equation.
𝑑𝑦 𝑑𝑣
We have 𝑦 = 𝑡 + (𝑣)−1 and by the chain rule we get = 1 − 𝑣 −2 ,
𝑑𝑡 𝑑𝑡
RICATTI’S EQUATIONS: EXAMPLE 10
𝑑𝑣
2𝑡 2 1 − 𝑣 −2 = 𝑡 − 1 𝑡 + 𝑣 −1 2 + 2𝑡 𝑡 + 𝑣 −1 + 𝑡 2 − 𝑡 3
𝑑𝑡
= 𝑡 − 1 𝑡 2 + 2𝑡𝑣 −1 + 𝑣 −2 + 2𝑡 𝑡 + 𝑣 −1 + 𝑡 2 − 𝑡 3
𝑑𝑣
2𝑡 2 − 2𝑡 2 𝑣 −2 = 𝑡 3 + 2𝑡 2 𝑣 −1 + 𝑡𝑣 −2 − 𝑡 2 − 2𝑡𝑣 −1 − 𝑣 −2 + 2𝑡 2 + 2𝑡𝑣 −1 + 𝑡 2 − 𝑡 3
𝑑𝑡
𝑑𝑣
−2𝑡 2 𝑣 −2 = 2𝑡 2 𝑣 −1 + (𝑡 −1)𝑣 −2
𝑑𝑡
2 𝑑𝑣 𝑑𝑣 (−𝑡+1)
2𝑡 = −2𝑡 2 𝑣 − (𝑡 − 1), +𝑣 =
𝑑𝑡 𝑑𝑡 2𝑡 2
𝑑𝑣 𝑡−1
Therefore, we obtain +𝑣 = − 2 which is a linear differential
𝑑𝑡 2𝑡
𝑡−1
equation in 𝑣 with 𝑝 𝑡 = 1, 𝑞 𝑡 = . By using integrating factor for
−2𝑡 2
this linear differential equation, we get 𝜇 𝑡 = 𝑒𝑥𝑝 = 𝑡𝑑 𝑝𝑥𝑒 = 𝑡𝑑 𝑡 𝑝
𝑒𝑥𝑝 𝑡 .
RICATTI’S EQUATIONS: EXAMPLE 10
𝑑 𝑡−1
Hence; 𝑒𝑥𝑝 𝑡 𝑣(𝑡) = 𝑒𝑥𝑝 𝑡 ,
𝑑𝑡 −2𝑡 2
1 𝑡−1
න 𝑑 𝑒𝑥𝑝 𝑡 𝑣(𝑡) = − න 2 𝑒𝑥𝑝 𝑡 𝑑𝑡
2 𝑡
𝑡−1 1 1 1
න 2 𝑒𝑥𝑝 𝑡 𝑑𝑡 = න( 𝑒𝑥𝑝 𝑡 − 2 𝑒𝑥𝑝 𝑡 ) 𝑑𝑡 = 𝑒𝑥𝑝 𝑡
𝑡 𝑡 𝑡 𝑡
−1 1 1
Since 𝑡 2 𝑒𝑥𝑝 𝑡 𝑑𝑡 = 𝑒𝑥𝑝 𝑡 − 𝑡 𝑝𝑥𝑒 𝑑𝑡 by integration by parts
𝑡 𝑡
−1 1
𝑢 = 𝑒𝑥𝑝 𝑡 , 𝑑𝑢 = 𝑒𝑥𝑝 𝑡 𝑑𝑡 𝑑𝑣 = 𝑑𝑡, 𝑣 =
𝑡2 𝑡
11 2𝑡𝐶𝑒𝑥𝑝 −𝑡 −1
𝑒𝑥𝑝 𝑡 𝑣(𝑡) = − 𝑒𝑥𝑝 𝑡 + 𝐶 and therefore, 𝑣 𝑡 = .
2𝑡 2𝑡
2𝑡
Hence, 𝑦 𝑡 = 𝑡 + is one parameter solution of Ricatti’ s Eq.
2𝑡𝐶𝑒𝑥𝑝 −𝑡 −1
LAGRANGE DIFFERENTIAL EQUATIONS
If the differential equation is in the form of
𝑑𝑦 𝑑𝑦 𝑑𝑦
𝑦 = 𝑥𝜑( ) + 𝜓( ) or 𝑦 = 𝑥𝜑(𝑝) + 𝜓(𝑝) where 𝑝 =
𝑑𝑥 𝑑𝑥 𝑑𝑥
𝑦 = 𝑥𝜑(𝑐𝑖 ) + 𝜓(𝑐𝑖 )
This solution is said to be the singular solution of the Lagrange
equation. To find second solution, we consider the equation as
follows
𝑑𝜑 𝑑𝜓 𝑑𝑝
𝑝−𝜑 𝑝 = (𝑥 + )
𝑑𝑝 𝑑𝑝 𝑑𝑥
LAGRANGE DIFFERENTIAL EQUATIONS
To find second solution of Lagrange differential equation, we consider the
equation
𝑑𝜑 𝑑𝜓 𝑑𝑝
𝑝 − 𝜑 𝑝 = (𝑥 + )
𝑑𝑝 𝑑𝑝 𝑑𝑥
𝑑𝑥 𝑑𝜑 𝑑𝜓 𝑑𝑥 1 𝑑𝜑 𝑑𝜓
as follows (𝑝 − 𝜑 𝑝 ) = (𝑥 + ) or = (𝑥 + )
𝑑𝑝 𝑑𝑝 𝑑𝑝 𝑑𝑝 (𝑝−𝜑 𝑝 ) 𝑑𝑝 𝑑𝑝
𝑑𝑥 1 𝑑𝜑 1 𝑑𝜓
− 𝑥 =
𝑑𝑝 𝑝−𝜑 𝑝 𝑑𝑝 𝑝−𝜑 𝑝 𝑑𝑝
𝑑𝑥 2 1
+ 𝑥 = − 2
𝑑𝑝 𝑝 𝑝
𝑑 𝑑𝑥 1
𝑝2 𝑥 = 𝑝2 + 2𝑝𝑥 = −𝑝2 = −1
𝑑𝑝 𝑑𝑝 𝑝2
LAGRANGE EQUATION: EXAMPLE 11
𝑑𝑥 2 1
(ii) + 𝑥=− which is a linear differential equation in x.
𝑑𝑝 𝑝 𝑝2
2
Integrating factor 𝜆 𝑝 = exp = 𝑝𝑑 𝑝 𝑃 exp = 𝑝𝑑 exp 𝑙𝑛𝑝2 = 𝑝2 so that
𝑝
𝑑 1 𝑐
𝑝2 𝑥 = −1 and 𝑝2 𝑥 = −𝑝 + 𝑐 or 𝑥 = − + 2.
𝑑𝑝 𝑝 𝑝
𝑑𝑥 2
+ 𝑥 = 3𝑝
𝑑𝑝 𝑝
𝑑 𝑑𝑥
𝑝2 𝑥 = 𝑝 2 + 2𝑝𝑥 = 3𝑝3
𝑑𝑝 𝑑𝑝
LAGRANGE EQUATION: EXAMPLE 12
𝑑𝑥 2
(ii) 𝑑𝑝
+ 𝑥 = 3𝑝 which is a linear differential equation in x.
𝑝
2
Integrating factor 𝜆 𝑝 = exp = 𝑝𝑑 𝑝 𝑃 exp = 𝑝𝑑 exp 𝑙𝑛𝑝2 = 𝑝2 so that
𝑝
𝑑 3 4 3 2 𝑐
𝑝2 𝑥 = 3𝑝3 and 𝑝2 𝑥 = 𝑝 + 𝑐 or 𝑥 = 𝑝 + 2.
𝑑𝑝 4 4 𝑝
arctan 𝑢 = 𝑥 + 𝐶 𝑜𝑟 𝑢 = tan(𝑥 + 𝐶)
By back substitution 𝑢 = −2𝑥 + 𝑦 we obtain,
𝑦 = 2𝑥 + tan(𝑥 + 𝐶)
𝜋
Impossing the initial condition 𝑦 0 = 1, we get 1 = tan(𝐶) and 𝐶 = .
4
1
14
𝑦 = arcsin 2 4𝑥 6 − 3 .
𝑥
EXACT EQUATIONS AND INTEGRATING FACTORS
Some times we may have the differential equation exact it means
that it is ready to integrate. Then we can integrate to get the solution
if possible. If it is not the case, then the differential equation is said
to be nonexact differential equation, then we can find an integrating
factor to make the differential equation is exact.
For Example, Grouping the terms, we get the solution of the exact
differential equation
2𝑥𝑦 3 + 3𝑥 2 𝑦 2 + 𝑦 + 2 𝑑𝑥 + 3𝑥 2 𝑦 2 + 2𝑥 3 𝑦 + 𝑥 + 3 𝑑𝑦 = 0
2𝑥𝑦 3 𝑑𝑥 + 3𝑥 2 𝑦 2 𝑑𝑦 + 3𝑥 2 𝑦 2 𝑑𝑥 + 2𝑥 3 𝑦𝑑𝑦 + 𝑦𝑑𝑥 + 𝑥𝑑𝑦 + 2𝑑𝑥 + 3𝑑𝑦 = 0
𝑑[𝑥 2 𝑦 3 ] + 𝑑[𝑥 3 𝑦 2 ] + 𝑑 𝑥𝑦 + 𝑑 2𝑥 + 3𝑦 = 𝑑[𝐶]
𝑑[𝑥 2 𝑦 3 +𝑥 3 𝑦 2 +𝑥𝑦 + 2𝑥 + 3𝑦] = 𝑑[𝐶] or 𝑥 2 𝑦 3 +𝑥 3 𝑦 2 +𝑥𝑦 + 2𝑥 + 3𝑦 = 𝐶.
EXACT EQUATIONS: EXAMPLE 16
Find the solution of the differential equation as follows
𝑑𝑦
4𝑥 3 + 𝑦 3 + 3𝑥𝑦 2 = 0.
𝑑𝑥
if and only if
𝑀𝑦 𝑥, 𝑦 = 𝑁𝑥 𝑥, 𝑦
at each point of R. That is, there exists a function 𝜓 𝑥, 𝑦 such that
𝜕𝜓 𝑥,𝑦 𝜕𝜓 𝑥,𝑦
= 𝑀 𝑥, 𝑦 , = 𝑁 𝑥, 𝑦 .
𝜕𝑥 𝜕𝑦
such that
𝑀𝑦 𝑥, 𝑦 = 𝑁𝑥 𝑥, 𝑦 or 𝑀𝑦 𝑥, 𝑦 = 𝜓𝑥𝑦 𝑥, 𝑦 , 𝑁𝑥 𝑥, 𝑦 = 𝜓𝑦𝑥 𝑥, 𝑦
at each point of R. That is, there exists a function 𝜓 𝑥, 𝑦 such that
𝜕𝜓 𝑥,𝑦 𝜕𝜓 𝑥,𝑦
= 𝑀 𝑥, 𝑦 , = 𝑁 𝑥, 𝑦 .
𝜕𝑥 𝜕𝑦
𝜕𝜓 𝑥,𝑦
𝜓 𝑥, 𝑦 = 𝑥 𝑀 , 𝑦 𝑑𝑥 + ℎ 𝑦 solve for ℎ 𝑦 such that = 𝑁 𝑥, 𝑦
𝜕𝑦
PROOF OF THE THEOREM
𝜕𝜓 𝑥,𝑦 𝜕𝜓 𝑥,𝑦
= 𝑀 𝑥, 𝑦 , = 𝑁 𝑥, 𝑦 .
𝜕𝑥 𝜕𝑦
𝜕𝜓 𝑥,𝑦
𝜓 𝑥, 𝑦 = 𝑥 𝑀 , 𝑦 𝑑𝑥 + ℎ 𝑦 solve for ℎ 𝑦 such that = 𝑁 𝑥, 𝑦
𝜕𝑦
𝜕𝜓 𝑥,𝑦 𝜕
= 𝑀 𝑥, 𝑦 𝑑𝑥 + ℎ′(𝑦) = 𝑁 𝑥, 𝑦 or ℎ′ 𝑦 = 𝑁 𝑥, 𝑦 − 𝑥 𝑦𝑀 , 𝑦 𝑑𝑥
𝜕𝑦 𝜕𝑦
𝑥 2 1 + 𝑦 2 + 𝑠𝑖𝑛2 𝑥 − 2𝜋 2 = 0
INTEGRATING FACTOR NONEXACT EQUATIONS
Assume that the differential equation is not an exact differential
equation is said to be nonexact differential equation in R
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 = 0
if and only if 𝑀𝑦 𝑥, 𝑦 ≠ 𝑁𝑥 𝑥, 𝑦 at each point of R. However, if there
exists a function 𝜆 = 𝜆 𝑥, 𝑦 that is called integrating factor such that
𝜆 𝑥, 𝑦 𝑀 𝑥, 𝑦 𝑑𝑥 + 𝜆 𝑥, 𝑦 𝑁 𝑥, 𝑦 𝑑𝑦 = 0
differential equation is exact if and only if
(𝜆𝑀)𝑦 = (𝜆𝑁)𝑥
provided that 𝑀, 𝑁, 𝜆 , 𝑀𝑦 , 𝜆𝑦 and 𝑁𝑥 , 𝜆𝑥 are continuous on R.
INTEGRATING FACTOR NONEXACT EQUATIONS
There exists a function 𝜆 = 𝜆 𝑥, 𝑦 integrating factor must satisfy the first
order partial differential equation(PDE) such that
𝜆 𝑥, 𝑦 𝑀 𝑥, 𝑦 𝑑𝑥 + 𝜆 𝑥, 𝑦 𝑁 𝑥, 𝑦 𝑑𝑦 = 0
differential equation is exact if and only if
(𝜆𝑀)𝑦 = 𝜆𝑦 𝑀 + 𝜆𝑀𝑦 = (𝜆𝑁)𝑥 = 𝜆𝑥 𝑁 + 𝜆𝑁𝑥
provided that 𝑀, 𝑁, 𝜆 , 𝑀𝑦 , 𝜆𝑦 and 𝑁𝑥 , 𝜆𝑥 are cont. on R. By using
product rule we obtain
𝜆𝑀𝑦 − 𝜆𝑁𝑥 = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁 or 𝜆(𝑀𝑦 − 𝑁𝑥 ) = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁
INTEGRATING FACTOR NONEXACT EQUATIONS
(𝜆𝑀)𝑦 = 𝜆𝑦 𝑀 + 𝜆𝑀𝑦 = (𝜆𝑁)𝑥 = 𝜆𝑥 𝑁 + 𝜆𝑁𝑥
provided that 𝑀, 𝑁, 𝜆 , 𝑀𝑦 , 𝜆𝑦 and 𝑁𝑥 , 𝜆𝑥 are cont. on R. By using
product rule we obtain
𝜆𝑀𝑦 − 𝜆𝑁𝑥 = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁 or 𝜆(𝑀𝑦 −𝑁𝑥 ) = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁
𝐼𝑓 𝜆 = 𝜆 𝑥, 𝑦 = 𝜆 𝑥 the integrating factor is only dependent on 𝑥 , then
𝑑𝜆
we have 𝜆𝑦 = 0 𝑎𝑛𝑑 𝜆𝑥 = 𝜆′ = . We obtain the integrating factor
𝑑𝑥
𝑑𝜆 (𝑀𝑦 −𝑁𝑥 )
𝜆(𝑀𝑦 −𝑁𝑥 ) = 𝜆′𝑁 and = 𝑑𝑥/ Separable Diff. Eq.
𝜆 𝑁
(𝑀𝑦 −𝑁𝑥 ) (𝑀𝑦 −𝑁𝑥 )
𝑙𝑛𝜆 = 𝑑𝑥 and 𝜆 = exp[ 𝑑𝑥] .
𝑁 𝑁
INTEGRATING FACTOR NONEXACT EQUATIONS
(𝜆𝑀)𝑦 = 𝜆𝑦 𝑀 + 𝜆𝑀𝑦 = (𝜆𝑁)𝑥 = 𝜆𝑥 𝑁 + 𝜆𝑁𝑥
provided that 𝑀, 𝑁, 𝜆 , 𝑀𝑦 , 𝜆𝑦 and 𝑁𝑥 , 𝜆𝑥 are cont. on R. By using
product rule we obtain
𝜆𝑀𝑦 − 𝜆𝑁𝑥 = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁 or𝜆(𝑀𝑦 − 𝑁𝑥 ) = −𝜆𝑦 𝑀 + 𝜆𝑥 𝑁
𝐼𝑓 𝜆 = 𝜆 𝑥, 𝑦 = 𝜆 𝑦 the integrating factor is only dependent on 𝑦 , then
𝑑𝜆
we have 𝜆𝑥 = 0 𝑎𝑛𝑑 𝜆𝑦 =𝜆′ = . We obtain the integrating factor
𝑑𝑦
𝑑𝜆 (𝑀𝑦 −𝑁𝑥 )
𝜆(𝑀𝑦 −𝑁𝑥 ) = −𝜆′𝑀 and = 𝑑𝑦 Separable Diff. Eq.
𝜆 −𝑀
(𝑀𝑦 −𝑁𝑥 ) (𝑀𝑦 −𝑁𝑥 )
𝑙𝑛𝜆 = 𝑑𝑦 and 𝜆 = exp[ 𝑑𝑦] .
−𝑀 −𝑀
REMARK ON INTEGRATING FACTOR
(𝑀𝑦 −𝑁𝑥 )
If is a function of 𝑥 only that is independent of y,
𝑁
then there is an integrating factor λ = 𝜆 𝑥 ; that is only dependent on 𝑥 ,
then we have
(𝑀𝑦 −𝑁𝑥 )
𝜆(𝑥) = exp[ 𝑑𝑥] .
𝑁
(𝑀𝑦 −𝑁𝑥 )
If is a function of 𝑦 only that is independent of 𝑥,
−𝑀
then there is an integrating factor λ = 𝜆 𝑦 ; that is only dependent on 𝑦 ,
then we have
(𝑀𝑦 −𝑁𝑥 )
𝜆(𝑦) = exp[ 𝑑𝑦] .
−𝑀
INTEGRATING FACTOR NONEXACT EQUATIONS:
EXAMPLE 18
Find the solution of the initial value problem as follows
1 𝑑𝑦
1 + 𝑦 2 + 𝑠𝑖𝑛𝑥𝑐𝑜𝑠𝑥 + 𝑦𝑥 =0, 𝑦 𝜋 =1
𝑥 𝑑𝑥
The differential equation is nonexact differential equation since,
𝑠𝑖𝑛𝑥 𝑐𝑜𝑠𝑥
𝑀 𝑥, 𝑦 = 1 + 𝑦 2 + and 𝑁 𝑥, 𝑦 = 𝑦𝑥. 𝑀𝑦 𝑥, 𝑦 ≠ 𝑁𝑥 𝑥, 𝑦 where
𝑥
𝑀𝑦 𝑥,𝑦 −𝑁𝑥 𝑥,𝑦 1 1
𝑀𝑦 𝑥, 𝑦 = 2𝑦 and 𝑁𝑥 𝑥, 𝑦 = 𝑦, = 2𝑦 − 𝑦 = . Therefore
𝑁 𝑥,𝑦 𝑥𝑦 𝑥
𝑑𝜆 𝑀𝑦 𝑥,𝑦 −𝑁𝑥 𝑥,𝑦
the integrating factor is dependent on 𝑥 so that = 𝑑𝑥 .
𝜆 𝑁 𝑥,𝑦
𝑀𝑦 𝑥,𝑦 −𝑁𝑥 𝑥,𝑦 1
𝜆 = 𝑒𝑥𝑝 𝑑𝑥 = 𝑒𝑥𝑝 𝑥 = 𝑥𝑛𝑙 𝑝𝑥𝑒 = 𝑥𝑑 .
𝑁 𝑥,𝑦 𝑥
𝜕𝑓
= 2𝑥𝑦 3 + 3𝑥 2 𝑦 2 + 𝑦 + ℎ′(𝑥) = 2𝑥𝑦 3 + 3𝑥 2 𝑦 2 + 𝑦 + 2.
𝜕𝑥