Professional Documents
Culture Documents
=:=J reduce certain differential equations to the equations of the types mentioned above,
using given substitutions and solve the resulting equations.
=:=J model physical problems in the form of ordinary differential equations of first order
,~~~.
:2.0
~-=-7
INTRODUCTION
general form of the ordinary differential equations of first order is given by
dy
dx
f(x, y),
-'-.::.-:-::-e f(x, y) is a function of x and y. If f(x, y) = -M(x, y)/N(x, y), then this equation can
'.0 written as
M(x, y) dx + N(x, y) dy = O.
~~
~.::.~
dy
dy
.
- - 2y = SlllX and 2x dx
dx
equations can be written as respectively
dy
dx
2y + sinx
and
dy
dx
+ (1 - x)y = x 2 .
SEPARABLE EQUATIONS
30
(2y + sinx)dx - dy = 0
and
[x2
= O.
In this chapter we are going to discuss ordinary differential equations of first order of types
separable variables, homogeneous, linear and exact. Each type of these differential equations
will be discussed later in details which includes the techniques of how to identify and solve the
given differential equations. We shall go further by considering differential equations which can
be reduced to the types discussed above, using given substitutions.
In this chapter the word "differential" in differential equation will be dropped. For example
separable differential equations will be called as separable equations.
2.1
SEPARABLE EQUATIONS
In this section we shall treat separable equations in details. We begin our discussion by showing
how to identify a given equation as a separable equation.
2.1.1
Method of identification
As we know that the general form of the first order differential equation is given by
dy
dx = f(x, V)
(2.1)
(2.2)
By substituting
dy
dx = u(x) v(y).
Separate the variables by putting all the terms in y and dy on one side and all the terms x and
dx on the other, we obtain the following definition.
dy
dx = f(x, y)
is called a separable equation if it can be written in the form of
dy
v(y) = u(x) dx.
<)
(2.3)
31
(a) dx - xy
= x.
.
dy
.
0
(c) smy
cosx dx - cosy smx = .
(b)
dx - xe
dy _
y-x
(d)
dy
x dx
= x - 2y.
Solution
(a) The given equation can be written as
dy
dx
+ xy.
dy
1+Y
= xdx.
= xe- x dx.
e- Y dy
Therefore, the equation is separable.
(c)
= cosy smx.
siny dy
cosy
sinx dx.
cos x
2.1.2
In this case the variables x and y can not be separated. Therefore, the equation is not
separable.
The solutions of differential equations of this type can be obtained by integrating both sides of
Equation (2.3). The result of this integration is
Jv~~)
+A 1
u(x)dx+A 2 ,
SEPARABLE EQUATIONS
32
Jv~~) J
=
u(x)dx+A 2 -AI'
Al with A, we have
Jv~~) J
=
u(x)dx+A.
If an initial value of y for a given x is given, we can then determine the value of A.
From this discussion, the process of solving separable equations can be summarized as follows.
2. Integrate both sides of the equation with respect to the related variables and then put
only a constant of integration, say A.
Example 2.2 I
dy
(a)
(x
+ 2) dx =
(c)
eX
dy
_+ x y 2 = O.
dx
y.
(b)
dy
coty dx = cotx.
(d)
dy
2
dx = sec y.
Solution
(a)
dy
y
dx
x+2
x+2
J dYy = J ~
In Iyl = In Ix + 2\ + k,
Rearranging this equation becomes
In Iyl - In Ix + 21 = k
k constant.
that is
A=e k .
-Y-=A
x+2
'
or
Y= A(x
b)
+ 2).
cos y dy =
sin y
cos x dx
sinx
In I sinyl = In I sin z]
+ k,
k constant.
that is
c)
I'
=k
or
siny
= A,
.
smx
A = ek
or
siny= Asinx.
dy
y
2= -xe- x dx.
J~; J
=-
1
- - = ;t:e- x
y
or
d)
xe?" dx
+ e- x + k,
1
y
- = A - (:r + l)e-
k constant
A = -k.
cos
2ydy
or
= dx
(! + !cos2y)dy = dx,
33
34
J(~ + ~
cos 2y) dy =
dx
~Y
+ ~ sin 2y = x + k,
2y + sin 2y = 4x + A,
or
Remarks
k constant
= 4k.
I In
Examples 2.2(a) and 2.2(c), the solutions are written explicitly as functions
of y in terms of x. However, in Examples 2.2(b) and 2.2(d), the solutions are
expressed implicitly. Solutions to differential equations are not necessarily written
in the form of y = f(x).
Example 2.3
dy
(y+
dY ) ,
x--3=2
dx
dx
= 0 when x = 3.
Solution
The given equation can be written as
dy
(x - 2) dx
= 2y + 3.
dy
dx
--=-
2y + 3
x- 2
dy
2y + 3 =
~ ln /2y + 3/ = ln
or
dx
x - 2
Ix -
21
+ k,
2y+3=A(x-2)2,
A=e 2k.
= 0, we have
3= A(3 - 2)2,
that is
+ 3= 3(x -
2)2,
= ~(x -
k constant
2)2 - ~.
A = 3.
35
I Example 2.4
= 1 when x =
1.
Solution
Separating the variables we obtain
or
Integrating both sides of the equation we get
In Iyl + - = - y
x
x) dx
+ In [z] + A,
A constant.
+ -y + -x In I -y
or
IX
Substituting x
= 1 and
In Ixl = A
.
I + -1 + -=
1 A.
Y
that is
A = 2.
I Remarks
In the preceding examples the variables in the given differential equations are
easily separated. However, there are some differential equations which do not
appear separable initially, but through appropriate substitutions the equations
can be reduced to separable equations. Let us see the following examples.
SEPARABLE EQUATIONS
36
Example 2.5
+ y,
convert
dy
dx
x
x
+y+
+ y + 5
to a separable equation. Hence, solve the original equation which satisfies the condition y(l)
Solution
Given z = x
+ y,
then
dz
dy
dx
dx
dz
dy
that is
-=--1.
dx
dx
Therefore the differential equation becomes
-=1+
z +1
z +5
dz
dx
--1=--.
Rearranging this equation gives
2(z
dz
dx
+ 3)
--z+5
5) dz 2dx
z+
( z+3
(1 + __z+3
2_)
or
dz
= dx.
z + 2 In Iz + 3 i = 2x + k,
or
In (z
(z +
or
Substituting back z
+ 3? = 2x -
3? = Ae
2x
+k
z
-
k constant
A = ek .
+ 3)2 =
Ae x - y.
that is
A = 25.
= 1.
37
-=2x~.
~=2xdx.
j h1-
Z2
= j 2x dX
sin -1 z = x 2
+ A, A constant
z=sin(x 2+A).
or
or
y=
+ A)
sin (x 2 + A)
.
x
\Ve now consider applications of the method to some problems. In each case, we need to first
interpret the physical data to model a differential equation.
I Example 2.7
According to Newton's law of cooling, the rate at which a body cools is proportional to the
difference between the temperature of the body and that of the surrounding medium. Let
represent the temperature (in DC) of a body in a room whose temperature is kept at a constant
180 If the body cools from 70 0 to 57 0 in 5 minutes, how much longer will it take for its
temperature to drop to 40 07
SEPARABLE EQUATIONS
38
Solution
Figure 2.1 illustrates the change in temperature of the body. The rate of change in () is directly
proportional to the difference between () and 18. This problem can be formulated as
de
- = -k(() - 18)
dt
Separating the variables, the equation becomes
'
_ ) d() = -k dt.
( _() - 1 18
r:--:-~---:--:--:--'
11
I"
':: <57'~c:::,
1 .1
I'
~:::::: 7.0~d::::::
5 minutes
'I
I'
I.
::::::::400::::::
? minutes
::-:':-.'.-: .':-:-::
===}
===>
..... I
. .. I
. . .....1
I'
J(()!
18) d() = -
In I() - 181
() 18
k dt
= -kt + C, C constant
= e- k H C
= Ae- k t , A=ec.
Therefore
() =
Given that ()
18 + Ae- kt .
= 70 when t = 0, we have
70
= 57 when t = 5.
= 18 + A,
that is
So
57
-5k
18 + 52e- k(5)
39
-5k
= In
52
G~)
k=_~ln(39)
Therefore, the problem is modeled as
=
() =
I......
5
52
0.05753.
18 + 52e-o.05753t.
= 52.
..
~ wLYARY
39
Temperature ()
r
r
r
r
------------------~--------------------r
r
r
r
. ... 1"
..................
r
I
+---
5 minutes
---+;---
Time t
? minutes -
e=
40, we
40 = 18 + 52e- o,05753t
52e-o.05753t = 22
-O,05753t
22
52
= 0.423077.
=
-0.05753t = -0.86020
t ~ 14.952 minutes.
Hence, the body requires approximately another 9.952 minutes in order to cool from 57C to
.o-c
Example 2.8
A. stone of mass tri is thrown vertically upward from the ground with air resistance equals to
;:c 2 g, where v is the velocity of the stone, k is a constant and 9 is the gravitational constant. If
the initial velocity of the stone is u, find the maximum height attained by the stone.
Solution
The total resistance against the motion of the stone due to air resistance and gravitational force
t which is positive in the direction
upward. From Newton's second law, this statement can be formulated as
d2x
Tndt 2
or
d2 x
= -mgkv 2
dt 2 = -g(kv
mg
+ 1).
SEPARABLE EQUATIONS
40
Notice that
where v
dx
dt '
x maximum
v=o
!~
( kv 2v+ 1 ) dv = -gdx.
;'
(kv
2V
1)
1
2
2k In (kv +
Given that v
dv
gdx
1)
= -gx
+ A,
A constant.
= u when x = 0, we obtain
2
2k ln(ku + 1) = A.
1)
= 2k
In (ku
+ 1) -
gx.
Let the maximum height attained be h. When the stone reaches the
maximum height, the stone stops momentarily, that is v
0 when
x = h. Hence,
v=u
1.
+ 1)
I Quiz 2A
dy
y dx
(c)
dr
de
(e)
dy
(1 - x) d
x
= 1 + y.
= (1 - r) cos e.
.
+ xy = sin x.
dy
dx
(b)
eY -
= x 2 + e":
(d)
2 dy
x dx
+ xy + Y = O.
(f)
ydx - xdy
= xydx.
41
= x.
(a)
eX+Y dy
dx
(c)
2 dy
Y cos x dx
(e)
(1 + x)
= 2 + tan x.
~~ = 1 + .
dy
dy
dx + 2y = xy .
dx
(b)
2x
(d)
dy
xdx
(f)
(1 + X)2
(b)
dy
x dx
y-1
---yo
y+ 1
~~ + y2 = 1.
dy
tanx dx + tany
(c)
(e)
dy
dx
y( ~1r)
= 0,
dy
dx = tan2x,
y
x 2 -1'
~1r.
= y2 + y,
y(O)
2.
(d)
dy
. 2
-= SIn
x
y(2)
= 1.
(f)
--=vX=1
dx
1 dy
x dx
'
'
= 1 when
= 2.
~ when x
= O.
= 0 when x = 1.
4. Using the given substitutions, find the solutions of the following differential equations.
(a)
- = tan 2 (x + y),
dy
dx
= x +y.
(b)
dy
x dx +y
(c)
dy
dx
= 3x - y - 3.
(d)
dy
dx
3x - y+ 3
3x - y -1'
= 2x(1 +X 2y 2), z
x+y
,
1-x-y
xy.
= x + y.
5. The temperature of a room is lODe. A body needs 20 minutes to reduce its temperature
from sooe to 50 oe. Assuming that the temperature of the room is constant and the rate of
cooling of the body is proportional to the difference between the temperature of the body
and that of the room, find the time for the body to cool from
6. A parachutist jumps from an aeroplane on a regular training. When his parachute opens
he is traveling vertically downward with a velocity VQ. If the velocity of the parachutist at
time t is v and his acceleration is given by
dv
dt
= 9 - kv,
----+
HOMOGENEOUS EQUATIONS
42
I
1.
2.
eY =
(d)
1
tan- 1 y + -In x 2 ( 1 + y2) = A.
2
e- x
(b) eY =
+ A.
3.
(d)
(d)
(c) Separable.
(a)
-xe- x -
Answer II
Y = ~(x + 1- ~ sin2x).
Separable.
Ax 2 y 2 .
(f)
x
(0) y = - - .
4-x
(c)
(e)
y2=3
C-
_ _1 .
x+l )
(c)
6.
(a) v=
2.2
~ In
2
(f)
Separable.
+ tan z}? + A.
(1l-y
+ y) + _1_ = A.
l+x
y2=4-lnlcos2xl.
y = fs(x -1)(3x+ 2)vx=T.
(3x - y - 3)2 = Ae Y- x .
5.
(c) y2 = (2
4.
(e)
(d) (x+y-lJZ+2x=A.
(b) 24.772 minutes.
k'
HOMOGENEOUS EQUATIONS
In this section we shall discuss homogeneous first order ordinary differential equations in details.
We begin our discussion on how to identify whether or not a given equation is homogeneous.
2.2.1
Method of Identification
The general form of the order differential equation of first order is given by
dy
dx = f(x, y).
dy
dx = f(x, y)
is called homogeneous equation if f(>..x, >..y)
<>
eeeee.
-"--"=
~k~----
[ExamPle 2.9
(a)
(c)
dy
y-x
dx
y+x
(b)
dy
- =x-y.
dx
(d)
dy
xy
dx
x2 _ y2
dy
y-=x(1ny
dx
Solution
a
()
y --x. I n this
hi examp1e
-dy = G Iven
dx
y+x
f(x, y)
y-x
=-.
y+x
A ) = Ay - AX
f( AX,y,
Ay + AX
y-X
y+x
= f(x, y).
(b)
.
dy
xy
.
GIven - = 2
2 In this example
dx
x-y
f(x, y) =
Test for homogeneity,
f(AX, AY)
xy
2
-y
(AX)(AY)
(AX)2 _ (Ay)2
xy
x2 _ y2
f(x, y).
(c)
f(x, y) = x - y.
Test for homogeneity,
f(Ad;, AY) = AX - Ay
= A(X - y)
= Af(x, y).
Hence, the equation is not homogeneous.
HOMOGENEOUS EQUATIONS
44
(d)
dy
dx
= :. ln
y
('!{)
.
In this example
f (x, y) = ;
ln
(~)
f(AX, AY) = AX
Ay in (AY)
AX
= ; in
(~)
= f(x, y).
Hence, the equation is homogeneous.
2.2.2
In practice, homogeneous equations can be reduced to separable equations, using the substitution
y =xv
Since y
or
v=
'x!{.
= xv, we have
dy
dv
-=v+x-.
dx
dx
Hence, by substituting this expression into the original equation we obtain an equation of sep
arable variables in terms of x dan v. When this expression is integrated then we obtain a
relationship between x and v. Finally by substituting v = y/x we have the required solution.
From the above discussion, the technique of finding solution for a homogeneous equation can be
summarized as follows.
.
S u b stitute
y
4 Integrate both sides of the equation with respect to the related variables and then put
only a constant of integration, say A.
5 If there is an initial condition, then substitute the condition into the general solution to
obtain the value for A.
:=-
45
"I
Example 2.10
xy
dx
which satisfies an initial condition y(O) = 2.
Solution
.
dy
Civen -d =
X
xy
2
x +y
In this example
f(x, y) =
xy
X
+ y2
(AX)(AY)
f(AX, AY) = (AX)2 + (Ay)2
xy
x2
+ y2
= f(x, V)
1 + v2
Rearranging the terms, this equation becomes
dv
v
x - = - -2- v
dx
1+ v
v3
1 +v 2
or
or
(1
+3v
v
2)
dv = _ dx
(~+~)
dv =
3
v
_ dx.
JC+ ~ )
1
1
--22
v
dv = -
+ ln Ivl =
J~
-In Ixl
'
+ k;
k constant
46
HOMOGENEOUS EQUATIONS
or
In
Ivl + In Ixl =
or
In
2v 2
Ixvl = k +
1
2v 2
'
or
y= Aex
2/
y2 ,
Example 2.11
that is
2
y= 2ex 2/ 2y.
f(x, y) =
Test for homogeneity,
xy-x
2'
(>.x)2 + (>.y)2
f(>'X, >.y) = (>.x)(>.y) _ (>.x)2
x2 +y2
xy - x 2
=
f(x, y).
A = 2.
(~) dv=
or
v+1
(1- _2_)
or
v+1
dx
x
dv = dx.
x
v-
2 In
Iv + II =
In Ixl
+ k,
k constant
In l(v+1)2 x i =v-k.
or
(v + 1)2x = Ae v ,
e:",
Example
2.121
x 2 + y2
xy
dy
dx
Solution
dy
Given d
x
= -
x 2 + y2
xy
. In
this example
2
f(x, y) = _ x
Test for homogeneity,
A A)
f( x, y
+ y
xy
(AX)2 + (Ay)2
(AX) (AY)
x2 +y2
xy
f(x, y).
= _
+X
dx
= - ---,--'--.,--'-
x(xv)
1 + v2
v
47
48
HOMOGENEOUS EQUATIONS
dv
1 + v2
x-=----v
dx
v
1 + 2v 2
v
+V
dv= _
2V2)
or
~x.
JC
+V2V2) dv
d;
= -
~ In (1 + 2v 2 ) = - In
In (1 + 2v
or
or
In
+ In x
4k
[x 4 (1 + 2v 2 ) ] =
4k.
Ixl + k,
k constant
x 4 (1 + 2v 2 )
Then, substituting v =
'!J...
A,
A = e4 k .
we get
+ 2(2 2 ) )
A,
that is
48.
Example 2.13
dy
dx
x+y
x-y
Solution
.
dy
x+y
.
GIVen -d- = - - . In this example
x
x-y
j(x, y)
Test for homogeneity,
x+y
x-y
= --.
j(AX, AY) = AX + Ay
AX - Ay
x+y
x-y
= j(x, y).
Hence, the equation is homogeneous.
- - - -
- - - - -
+ x - dv
"
dx
x + (xv)
x - (xv)
= ----'----'
l+v
I-v
C :2)
1
;
}f
dv
d:
(_1
__ +
+
or
v 2
"_v_) dv- dx
1 v2
X .
tan":' v - ~ In (1 + v 2 )
In [z]
+ k,
k constant
In [x 2 (1 + v 2 ) ] = 2tan- 1 v - 2k.
Hence, by taking the exponent of both sides of the equation, we obtain
x 2 (1 + v 2)
'J!...
1
",
+ y2 =
Ae2tan-l(y/x).
2.141
Solution
.
dy
GIven -
dx
2y 2
2
2'
+ y
In this example
f(x, y) =
we get
x2
Example
= Ae2 tan-
2y
+y2 .
2 (>-.y) 2
f(>-'x, >-.y) = (>-.x)2 + (>-.y)2
2y 2
x2
=
Hence, the equation is homogeneous.
+ y2
f(x, y).
= e- 2k.
HOMOGENEOUS EQUATIONS
50
+ X -dv
dx
2(xV)2
= ----:::---'---'-....,.-;::
2
+ (xv)2
2v 2
1 + v2 '
1 + v2
1+v
or
dv
= _ dx
v(v - 1)2
)2
(1- + ( 2)
or
v -1
x
dx
dv = - -.
J(~+
(v
~ 1)2) dv = -
d:
2
= - In Ixl + k,
v-I
k constant
In Ivl - - or
lnlvxl
+ --.
v-I
= Ae 2/ (v -
l ),
= ek .
= Ae 2x / (y - x ) .
In the preceding examples the given differential equations are homogeneous. How
ever, there are certain differential equations which are not homogeneous, but
through appropriate substitutions the equations can be reduced to homogeneous
equations. As an illustration let us see the following Example.
Example 2.15
I
+ 2, show that the equation
dy
x - y +2
dx
x +y- 2
can be reduced to a homogeneous equation. Hence, find the solution of the original equation.
51
Solution
If x = X and y = Y
+ 2, then
dx
= dX
and
dy
= dY.
dY
X-Y
dX- X+Y'
which is a homogeneous equation. Next, by using the substitution Y
= XV, we have
X dV = 1- V
dX
1+V
) dV = _ dX.
V +1
( V2 +2V -1
X
or
J(
V2
~ :V
l_
1)
dV = -
d:
In
1V + 2V - 11 + 2In IXI =
2k
+ 2V -1)X21 =
2k.
In 1(V2
or
k constant
By taking the exponent of both sides of the equation and substituting V = Y/ X, we obtain
y
+ 2XY _ X 2 = A,
= e 2k .
______
1.
Q_ul_Z_2_B_'_~
I'"-
dy
dx
x2 + y2
(x-y)(x+y)"
dy
d~ = y ( 1 + In y - In x).
2
dy
x +y) dx = xy.
(b)
dy
dx
y
x-,jXY
(d) x dy _ y = x
dx
X+y3
dy
(f)
dx
x 3 +y
vix 2 + y2.
52
LINEAR EQUATIONS
2.
Show that each of the following equations is homogeneous and find its general solution.
xy+ y2
dy
xy
- x 2'
dx
(c) x 2 dy - (y2 - xy) dx = O.
(a)
(e)
3.
3xy dy = y2 _ x 2.
dx
+ y) dx
(b)
(xe Y / x
(d)
(xy
+ x 2) dy + y 2dx
=
dy
+ -Jx 2 + y2 =
(f) x dx
- x dy = O.
O.
y.
4.
2/f + ~
y(l)
= 4.
(b)
xy
~~ = x 2 + y2,
dy
dx
y2 _ xy + x 2
x2
y(l)
2.
(d)
dy
dx
2x+y
,
x+2y
dy
dx
2 y2 - x 2
,
x 2 + 2xy
y(3)
= O.
(f)
dy
x dx - Y =
(a)
dy
dx
(c)
(e)
x'
Y = 1 when x
-J x 2
-
y2,
1 when x
Y = 1 when x
l.
= 3.
=
l.
By using the given substitutions, find the solutions of the following differential equations.
(a)
dy
dx
2x + y-1
x + 2y + i '
x = X + 1,
y=Y-l.
(b)
dy
dx
2x - 5y + 3
2x + 4y - 6'
x =x + 1,
y=Y+l.
(c)
dy
dx
x-y+2
,
x+y
x =X -1,
y=Y+l.
(d)
dy
dx
y-2
x+y-5'
x =X +3,
y = Y + 2.
I
1.
2.
3.
4.
2.3
Answer
(a) Homogeneous.
(d) Not homogeneous.
(a) xy = AeY / x.
(b)
(b)
e- Y / x + lnx = A.
(e)
(x 2 + 2y2)3 = Ax 2
= 2+ lnx.
(b)
y2
2=2Inx+1.
x
(e) ln z -} - - = 1.
(e)
(f)
(a)
/!;
Homogeneous.
x
y-x
sin " !
(b)
(e) x 2 - y2 - 2xy + 4x = A.
(d) y - 2 = Ae(x-3)/(y-2).
(;)
~7r +
lnx.
(4y - x - 3)(y + 2x - 3) = A.
LINEA~ EQUATIONS
In this section we shall look at first order linear ordinary differential equations. Differential
equations of this type are important and often occur in problems either in engineering or applied
mathematics. Our discussion begins with the general form of linear equation.
53
2.3.1
Method of Identification
dy
a(x) dx
+ b(x)y =
(2.4)
c(x),
where a(x), b(x) and c(x) are continuous functions of x or constants is called first order
linear equation.
<>
Examples of how to identify the given equations as linear equations are considered below.
Example 2.161
Determine whether or not the following equations are linear.
a)
c)
dy
x - - 2y
dx
dy
dx + y2 =
= x+ 1.
eX.
x2 ) ~~ = X (y + sin -1 x) .
(b)
(1 -
(d)
2 dy
y
2x - +xe
dx
= SlllX.
Solution
b(x) = - 2 and
c(x) = x
+ 1 are
continuous function of x.
a(x) = 1- x 2 ,
b(x) = -x
and
(c)
(d)
2.3.2
For the purpose of finding solutions of differential equations of this type, Equation (2.4) is
rearrangged so that the coefficient of
~~
dy
-d
x
where p(x)
b(x)
c(x)
+ p(x)y =
q(x),
(2.5)
LINEAR EQUATIONS
54
We wish to solve Equation (2.5) assuming p(x) and q(x) are either constants or functions of x
alone.
p=eJp(X)dx
(2.6)
Setting
and observing that, by using the chain rule,
(2.7)
dy
p dx
or
+ pp(x) Y = pq(x).
(2.8)
Using (2.7), and the formula for the derivative of a product, Equation (2.8) can be written as
d
d)PY]
pq(x).
Since p is a function of x alone and integrating this equation with respect to x gives
PY =
or
y=
pq(x) dx
+ A, A constant
~{J pq(X)dx+A},
which is the required general solution of (2.5). For convenience, the expression p = eJ p(x) dx is
called the integrating factor.
I
Remarks
p = eJ p(x) dx+k
= ekeJ p(x) dx,
which means that both sides of Equation (2.8) are multiplied by a constant, e k .
This constant may be omitted from the equation without having any effect on the
solution. For illustration, let us see Example 2.17 below.
Example 2.17
dy
dx + Y = x.
Solution
In this example p(x) = 1 and q(x) = x. Then
p(x) dx=
dx
+ k,
k constant.
55
+ eXy= xe",
': :,:e that this equation can also be obtained if the integrating factor were just
equation can be written as
p =
e", Then
::::.~
d
dx [eXy] = xe x.
~:-egrating
xei da:
= (x - l)e X
+ A,
A constant.
y = x-I
+ Ae- x .
:-~:;:n our previous discussions and Example 2.17, the technique of finding solution for a linear
-ciation can be summarized as follows.
31
:2
+ p(x)y =
q(x).
p(x) dx.
eJ p(x) "".
d
dx[PY] = pq(x).
:.)
Integrate both sides of the equation obtained in 4 and then solve for y. Be sure to
include a constant of integration, say A.
:6
If there is an initial condition, then use the values given to obtain the value for A.
LINEAR EQUATIONS
56
In the process of finding integrating factors sometimes we may need this formula
e1nj(x) =
o.
Example 2.18 I
dx + ytanx
= cos x,
= 1 when x = O.
Solution
In this example p(x)
= tanx and
cosx. Now
=-
q(x)
p(x) dx
p(x)
tan x dx
in cos x
= in sec x.
sec x dx
+ y sec x tan x =
1.
dx [y sec x] = l.
dx
= x + A,
A constant.
Hence, we have
y
= 0,
(x
+ A)cosx.
= 1 we obtain
1
(0 + A)(l),
(x
+ 1) cos x.
that is A
l.
= sec x, we obtain
57
Solution
Rewriting the given equation we have
~~
. example p ()
In this
x
-C~
x 2 ) Y = (1 _lx 2)2 .
.. .. .. .. . .. .. .. .. . . . . . .. . . . .
(i)
= - 1 _x x 2 and q()
x = (1 _ 1
x 2)2 ' Then
J~
p(x)dx = -
x 2 dx =
~ln(l- x 2) = ln~.
eJ p(x)dx =
~.
~ dy ~
dx
x
) y
Vl-x 2
[y~]
= (1 _lx2)~'
3 .
(l-x 2)2
= sin (J,
A constant.
y~=
that is
I Remarks
x
+A
Vl-x 2
x
A
= - -2 + -----===2
1- x
VI ~ x
' .
In the e~amples we have just discussed, the given differential equations are ob
viously linear. However, some nonlinear differential equations can be reduced to
linear equations by using appropriate substitutions. The following examples show
how this is done.
LINEAR EQUATIONS
58
Example 2.20
Solution
Notice that the given equation is not a linear equation in y. By using substitution z = y2, we
obtain
dz
dy
dx = 2y dx
dy
y dx
or
1 dz
dx.
"2
or
1 2 dz
-x - - xz= 1
2
dx
dz
2z
2
dx - --;- x2 '
which is a linear equation in z. We can show that the integrating factor of this equation is
1
p(x) = 2'
x
Equation (i) therefore can be written as
d~ [:2]= :4'
~=J~dX
x2
x4
-or
Z=
2
- 3x 3
+ A'
A constant
_2
+Ax 2
3x
2
y2 = - - + Ax 2.
3x
Imposing the initial condition y = 1 when x = 1, we obtain
or
2
2
2
1 = - 3(1) +A(1) ,
that is A = 3'
(i)
59
I Example 2.21
Solution
Given that z = sin y, then
dz
dy
-=cosy
dx
dx
dy
dz
-=secy-.
dx
dx
or
dz
dx
tan y
secy
sin y
+ -x- = X2
+ -;;- = x 2
dz
dx
+ ~ =~,
2
x
(i)
p(x) = x.
d
1
dx lx z ] = ;; .
xz=
Jd:
xz = ln x
+ A, A constant.
60
LINEAR EQUATIONS
+ A.
Example 2.22 I
A simple eletrical circuit consists of a constant resistance R (in ohms), a constant inductance L
(in henrys) and an electromotive force E(t) (in volts). According to Kirchhoff's second law, the
current i (in amperes) in the circuit satisfies the equation
di
L dt
+ Ri =
E(t).
(b)
--+ 00.
Solution
(i)
The integrating factor is therefore p(t) = e(R/ L)t, and the solution of Equation (i) is given by
ie(R/L)t =
(a)
Elt) e(R/L)tdt + A,
A constant.
(ii)
Figure 2.4 shows the electrical circuit with a constant E(t) = Eo. The solution is
ie(R/L)t =
i =
or
~o
e(R/L)tdt
+A
~ + Ae-(R/L)t.
(iii)
...
.
.
Eo
Imposing the condition that t = 0, i = i o to (lll), we obtam A = 20 - R' Finally the
required solution is
--+ 00,
61
io
(b)
5t
= 1~0
5t
e sin 1201rtdt
+ A.
R
ie5t =
1201rCOS1201rt ) ]
A
25 + 144001r2
+
A.
(iv)
To find A, we use the condition that when t = 0, i = O. Inserting these values into (iv) we
get
A _ 22 [
241r
]
- 3 1 + 5761r 2 .
Solution (iv) therefore becomes
ie 5t
= 22
3
241r]
+ 1 + 5761r 2
2=-
1
1
(1 + 5761r 2) "2
12:~e7~:2 ] .
and
22'
1761re- 5t
1 (cos sin 1201rt - sin cos 1201rt) +
5 6 2
3(1 + 5761r 2) "2
1 + 7 1r
LINEAR EQUATIONS
62
or
Example 2.23
A tank which initially holds 100 litres of a brine solution containing 90% of water and 10% of
salt is drawn off at the rate of 5 litres/rninute. At the same time the tank is refilled at the rate
of 4 litres/rninute with a solution that contains 50% of water and 50% of salt. Assuming that
the mixture is kept uniform. How much salt is present
(a)
(b)
Solution
Let S be the amount of salt in the tank after t minutes.
The tank originally contained salt with concentration 10
% out of 100 lit res of brine, that is S = 10 when t = O.
The mixture flows out at the rate of 5 litres/rnin and at
the same time, 4 litres/rnin of mixture is added to the
solution. So, at any time t > 0, the amount of mixture in
the tank is
~"Jo"
""
S litres/min \
-------;..
?~
The concentration of salt in the tank that is being drawn out at any time is
Further, the tank receives at the rate of 4 x 50% = 4 x 50/100 = 2 litres per minute of salt from
the second tank. Then the rate of increase of S is
dS =
dt
(a)
2_( 5 t )
100 -
or
dS
dt
(_5_)t = 2.
100 -
(i)
5_
In this equation p(t) = 100 t and q(t) = 2. Then
p(t)dt=
Since t
< 100,
5dt
100_t=-5In!100-tl.
(100S- t)5
=J
(100 2_ t)5 dt
A
+,
A constant
. ?...-=-.::::".-_-i....B:y DIFFERESTL-li
EQL-lTIO~"-S OF
s= !(100 -
t)
FIRST ORDER
+ A(100 -
53
t)5.
10 = !(100 - 0)
+ A(100 - 0)5,
40
. A = -t h at IS
100 5 .
s=
! (100 - t) - 40
CO~O~
S = ! (100 - 10) - 40 (
_ _ _ _ _ _ _ _1
100 -10) 5
100
= 21.38 litres.
Quiz 2C
OJ
3.
(a)
dy
(x + 1) dx = y.
dy
(b) dx = 3y - 2x + 5xy.
(c)
2 dy
2
x dx + xy = y + x.
dr
(d) dB = (1 - r) cos B.
(e)
dx
2
dt + 2tx = t .
(f)
dy.
. 2
dx +smy =sm x.
(a)
dy
2
dx +3y = e:",
dy
2
(b) dx +y = x .
(c)
dy
.
dx + y tan x = sin 2x.
dy
(d) x dx + 2y = cos x.
(e)
dy
2
(1 + x 2 ) dx - xy = x(l + x ) .
dy
(f) dx + Y cot x = x.
dy
(l+x)dx _xy=e 2 X , y(O) = 3.
(b)
dy
dx + y cot x = esc x,
(c)
dy
x
x--y=-dx
x + I.'
y(l) = O.
(d)
1 .
dy
dx + y cos x = "2 sin 2x, y = 1 when x = O.
(e)
2 dy
(1 - x ) - - xy = 1
dx
'
y(O) = O.
(f)
dy
2
x - -y = x lnx
dx
'
y = 0 when x = O.
Y = 1 when x = 1.
64
LINEAR EQUATIONS
4. Using the given substitutions, find the general solutions of the following differential equa
tions.
(a)
dy
dx
(c)
X -
+ Y = xy3
dy
+Y
dx
= y2x 2 ln x,
= y-2.
dy
(b) dx
- 4y
(d)
y-l.
dy
dx
"
= xyz,
z=y -2" .
2
= 2ytanx + y tan 2 x,
= y-l.
3x
cscy,
is reduced to
dz
dx
z
x
3x
-+-=-e .
Hence, solve the original equation.
6. Show that if z
+ Y2 =
dz
dx
2z
x
2" cos x,
-+-=--.
Hence, solve the original equation.
7. One of the basic equations in electric circuits is
di
L dt +R2
E,
where L is called the inductance, R the resistance, i the current, and E the electromotive
force or emf. (L and R are constants.)
(a)
If E
(b)
If E
= Eo cos wt,
= tan-1
Eo
If.
where 0:
--+
Eo
VR2
+w 2L 2
--+ 00,
(w:).
8. A mixing tank with a 1000 litre capacity initially contains 400 litres of distilled water. Then
at time t = 0 brine containing 0.25 kg of salt per litre of brine is allowed to enter the tank
at the rate of 8 litres/rnin and simultaneously the mixture is drained from the tank at the
rate of 6 litres/rnin.
------
--
65
If y is the amount of salt in the tank, show that the rate of change of the amount of
salt is given by
dy
dt
~=2
+ t + 200
______________---'I~A_n.s.w.e.r_Il__
l.
2.
:3.
(a) Linear.
(b)
Linear.
(b)
Linear.
y = x 2 - 2x + 2 + Ae- X
(e) Linear.
(a) y =
(d) x 2y = xsinx + cosx + A.
(e) y = 1 + x 2 + A\./1 + x 2.
(f)
(b)
(c)
y=xln(~).
x+l
(d)
(f)
y=x 2(inx-l)+2x.
..1.
.s.
xcosy = - ~e3x
S.
(b)
2.4
(d)
e2x + Ae- 3x .
ysinx = x.
1 - xcotx
+ Acscx.
+ ~e3x + A.
6.
y=~(t+200)-100(~)3.
t + 200
x 2y2
= x sinx +
cosx + A.
EXACT EQUATIONS
In this section we are going to discuss another type of ordinary differential equations of first
order which are known as exact equations. This type of differential equations often occur when
we wish to find a potential function for a conservative vector field. As usual we begin our
discussion on how to identify whether or not a given equation is exact.
(2.9)
dx = f(x, y).
In certain cases, the function f(x, y) on the right hand side of this equation may be written as
f( x, Y)
= _ M(x, y)
N(x, y)'
dx
On rearrangement,
M(x, y) dx
M(x, y)
N(x, y)'
+ N(x,
y) dy
= O.
EXACT EQUATIONS
66
Using the concept of total differential and differential equation of first order we obtain the
following definition.
+ N(x,
y) dy
(2.10)
= 0
is called an exact equation if there exist a continuous function u(x, y) such that
du = M(x, y) dx
+ N(x,
y) dy.
(;
(2.11)
1. How do we know that Equation (2.10) is an exact equation? In other word, what is the
condition involving M(x, y) and N(x, y) for Equation (2.10) to be exact?
+ N(x,
y) dy = 0
aN
ax'
(2.12) I
Proof
Let M(x, y) dx + N(x, y) dy = 0 is an exact equation. Then, there exists a continuous function
u(x, y) with its total differential is given by
au
au
du = ax dx+ ay dy.
Comparing this equation with Equation (2.11) we have
aU=M
ax
and
aU=N
ay
.
and
aN
ax'
67
02U
oyox
02u
oxoy'
Hence, we obtain
oM
oy
Conversely, if
o~
oN
= ox'
y) such
that
ou
ox = M(x, y)
(2.13)
ou
oy = N(x, y).
(2.14)
and
We choose to integrate Equation (2.13) with respect to x by holding y fixed. Therefore we have
u(x, y)
M(x, y) dx
+ (y),
where (y) is a function of y to be determined later. To establish this fact we differentiate this
equation with respect to y, obtaining
~~ = ;y
M(x, y) dx
+ '(y).
'(y) = N(x, y) - ;y
M(x, y) dx.
There will be a solution if '(y) is independent of x, and this will be the case if the derivative
of the right-hand side with respect to x is zero. Carrying out this differentiation, and with the
assumption that the partial differentiations with respect to x and y may be interchanged, we
have
o'(y)
0 [
~ = ox N(x, y) - oy
J
= --- - -- -- J
oN - -0 [0-= --ox
ox oy
oN
ox
0 [0
oy ox
oN oM
= - - - - - =0.
ox
oy
M(x, y) dx
M(x, y)dx
M(x, y) dx
]
]
EXACT EQUATIONS
68
This proves the hypothesis. If we recall the total differential of a function of two variables 7J,(x, y)
is given by
f}u
Bu
du= M(x, y) dx
+ N(x,
y) dy.
Furthermore, according to Definition 2.4, since "U(x, y) exists and is continuous, hence
M(x, y) dx
+ N(x,
y) dy
O.
Let us now consider examples of how to determine the given equations as exact equations.
Example 2.24
(a)
(2x
(b)
(~+3x2)
(d)
x In x dy
dX+(1+:
+ y dx = O.
Solution
(a)
M= 2x+ 3y2
so,
and
oN
ox = 6y.
oM =6y
oy
oM
oy
Therefore,
N= 6xy+2y,
oN
ox
and
so,
oM
oy
oN
ox
Therefore,
x3
N=l+-,
oM =I- oN.
oy
ox
3x 2
y
dy=O.
and
M = ysin2x
aN
aM
ay = sin2x
so,
-.- =
ax
sm2x.
aN
aM
Therefore,
X,
ay
ax
M=y
N= xlnx,
and
aN
aM
-=1
so,
7);;= l+lnx.
ay
aM
ay
Therefore,
i- aN.
ax
I Example 2. 25
Find the values of k such that the given equations become exact.
+ -kY)
dx 3
(2- Y+ -1 )
(a)
-y2
( x2
(b)
(c)
(1 + e
X
/
Y)
x2
dx + e X / Y
(1 +
dy
k;)
o.
=
O.
dy = O.
Solution
Assume that the given equations are exact.
(a)
aM 2y k
-ay= + x-3
x2
2y
1
x
N=---
2
X
aN
2y
2y
'
x 3
2
ax-- -x +
aM
ay
aN
ax'
that is
2y
+ x-3 = x-2 +x 3
x2
2.
70
(b)
EXACT EQUATIONS
In the given equation,
M
8M
8y
= 2x + y sin xy + k y 4
and
8N
= sin xy + xy cos xy + 4k y3
20y3.
8M
8y
8N
8x'
sin xy + xy cos xy + 4k y3
that is
-20, that is k
-5.
= 1 + eX / Y
X
N- e /Y
and
8N
8x
(1 + kX)
(1 + kX) +
y
= ~ eX/Y
y
eX/Y
(~).
y
8M
8y
8N
8x'
that is
eX/Y ( _
~)
~ eX/Y
or
X/ Y
e
( -
~)
=e
X/ Y
(1 + k:) +
(~~) + eX/ Y
eX/Y
(~),
C: k).
2.4.2
= -1.
Having established a test for exactness, it remains for us to respond to Question 2 to determine
how a continuous function u(x, y) can be found.
If M(x, y) dx + N(x, y) dy = 0 is an exact solution, then from Definition 2.4, there exists a
continuous function u(x, y) such that
du
= O.
u(x, y) = A,
A constant.
8u =M
8x
= A.
(2.15)
Given that
(2.16)
and
8u =N
8y
(2.17)
;::
71
The equations can be used to obtain the function u, First we integrate Equation (2.16) with
respect to x while holding y fixed. This gives us
u =
M dx+ (y),
(2.18)
where (y) is an arbitrary function of y. This arbitrary function (y) can be determined by
differentiating Equation (2.18) with respect to y and equating it with Equation (2.17).
Summerising, the technique of finding solution for an exact equation can be described as follows.
2 Write
8u = M
8x
and
8u
8y
=N
(2.19)
(2.20)
M dx +(y).
(2.21)
4 Differentiate Equation (2.21) with respect to y and equating the result with Equation
(2.20) to determine the arbitrary function (y).
I Example 2.26
~-
EXACT EQUATIONS
72
Solution
In this example,
= 6x 2
lOxy + 3y 2
and
aM
ay
-5x 2
+ 6xy -
3y 2
aN
= -lOx + 6y,
So,
aM
aN
ay
f);;'
We see that
au
ax
- = 6x 2
lOxy + 3 y 2
(i)
and
au
ay
= -5x 2 + 6xy - 3y 2 .
(ii)
(6x 2 - lOxy
= 2x 3 -
+ 3 y 2) dx
5x 2y + 3 x y 2
+ (y),
(iii)
where (y) is an arbitrary function of y. To determine (y), differentiate Equation (iii) with
respect to y and equating the result obtained with Equation (ii), that is
au
ay = -5x 2
+ 6xy + '(y)
= -5x 2 + 6xy - 3 y 2 .
'(y)
So, we have
Integrating with respect to y,
(y)
u(x, y)
= -3 y 2 .
= _y3 + B, B constant.
= 2x 3 - 5x 2y + 3x y 2
y3 + B.
or
y3 = C,
A - B.
Example 2.27
+ cos (x
- y)
+ 2x] dx +
[-xe- Y
cos (x - y) - 1] dy
O.
73
Solution
In this example,
:v
+ cos (x -
alvI
ay = -e- Y
y)
+ sin (x -
+ 2x
N = -xe- Y
and
aN
ax
V),
:30,
eu
aN
ay
ax
cos (x
y) - 1
-:v + sin (x - V)
au
ax =
ev + cos (x -
au
ay = -xe- Y
y) + 2x
(i)
cos (x - y) - 1.
(ii)
u=
J(e
= xe- Y
+ cos (x - y) + 2x) dx
-Y
+ sin (x -
y)
+ x 2 + (y),
(iii)
o~:ere
= -xe- Y
cos (x - y)
= -.Te- Y - cos
/(y)
we have
u = e:v
C'
+ sin (x
- y)
+ x2 -
(.T - Y) - 1.
-1.
(y) = -y + B,
+ /(y)
B constant .
+ sin (x
- y)
+ x2 -
Y + B.
= A, then
Y+B
xe- Y + s i n ( x - y ) + x 2 _ y = C ,
C=A-B.
-=.-=marks
We have shown that in the preceding examples the solution are initially obtained
by integrating Equation (2.19) with respect to x. The solution can also be initially
determined by integrating Equation (2.20) with respect to y. The result is then
differentiated with respect to x and equate with Equation (2.19).
74
EXACT EQUATIONS
Example 2.28 I
Solution
This is actually Example 2.26 revisited, and since it is exact we see that
f)u
f)x
- = 6x 2
and
f)u
f)y = -5x 2
lOxy + 3 y 2
(i)
+ 6xy -
(ii)
3y 2 .
(-5x 2 + 6xy - 3 y 2 ) dy
= -5x 2y + 3x y 2 -
y3 + 'IjJ(x) ,
(iii)
where 'IjJ(x) is an arbitrary function of x. To determine 'IjJ(x), differentiate Equation (iii) with
respect to x and equating the result obtained with Equation (i), that is
f)u
f)x = -lOxy + 3 y 2
+ 'IjJ' (x)
= 6x 2 -lOxy+ 3 y2 .
So, we have
'IjJ(x) = 2x 3 + D, D constant.
3
2y
U= 2x - 5x
+ 3x y 2 - y3 + D.
2x 3 - 5x 2y + 3x y 2 - y3 + D = A
or
2x 3 - 5x 2y + 3x y 2 - y3 = C, C = A-D.
"
I Remarks I The solution obtained is the same as the solution in Example 2.26, as to be
expected.
Example 2.29 I
sin x dy
+ (y cos x
- x sinx) dx = O.
75
, pilOn
h mis example,
M
aM
ay
ycosx xsinx
and
N= sinx
aN
= cosx,
ax
aM
aN
ay
ax'
= cosx.
au
ax = ycosx au
.
ay = slnx.
(i)
XSlllX
(1'1')
u=
sinxdy
= ysinx + 'ljJ(x),
(iii)
...-here 'ljJ(x) is an arbitrary function of X. To determine 'ljJ(x) , differentiate Equation (iii) with
::espect to x and equating the result obtained with Equation (i), that is
au
ax
+ 'ljJ' (x)
'==
y cos x
y cos x - x sin X.
= -xsinx.
So. we have
'ljJ'(x)
y sin x
y sin x
or
Remarks
+ x cos x -
D constant.
sin x
+ x cos x -
= A,
then
+D = A
sin x = C,
= A - D.
dy
dx
+ Y cot x = x,
EXACT EQUATIONS
76
+ C csc x
y = 1 - x cot x
y sin x
or
+ x cos x -
sin x
= C.
(a) In the examples we have discussed, the given differential equations are ex
act. However, there are certain equations that are not exact but can be
transformed to be exact by multiplying an integrating factor p,(x, y).
Assume that
M(x, y) dx
+ N(x,
y) dy = 0
is not exact. However, when this equation is multiplied by a factor p,(x, y),
the resulting equation
~L(X,
y)M(x, y) dx
+ p,er, y)N(x, y) dy =
P(x, y) dx
+ Q(x,
y) dy = 0,
(2.22)
where
P(x, y) =
~L(X,
y)M(x, y)
and
Q(x, y) =
~L(X,
y)N(x, y).
or
oP
oQ
oy
Ox
a (p,M) = ~
a (p,N).
~
uy
uX
From here we can proceed to obtain the general solution of the equation.
More detailed discussion is given in Exercise 2 Question 30.
(b) The integrating factor, p,(x, y), has many forms depending on the problem
given. It is important to note that for an equation which is not exact may
have a few different integrating factors to be come exact. Nevertheless, the
general solution obtained for the given equation will be unique.
For illustration we present the following examples.
Example 2.30 I
2ydx + xdy = 0
is not exact. If
~L(X,
~-
- - .
__ o_
,;.
-:::
~_-::
- ---
'-'----
77
__
------::
- -~~
_~
_0
.'
__
- ~-- -----:~~_:
"-~-~- ~--
Solution
=._----=
In this example,
-~~ ----~--------
and
M=2y
~,- ~~
N=x
aM
ay
=f
-_. _--=-
-::.---
~------
""-~~--=-- ~-_:::
.'
If we choose p,(x, y) =
,~------
2x 4y
--~
~~-~ ~=-~--~:
-:-
dy = 0,
~ ~_:-
_.~-----~_:
-~---=---
-~~
----= '.
-~~~--
"-=-=
-'--=~ -'--_:--:'.
-:-" ~ -~ --_:-:_~
A constant
C=
v'A.
:-
--~~-=:-~
not exact. If its integrating factor is of the form p,(x, y) = xmyn, determine the values of m
n so that the given differential equation becomes exact. Hence, find the solution for the
:~ginal equation.
..:5
~d
Solutlon
and
N= 2x 2 +3xy
aN
-=4x+3y.
ax
- .: :
~-.-~-_._._.::
_...
--:_---=~._
-.
~.-=-~:
- :~-
----~-
aM =2x+2y,
ay
--~-:_=-~-
.~ ~,,~=-~:
M= 2xy+y2
-=::." -- --_.'
-:~-=-_:
..
.-
~_.~.~
:_-~~=
(2xy
--
--=--=
~:-: - ~---~
x 2y= C,
--=-::==:.:
x 4 y 2 = A,
~iow
-~-_:~---=-~-_:-
--~~---
---~==:
---:'o~- _ :=_:~:
Example 2.31
~--=--
~~-=- -=-
C constant.
4X3 y2 dx
or
~----'
---~:_=~~-_
In this example, the integrating factor, p,(x, y) can have many forms. Some others
are
3
1
x,
2x y,
32'
x Y
2x 3y,
: :-
2
1
-dx + -dy = 0,
x
Y
which is an exact equation, and its solution is
---:
,.'_.-
C,
-=-~-~_:
-~-=---------==~-
aN.
ax
Xow if the equation is multiplied by the integrating factor p,(x, y) = - , then we have
xy
_. .'
~:_-----=:-:_:
x2y
--=::::::
--=----_._- ,::
aN = 1.
ax
aM =2,
ay
Remarks
---~---
.'.'
---=
EXACT EQUATIONS
78
So,
Multiplying the differential equation with the given integrating factor f.t(x, y) = xmyn, we have
(i)
From this equation, we let
and
If Equation (i) is exact, then
~
oy
or
or
nxmyn-l (2xy
of
oQ
oy
ox
[xmyn (2xy+y2)] =
~
ox
Notice that this is an identity which applies for all values of x and y. So it is necessary to equate
+ 2 = 3m + 3
and
Remarks
y2 + xy3 = A,
Example 2.32
= xmyn
2n
+ 2 = 2m + 4.
A constant.
Assuming that a suitable integrating factor for the following equation is f.t(x, y) = xf(y), solve
the differential equation
Solution
The given differential equation when multiplied by f.t(x, y) = xf(y) becomes
(2x sirr' y + 3x 2 sin y) f(y) dx + (4x 2 cos y sin 2 y + 2x 3 cos y) f(y) dy = O.
(i)
79
8P
8y
or
or
8Q
8x
=
:x
y + 3x 2 cos y) f(y)
3x 2 [f'(y) sin y - f(y) cos y] = -2x sin 2 y[ (y) sin y - f(y) cos y].
Notice that the equation is true only if
or
cosy
siny
f(y) = siny.
Therefore, its integrating factor is /L(x, y) = x sin y. Hence, Equation (i) becomes
x 2 sin? y + x 3 sin 2 y
A,
A constant.
_________,I_Q_u_iz_2_D....'
1.
(a)
(3x 2y + eY ) dx
(b)
(2x
(c)
(d)
xdy+(y-e X ) dx=O.
(e)
x(y + 2) dx
(f)
(y
+y -
+ (x 3 + xe Y - 2y) dy = O.
cosy) dx + (4y + x + sinx) dy =
+ y(x + 2) dy =
J x 2x+ y2 )
dx
O.
O.
+ (x +
J x 2Y+ y2 )
dy = O.
80
EXACT EQUATIONS
2. Determine the values of k such that the following differential equations are exact. Hence,
solve the equations.
(a)
(y3 + k x y 4
(b)
(c)
(ycosx + kxe- Y
(d)
2) dx + (sin x - x 2e- Y ) dy
= O.
3. Show that the following equations are exact. Hence, find the solutions.
(a)
(c)
1)
y3 - -
dy
+ -y2
x
dx = O.
(d)
= O.
,5.
(a)
(x + y)2 dx + (2xy + x 2 - 1) dy
(b)
y(O) =
(c)
(d)
y(O)
y(l) = 1.
0,
= 0,
J20.
y(O) = 1.
= e.
(xy+y2 +y)dx+ (x
is not exact. By using the integrating factor fL(X)
7. Given (3xy - 2py2) dx + (x 2 - 2pxy) dy
= 0,
+ 2y) dy = 0
= eX, solve the equation.
p constant.
(a)
(b)
Multiply the equation by f(x) and determine the function f(x) such that the equation
becomes exact.
(c)
Using the function f(x) obtained in (b), find the solution of the original equation.
= O.
81
(b)
Multiply the equation by xmyn and determine the values of m and n such that the
equation becomes exact.
(c)
Using the values of m and n obtained in (b), find the solution of the original equation.
9. By assuming the integrating factor !J(x, y) = xf(y), solve the differential equation
(2 sin 2 y
+ 4x 2 sin y)
dx
dy = O.
1
10. Use !J(x, y) = - f(y) as the integrating factor to solve the following differential equations.
x
(a)
(2x lnx) dy
+ y dx =
2.
(a) Yes.
(b) No.
(e) No.
(e) 2,
O.
----------------
(d) Yes.
xy3 + 5x 2 y4 - x 2 = A.
ysinx + x 2e- Y 2x = A.
(a) 10,
(1 + xy2) dy
I Answer
---------------1.
~ dx -
(b)
O.
(e)
(f)
No.
(b) 1,
x2y2+yex_y=A.
(d) -3,
xeos2y-x3y2+~sin2y=A.
3.
_
(a) ly4
4
Y... - A
.
x
(e) x 3 + eosxy = A.
(d) -lnleosxl+eosxsiny=A.
4.
.5.
x 2 y2(x - 5)
= A.
(b) f(x)
(b) m=n=1.
9.
xsiny,
10. (a)
6.
= x.
7.
8.
y(x
(e)
y 2 1n x
Y...
(e)
(b)
A.
_ _ _ _ _ _ _1
+ y)e
= A.
x 2y(x - py)
A.
x 2 y2(y - 2x) = A.
(~ + y2
_ 2y
2) eY
1'------
EXERCISE 2
dy
x(l - y)- + y(2 - x) = O.
dx
(a)
2 dy
x dx=y(y-1).
(b)
(c)
dy
dx
(d) 2x -
y
dy
(e) (1 + x) dx
dy
= 1 - 2y
dx
+ 1)'
=
Xv 1 - y.
(f)
dy
vXY dx
= A.
x(x
Yes.
V4 -
+ Y2
.
x.
82
EXERCISE 2
2.
Using the given substitutions, solve the following differential equations.
3.
4.
5.
(a)
dy
dx = (x
(c)
dy
dx
(x+y-l)2'
(e)
dy
dx
x+y
,
l+x+y
+ 4y)
= x+4y.
(b)
dy
dx = 1 - cos(x - y),
z = x -yo
z=x+y-l.
(d)
2 dy
1
x-=-dx
xy+ 2'
z= xy.
z = x +y.
(f)
dy
dx
x
x
y2 + 2xy
x 2
+ 2y + 1
+ 2y + 3'
z= x
+ 2y.
dy
dx
y3 _ x2y
x 3 + xy2'
(b)
dy
dx
(c)
dy
x - =y(lny-lnx).
dx
(d)
xy _dy = y2 + x2eY/
",
dx
(e)
x(x + y) ~~ = x
(f)
dy
x dx = Y + Vx 2 + y2.
+ xy -
3y2.
dy
dx
2(x - 4)
y-x+6'
x = X +4,
y = Y - 2.
(b)
dy
dx
x - 3y + 2
,
3x - 5y
x = X +~,
y = Y +~.
(c)
dy
dx
y - 5x
2y - x
+ 1,
y=Y-l.
(d)
dy
dx
x+y+3
x-y-5'
x =X + 1,
y = Y -4.
(e)
dy
dx
x + 5y +4
5x - y - 6'
x =X + 1,
y=Y-l.
+6
+ 3'
x = X
(a)
(1 + x) -
(c)
dy
(2x - 1) dx
(e)
2
1
dy
2(1+x)dx -(1+2x)y=x (l+x)2.
+ 8y
4
= (2x _ 1)2
(b)
dy
( - -x
)
. -1 x.
d+
2 y=2sm
x
i-x
(d)
(x 2
(f)
dy.
. 2
cos x dx + y sin x = x sm x
dy
x)dx
+y =
(x 2 - x)lnx.
+ x2.
83
Using the given substitutions, reduce the following equations into linear equations. Hence,
find the solutions for the original equations.
(a)
dy
(1 + x)y dx - y2
(c)
(e)
dy
x cos2 Y
- - coty =
dx
siny
x,
:~ + y = x 2y2l n x,
dy
Z = y2.
(b)
xY
Z = y-l.
(d)
:~ + y cot x = y2 sin 2 x,
z = y-l.
1
Z=--.
cosy
(f)
:~ + 1 = 2e- Y sinx,
dx
+y
= smx,
= y2.
eY
(a)
xdy
+ (y
- 2x 3 ) dx = O.
(c) (l+l:y)dX+(l+l:X)dY=O.
+ 3cosy)dx + (2y
(b)
(2x
- 3xsiny)dy = O.
(d)
(X;y)2(YdX-Xd Y) =0.
Using the given integrating factors, solve the following differential equation.
(a)
(b) ydx - (x
(c)
J-t
= e:v .
+ y2) dy = 0,
J-t
= y-2.
= x 2dx,
x 2ydy = 0,
J-t
2.
= x
J-t = (x 2 +y2)-2.
xdy - ydx
ydx
+ xdy + (
(f)
(x 2
+ 2xy -
2y
) dy
1 + cos xy
y2) dx
= 0,
+ (y2 + 2xy -
x 2) dy
= 0,
J-t
= 1 + cosxy.
J-t
(x
+ y)-z.
dy = O.
(b) Multiply the equation by xmyn and determine the values of m and n so that the
equation becomes exact.
(c)
~O.
Using the values of m and n obtained in (b), find the solution of the original equation.
Solve each of the following differential equations, given that its integrating factor is of the
form J-t = xmyn.
(c)
2eYdx+ (xe Y+
(e)
(2 y2 - 6xy) dx
2:)
dy=O.
+ (3xy -
4x 2) dy = O.
(d)
y(2x+coshx)dx+2 (x 2 + sinh x) dy = O.
(f)
(2 x y 3
+ 2y)
dx
+ (X2y2 + 2x) dy
O.
EXERCISE 2
84
11. For each of the following equations, determine the most generalised function M(x, y) so
that the equations are exact.
2
(a)
M dx
(c)
M dx
+ (sinxcosy -
(x sec y -
~) dy =
O.
e- X ) dy = O.
+ (xe XY + 2xy + ~)
(b)
1''{ dx
dy = O.
(d)
Mdx+(x 2 - c o s ( x - y ) ) d y = 0 .
12. For each of the following equations, determine the most generalised function N(x, y) so that
the equations are exact.
4x 3y
+ 2) dx + N
(a)
(ye XY
(c)
(If; + ----!--)
+
x
1:
dx
+N
dy = O.
dy = O.
+ e- Y )
(b)
(ycos (xy)
(d)
( 2 sin 2x sin y
(b)
dy
(x +y) - = y.
dx
+N
y)
ln
+ ----;;-
dx
dy = O.
+N
dy = O.
+ 2) dx + Y(l: + 2) dy
O.
(a)
x(y
(c)
2
3
dy
x--(x+l)y=x - x .
dx
(d)
(2x y 2
(e)
(f)
x(1
dx
+ x)
dy
dx + y = x(1
+ X)2 e- x
O.
(a)
(~+ 6x)
(b)
2
2
dy
Y dx - yx = x
(c)
(1 + cos 2x) -
(d)
(4x 2
15. (a)
y(1)
dx - (2 -ln1:) dy = 0,
+ 2x + 21:y,
Y(~7T) =0.
y(O)
0,
= 2.
Using the method of separable variables, find the solution of the differential equation
dy
eX dx
which satisfies the condition y ----.
(b)
O.
y(O) = O.
dy
.
- (1 + e Y ) sm 2x = 0,
dx
+ 8xy + 5y 2 ) dx + y 2dy =
+ xy 2 =
when x ----.
'
00.
dy .
3
dx - 3y = x .
(a)
85
~ + ~,
= (x + y) 2 .
dy
x 2 - = 1 - 2x 2y2
dx
dz
4z
---=2.
dx
x
(a)
dy
+ 1) -dx + Y = 2x.
x(x
(b)
+ y2 = a
y3 dy + x
dx
reduces to an homogeneous equation
dz
x +z
dx
x - z
(a)
+ y) dx = x + 2y,
(2x
given that y
(b)
a when x = 1.
~9.
(a)
+ X + (1 -
= O.
(b)
2x) Y
~~ + k 2 + x 2 = O.
Y - x - k
can be reduced to the equation in (a) using the substitution y = vx 1 / 2 . Hence, find its
general solution. Find also the particular solution if the curve of the solution passes
through the point (k, 2k).
20. (a)
86
EXERCISE 2
dy
dx
3x 2y'
Show that
(1 + x2)3/2~ (
dx
VI +x 2
= (1 + x 2)
dy - xy.
dx
(1 + x 2) -
+ x 2 ),
x(1
(x -1)e X
= o.
+ (3x 2 -
2xy) dy
becomes exact. Find j (x) and hence, solve the original equation.
22. (a)
~
x
dd
= V~2y---;-(x-+-2---;-),
given that y = 0 when x = -2. Give your answer in the form y = j(x).
(b)
reduces to equation
dz
dx
+ 2xz =
x .
If Y = 471" when x
(b)
x cos y,
= 1 + cos 2y,
= O.
EXERCISE 2
+ 2ytanx =
yl
::5. (a)
1 when x
dy .
+3
dy
3x - y
dx
3x - y - 1
= xy(l + y2),
= o.
given y
__ (a)
sinx,
(1 - x 2) yl
(b)
87
2xy
+ 1 + x2
= cosx,
= 2 when x = O.
If
dy
x - =y -y
dx
dy
1 2
=-y
dx
2
(b)
1 + 2x + 2y
1 - 2x - 2y
a)
-x.
2
J)
= y2 + J x2 + y2
to a separable equation in terms of x and v. Hence, find the solution of the original
equation, if given the condition y = 1 when x = 1.
88
EXERCISE
28. (a)
(b)
+ 1) dy
dx
_ xy
= e 2x.
+ [1 + (x + y) tan y] dy = 0
dy +P(x)y=Q(x)yn,
dx
where n
=1=
dz
dx
+ (1 -
n) P (x) z = (1 - n) Q (x).
(a)
dy
cos X dx
.
3
+ y sm
x + 2y =
dy
y3 dx
(b)
+ xy4 =
xe- x,
yeO)
= 2.
30. In an exact equation, the integrating factor JL(x, y) may not be a function of x and y, but
~
N
(OM _ON)
ay
ax
= exp { / ~
= O.
Similarly, if
(ON
- -OM)
ox
ay
~(: - Oo~)dY}
= O.
Test the following equations with those integrating factors and hence, solve the equations.
+ 2x 2) dx
- (x - x 2y) dy
(a)
(y
(c)
2dx+(2x-3y-3)dy=O.
= O.
(b)
y(l+xy)dx-xdy=O.
(d)
= O.
EXERCISE 2
89
dT
dt
'
where T is the temperature in degrees Celcius, k is a constant and t is the time in minutes.
When t = 0, T = 90C and when t = 5, T = 60C. Show that when t = 10, T = 41:1; DC.
- = -k (T -10)
t, -=-~.o;::,o:.
According to Newton's law of cooling, the rate at which a body cools is given by the equation
dT
- dt = -k(T-T)
S ,
~-=- '.: ~::',o
equation
where T; is the temperature of the surrounding medium, k is a constant and t is the time
in minutes. If the body cools from 100C to 60C in 10 minutes with the surrounding
temperature of 20C, how long does it need for the body to cool from 100C to 2.5C.
3:3. Under a certain condition, the rate of temperature drop of a cooling body in a medium
of a constant temperature, is proportional to the difference in temperature between the
body and the surrounding medium. Interpret this statement in the form of a differential
equation. If the temperature drop is from 70C to 60C in 3 minutes when the surrounding
temperature is 15C, find
.11(0) = 2.
(a)
(b)
the time taken for the body to cool from 60C to 40C.
3-1. A body cools from 80C to 50C in 20 minutes. If the room temperature is 100C (assumed
constant) and the rate of cooling of the body, is proportional to the difference in temperature
between the body and the room, find
(a)
the time taken for the body to cool from 80C to 30C,
(b)
the time taken for the body to cool from 50C to 30C.
.35. A particle drops vertically under the influence of gravity and is acted upon by air resistance
kv 2 , where k is a constant. Its velocity v at time t is
dv
dt
=g - kv .
2 a kt
= a(e2 a k t
1)
+1
where a =
V..
~
,.,:
Find the velocity of the particle when the time approaches infinity.
36. The velocity v of a particle moving in a straight line satisfy the equation
"
- :: .-:) =
dd'v = K(8v)4 j 3 ,
,t
o.
:r 2 + 2x y ) dy
= O.
= 8V when t = T, find
= T.
90
EXERCBE2
37. A tank of 1000 litre capacity is used to prepare a mixing solution of salt. Initially, a solution
that contains 1 kg of dissolved salt per litre flows into the tank at the rate of 6 litre/minute.
The mixture is kept uniform by stirring and the well-stirred mixture simultaneously flows
out of the tank at the same rate.
(a)
If y is the amount of salt in the tank, show that the rate of change of salt is given by
dy
dt +
3
500
Y = 6.
(b)
(c)
Find the time when the concentration of the salt reaches 0.5 per litre.
39. A chemical reaction is called a second order reaction if the rate of change of x, the quantity
of substance C at time t, is proportional to the product of the quantities of substance A and
substance B that are still present at that instant. The differential equation that represents
this relationship is
dx
= k(a - x)(b - x).
dt
If a = 4, b = 3 and x = a when t
the value of t when x = 2.
40. In a reversible chemical reaction of second order, the equation of the reaction is
A+B~2C.
If the initial concentrations of A and Bare 1 and 2 respectively, then the rate of formation
of C is given by
dx
2
- = k l ( 1 - : r ) ( 2 - x ) - k 2x,
dt
where x is the concentration of C at time t, while k l and k 2 are constants. Given that
at time t = 0, x = a and in the state of equilibrium (when dx/dt = 0), the value of x
approaches ~, prove that
log
+
= 5k I t .
1- 2x
(1
X/2)