04 First-Order DE Part 2 v3 (AY 2014-2015, With Answers)
04 First-Order DE Part 2 v3 (AY 2014-2015, With Answers)
04 First-Order DE Part 2 v3 (AY 2014-2015, With Answers)
Differential Equations
Part 2:
Exact & Homogeneous Types
Differential of a
Function of Two Variables
• Recall that if z = f(x, y) is a function of two
variables with continuous first derivatives in a
region R of the xy-plane, then its differential
is
f f
dz dx dy
x y
• In the special case when f(x, y) = c, where c
is a constant, then
f f
dx dy 0
x y
Differential of a
Function of Two Variables
df 2
x
x 5xy y dx
3
2
y
x 5xy y 3 dy
1 3 3
d x y x y dx x y dy
2 3 3 2
3
M(x, y) = x2y3
N(x, y) = x3y2
Illustration
Notice also that for
M(x, y) = x2y3
N(x, y) = x3y2
we have M 2 3
y y
x y 3x 2 y 2
and
N 3 2
x x
x y 3x 2 y 2
Criterion for an Exact Differential
N( x , y )
y
M(x, y )dx g(y )
Solving Exact Equations
Step 4. Solve for g’(y).
N( x , y )
y
M(x, y )dx g(y )
N( x, y )
y
M(x, y )dx y g(y )
N( x, y )
y
M(x, y )dx g' (y )
g' ( y ) N( x, y )
y
M(x, y )dx
Solving Exact Equations
Step 5. Integrate the equation g’(y)
with respect to y and substitute the
resulting g(y) into
f ( x, y ) M( x, y )dx g( y )
The implicit solution of the equation
is f(x, y) = c.
Example : Solve ( y 2 2xy 6x )dx ( x 2 2xy 2)dy 0
Solution :
( y 2xy 6x )dx ( x 2xy 2)dy 0
2 2
Be careful
M y 2 2xy 6x
2 y 2x
about the
signs
y y
N x 2 2xy 2
2x 2 y Step 1: Check if
x x ∂M/∂y = ∂N/∂x
Since the equation is exact,
F
y 2 2xy 6x
x
Holding y cons tan t ,
dF
y 2 2xy 6x
dx
Step 2: dF
Find F. y 2xy 6x
2
dx
dF y 2xy 6x dx
2
F xy x y 3x g( y )
2 2 2
Then,
F
Step 3:
Differentiate xy x y 3x g( y )
2 2 2
F with
respect to
y y
the other F
variable. 2xy x g' ( y )
2
y
The g’(y) of the last equation on the previous
page
F
2xy x g' ( y )
2
y
is equal to the encircled quantity
M dx N dy 0
F F
dx dy 0
x y
In other words,
Step 4: Solve for
F F
either g’(y) or
y y g’(x), whichever
is applicable.
F
N
y
2xy x g' ( y ) x 2xy 2
2 2
g' ( y ) 2
g( y ) 2y
Step 5: Integrate
either g’(y) or g’(x),
Hence, whichever is
applicable, then
F( x, y ) c substitute into F.
xy x y 3x g( y ) c
2 2 2
xy x y 3x ( 2y ) c
2 2 2
dx
dF y cos x 3x y 2x dx
2 2
F y 2 sin x x 3 y x 2 g( y )
Then,
F y sin x x y x g( y )
2 3 2
y y
F
2y sin x x 3 g' ( y )
y
But ,
F
N( x, y )
y
Hence,
2y sin x x g' ( y ) 2y sin x x ln y
3 3
g' ( y ) ln y
g( y ) y ln y y c
Subsitutin g to F :
F y sin x x y x g( y )
2 3 2
F y sin x x y x y ln y y c
2 3 2
F y sin x x y x y ln y y c 0
2 3 2
Since y (0) e,
F e sin 0 0 e 0 e ln e e c 0
2 3 2
c0
Thus ,
F y sin x x y x y ln y y 0
2 3 2
Solve the following exact equations :
1) (cos 2y 3x y )dx (cos 2y 2x sin 2y 2x y )dy 0
2 2 3
M(x, y) = xM(1, u)
where y = ux
N(x, y) = xN(1, u)
M(x, y) = yM(v, 1)
where x = vy
N(x, y) = yN(v, 1)
Homogeneous Equations
Either of the substitutions
y = ux
or
x = vy
where u and v are new dependent
variables, will reduce a homogeneous
equation to a separable first-order
differential equation.
Pr oof
Given : M( x, y )dx N( x, y )dy 0
Let : y ux
dy udx xdu
Then : M( x, ux )dx N( x, ux )dy 0
x M(1, u )dx x N(1, u )dy 0
M(1, u )dx N(1, u )dy 0
M(1, u )dx N(1, u ) udx xdu 0
M(1, u ) uN(1, u ) dx xN(1, u )du 0
dx N(1, u )du
0
x M(1, u ) uN(1, u )
Example : Find the general solution of
x 2 y' 4x 2 7xy 2y 2
Solution: Since the equation is homogeneous:
Let y ux
dy udx xdu
Then ,
x 2dy (4x 2 7xy 2y 2 )dx
x 2 (udx xdu) 4x 2 7 x(ux ) 2(ux ) 2 dx
x 2 (udx xdu) x 2 4 7u 2u 2 dx
xdu ( 2u 2 6u 4)dx
du dx
2u 6u 4 x
2
Solution: Let y ux
dy udx xdu
du dx
2u 6u 4 x
2
du dx
2
2u 6u 4 x
1 du dx
2
2 u 3u 2 x
1 A B dx
du
2 u1 u 2 x
1 1 1 dx
du
2 u1 u 2 x
Solution: 1 1 1 du dx
2 u1 u 2 x
1
ln | u 1 | ln | u 2 | ln x ln c
2
1 y y
ln | 1 | ln | 2 | ln x ln c
2 x x
y y
ln | 1 | ln | 2 | 2 ln x 2 ln c
x x
y y 2 2
ln | 1 | ln | 2 | ln x ln c
x x
y
| x 1| 2
ln ln c
y
| 2 | x2
x
Solution:
y yx
x| 1 | | |
ln ln c 2
x c 2
y y 2x 2
| 2 | x2 | | x
x x
yx |yx|
| | c 2
ln x ln c 2
| y 2 x | x 2
y 2x 2
| | x
x | y x | Cx | y 2x |
2
Example : Solve the given initial value problem .
( x ye y/x
)dx xe dy 0
y/x
y(1) 0
Solution: Since the equation is homogeneous:
Let y ux
dy udx xdu
Then,
x (ux)e dx xe (udx xdu) 0
ux / x ux / x
1 (u )e dx e udx xe du 0
u u u
1 ue ue dx xe du 0
u u u
1 ue u u
ue dx xe du 0u
dx u
e du 0 For y (1) 0 :
x
dx ln | 1 | e ln | c |
0/1
e du 0
u
x 0 1 ln | c |
ln | x | e ln | c |
u
Thus :
ln | x | e y/x
ln | c |
ln | x | e y/x
1
Note on the substitution
• Although either y = ux or x = vy can be used
for every homogeneous differential
equation, in practice we try x = vy whenever
the function M(x, y) is simpler than N(x,y).
• Also it could happen that after using one
substitution, we may encounter integrals
that are difficult or impossible to evaluate in
closed form; switching substitutions may
result in an easier problem.
Solve the following hom ogeneous equations :
1) ( x 2 y 2 )dx xydy 0
y
2) xdx sin ydx xdy 0
2
x
1 y 1 y
3) x y tan dx x tan dy 0
x x
4) ( y x 2 y 2 )dx xdy 0 when x 3 , y 1
5) (3x 2 2 y 2 ) y ' 2 xy when x 0, y 1
6) (16 x 5 y )dx (3x y )dy 0 when x 1, y 3
7) ( y 7 xy 16 x )dx x dy 0
2 2 2
when x 1, y 1
Answers :
2 2 2 4
1) x ( x 2y ) c
x 2y
2) 4x ln 2y x sin 0
c x
1 y
2
x y 2
3) 2y tan x ln
x
c 2 4
x
2
4) x 2y 1
2 2
5) x 2y ( y 1)
6) ( y 4x ) ln | y 4x | y 3x
7 ) 5( y 4x ) ln | x | x y