First Order Differential Equation
First Order Differential Equation
First Order Differential Equation
LEARNING OUTCOMES
1. Solve the general and particular solutions of the differential equation using the
methods of separation of variables, homogeneous function, exact equation
and non-exact equation.
LEARNING PLAN
SEPARATION OF VARIABLES
M dx + N dy = 0
So many differential equations are so simple that they can be put in the form
of :
A(x) dx + B(y) dy = 0
so that M becomes a function of “x” only while N becomes a function of “y”
only. This is the first type of differential equation of order one that is very
common in the engineering parlance wherein the variables can be
separated (variable separable equations).
F (x) + F (y) = c
or, simply
F=c
where F(x) and F(y) are the integral of A(x) dx and B(y) dy, respectively, and
F is the sum of F(x) and F(y).
Example 1
mydx = nxdy
Solution:
mydx nxdy
xy
= xy
mdx ndy
x
= y
mdx ndy
∫ x
= ∫ y
dx dy
m∫ x = n∫ y
m ln x = n ln y + ln c
ln xm = ln yn + ln c
ln xm = ln cyn
Solution :
(x2 – 4 ) y’ = -2 xy – 6x
dy
(x2 – 4) = - 2x ( y – 3)
dx
dy −2 xdx
= 2 this equation conforms with the standard Ndy = Mdx
( y +3) (x −4)
Integrating :
dy −2 xdx
∫ ( y+3) = ∫ ( x 2−4)
Example 3.
sinx dx cosy dy
+ =0
cosx siny
Integrating
sinx dx cosy dy
∫ c osx
+ ∫
siny
=0
- ln cosx + ln siny = c
ln siny – ln cosx = c
sin y
=c or sin y = c cos x (general solution)
cos x
Example 4.
Solution:
x cos 2 y dx tan y dy
+ =0
cos2 y cos2 y
tan y dy
x dx + =0
cos2 y
1
x dx + tan y ( )dy = 0
cos2 y
x dx + tan y sec2y dy = 0
Integrating
∫ x dx + ∫ tan y sec2 y dy = 0
x2 tan 2 y
+ = c
2 2
Example 5.
Solution :
dy
xy – y2 = 1
dx
Rearrange :
dy
xy = y2 + 1
dx
xy dy = (y2 + 1) dx
xy dy ( y 2+ 1 ) dx
=
x( y 2+1) x ( y 2+ 1)
y dy dx
2 =
( y +1) x
Integrating:
y dy dx
∫ y 2 +1 =∫
x
1 2 y dy dx
2
∫ 2
y +1
=∫
x
1
ln ( y2 + 1) = ln x + c
2
ln (y2 + 1) = 2 lnx + 2 ln c
y2 + 1 = ln (xc)2
y2 + 1 = x2c2
when x = 2, y = 1
y2 + 1 = x2c2
(1)2 + 1 = (2)2 c2
2 = 4c2
2 1
c2 = =
4 2
Substituting:
1
y2 + 1 = x2 ( )
2
1 2
y2 + 1 = x
2
x2 = 2( y2 + 1)
x2 – 2y2 – 2 = 0 (Answer)
LEARNING ACTIVITIES
1. dy/dx = y sin x
2. (1 – x2) dy/dx = 2y
8. xy3 dx + ex dy = 0
Homogeneous Function:
Polynomials in which all terms are of the same degree are called
homogeneous polynomials.
Example:
M (x, y) dx + N (x, y) dy = 0
are both homogeneous functions and are of the same degree in “x” and “y”, the
ratio M / N is a function of y / x alone. Thus, the above equation can be put
into the form :
dy/dx + M(x,y)/N(x, y) = 0
dy/dx + f(y/x) = 0
When a new variable “v” by putting y/x = v or y = vx, the equation becomes
x dv/dx + v + f(v) = 0
y = vx x = vy
Example :
Solution:
xydx + ( x2 + y2) dy = 0
v 2 y 2 dy + vy 3 dv v 2 y 2 dy + y 2 dy
+ =0
y2 y2
vydv + 2v2dy + dy = 0
vydv + (2v2 + 1) dy = 0
Separate the variable by dividing both terms by y( 2v2 + 1)
vydv (2 v 2 +1)dy
2
y (2 v + 1)
+ y (2 v 2 +1)
vdv dy
(2 v 2 +1)
+ y =0
By Integrating
vdv dy
∫ (2 v 2+1) +∫ =0
y
1 4 vdv
4
∫ (2 v 2+1) + ln y = c
1
ln (2v2+ 1) + ln y = c
4
ln ( 2v2 + 1) + 4 ln y = c
ln ( 2v2 + 1) + ln y4 = c
(2v2 + 1) y4 = c
x
Since x = vy, then v =
y
Substituting:
(2v2 + 1) y4 = c
x
[2 ( )2 + 1] y4 = c
y
x2 4
[2( 2) + 1 ] y = c
y
2 x2
[ 2 +1] y4 = c
y
2 x2+ y2 4
[ ]y =c
y2
2 x2 y4 + y 6
=c
y2
2x2y2 + y4 = c
Exampe 2:
Solution:
Let y = vx
dy = vdx + xdv
xdx(1+v2) + x2(2+v)dv = 0
xdx( 1+ v 2) x2 (2+ v)
+ =0
x2 (1+ v 2) x2¿ ¿
dx ( 2+ v ) dv
+ =0
x (1+ v2 )
dx 2 dv vdv
x
+ 2 + 2 = 0
(1+ v ) (1+ v )
By integrating:
dx 2 dv vdv
∫ x
+ ∫ (1+ v 2) + ∫ 1+v 2
¿
¿=0
dx dv v
∫ x
+ 2∫ 2 +
(1+ v )
∫ (1+ v 2) = 0
1 2 vdv
lnx + 2arctan v + 2 ∫ 2 = 0
(1+v )
1
lnx + 2 arctan v + ln(1+v2) = c
2
y
since y = vx, v =
x
y y
lnx2 + ln (1 + ( )2 + 4 arctan ( ) = c
x x
2 y2 y
lnx + ln (1 + 2 ) + 4 arctan ( ¿ = c
x x
EXACT EQUATION :
F(x, y) = Mx + Ny = c
dF = Mdx + Ndy = 0
Mdx + Ndy = 0
The, M (x, y)dx + N(x, y)dy = 0 can be called as an exact equation if Mdx +
Ndy=0.
∂M ∂N
And
∂y
= ∂x
, thus for an equation to be exact, it must be tested if
∂M ∂N
∂y
= ∂x
∂M ∂N
Theorem : If M, N, and are continuous functions of x and y, then a
∂y ∂x
necessary and sufficient condition that:
Mdx + Ndy = 0
∂M ∂N
Be an exact equation =
∂y ∂x
Or ∫ Ndy + g(x) = c
Note: The unknown functions f(y) and g(x) are obtained from the comparison
of these two (2) possible solutions.
Example:
∂M
M = 2xy – 3x2 ; = 2x
∂y
Exact
∂N
N = x2 + 2y ; = 2x
∂x
Using the direct method
x2y – x3 + ∫ ¿ ¿ ¿- x2)dy = c
x2y – x3 – y2 = c (Answer)
Solution:
M N
∂M
M= cos y + ycosx ; = - siny +cos x
∂y
Exact
∂N
N = xsinx – sinx x; = -siny + cos x
∂x
∫ Mdx + f ( y ) = c (1)
∫ Ndy + g ( x ) = c (2)
∫ (xsinx−sinx) + g(x) = c
x cos y + y sin x + g(x) = c
Comparison of the two possible solutions (1) and (2), shows that f(y)- g(x)= 0
M N
M = 3x(xy – 2) dx
∂M
= (3x2y – 6x) dx ; = 3x2
∂y
Exact
∂N
N = ( x3 + 3y)dy ; = 3x2
∂x
∫ Mdx = ∫ (3 x2 y ¿−6 x) dx ¿
2
= y ∫ 3 x dx - 6∫ xdx
3 x3 x2
=y[ ] - 6
3 2
= x3y – 3x2
N = x3 + 3y
∂ ∂
∫ Mdx = ( x3y – 3x2)
∂y ∂y
= x3
3 2
x3y – 3x2 + y = c ( Answer)
2