Chapter 3
Chapter 3
AKEJU A.O
University of Ibadan
Department of Mathematics
1
• Homogeneous type
• Exact type
• Bernoulli equation
dy
= f (x)g(y)
dx
•
dy
= 2xy 2
dx
•
dy
y −1 (x + 1)−1
dx
2
•
dy
(3y 2 + ey ) = cosx
dx
•
dy
(x + 1) = 2y
dx
Examples
Solve the following differential equations
(1)
dy 1+y
=
dx 2+x
Solution
This equation can be written in the separable form as
1 dy 1
=
1 + y dx 2+x
Hence,we have
ln(1 + y) = lnA(2 + x)
Then we get
y(x) = A(2 + x) − 1
(2)
dy
= 2xy 2
dx
Solution
This equation can be written in the separable form as
y −2 dy = 2xdx
Hence,we have
−1
= x2 + C
y
If we simplify ,we get
1
y(x) = −
x2 + C
where C is an arbitrary constant of integration
Examples
4
dy y x4
= 2y 3 e x −
dx x + 3y
y x4
f (x, y) = 2y 3 e x −
x + 3y
is such that
ty t4 x4
f (tx, ty) = 2t3 y 3 e tx −
tx + 3ty
y x4
= t3 [2y 3 e x − ]
x + 3y
= t3 f (x, y)
dy
= x3 y 2 − 3x5
dx
f (x, y) = x3 y 2 − 3x5
is such that
f (tx, ty) = t3 x3 t2 y 2 − 3t5 x5
= t5 [x3 y 2 − 3x5 ]
= t5 f (x, y)
that reduces the equation to the variable separable type of equation.Once this
5
this is obtained,we can then use the separation of variable technique to solve
the problem.
Examples Solve the following differential equations
(1)
dy x2 + y 2
=
dx xy
Let
y
y = vx =⇒ v =
x
So that
dy dv
=v+x
dx dx
But
dy x2 + v 2 x2 1 + v2
= =
dx x2 v v
This means that
dv 1 + v2
v+x =
dx v
If we simplify this above equation ,we have
dv 1
x =
dx v
This gives
v2
= ln x + c =⇒ v 2 = ln x2 + 2c
2
After further simplification,we have
y 2 = x2 (ln x + 2c)
6
So that
√
y = x ln x2 + A
(2)
dy x + 3y
=
dx 2x
Let
y
y = vx =⇒ v =
x
So that
dy dv
=v+x
dx dx
But
dy x + 3xv 1 + 3v
= =
dx 2x 2
This means that
dv 1 + 3v
v+x =
dx 2
If we simplify the above equation,we have
dv 1+v
x =
dx 2
This gives
2 ln(1 + v) = ln x + c where c = ln A
7
y
(1 + v)2 = Ax =⇒ (1 + )2 = Ax =⇒ (x + y)2 = Ax3
x
So that
√
y= Ax3 − x
dy
1. x2 + y 2 dx = xy
dy
2. (x2 + xy) dx = xy − y 2
dy
3. (x − y) dx =x+y
The equation we shall concern ourselves with here are either of the form:
y 0 = F (x, y) (1)
or
M (x, y)dx + N (x, y)dy = 0 (2)
Example
may be written as
dy sin(x + y)
y0 = =−
dx x + 3y
.
8
Definition 0.3.1. Let F be a function of 2 variables such that F has 1st partial
∂F (x, y) ∂F (x, y)
dF (x, y) = dx + dy ∀x, y ∈ D (3)
∂x ∂y
Example:
Let F (x, y) = xy 2 + 2x3 y
so that
∂F (x, y) ∂F (x, y)
dx = y 2 + 6x2 y, dy = 2xy + 2x3
∂x ∂y
Hence,
dF (x, y) = y 2 + 6x2 y + 2xy + 2x3
From (3.3),
dF (x, y) = M (x, y)dx + N (x, y)dy
Theorem 0.3.1. Consider equation (3.2), where M and N have 1st partial
derivatives in (x, y) ∈ D. Then, the DE (3.2) is exact in D iff
∂M ∂N
= ∀ (x, y) ∈ D (5)
∂y ∂x
∂F ∂F
But M = ∂x
and N = ∂y
, then
∂ 2F
!
∂M ∂ ∂F
= =
∂y ∂y ∂x ∂y∂x
∂ 2F
!
∂N ∂ ∂F
= =
∂x ∂x ∂y ∂x∂y
9
Consider
y 2 dx + 2xydy = 0
where
so that
∂M ∂N
= 2y, = 2y
∂y ∂x
Since
∂M ∂N
= = 2y
∂y ∂x
Then the given DE is an exact DE ∀ (x, y) ∈ D.
Exercise:
Verify whether the following differential equations are exact or not:
1. x2 dx + 2xydy = 0
2. ydx + 2xdy = 0
F (x, y) = c (6)
Solution:
and
∂M ∂N
= 4x, = 4x
∂y ∂x
Hence, the DE is exact.
∂F Z
= 3x2 + 4xy =⇒ F = 3x2 + 4xydx
∂x
So,
F = x3 + 2x2 y + Φ(y), (Φ is a f unction of y)
∂F
= 2x2 + Φ0 (y)
∂y
But
∂F
= N (x, y) = 2x2 + 2y
∂y
Therefore
∂F
2x2 + 2y = 2x2 + Φ0 (y) =
∂y
and
Φ0 (y) = 2y, =⇒ Φ(y) = y 2 + c
11
F = x3 + 2x2 y + y 2 + c
Solution:
and
∂M ∂N
= −2x sin y + 3x2 , = 3x2 − 2x sin y
∂y ∂x
Hence the differential equation is exact
∂F Z
= 2x cos y + 3x2 y, =⇒ F = 2x cos y + 3x2 ydx
∂x
So
F = x2 cos y + +x3 y + φ(y)
∂F
= −x2 sin y + x3 + φ0 (y)
∂y
But
∂F
= N (x, y) = x3 − x2 sin y
∂y
Therefore
x3 − x2 sin y = −x2 sin y + x3 + φ0 (y)
12
and
φ0 (y) = 0, =⇒ φ(y) = 0
Hence
F = x2 cos y + x3 y
Solution
∂F Z
= 3x2 y − 6x, =⇒ F = 3x2 y − 6xdx
∂x
So
F = x3 y − 3x2 + φ(y)
∂F
= x3 + φ0 (y)
∂y
But
∂F
= N (x, y) = x3 + 2y
∂y
Therefore
x3 + 2y = x3 + φ0 (y)
13
and
Hence
F (x, y) = x3 y − 3x2 + y 2
Exercise
(1) Determine which of the following differential equations are exact and
Solve those that are exact
(2.) Determine the value of constant A which the equations below are exact
(b.) ( x12 + 1
y2
)dx + ( Ax+1
y3
)dy = 0
y 1
2
dx + (y − )dy = 0
x x
which is exact (observe)
Generally, if
M (x, y)dx + N (x, y)dy = 0
Integrating factor.
Consider a Linear Differential equation of order 1 of the form
dy
+ Py = Q (7)
dx
is always
R
pdx
e
Example 1
Solution
dy
e3x + e3x 3y = e5x
dx
Observe that the LHS is the differential coefficient of ye3x i.e
d dy
(ye3x ) = e3x + e3x 3y
dx dx
Hence
d
(ye3x ) = e5x
dx
Integrating both sides, we have
Z
e5x
ye3x = e5x dx = +C
5
Divide both sides by e3x ,we have
e2x
y= + Ce−3x
5
Example 2
Solve the D.E
y0 − y = x
16
Solution
R
−1dx
I.F = e = e−x
dy
e−x − e−x y = xe−x
dx
Observe that the LHS is the differential coefficient of ye−x i.e
d dy
(ye−x ) = e−x − e−x y
dx dx
Hence
d
(ye−x ) = xe−x
dx
Integrating both sides,we have
Z
−x
ye = xe−x dx = −e−x (x + 1) + C
Example3 Solve
dy
+ ycotx = cosx
dx
Solution
Comparing with (3.7), p = cotx , Q = cosx,
R
cotxdx
I.F = e
17
R cosx
dx
I.F = e sinx
dy
sinx + ycotxsinx = sinx
dy
2
ysinx= cosxsinxdx= sin2 x + c
R
y= sinx
2
+ ccosecx
Exercise
Solve the following D.E
dy
(1) (x + 1) dx + y = (x + 1)2
dy
(2) (1 − x2 ) dx − xy = 1
dy
(3) x dx − 5y = x7
This is a non linear special type of D.E which can be reduced to a linear
equation via logical transformation.
dy
+ p(x)y = q(x)y n (8)
dx
18
dy
+ p(x)y = q(x)y n
dx
dy
y −n + p(x)y 1−n = q(x) (9)
dx
Let
Z = y 1−n (10)
Then
dz dy
= (1 − n)y −n (11)
dx dx
Substitute (3.10) and (3.11) in (3.9), we have
1 dz
+ p(x)z = q(x)
1 − n dx
dz
+ (1 − n)p(x)z = (1 − n)q(x)
dx
dz
+ Φ(x)z = Q(x) (12)
dx
where
(1 − n)p(x) = Φ(x) and (1 − n)q(x) = Q(x)
19
. Observe that (3.12) is of the form (3.7) which is a linear D.E in variable x
and z
Example 1
Divide through by y 2 ,
dy 1 1−2
y −2 + y =x
dx x
Let
z = y 1−2 ..............(3.13)
Then
dz dy
= −y −2 ..........(3.14)
dx dx
Substitute (3.13) and (3.14) into the given differential equation,we have
dz 1
− z = −x
dx x
The given equation has reduce to linear differential equation that be solve
using integrating factor i.e
R −1 −1 1
I.F = e x
dx
= elnx = x−1 =
x
Multiply both sides of the last equation by this integrating factor,we have
1 dz 1
+ 2 z = −1
x dx x
20
Note that the left hand side of the above equation satisfy the differential coef-
ficient
d z
(+ ) = −1
dx x
Integrating both sides,we have
z Z
= − dx = −x + c
x
Then
z = −x2 + cx
Therefore
y = (−x2 + cx)− 1
Example 2
Solve the D.E
dy
x2 y − x3 = y 4 cos x
dx
Solution:
dy 1 −y 4 cosx
− y=
dx x x3
dy 1 cosx
y −4 − y −3 = 3 ....... +
dx x x
Let
z = y 1−4 = y −3 .......... ∗
21
dz dy
= −3y −4 .......... ∗∗
dx dx
−3 we have
dz 3
+ z = −3x−3 cosx
dx x
This is a linear differential equation with variable z and x
Where
R 3
dx
I.F = e x = x3
dz
x3 + 3x2 z = 3cosx
dx
d
Observe that the RHS of above equation is the derivative of dx
(x3 z)
So that
d 3
(x z) = 3 cos x
dx
Integrate both sides, we have
Z
3
xz= 3cosxdx
3 sin x + c
z=
x3
and
x3 x3
y3 = R =
[ 3cosxdx] + c 3sinx + c
Therefore,
x3 1
y=( )3
3sinx + c
22
Exercise