ENDEQN30 - Module 2 (Exact Equations) MEC191
ENDEQN30 - Module 2 (Exact Equations) MEC191
SOLUTION OF
implicit and explicit
solutions
FIRST-ORDER
DIFFERENTIAL
EQUATIONS
Separable Equations
Variable Transformation
Exact Equations
Non-Exact Equations
Integrable Combinations
Linear Equations
Bernoulli’s Equation
Prepared by:
Joseph D. Retumban, ChE, MS EnE
Department Chair – General Engineering
Exact Equations
Exact Equations
A first-order differential equation of the form
M x, y dx + N x, y dy = 0
𝜕f
is said to be an exact equation if and only if there exists a function f such that = M and
𝜕x
𝜕f
= N throughout some region.
𝜕y Concept: Partial derivatives
Note:
M x, y = y 2 − 1 N x, y = 2xy − sin y
𝜕M 𝜕N
= 2y − 0 = 2y 1 − 0
𝜕y 𝜕x
𝜕M 𝜕N
= 2y = 2y
𝜕y 𝜕x
𝜕M 𝜕N
Since = the ODE is exact.
𝜕y 𝜕x
2. y cos(xy) dx + 2y + x cos(xy) dy = 0
M x, y = y cos(xy) N x, y = 2y + x cos(xy)
𝜕M 𝜕N
= y −sin xy x + cos xy 1 = 0 + x − sin xy y + cos xy 1
𝜕y 𝜕x
𝜕M 𝜕N
= −xy sin xy + cos xy = −xy sin xy + cos xy
𝜕y 𝜕x
𝜕M 𝜕N
Since = the ODE is exact.
𝜕y 𝜕x
2
Exact Equations
Exact Equations
Illustration:
3. 1 + 3x sin y dx − x 2 cos y dy = 0
M x, y = 1 + 3x sin y N x, y = −x 2 cos y
𝜕M 𝜕N
= 0 + 3x cos y = − cos y 2x
𝜕y 𝜕x
𝜕M 𝜕N
= 3x cos y = − 2xcos y
𝜕y 𝜕x
𝜕M 𝜕N
Since ≠ the ODE is not exact.
𝜕y 𝜕x
becomes exact.
𝜕M 𝜕N
= 0 − 2 3y 2 + sin x 2y = − 6y 2 1 + ky − sin x
𝜕y 𝜕x
𝜕M 𝜕N
= −6y 2 + 2y sin x = −6y 2 + ky sin x
𝜕y 𝜕x
𝜕M 𝜕N
For the DE to be exact, = .
𝜕y 𝜕x
2=k
3
Exact Equations
or
Example:
𝜕M 𝜕N
= 2x 1 + 0 + 0 = 2x + 0 + 0
𝜕y 𝜕x
𝜕M 𝜕N
= 2x = 2x (Exact)
𝜕y 𝜕x
Solution 1:
comes from N(x,y)dy --> choose the terms without x variable
N1 y dy + M x, y dx = c N(x,y) = x2+ 2y - 5
2y 2 x2 x2
− 5y + 2y +4 + 3x = c
2 2 2
2y 2 x2 2 x2
− 5y + 2y +4 + 3x = c
2 2 2
y 2 − 5y + x 2 y + 2x 2 + 3x = c
4
Exact Equations
Example:
Solution 2:
comes from M(x,y)dx --> choose the terms without y variable
M1 x dx + N x, y dy = c M(x,y) = 2xy + 4x + 3
4x + 3 dx + x 2 + 2y − 5 dy = c
x is considered as constant
4 x dx + 3 dx + x 2 dy + 2 y dy − 5 dy = c
x2 y2
4 + 3x + x 2 y + 2 − 5y = c
2 2
2 x2 y2
4 + 3x + x 2 y + 2 − 5y = c
2 2
2x 2 + 3x + x 2 y + y 2 − 5y = c
2. 3x xy − 2 dx + x 3 + 2y dy = 0 Separable? No
Homogeneous? No
M x, y = 3x xy − 2 N x, y = x 3 + 2y Lines? No
= 3x 2 y − 6x Exact? Yes!
𝜕M 𝜕N
= 3x 2 1 − 0 = 3x 2 + 0
𝜕y 𝜕x
𝜕M 𝜕N
= 3x 2 = 3x 2 (Exact)
𝜕y 𝜕x
Solution 1:
N(x,y) = x3+ 2y
N1 y dy + M x, y dx = c
2y dy + 3x xy − 2 dx = c
2y dy + 3x 2 y − 6x dx = c
y 2 + x 3 y − 3x 2 = c 5
Exact Equations
Example:
2. 3x xy − 2 dx + x 3 + 2y dy = 0
Solution 1:
2y dy + 3x 2 y − 6x dx = c
y is considered as constant
2 y dy + 3y x 2 dx − 6 x dx = c
y2 x3 x2
2 + 3y −6 =c
2 3 2
y2 x3 3 x2
2 + 3y −6 =c
2 3 2
y 2 + x 3 y − 3x 2 = c
Solution 2:
M(x,y)dx = 3x(xy - 2) = 3x2y - 6x
M1 x dx + N x, y dy = c
−6x dx + x 3 + 2y dy = c
−6 x dx + x 3 dy + 2 y dy = c
2
3 x 3
y2
−6 +x y+2 =c
2 2
−3x 2 + x 3 y + y 2 = c
6
Exact Equations
Example:
Separable? No
Solve the following differential equations. Homogeneous? No
Lines? No
3. x cos x + y sin y dx + x y cos y + sin y dy = 0 Exact? Yes!
M x, y = x cos x + y sin y N x, y = x y cos y + sin y
𝜕M 𝜕N
= 0 + y cos y 1 + sin y 1 = y cos y + sin y 1
𝜕y 𝜕x
𝜕M 𝜕N
= y cos y + sin y = y cos y + sin y (Exact)
𝜕y 𝜕x
x cos x dx
0 dy + x cos x + y sin y dx = c
y is constant Use IBP (Shortcut):
𝜕M 𝜕N
= 0 + y − sin xy x + cos xy 1 = x −sin xy y + cos xy 1
𝜕y 𝜕x
𝜕M 𝜕N
= −xy sin xy + cos(xy) = −xy sin xy + cos(xy) (Exact)
𝜕y 𝜕x
Solution:
M(x,y)= 2x + y cos(xy)
𝑀1 𝑥 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 = 𝑐
2𝑥 𝑑𝑥 + 𝑥 cos(𝑥𝑦) 𝑑𝑦 = 𝑐
7
Exact Equations
Example:
4. 2x + y cos(xy) dx + x cos(xy) dy = 0
Solution:
cos xy dy
2x dx + x cos(xy) dy = c
Let u = xy
x is constant du = x dy
du
= dy
2 x dx + x cos xy dy = c x
du
2 = (cos u)
x 1 x
2 +x sin xy =c
2 x 1
= cos u du
x
x2 1
2 +x sin xy =c 1
2 x = sin u + c
x
1
x 2 + sin(xy) = c = sin xy + c
x