You are on page 1of 30

163

Differential Equations
UNIT 4 DIFFERENTIAL EQUATIONS
Structure
4.1 Introduction
Objectives
4.2 Preliminaries
4.3 Formation of Differential Equations
4.4 Methods of Solving Differential Equations of the First Order and First
Degree
4.4.1 Separation of Variables
4.4.2 Homogeneous Differential Equations
4.4.3 Exact Differential Equations
4.4.4 Linear Differential Equations
4.5 Summary
4.6 Answers to SAQs
4.1 INTRODUCTION
Analysis has been dominant branch of mathematics for 300 years, and differential
equations is the heart of analysis. Differential equation is an important part of
mathematics for understanding the physical sciences. It is the source of most of the ideas
and theories which constitute higher analysis. Many interesting geometrical and physical
problems are proposed as problems in differential equations, and solutions of these
equations give complete picture of the state of these problems.
Differential equations work as a powerful tool for solving many practical problems of
science as well as wide range of purely mathematical problems. Earlier we defined first
and higher order ordinary and partial derivatives of a given function. In this unit, we
make use of these derivatives and we first introduce some basic definitions. Then we
discuss the formation of differential equations. We also discuss various techniques of
solving some important types of differential equations of the first order and first degree.
The method of separation of variables together with methods of solving homogeneous,
exact and linear differential equations have been taken up in this unit. Differential
equations which are reducible to homogeneous form or equations reducible to linear form
are also considered in this unit.
Objectives
After studying this unit, you should be able to
distinguish between ordinary and partial differential equations and between
the order and the degree of an equation,
form a differential equation,
use the method of separation of variables,
identify homogeneous or linear equations and solve them,
examine the differential equations for reduction to homogeneous form or
earlier form,
verify whether a given differential equation is exact or not, and solve exact
equations, and
identify an integrating factor in some simple cases, which makes the given
equation exact.



164
Calculus : Basic Concepts
4.2 PRELIMINARIES
In this section, we shall define and explain the basic concept in differential equations and
illustrate them through examples. Recall that given an equation or relation of the type f
(x, y) =0, involving two variables x and y, where y =y (x), we call x the independent
variable and y the dependent variable. Any equation which gives the relation between
the independent variable and the derivative of the dependent variable with respect to the
independent variable is a differential equation. In general we have the following
definition.
Definition
A differential equation is an equation that involves derivatives of dependent
variable with respect to one or more independent variables.
For example,
, 0 = + y
dx
dy
x . . . (4.1)
, nz
y
z
y
x
z
x =

. . . (4.2)
, 0
2
2
2
2
2
=

y
z
a
x
z
. . . (4.3)
are differential equations.
Note that x x x x x
dx
d
cos sin ) sin ( + = is not a differential equation. It is an
identity.
Differential equations are classified into various types. The most obvious
classification of differential equations is based on the nature of the dependent
variable and its derivative (or derivatives) in the equations. The following
definitions give the various types of equations.
Definition
A differential equation involving derivatives with respect to a single independent
variable is called an ordinary differential equation (abbreviated as ODE).
For example, Eq. (4.1) namely,
0 = + y
dx
dy
x
is an ordinary differential equation.
Definition
A differential equation containing partial derivatives, that is, the derivative of a
dependent variable with respect to two or more independent variables is called a
partial differential equation (abbreviated as PDE).
For example, Eqs. (4.2) and (4.3), namely
, nz
y
z
y
x
z
x =


, 0
2
2
2
2
2
=

y
z
a
x
z

are partial differential equations.
Differential equations can be further classified by their order and degree.

165

Differential Equations
Definition
The n
th
derivative of a dependent variable with respect to one or more independent
variables is called a derivative of order n, or simply an n
th
order derivative.
For example, , , ,
2
2
2
2
2
y x
z
x
z
x
y

are second order derivatives and,


y x
z
x
y

2
3
3
3
,
are third order derivatives.
Definition
The order of a differential equation is the order of the highest order derivative
appearing in the equation.
For example,
0
2
= +

x
dx
dy
is of order one. . . . (4.4)
(Because the highest order derivative is
dx
dy
which is of first order.)
2 2
2
2
2
2
+ = + + x y
dx
dy
x
dx
y d
x , is of order two . . . (4.5)
(Highest order derivative is
2
2
dx
y d
.)
0 2
3
2
2
2
2
3
3
=

+ +

dx
dy
x
dx
dy
dx
y d
dx
y d
is of order three. . . . (4.6)
Definition
The degree of a differential equation is the highest exponent of the derivative of the
highest order appearing in it after the equation has been expressed in the form free
from radicals and fractions as far as derivatives are concerned.
For example, Eqs. (4.1), (4.2), (4.3) and (4.5) are of first degree and Eqs. (4.4) and
(4.6) are of second degree.
Equation
2
2 2
3
2
1
dx
y d
k
dx
dy
=

+ . . . (4.7)
is of second degree. To determine its order, we make the equation free from
radicals. We need to square both the sides so that

2
2
2
2
3
2
1

+
dx
y d
k
dx
dy

Since the highest exponent of the highest derivative, that is,
2
2
dx
y d
is two and, by
definition, the degree of Eq. (4.7) is two.
And now an exercise for you.
SAQ 1
State the order and the degree of each of the following differential equations.
(i)
y
x
dx
dy
4
3
2
=





166
Calculus : Basic Concepts
(ii)
2 3
1

+ =

dx
dy
dx
dy

(iii) x
dx
dy
dx
y d
+ = 3
2
2

(iv)
dx
dy
dx
y d
=
3
3

(v)
2
5
2
3
1
2
2
1

+ =

dx
dy
k
dx
y d







In this unit, we will only be concerned with the study of certain types of ordinary
differential equations which we shall simply refer to as differential equations, dropping
the word ordinary.
The principal task of the theory of differential equations is to find all the solutions of a
given differential equation. But then it is natural to ask as to what exactly is the meaning
of a solution of a differential equation. The answer to this question is given in the
following definition.
Definition
A solution or an integral of a differential equation is a relation between the
variables, not involving the derivatives, such that relation and the derivatives
obtained from it satisfy the given differential equation.
To illustrate this let us do the following examples.
Example 4.1
Prove that y =cx
2
. . . (4.8)
is a solution of xy =2y. . . . (4.9)
Solution
Step 1
Differentiating both sides of Eq. (4.8) with respect to x, we get
y =2cx . . . (4.10)
where y stands for
dx
dy
.
Step 2
Substituting in Eq. (4.9) the values of y and y obtained from Eqs. (4.8) and
(4.10), respectively, we get an identity
x . 2cx =2cx
2

167

Differential Equations
It should also be noted that a differential equation may have many solutions.
For instance, each of the functions
5
4
sin , 3 sin , sin = + = = x y x y x y is
a solution of the differential equation x y cos = . But we also know from
our knowledge of calculus that any solution of the equation is of the form
y =sin x +c, . . . (4.11)
where c is a constant. If we regard c as arbitrary, then Eq. (4.11) represents
the totality of all solutions of the equation.
If you have understood the above example, then you may now try the
following exercise.
SAQ 2
Verify that each function is a solution of the differential equation written next to it.
(i) 1 2 ;
2
+ = + + = x y c x x y
(ii) y x y x x c x y + = + =
2 2
;
(iii) 0 25 ; 5 cos 5 sin = + + = y y x B x A y
(iv)
x x
e y y e c x y

= + + = ; ) (
(v) . y y y y y e c e c
x x
In ; Iny
2 2
2 1
= + =







As illustrated above, a differential equation may have more than one solution. It may
even have infinitely many solutions, which can be represented by a single formula
involving arbitrary constants. Accordingly, we classify various types of solutions of a
differential equation as follows.
Definition
The solution of the order differential equation which contains n arbitrary
constants is called its general solution.
n
th
Definition
Any solution which is obtained from the general solution by giving particular
values to the arbitrary constants is called a particular solution.
For example, involving two arbitrary constants c x c x c y 2 cos 2 sin
2 1
+ =
1
and c
2

is the general solution of second order equation 0 4
2
2
= + y
dx
y d
whereas
is a particular solution (taking x x y 2 cos 2 sin 2 + = 1 and 2
2 1
= = c c ).
In some cases, there may be solutions of a given equation which cannot be obtained by
assigning a definite value to the arbitrary constant in the general solution. Such a solution
is called a singular solution of the equation. For example, the equation
. . . (4.12) 0
2
= + y y x y



168
Calculus : Basic Concepts
has the general solution, A further solution of Eq. (4.12) is
2
c cx y =
4
2
x
y = . Since
the solution cannot be obtained by assigning a definite value to c in the general solution,
it is a singular solution of Eq. (4.12).
After going through the definitions and illustrations given in Section 4.2, you would have
definitely got the clue that a differential equation can also be derived from its solution by
the process of differential, algebraic processes of elimination, etc. Now we shall discuss
the method of finding the differential equation when its general solution is given.
4.3 FORMATION OF DIFFERENTIAL EQUATIONS
Consider the relation
. . . (4.13)
3
bx ax y + =
Differentiating Eq. (4.13) with respect to x, we get
. . . (4.14)
2
3bx a y + =
Again differentiating Eq. (4.14) with respect to x, we obtain
bx y 6 = . . . (4.15)
Solving Eqs. (4.14) and (4.15) for a and b, we get
y x y
x
y
x y a
x
y
b =


=
2
1
6
1
3 ,
6
1
2
.
Substituting these values of a and b in Eq. (4.13), we get
y x y x y x y + =
2 2
6
1
2
1

or y x y x y =
2
3
1

or 0 3 3
2
= y y x y x
It is a differential equation, which has been obtained from Eq. (4.13). Generalising the
above procedure we obtain the following rule to find the differential equation when its
general solution is given.
Rule
(a) Differentiate the general solution. Let us refer to the resulting equation as
the derived equation.
(b) Differentiate the derived equation and obtain the second derived equation.
(c) Differentiate the second derived equation and continue the process until the
number of derived equations is equal to the number of independent arbitrary
constants involved in the general solutions.
(d) Eliminate the arbitrary constants and obtain relation between derivatives and
dependent and independent variables.
Example 4.2
By eliminating the constants h and k, find the differential equation of which
2 2 2
) ( ) ( a k y h x = + . . . (4.16)
is a solution.
Solution

169

Differential Equations
Step 1
Differentiating Eq. (4.16), we get the first derived equation as
0 ) ( ) ( = +
dx
dy
k y h x . . . (4.17)
Step 2
Differentiating Eq. (4.17), we get the second derived equation as
0 ) ( 1
2
2
2
=

+ +
dx
dy
dx
y d
k y . . . (4.18)
Step 3
Finally, we eliminate h and k from Eq. (4.16), Eqs. (4.17) and (4.18) to yield

2
2
2
1
) (
dx
y d
dx
dy
k y

+
=
and

2
2
2
1
) (
dx
y d
dx
dy
dx
dy
h x

+
=
Substituting these values in Eq. (4.16), we obtain
, 1
2
2
2
2
3
2

+
dx
y d
a
dx
dy

as the required differential equation.
How about doing some exercises now?
SAQ 3
(a) Find the differential equations having the following as solutions.
(i) c x y + =
3
(ii)
x x
e c e c y

+ =
2 1
(iii)
3 2
2
1
c x c x c y + + =
(b) Find the differential equations whose solution is given by
) sin cos ( x B x A e y
x
+ =
where A and B are arbitrary constants.








170
Any differential equation of the first order and first degree may be written in the
form.
Calculus : Basic Concepts
) , ( y x f
dx
dy
=
In the next section, we shall discuss various methods of solving first order and first
degree differential equations.
4.4 METHODS OF SOLVING DIFFERENTIAL EQUATIONS
OF THE FIRST ORDER AND FIRST DEGREE
In general, it may not be very easy to solve even the apparently simple equation
) , ( y x f
dx
dy
= . This is because no formulas exist for obtaining its solution in all cases.
But, there are certain standard types of first order equations for which routine methods of
solution are available. We now discuss four of them that have many applications. Let us
discuss them one by one.
4.4.1 Separation of Variables
This is a technique for solving an important class of differential equations, namely, those
of the form
,
) (
) (
y q
x p
dx
dy
= . . . (4.19)
where p (x) is a function of x only and q (y) is a function of y only. Such an equation is
called an equation with separable variables, or a separable equation. For example, the
differential equation
y
e
x
dx
dy ) 1 2 ( +
= is of the same type as Eq. (4.19) with
y
e y q x x p = + = ) ( and 1 2 ) ( .
In order to solve the differential equation given by Eq. (4.19), we may proceed as
follows :
Step 1
Rewrite Eq. (4.19) as
dx x p dy y q ) ( ) ( = . . . (4.20)
Step 2
Integrate both sides of Eq. (4.20) and get
c dx x p dy y q + =

) ( ) (
or c x P y Q + = ) ( ) ( . . . (4.21)
where dx x p x P dy y q y Q ) ( ) ( and ) ( ) (

= =
Note that in Step 2, there is no need to write two constants since these can be
combined into one as in Eq. (4.21).
We now take up an example to illustrate these steps.
Example 4.3
Solve
2
2
3
y
x
dx
dy
=

171

Differential Equations
Solution
Step 1
The given differential equation is

2
2
3
y
x
dx
dy
= . . . (4.22)
Multiplying both sides of Eq. (4.22) by y
2
, we get

2 2
3x
dx
dy
y =
or, . . . (4.23) dx x dy y
2 2
3 =
Step 2
Integrating both sides of Eq. (4.23), we get
c dx x dy y + =

2 2
3
c x
y
+ =
3
3
3
, where c is a constant
or, . . . (4.24) , 3
1
3 3
c x y + =
where is a constant. c c 3
1
=
Step 3
Solving Eq. (4.24) for y and we get

3
1
1
3
] 3 [ c x y + = .
It is the required solution of the differential Eq. (4.22).
Let us look at another example.
Example 4.4
Solve
2 2 3
y y t
dt
dy
+ = . . . (4.25)
Solution
Step 1
Note that right hand side of Eq. (4.25) is not of the form .
) (
) (
y q
t p

However, if we write Eq. (4.25) as
,
) 1 (
) 1 (
2
3
2 3

+
= + =
y
t
y t
dt
dy
. . . (4.26)
we see that the right hand side of Eq. (4.26) is of the form

2 3
) ( and 1 ) ( with
) (
) (

= + = y y q t t p
t q
t p

Separating the variables in Eq. (4.26), we get
dt t dy
y
) 1 (
1
3
2
+ = . . . (4.27)
Step 2



172
Integrating both sides of Eq. (4.27), we get
Calculus : Basic Concepts
c dt t dy
y
+ + =

) 1 (
1
3
2

or, ,
4
1 1
4
c t t
y
+ + =

. . . (4.28)
where c is the constant of integration.
Step 3
Solving Eq. (4.28) for y, we get
,
4
4
1
4
c t t
y
+ +
= with c
1
=4c, as the required solution of Eq. (4.25).
You may now try this exercise yourself.
SAQ 4
Solve the following differential equations :
(i)
2
5
y
t
dt
dy +
=
(ii)
2 2 2
. y e y
dt
dy
t
=
(iii) ) 3 ( 4 = y
dt
dy

(iv)
t
y
dt
dy
=




Not all differential equations can be solved by the method of separation of variables. For
example, we cannot solve,
1
2 2
+ = y t
dt
dy

by the method of separation of variables because the expression cannot be
written in the form
1
2 2
+ y t
.
) (
) (
y q
t p
In such cases we have to look for other techniques of solving
differential equations. In the next subsections, we shall take up another technique of
solving first order equations.
4.4.2 Homogeneous Differential Equations
You are already familiar with the definition of a homogeneous function. Recall that a
function is said to be homogeneous of degree n, if ) , ( y x f
. . . (4.29) , ) , ( ) , ( y x f y x f
n
=
for all values of x and y

173

Differential Equations
We also say that any function of the form
x
y
is homogeneous of degree zero since
.
0

x
y
x
y

However, the function is not homogeneous for
for any n.
2 3 4
) , ( y x x y x g + =
) , ( ) ( ) ( ) ( ) , (
2 3 4
y x f x x x y x g
n
+ =
From Eq. (4.29), a useful relation is obtained by letting .
1
x
=
This gives for a homogeneous expression of the degree
n
th

=
x
y
x
y
f y x f
x
n
, 1 ) , (
1
(say)
or

=
x
y
x
x
y
f x y x f
n n
, 1 ) , ( . . . (4.30)
A homogeneous equations of the first order is of the form
0 ) , ( ) , ( or
) , (
) , (
= = dy y x g dx y x f
y x g
y x f
dx
dy
,
where f (x, y) and g (x, y) are homogeneous functions of the same degree.
For example,
xy
y x
dx
dy
2
2 2

= is a homogeneous differential equation. Here
are both homogeneous functions of degree two.
You must have noticed above that
xy y x g y x y x f 2 ) , ( and ) , (
2 2
= =
x
y
plays an important role in a homogeneous function.
Thus we would expect that the substitution
x v y v
x
y
= = or . . . (4.31)
might be effective in solving a homogeneous equation.
In fact, it will be seen that the substitution (4.31) in a homogeneous equation of the first
order and first degree reduces the equation to an equation with separable variables. Let
us, now, take up an example.
Example 4.5
Solve the differential equation
. . . (4.32) 0 ) 2 ( = + dy y dx y x
Solution
Step 1
Clearly the given equation can be expressed as,
y
x y
dx
dy
=
2
, which is a
homogeneous differential equation. Putting x v y = in Eq. (4.32), we get
) since ( 0 ) ( ) 2 ( xdv vdx dy xdv vdx vx dx vx x + = = + +
0 ) 2 1 (
2 2
= + + vdv x dx v v x
0
) 1 (
2
=

+ dv
v
v
x
dx




174
Step 2
Calculus : Basic Concepts
In Eq. (4.33) the variables are now separated and, therefore, integrating, we
get
1 1
2
,
) 1 (
1
c c dv
v
v
dx
x
=

+

being a constant.
,
) 1 (
| | ln
1
2
c dv
v
v
x =

+

. . . (4.33)
For finding the integral ,
) 1 (
2
dv
v
v

we substitute v 1 =t so that
dv =dt and Eq. (4.33) becomes
1
2
1
| | ln c dt
t
t
x =
+
+



1
2
1 1
| | ln c dt
t
dt
t
x = + +



1
| ) 1 ( | ln
1
| | ln c t
t
x = +

1
| ) 1 ( | ln
1
1
| | ln c v
v
x = +

. . . (4.34)
(since (v 1) =t).
It is convenient to replace the constant c
1
by Inc, where c >0. Then
Eq. (4.34) becomes,

1
1 ) 1 (
ln

v c
v x
. . . (4.35)
Step 3
Replacing v by
x
y
in Eq. (4.35), we get
x y
x
c
x y

ln
which is the required solution of Eq. (4.32).
Let us consider another example.
Example 4.6
Solve
2 2
2
y x
xy
dx
dy

= . . . (4.36)
Solution
Step 1
The given Eq. (4.36) is homogeneous, since both numerator xy y x f 2 ) , ( =
and the denominator are homogeneous functions of
degree 2.
2 2
) , ( y x y x g =
We may rewrite Eq. (4.36) as

2
1
2

=
x
y
x
y
dx
dy
. . . (4.37)

175

Differential Equations
or,
2
1
2
v
v
dx
dv
x v

= + , where ,
x
y
v =
or,
2
2
2
1
) 1 (
1
2
v
v
v v
v
v
dx
dv
x

+
=

=
Therefore,
c
x
dx
dv
v v
v
+ =
+


) 1 (
) 1 (
2
2
. . . (4.38)
where c is a constant of integration. To integrate Eq. (4.38), we write it as
c
x
dx
dv
v
v
v
+ =

2
1
2 1

|, | ln | | ln | ) 1 ( | ln | | ln
2
A x v v + = +
where A is another constant, such that c =ln | A |
Thus, we get | Ax
v
v
| ln
1
ln
2
=
+

Ax
v
v
=
+
2
1

Step 3
Replacing v by
x
y
in the last equation, we obtain
y
A
y x Ax
y x
xy 1
or
2 2
2 2
= + =
+

as the required solution of Eq. (4.36).
You may now try the following exercises.
SAQ 5
(a) Solve the following differential equations :
(i)
xy
y x
dx
dy
2 2
+
=
(ii) y
x
y
x
dx
dy
x + = tan
(iii) dx y x dx y dy x
2 2
+ =
(iv) 0 sin sin =

+ dy
x
y
x dx
x
y
y x
(b) Solve the following equations :
(i) dx y x dy y x x ) ( ) (
2 2 2
+ = +
(ii) 0 ) 2 (
3 2 2 3 2
= + + dx y xy y x x dy y x
(iii) 0 ) 2 ( = + dx y dy x xy
(iv) 0 ) 4 ( ) 2 6 (
2 2 2
= + + dy xy x dx y x



176
Equations Reducible to Homogeneous Form
Calculus : Basic Concepts
Sometimes it may happen that a given equation is not homogeneous but can be
reduced to homogeneous form by considering certain change of variables. For
example, consider the equation of the form

D By Ax
c by ax
dx
dy
+ +
+ +
= . . . (4.39)
This can be reduced to homogeneous form by changing the variables x, y to X, Y
respectively, where
x =X +h,
y =Y +k,
with h and k as constants to be so chosen as to make the given equation
homogeneous. With these new variables we have
) 1 because ( . = = =
dx
dX
dX
dY
dx
dX
dX
dY
dx
dy

Therefore, Eq. (4.39) becomes

) (
) (
D Bk Ah BY AX
c bk ah bY aX
dX
dY
+ + + +
+ + + +
= . . . (4.40)
which will be homogeneous provided h and k are so chosen so that
ah bk c + + = 0

Ah Bk D + + = 0

Solving the last two equations for h and k, we get
Ab aB
aD Ac
k
Ab aB
Bc aD
h

= and
which always have meanings except when
aB Ab =0 that is when
B
b
A
a
= .
So, with these values of h and k, the given equation can be reduced to a
homogeneous equation and the resulting equation is
BY AX
bY aX
dX
dY
+
+
=
It can now easily be solved by means of the substitution Y =vX.
But what happens to the equation if
B
b
A
a
= ?
In such cases we let r
B
b
A
a
= = say.
Then a =Ar and b =Br and the given equation becomes

D By Ax
C By Ax r
dx
dy
+ +
+ +
=
) (
. . . (4.41)
We, then, put Z By Ax = + and its differential with respect to x, that is,
dx
dZ
dx
dy
B A = + in Eq. (4.41) to get

177

Differential Equations
A
D Z
C rZ
B
dx
dZ
D Z
c rZ
A
dx
dZ
B
+
+
+
=
+
+
=

or
1

so that the variables are separated and hence the equation can be solved. Let us
illustrate the above discussion with the help of the following examples.
Example 4.7
Solve the differential equation
dx y x dy y x ) 7 2 6 ( ) 6 3 2 ( = + . . . (4.42)
Solution
Step 0
Here
3
3
2
6

Step 1
Putting x =X +h, y =Y +k, in the given equation,
6 3 2
7 2 6
+

=
y x
y x
dx
dy
, we
get

Y X
Y X
k Y h X
k Y h X
dX
dY
3 2
2 6
6 ) ( 3 ) ( 2
7 ) ( 2 ) ( 6
+

=
+ + +
+ +
= . . . (4.43)
provided that
. . . (4.44) 0 7 2 6 = k h
and . . . (4.45) 0 6 3 2 = + k h
Step 2
Solving Eqs. (4.44) and (4.45) for h and k, we get
. 1 and
2
3
= = k h
Step 3
Eq. (4.43) is in homogeneous form; thus putting Y =vX in Eq. (4.43), we get
dv
v v
v
X
dX
vX X
vX X
dX
dv
X v
) 6 4 3 ( 2
4 6
or
3 2
2 6
2
+
+
=
+

= +
Since the variables have been separated on integration, we get
| ) 6 4 3 ( | ln | ln 2 | | ln
2
+ = v v | X c
where c is a constant of integration.
Note that the integral on the right hand side is of the form
dx
x f
x f
) (
) (


which has led us to | | ln | ) 6 4 3 ( | ln | | ln 2
2
c v v X = + +
. . . (4.46) c v v X = + ) 6 4 3 (
2 2
Substituting back the value of

=
X
Y
v in Eq. (4.46), we get
c
X
Y
X
Y
X =

+ = 6
4 3
2
2
2




178
Calculus : Basic Concepts
or . . . (4.47) c X XY Y = +
2 2
6 4 3
Step 4
But
2
3 2
and 1

= = =
x
X y k y Y .
Thus, replacing these values of X and Y in Eq. (4.47), we get
c
x x
y y =


+
2
2
2
3 2
6
2
3 2
) 1 ( 4 ) 1 ( 3
or
2
9
18 12 6 4 3
2 2
+ = + + c x y x xy y
is the required solution.
Example 4.8
Solve 0 ) 1 2 4 ( ) 1 2 ( = + + + + dy y x dx y x
Solution
Step 0
Here
2
1
4
2
= . Hence exceptional case.
Step 1
Rewrite the given equation as

1 ) 2 ( 2
1 2
+
+ +
=
y x
y x
dx
dy
. . . (4.48)
Step 2
Putting
dx
dt
dx
dy
t y x = + = + 2 that so 2 , we get

1 2
1
2

+
= =
t
t
dx
dt
dx
dy

or,
1 2
) 1 ( 3

=
t
t
dx
dt

or, dx dt
t
t
=

) 1 ( 3
1 2
. . . (4.49)
Step 3
Since Eq. (4.49) is in variable separable form, we integrate both sides and
get
dt
t
dt
t
t
dt
t
t
dx c
1
1
3
1
1 3
2
) 1 ( 3
1 2

= +


dt
t
dt
t 1
1
3
1
1
1
1
3
2

+ =



3 1 3
1
3
2
1
c
t
dt
dt x +

+ =

, where
3
1
c
c = .

1
| ) 1 ( | ln 2 3 c t t x + + = . . . (4.50)

179

Differential Equations
Step 4
Replacing back the value of t in Eq. (4.50), we get
c y x y x x + + + + = | ) 1 2 ( | ln ) 2 ( 2 3
or 0 | ) 1 2 ( | ln 2 = + + + + c y x y x
as the required solution.
You may now try this exercise.
SAQ 6
Solve the following differential equations:
(i) 0 ) 2 2 ( ) 4 2 ( = + + + dy y x dx y x
(ii) 0 ) 1 ( 4 ) 1 3 2 ( = + + dy x dx y x
(iii) 0 ) 2 ( ) 3 2 ( = + + + dy y dx y x
(iv) 0 ) 1 6 4 ( 3 ) 2 3 2 ( = + + dy y x dx y x





You have studied the total differential of a given function. Now, in the next sub-section,
we shall make use of this to define an exact differential equation. We shall also discuss
the method of solving it.
4.4.3 Exact Differential Equations
Suppose that we are given a function g (x, y) =c. Then its total differential is given by
0 =

= dy
y
g
dx
x
g
dg .
For instance, the equation xy =c has the total differential
ydx +xdy =0,
Now, we consider the reverse situation, that is, given the differential equation
M (x, y) dx +N (x, y) dy =0 . . . (4.51)
can we find a function g (x, y) =c, such that
dg =Mdx +Ndy,
where N
y
g
M
x
g
=

and ?
If so, we say that Eq. (4.51) is an exact differential equation.
It can be shown that the necessary and sufficient condition for the differential equation
Mdx +Ndy =0 to be exact is
x
N
y
M

.
We will not be proving this result here. However, we shall be making use of this to verify
whether a given differential equation of type (4.51) is exact or not.
Various steps involved in solving an exact differential equation Mdx +Ndy =0 are as
follows.
Step 1



180
Integrate M with respect to x, regarding y as a constant.
Calculus : Basic Concepts
Step 2
Integrate with respect to y those terms in N which do not involve x.
Step 3
The sum of the two expressions obtained in Steps 1 and 2 equated to a constant is
the required solution.
Let us illustrate this method with the help of an example.
Example 4.9
Solve the equation
0 ) sec (cos ) tan sin 1 (
2
= + dy x x dx y x . . . (4.52)
Solution
The given equation is of the form
Mdx +Ndy =0 with M =1 sin x tan y, N =cos x sec
2
y.
Now, y x
y
M
2
sec sin =

,
and y x
x
N
2
sec sin =

,
so that
x
N
y
M

,
which shows that Eq. (4.52) is an exact equation.
To solve Eq. (4.52), we proceed as follows :
Step 1
Integrating M w.r.t. x regarding y as a constant, we have
x y x dx y x cos tan ) tan sin 1 ( + =


Step 2
We integrate those terms in N w.r.t. y which do not involve x. But there is
no such term because . y x N
2
sec cos =
Step 3
The required solution is the sum of expressions obtained from steps 1 and 2.
That is,
c x y x = + cos tan .
In order to check your calculations you can find the total differential of the
equation obtained as a result of Step 3, and get back the original differential
equation.
In practice differential equations are rarely exact but can often easily be
transformed into exact equations on multiplications by some suitable function
known as integrating factor. In other words, the integrating factor is a function
which when multiplied with a non-exact differential equation makes it exact. In
general such a function exists but is difficult to obtain, except for certain cases.
Consider for example, the equation

181

0 = ydx xdy
Differential Equations
which is not exact, since
x
N
y
M

. Here M =y, N =x.


1 ) ( and ) ( =

x
x x
N
y
y y
M
.

x
N
y
M

, thus given equation is not exact.


On multiplication by
2
1
y
throughout the given equation, then, we get
0
1
2
= x
y
dy
y
x
,
which is exact, as can be readily verified by using the condition
x
N
y
M


Let us consider another illustration.
Example 4.10
Show that the differential equation 0
1 1
=

+ dx
y
x
x
dy
x
becomes exact on
multiplication by xy, and solve it.
Solution
The differential equation
0
1 1
=

+ dx
y
x
y
dy
y
. . . (4.53)
is not exact for
x
N
y
M


Multiplying Eq. (4.53) by xy, we get
. . . (4.54) 0 ) (
2
= + dx x y xdy
This is now exact because
) ( 1 ) (
2
x
x x
N
x y
y y
M

= =

.
It can, then, be verified easily that the solution of Eq. (4.54) is given by
constant
3
2
=

x
xy .
Remark
In some cases, integrating factor can be found by inspection as illustrated above by
two simple examples. Obviously guessing comes from practice only. However,
rules for finding the integrating factor do exist for some other cases. But we do not
intent to consider these rules for determining the integrating factor in this course.
Here we will restrict our discussion only to some simple type of equations for
which we can find the integrating factor by inspection.
You may now try the following exercises.



182
SAQ 7
Calculus : Basic Concepts
(a) Show that becomes exact on
multiplication by
0 ) 1 ( ) 2 (
3
= dy xy x dx x y
2
1
x
and solve it.
(b) Solve the following differential equation :
(i) 0 ) 1 ( ) 1 ( = + + dx y yx dy x yx
(ii) 0 ) 1 ( 2
2
= + + dy x dx xy
(iii) 0
ln
ln
3
2 ) (ln ln
2 2 3
=

+ +

+ dy y x
y y
x
dx xy
x
y







In the next sub-section we introduce you to the method of solving the most important
type of differential equations namely, the linear differential equations. These equations
are important because of their wide range of applications.
4.4.4 Linear Differential Equations
We begin with the definition of linear differential equation.
Definition
Linear differential equation is a differential equation which contains the
dependent variables and derivatives in first degree only.
For example, the equation
2
2
x
x
y
dx
dy
= + is a linear differential equation; however
5
2
= + x
dx
dy
y is not linear because of the presence of the term
dx
dy
y , the product
of depend variables and its derivative.
The general form of the first order linear differential equation is
) ( ) ( x q y x p
dx
dy
= + . . . (4.55)
where p (x) and q (x) are functions of the independent variable x alone, or are
constants. From our discussion in Sub-section 4.4.3 you will at once see that the
Eq. (4.55) can be solved by the use of an integrating factor. If, on multiplication
with a suitable integrating factor, the given equation can be expressed as an exact
derivative, then the resulting equation can be integrated directly, In general, to
solve such differential equation we proceed as follows.
Multiply both sides of this equation by , (an integrating factor), we get
pdx
e


pdx pdx
e q py
dx
dy
e

=

+ . . . (4.56)

183

Differential Equations
The left hand side, now, is the differential coefficient of , that is,
Eq. (4.56) is nothing but
pdx
e y


pdx pdx
e q e y
dx
d

= ] [ . . . (4.57)
Integrating both sides of Eq. (4.57) with respect to x, we get
c dx e q e y
pdx
pdx
+ =


where c is a constant of integration.
They may, again, be written after multiplying both sides by as
pdx
e

[ ], c dx e q e y
pdx
pdx
+ =

. . . . (4.58)
which is the required solution of Eq. (4.55).
The factor , on multiplying, by which Eq. (4.55) becomes an exact
differential, serves the purpose of integrating factor of the differential Eq. (4.55).
pdx
e

Let us now solve a few examples.


Example 4.11
Solve the differential equation
1 sin cos = + x y
dx
dy
x . . . (4.59)
Solution
Step 1
Dividing both sides of Eq. (4.59) by cos x, we get
x x
x
y
dx
dy
cos
1
cos
sin
= +
or x x y
dx
dy
sec tan = + . . . (4.60)
which is of the form
) ( ) ( x q y x p
dx
dy
= + ,
with x x q x x p sec ) ( and tan ) ( = = .
Step 2
Now, I. F. = x e e e
x
dx x pdx
sec
sec ln
tan
= = =

Step 3
Multiply both sides of Eq. (4.60) by sec x, we obtain
x x x y
dx
dy
x
2
sec tan sec sec = +
or x x y
dx
d
2
sec ) sec ( = . . . (4.61)
Step 4
Integrating both sides of Eq. (4.61), we get
c dx x x y + =

2
sec sec
where c is an arbitrary constant.



184
Thus, c x x y + = tan sec
Calculus : Basic Concepts
or, x c x c
x x
x
y cos sin
sec
1
sec
tan
+ = + =
is the required solution of Eq. (4.59).
Let us consider another example.
Example 4.12
Solve the equation y
dx
dy
y x = + ) 2 (
3
. . . (4.62)
Solution
Step 1
The equation involves y
3
and these hence it is not linear, but if we view y as
the independent variable, and rewrite Eq. (4.62) as

3
2y x
dy
dx
y + =
or
2
2y
y
x
dy
dx
= . . . (4.63)
then Eq. (4.63) is linear with x as the dependent variable and is of the form
2
2 ) ( and
1
) ( with ) ( ) ( y y q
y
y p y q x y p
dy
dx
= = = +
Step 2
The procedure for solving Eq. (4.63) is exactly same as before. Integrating
factor of Eq. (4.63) is
dy y p
e
) (

y
y e e
y
dy
y
1
1
ln
1
= = = =


Step 3
Multiplying both sides of Eq. (4.63) by
y
1
, we get
y
y
x
dy
dx
y
2
1
=


or y
y
x
dy
d
2
1
. =

. . . (4.64)
Step 4
Now integrating both sides of Eq. (4.64), we get
c y
y
x + =
2
1
, where c is a constant.
Thus, is the required solution of Eq. (4.62). ) (
2
y c y x + =
You may now try this exercise.

185

Differential Equations
SAQ 8
Solve the following differential equations :
(i) 3
2
= + y
x dx
dy

(ii)
x
e y
x
x
dx
dy
=

+
1
2
2

(iii) x e x x y
dx
dy
x
cos tan
2
= +
(iv) x y
dx
dy
x x ln 2 ln = +
(v) 0 ) 10 2 (
3
= + y
dx
dy
y x



Equations Reducible to Linear Form
Sometimes, equations which are not linear can be reduced to the linear form by
suitable transformations of the variables. One such equation is

n
y x Q y x P
dx
dy
) ( ) ( = + . . . (4.65)
It is called Bernoullis equations after J ames Bernoulli, who studied it in 1695.
Clearly, Eq. (4.65) is not linear as it contains a power of y (dependent variables)
which is not unity. However, this equation can be reduced to the linear form as
follows :
Dividing Eq. (4.65) by y
n
, we get
Q y P
dx
dy
y
n n
= +
+ 1
. . . (4.66)
Put , z y
n
=
+ 1
so that
dx
dz
dx
dy
y n
n
= +

) 1 (
or
dx
dz
n dx
dy
y
n
1
1
+
=


Substitute in Eq. (4.66) the values of
1
and
+ n n
y
dx
dy
y in terms of z, we get
) 1 ( ) 1 ( n Q z n P
dx
dz
= + ,
which is linear with z as the new dependent variable.
We now illustrate this method with the help of an example.
Example 4.13
Solve the equation
dx y xe dx xy dy
x 3
2
2

= + . . . (4.67)
Solution



186
Step 1
Calculus : Basic Concepts
Eq. (4.67) can be written as
3
2
2 y e x xy
dx
dy
x
= + . . . (4.68)
which is of the form
n
y x Q y x P
dx
dy
) ( ) ( = +
with 3 and ) ( , 2 ) (
2
= = =

n e x x Q x x P
x
Step 2
Divide Eq. (4.68) throughout by y
3
, we get

2
2 3
2
x
e x xy
dx
dy
y

= + . . . (4.69)
Let
2
= y z
Then,
dx
dy
y
dx
dz
1 2
) 2 (

= . . . (4.70)

dx
dy
y
3
2

=
Therefore,
dx
dz
dx
dy
y
2
1
3
=

. . . (4.71)
Substituting in Eq. (4.69) values of and
2
y
dx
dy
y
3
from Eqs. (4.70) and
(4.71) respectively, we have

2
2
2
1
x
e x xz
dx
dz

= +
or
2
2 4
x
e x xz
dx
dz

= . . . (4.72)
which is linear with z as the dependent variable.
Step 3
To solve Eq. (4.72), we multiply both sides of Eq. (4.72) by
(integrating Factor) to get
2
2
4
x
dx x
e e


2 2 2 2
2 2 2
2 4
x x x x
e xe xze
dx
dz
e

=

2
3
2
x
xe

=
or
2 2
3 2
2 ) (
x x
xe ze
dx
d

=
Integrating both sides, we get
. . . (4.73) c dx xe ze
x x
+ =

2 2
3 2
2
For finding
2 3
3 let , 2
2
x t dx xe
x
=

so that
3
2
dt
dx x =

187

Differential Equations
Therefore, in terms of t, becomes dx xe
x
2
3
2

2
3
3
1
3
1
3
x t t
e e
dt
e

= =


Thus, from Eq. (4.73), we get
c e ze
x x
+ =

2 2
3 2
3
1

or
2 2 2
2 3 2
3
1
x x x
ce e e z + =



2 2
2
3
1
x x
ce e + =


Step 4
But
2
= y z
Therefore,
2 2
2 2
3
1
x x
ce e y + =


or, where c
2 2
2
1
2
3
x x
e c e y + =

1
=3c
is the required solution of Eq. (4.67).
SAQ 9
Solve the following differential equations :
(i) dx e xy dx y dy
x 2
2 = +
(ii) dy y x dy x
y
dx
2 2
2
2
= +
(iii)
3 3
5 2 y x
x
y
dx
dy
=
(iv) 0 cos
4 2 3
= + x y y x
dx
dy
x
(v) 0 ) (
2
= + dy e dx e y x y
x x




We now conclude this unit by giving summary of what we have covered in it.
4.5 SUMMARY
In this unit, we have learnt that
(i) (a) An equation involving derivatives of dependent variable w.r.t. to one or
more independent variables is called a differential equation.
(b) The order a differential equation is the order of highest derivative appearing
in it.
(c) The degree of a differential equation is the highest exponent of the highest
order derivative in it, after removing radicals/fractions.



188
Calculus : Basic Concepts
(ii) A differential equation of the form
) (
) (
y q
x p
dx
dy
= is called a separable equation and
solution is obtained by direct integration.
(iii) The equation
) , (
) , (
y x g
y x f
dx
dy
= , where f (x, y) and g (x, y) are homogeneous functions
of the same degree is called homogeneous equation and to solve it, we put y =vx
and the equation becomes separable equation.
(iv) The differential equation M dx +N dy =0 is said to be exact if
x
N
y
M

and its
solution is =constant.
) of t independen terms ( ) constant as treating ( x y
dy N dx M

+
(v) (a) Equation of the form ) ( ) ( x q y x p
dx
dy
= + is called a linear differential
equation and is its integrating factor.
pdx
e

(b) Equations of the type


n
y x q y x p
dx
dy
) ( ) ( = + are reduced to linear form by
the substitution . z y
n
=
1
4.6 ANSWERS TO SAQs
SAQ 1
(i) 1, 2
(ii) 1, 6
Hint : First square both the sides, the highest order derivative is
dx
dy
, and
its power is 6.
(iii) 2, 1
(iv) 3, 2
(v) 2, 2
SAQ 3
(a) (i)
dx
dy
y x y = = , 3
2

(ii)
2
2
, 0
dx
y d
y y y = =
(iii)
3
3
, 0
dx
y d
y y = =
(b) Here ] sin ) ( cos ) [( x B A x B A e y
x
+ =
y x A x B e
x
+ = ] sin cos [
] sin cos [ 2 x A x B e y
x
=
] [ 2 y y =

189

Differential Equations
Hence, 0 2 2 = + y y y
SAQ 4
(i)
c
t t
y
+
+
=
2
3 15
3
2

(ii) 0 or
2
2
2
=
+
= y
c t e
y
t

(iii)
t
ce y
4
3+ =
(iv) 0 or ) (
2
= + = y c t y
Hint : c t y dt t dy y + = =
2 / 1 2 / 1 2 / 1 2 / 1
thus ,
SAQ 5
(a) (i) c x x y + = | | ln 2
(ii) xc
x
y
=

= sin
(iii)
2 2 2
cx y x y = + =
(iv) c
x
y
x =

+ cos | | ln
(b) (i)
y/x
e x c x y

=
2
) (
(ii)
x y
x
x y x
x y c
+
=
+

2
) (
) (
ln
4

(iii) c
y
x
y = + ln Hint : Put y =v x
therefore, 0 ) ( ) 1 ( = + + dx vx xdv vdx v x x
or, 0 ) 1 2 ( 2
2 / 3
= + dv v x dx v
or, 0
) 1 2 ( 2
2 / 3
=

+ dv
v
v
dx
x

0
2 2
2 / 3
=

+

dv v
v
dx
x


1
2 / 1
2 ln 2 ln 2 c v v x = + +

or, c v xv = +
2 / 1
ln
Putting
x
y
v =
c
y
x
y + + ln
(iv) cx x y y x = + ) 3 2 ( ) 2 (
SAQ 6
(i) ) 2 ( ) 2 (
3
+ = + y x c y x



190
Calculus : Basic Concepts
(ii)
3 4
) 1 ( ) 3 2 ( + = x c x y
(iii) ) 1 ( ) 4 2 (
2
+ = + y x c x y
(iv) c y x y x = + + ) 3 2 ( ln 6
SAQ 7
(a)
3 2
2 2 x y cx xy + + =
(b) (i) c
xy
y =
1
ln
Hint : Use the substitution xy = t then variables are separated.
(ii)
2
) 1 ( x
c
y
+
=
(iii) c y x y x = +
3 2
3
1
) (ln ln ) (ln
Since 0
ln
ln
3
2 ) (ln ln
2 2 3
=

+ +

+ dy y x
y y
x
dx xy
x
y


0
3
2
ln
ln ) (ln ln
2 2 3
=

+ +

+ dy y x dx xy dy
y y
x
dx
x
y

0 ) (
3
1
) (ln ln [ln
3 2
= + y x y x d
or c y x y x = +
3 2
3
1
) (ln ln ) ln (
SAQ 8
(i)
2
x
c
x y + =
(ii)
1
1
1
2

=
+

=
x
c
e
x
x
y
x

(iii) x c x x x e y
x
cos cos ) 2 2 (
2
+ + =
(iv)
2
) (ln ln x c x y + =
(v) c y xy + =
5 2
2
Hint : Given equation can be written as
2
10
2
y x
y dy
dx
= + , which is linear
with x as dependent variable.
SAQ 9
(i) (Hint : Use the substitution ) ( 1
2
x c ye
x
= z
y
=
1
)
(ii) (Hint : Put
3 1
2y c y x + =

z
y
=
1
)

191

Differential Equations
(iii) c x xy = +
5 2
(iv)
3 3
) sin 3 ( y x c x + =
(v) cy e y x
x
= + 3
3





































192
Calculus : Basic Concepts
FURTHER READING

You might also like