0% found this document useful (0 votes)
112 views25 pages

Oridinary Differential Equation of First Order

This document discusses first-order ordinary differential equations. It defines key concepts such as the order of a differential equation, general and particular solutions, and initial value problems. Examples are provided to illustrate these concepts and how to solve separable, homogeneous, and linear first-order differential equations.

Uploaded by

mogesalemu573
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views25 pages

Oridinary Differential Equation of First Order

This document discusses first-order ordinary differential equations. It defines key concepts such as the order of a differential equation, general and particular solutions, and initial value problems. Examples are provided to illustrate these concepts and how to solve separable, homogeneous, and linear first-order differential equations.

Uploaded by

mogesalemu573
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Chapter 11

Ordinary Differential Equation of


First Order

Contents
11.1 Basic Concepts and Ideas 3

11.2 Separable Equation 5

11.3 Homogeneous Differential Equation 7

11.4 Exact Differential Equation 13

11.5 Integrating Factors 16

11.6 Linear First Order Differential Equation 21

11.7 Exercise 26

In mathematics, there are different types of equations. A differential equation is one of these unknown
functions and its derivatives that connect the unknown functions with its derivatives. The equation is
called an ordinary equation if the unknown function is a function of one variable. If the unknown function
is a function of several variables, the equation connecting this function and its derivatives is called a
partial differential equation. There are many physical, chemical, biological, geometrical and real life
problems that lead to solve differential equations.

11.1 Basic Concepts and Ideas


Let y be a function of x. Then we can write this as y = f (x). Its first, second, third and so on, derivatives
dy d 2 y d 3 y dn y
are written as y0 , y00 , y000 , · · · , y(n) or dx , dx2 , dx3 , · · · , dx n.

Definition 11.1.1 A differential equation is one which connects the independent variable x, unknown
function y = f (x), and its derivatives y0 , y00 , y000 , · · · , y(n) . Symbolically, F(x, y, y0 , y00 , y000 , · · · , y(n) ) = 0.

The order of a differential equation is the order of the highest derivative which appears in the equation
and the solution or integral of a differential equation is any function y = ϕ(x) which, when put in to the
equation, converts it in to identity.
 Example 11.1 y0 − 2xy2 + 9 = 0 is an example of first-order differential equation and y00 + 4y0 − 3y =
csc x is an example of second-order differential equation. 

First-order differential Equation


A solution of a given first order differential equation, F(x, y, y0 ) = 0 is a function H(x, y) = c, where c is
arbitrary constant number. A solution of the form H(x, y) = c, where y is expressed as a function of x

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
2 Ordinary Differential Equation of First Order

implicitly is called an implicit solution. In case the solution is expressed in the form of y = f (x), it is
called explicit solution.
Definition 11.1.2 A differential equation of the first-order is of the form F(x, y, y0 ) = 0. If the sought-
for function y = f (x) is a function of one independent variable, then the differential equation is called
Ordinary.

Concept of Solution
A function y = ϕ(x) is called a solution of ordinary differential equation F(x, y, y0 ) = 0 on some open
interval a < x < b if ϕ(x) is defined and differential throughout the interval and is such that the equation
becomes an identity if y and y0 are replaced with ϕ(x) and ϕ 0 (x), respectively. The curve (the graph) of
ϕ(x) is called a solution. The geometrical meaning of y0 = ϕ 0 (x) is that ϕ 0 is the slope of the tangent line
to the curve y = ϕ(x) at the point (x, y). The physical meaning is that ϕ 0 is the rate of change of y at time
x.
 Example 11.2 Prove that a curve having the slope of the tangent to any point proportional to the
abscissa of the point of the tangency is a parabola.
Proof: Let the equation of the curve be y = f (x). Then the differential equation of the problem is

y0 = kx, where k is some constant number


dy = kx dx
Z Z
⇒ dy = kx dx

x2
⇒y = k + c, where c is some constant number
2
k
⇒y = k0 x2 + c, where k0 =
2
The equation y = k0 x2 + c is an equation of a parabola. 

General Solution
Definition 11.1.3 The general solution of a first-order differential equation is a function y = f (x, c),
which depends on a single arbitrary constant c and satisfies the differential equation for any specific
value of the constant c.

Initial value problem


In most cases the unique solution of a given problem, hence a particular solution, is obtained from a
general solution by an initial condition y(x0 ) = y0 , with given value x0 and y0 ; that is used to determine a
value of the arbitrary constant c.
Definition 11.1.4 A particular solution is any function y = f (x, c0 ) which is obtained from the gen-
eral solution y = f (x, c), if c = c0 . In this case the relation Φ(x, y, c0 ) = 0 is called a particular
integral(solution) of the equation.

A first-order differential equation with no initial condition has many solutions and we call the collections
of these solutions a general solution which is dependent on a single parameter. If initial conditions are
specified, then the differential equation will have a unique solution; that is, a solution involving one or
more arbitrary constants of a differential equation is called a general solution and a solution obtained
by choosing a specific constant c from initial value problem is a particular solution. Geometrically, this
condition means the solution curve should pass through the point (x0 , y0 ) in the xy-plane. An ordinary
differential equation together with an initial condition is called an initial value problem.
Definition 11.1.5 For differential application solutions to differential equation may be required to
satisfied certain defined conditions such conditions are called initial conditions if they are given at
only one point of the independent variable, while conditions given at more than one point of the
independent variables are called boundary condition.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.2 Separable Equation 3

Definition 11.1.6 A differential equation together with a set of initial conditions is called initial value
problem and with boundary conditions is called boundary value problem.
dy
 Example 11.3 Consider the equation dx + y = 0. Here y = ce−x can be an explicit general solution of
the given equation for any choice of constants c. But for certain initial value conditions like y(0) = 2 the
solution is y = 2e−x , without constant which is a particular solution indeed. 

 Example 11.4 Solve the initial value problem

y0 = 3y, y(0) = 6

Solution: First we have to find the general solution

y0 = 3y
dy
⇒ = 3y
dx
1
⇒ dy = 3 dx
y

1
Z Z
⇒ dy = 3 dx
y
⇒ ln |y| = 3x + c
⇒ |y| = e3x+c
⇒ |y| = e3x ec
⇒y = ±ec e3x
⇒y = c0 e3x where c0 = ±ec

Therefore, the general solution is y(x) = c0 e3x . From this solution and initial condition we obtain
y(0) = c0 e0 = c0 = 6. Hence the initial value problem has the solution y(x) = 6e3x . This is the particular
solution. 

 Example 11.5 By Newton’s law, the rate of cooling of some body in air is proportional to the difference
between the temperature of the body and the temperature of the air. If the temperature of the air is 20oC
and the body cools for 20 minutes from 100oC to 60oC, how long will it take for its temperature to drop
to 30oC?
Solution: Let T be the temperature of the body at time t. Then the differential equation of the problem is

dT
= k(T − 20)
dt

Integrating, we find ln(T − 20) = kt + c. Using the initial condition Tt=0 = 100oC, we get c = ln 80. Using
ln 21
the given Tt=20 = 60oC, we get k = 20 . To get t when T = 30oC, we use the formula

ln 12
ln(30 − 20) = t + ln 80
20

which gives t = 60 minutes. 

11.2 Separable Equation


Definition 11.2.1 1. An equation of the form M(x)dx + N(y)dy = 0 is called an equation with
separated variables.
2. An equation of the form M1 (x)N1 (y)dx + M2 (x)N2 (y)dy = 0 is called an equation with separable
variables.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
4 Ordinary Differential Equation of First Order

Solution of an equation with separated variables

For M(x)dx + N(y)dy = 0, integrating with respect to x and with respect to y respectively, we obtain
Z Z
M(x) dx + N(y) dy = c

which is the general solution. Similarly, for an equation with variables separable M1 (x)N1 (y)dx +
M2 (x)N2 (y)dy = 0 dividing by N1 (y)M2 (x), we obtain

M1 (x) N2 (y)
dx + dy = 0
M2 (x) N1 (y)

which is of separated variables. Then by integrating, we get the general solution

M1 (x) N2 (y)
Z Z
dx + dy = c
M2 (x) N1 (y)

Example 11.6 Find the general solution for x dx + y dy = 0.


Solution: The given differential equation is an equation of separated variables. So,

x dx + y dy = 0
x dx = −y dy, which is separated variables
Z Z
x dx = − y dy
1 2 1
x = − y2 + c
2 2
1 2
(x + y2 ) = c
2
x2 + y2 = c0 , is the general solution where c0 = 2c.

Example 11.7 Find the general solution for y dx + x dy = 0.


Solution: The given differential equation is an equation of separable variables. So,

y dx + x dy = 0
y dx = −x dy
1 1
dx = − dy, which is separated variables
x y
1 1
Z Z
dx = − dy
x y
ln |x| = − ln |y| + c
ln |x| + ln |y| = c
ln |xy| = c
|xy| = ec
xy = ±ec
xy = c0 , where c0 = ±ec , is the general solution.

 Example 11.8 Solve (1 − x) dy + (1 − y) dx = 0.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.3 Homogeneous Differential Equation 5
dx dy
Solution: The given differential equation can be written as 1−x + 1−y = 0. Integrating yields

dx dy
Z Z
+ =c
1−x 1−y
⇒ − ln |1 − x| − ln |1 − y| = c
⇒ ln |1 − x| + ln |1 − y| = −c
⇒ ln |(1 − x)(1 − y)| = −c
⇒ |(1 − x)(1 − y)| = e−c
⇒ |(1 − x)(1 − y)| = k, where k = e−c
⇒ (1 − x)(1 − y) = c0 , where c0 = ±k, is the general solution.

dy dy
Example 11.9 Solve = a(y2 +
y − x dx dx ).
Solution: The above equation can be written as
dy dx
=
y(1 − ay) x + a
Resolving the left-hand side in to partial fraction, we get
a 1 dx
( + ) dy =
1 − ay y x+a
Integrating yields
a 1 dx
Z Z
( + ) dy =
1 − ay y x+a
⇒ − ln |1 − ay| + ln |y| = ln |x + a| + c
y
⇒ ln | | = ln |x + a| + c
1 − ay
y
⇒| | = |x + a|ec
1 − ay
⇒ |y| = |1 − ay||x + a|k, where k = ec
⇒ y = c0 (1 − ay)(x + a), where c0 = ±k, is the required solution

dy x(2 ln x+1)
 Example 11.10 Solve = dx sin y+y cos y .
Solution: The given equation may be written as (sin y + y cos y)dy = x(2 ln x + 1)dx. Integrating we have
Z Z Z Z
sin y dy + y cos y dy = 2 x ln x dx + x dx

1 1 x2
⇒ − cos y + y sin y + cos y = 2( x2 ln x − x2 ) + + c
2 4 2
1 2 1 2
Z
since x ln x dx = x ln x − x
2 4
2
⇒ y sin y = x ln x + c, which is the required solution.

Equations with variables separable are the simplest type of differential equations and can be solved by
the method like the above. Other types of differential equations are reduced to equations with variables
separable through different methods.

11.3 Homogeneous Differential Equation

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
6 Ordinary Differential Equation of First Order

Definition 11.3.1 A homogeneous function is a function with multiplicative scaling behavior; if the
argument is multiplied by a factor, then the the result is multiplied by some power of this factor. More
precisely, if f : V → W is a function between two vector spaces over a field F, and n is an integer, then
f is said to be homogeneous of degree n for all non zero α ∈ F and v ∈ V if

f (αv) = α n f (v)

 Example 11.11 f (x, y) = x3 + y3 is a particular example of homogeneous function because f (αx, αy) =
α 3 f (x, y) but g(x, y) = x3 + 2xy is not homogeneous function. 

Definition 11.3.2 The differential equation Mdx + Ndy = 0 is said to be homogeneous if it can be put
in the form
dy M(x, y)
=−
dx N(x, y)
M
where M(x, y) and N(x, y) are homogeneous functions of the same degree and the ratio N can be
represented as a function of the ratio xy . We denote this ratio by t; that is, t = xy .

To solve homogeneous differential equations, we use t = xy and change the differential equation to
separable. Since every homogeneous equation can be reduced to a separable equation by transforming
y = tx.
p
 Example 11.12 Find the general solution for (y +
p x2 + y2 ) dx − x dy = 0.p
Solution: Let M(x, y) = y + x + y and N(x, y) = −x. Both M(x, y) = y + x2 + y2 and N(x, y) = −x
2 2
dy dt
are homogeneous function of degree 1. So, let y = tx, then dx = t + x dx ⇒ dy = t dx + x dt
p
(y + x2 + y2 ) dx − x dy = 0
q
⇒ (tx + x2 + (tx)2 ) dx − x(t dx + x dt) = 0
p
⇒ x((t + 1 + t 2 ) dx − (t dx + x dt)) = 0

p
⇒ (t + 1 + t 2 ) dx − (t dx + x dt) = 0
p
⇒ 1 + t 2 dx − x dt = 0
dx dt
⇒ −√ =0
x 1 + t2
dx dt
Z Z
⇒ − √ =c
x 1 + t2

p
⇒ ln |x| − ln |t + 1 + t 2 | = c by using trigonometric substitution
x
⇒ ln | √ |=c
t + 1 + t2
x
⇒ √ = ±ec
t + 1 + t2
x
⇒ √ = c0 where c0 = ±ec
t + 1 + t2
r
y y
⇒ x = c0 ( + 1 + ( )2 ) is the general solution
x x


 Example 11.13 Solve (x2 − y2 ) dx + 2xy dy


= 0.
Solution: M(x, y) = x2 − y2 and N(x, y) = 2xy are both homogeneous function of degree 2 and then the
given equation can be written as
dy y2 − x2
=
dx 2xy

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.3 Homogeneous Differential Equation 7

which is a homogeneous differential equations putting t = xy ; that is, y = tx, we get


dt t 2 x2 − x2 t 2 − 1
t +x = =
dx 2tx2 2t
separating the variables, we have
2t dx
dt = −
t2 + 1 x
Integrating, we obtain
2t dx
Z Z
2
dt = − ⇒ ln |t 2 + 1| = − ln |x| + c
t +1 x
⇒ ln |t 2 + 1| + ln |x| = c
⇒ ln |x(t 2 + 1)| = c

⇒ |x(t 2 + 1)| = ec
⇒ x(t 2 + 1) = ±ec
y
⇒ y2 + x2 = xc0 , where t = and c0 = ±ec
x


Example 11.14 Solve (x2 y − 2xy2 ) dx − (x3 − 3x2 y) dy


= 0.
Solution: M(x, y) = x2 y − 2xy2 and N(x, y) = −(x3 − 3x2 y) are both homogeneous function of degree 3
and then the given equation can be written as
dy x2 y − 2xy2 xy − 2y2
= 3 =
dx x − 3x2 y x2 − 3xy
dy dt
putting y = tx ⇒ dx = t + x dx and separating the variables we get
dt tx2 − 2t 2 x2 t − 2t 2
t +x = =
dx x2 − 3tx2 1 − 3t
dt t − 2t 2
⇒x = −t
dx 1 − 3t
dt t2
⇒x =
dx 1 − 3t
1 − 3t 1
⇒ 2 dt = dx
t x
1 3 1
⇒ 2 dt − dt = dx
t t x
Integrating, we obtain
−1
= ln |x| + 3 ln |t| + c
t
Since y = tx
−x y
= ln |x| + 3 ln | | + c
y x
y 3
= ln |x( ) | + c
x
y3
= ln 2 + c
x
x x2
⇒ = ln −c
y y3
x x2 −c
⇒ ey = e
y3
x
⇒ x2 = c0 y3 e y where c0 = ±ec
which is the required solution. 

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
8 Ordinary Differential Equation of First Order

 Example 11.15 Solve x2 y dx − (x3 + y3 ) dy = 0.


Solution: M(x, y) = x2 y and N(x, y) = −(x3 + y3 ) are both homogeneous function of degree 3 and then the
differential equation is reduced to separable equation by y = tx. So, the given equation can be rewritten as

dy x2 y
= 2
dx x + y3

dy x2 y
=
dx x2 + y3
dt x2 y
t +x =
dx x3 + t 3 y3
t
=
1 + t3
dt t
⇒x = −t
dx 1 + t3
−t 4
=
1 + t3
1 + t3 dx
⇒( ) dt = − which is separable
t4 x
After integrating we have
−1
+ ln |t| = − ln |x| + c
3t 3
1
⇒ 3 = ln |tx| − c
3t
1 1
⇒ |tx| = e 3t 3 − ec = ec e 3t 3
1
⇒ tx = ±ec e 3t 3
x3 y
⇒y = c0 e 3y3 since t = and c0 = ±ec
x


Example 11.16 Solve (x2 y − 2xy2 ) dx − (x3 − 3x2 y) dy


= 0.
Solution: M(x, y) = x2 y − 2xy2 and N(x, y) = −(x3 − 3x2 y) are both homogeneous function of degree 3
and then the given differential equation can be rewritten as by letting y = tx

dy x2 y − 2xy2 xy − 2y2
= 3 2
= 2
dx x − 3x y x − 3xy

dy x2 y − 2xy2 xy − 2y2
= 3 2
= 2
dx x − 3x y x − 3xy
dt x(tx) − 2(tx)2
t +x =
dx x2 − 3x(tx)
t − 2t 2
=
1 − 3t
dt t − 2t 2
⇒x = −t
dx 1 − 3t
t − 2t 2 − t + 3t 2
=
1 − 3t
t2
=
1 − 3t
1 − 3t dx
⇒ dt = which is separable
t2 x

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.3 Homogeneous Differential Equation 9

After integrating we have


−1
− 3 ln |t| = ln |x| + ln |c|
t
1 y y3
⇒ = ln |cx| + 3 ln |t| = ln |cxt 3 | = ln cx( )3 = ln c 2
t x x
−x y3
⇒ = ln c
y x2
y3 −x
⇒ |c
2
| = ey
x
x x2
⇒ ey = ± 3
cy
x
Thus x2 = c0 y3 e y , where c0 = ±c is a required solution. 

dy
Let the differential equation be the form of dx = f (ax + by + c). Then we can reduce to a separable
differential equation of the form
dy dy
• Case 1: a = 0, b 6= 0, then dx = f (by + c) ⇒ f (by+c) = dx which is separable.
dy
• Case 2: a 6= 0, b = 0, then dx = f (ax + c) ⇒ dy = f (by + c) dx which is separable.
dy
• Case 3: a =6 0, b 6= 0 substitute u = ax + by + c, then du
dx = a + b dx

du dy
= a+b
dx dx
du
dy dx − a
⇒ = = f (u)
dx b
du
⇒ −a = b f (u)
dx
du
⇒ = b f (u) + a
dx
du
⇒ = dx which is separable
b f (u) + a
dy 1
 Example 11.17 Solve dx = x+y+1 .
Solution: Let u = x + y + 1,
du dy
= 1+
dx dx
dy du 1
⇒ = −1 =
dx dx u
du 1 1+u
⇒ = +1 =
dx u u
u
⇒ du = dx
u+1

1
⇒ (1 − ) du = dx
u+1
⇒ u − ln |u + 1| = x + c
⇒ x + y + 1 − ln |x + y + 1 + 1| = x + c
⇒ y + 1 − ln |x + y + 2| = c
x + y + 2 = c0 e−y where c0 = ±ec+1 is the required solution.

dy
Differential equation of the form dx = f ( aax+by+c
0 x+b0 y+c0 ) can be reduced to a homogeneous equation by means
of substitution.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
10 Ordinary Differential Equation of First Order

• Case 1: aa0 6= bb0 . Let l1 : ax + by + c = 0 and l2 : a0 x + b0 y + c0 = 0 be straight line; that is,


l1 ∩ l2 6= empty set say l1 ∩ l2 = (h, k)
set x = u + h and y = v + k the equation reduced to
dv au + bv
=
du a0 u + b0 v
dy dv
= du
dx , ah + bk + c = 0 = a0 h + b0 h + d which is homogeneous and substitute v = mu.
• Case 2: aa0 = bb0 = λ1 (say) i.e the lines are parallel which means a0 = λ a and b0 = λ b, then

dy ax + by + c
=
dx λ (ax + by) + c0
set z = ax + by then
dy 1 dz
= ( − a)
dx b dx
1 dz z+c
( − a) =
b dx λ z + c0
dz (b + aλ )z + bc + ac0
=
dx λz+c
which is homogeneous.
dy x+y+4
 Example 11.18 Solve dx = x−y−6 .
Solution: Here a = 1, b = 1, a0 = 1, b0 = −1 ⇒ aa0 6= bb0 ; that is, the lines are intersecting at (h, k) say, but
dy dv
(h, k) = (1, −5). Put x = u + h = u + 1 and y = v + k = v − 5. So that dx = du i.e

dv u+1+v−5+4 u+v
= =
du u + 1 − (u − 5) − 6 u − v
Now put v = mu
dv dm dm dv u + mu
⇒ = m+u and u = −m = −m
du du du du u − mu
1+m 1 + m − m + m2
⇒ −m =
1−m 1−m
dm 1 + m2
⇒u =
du 1−m
1−m du
⇒ dm =
1 + m2 u

1 m du
Z Z Z
⇒ dm − dm =
1 + m2 1 + m2 u
−1 1 2
⇒ tan m − ln(1 + m ) = ln |u| + c
2 p
−1
⇒ tan m = ln |( 1 + m2 )u| + c

r
−1 v v
⇒ tan ( ) = ln ( 1 + ( )2 )u + c
u u
r
y+5 y+5 2
⇒ tan−1 ( ) = ln ( 1 + ( ) )(x − 1) + c
x−1 x−1
r
y+5 y+5 2
⇒( ) = tan[ln ( 1 + ( ) )(x − 1) + c]
x−1 x−1

is a solution. 

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.4 Exact Differential Equation 11
dy x+y+4
 Example 11.19 Solve dx = x+y−6 .
Solution: Put x + y = z, then

dz z+4
−1 =
dx z−6
dz 2(z − 1)
⇒ =
dx z−6
z−6
⇒ dz = 2dx
z−1
5
⇒ (1 − )dz = 2dx
z−1
⇒ z − 5 ln |z − 1| = 2x + c
⇒ x + y − 5 ln |x + y − 1| = 2x + c
⇒ y − x − 5 ln |x + y − 1| = c

is a solution. 

11.4 Exact Differential Equation


Definition 11.4.1 The equation
M(x, y) dx + N(x, y) dy = 0
is called an exact differential equation if there is a function f (x, y) such that

∂f ∂f
= M(x, y) and = N(x, y)
∂x ∂y

Theorem 11.4.1 A differential equation M(x, y) dx + N(x, y) dy = 0 is exact if and only if ∂∂M ∂N
y = ∂x
∂f ∂f
and its solution is given by f (x, y) = c, where ∂x = M(x, y) and ∂y = N(x, y) and c is arbitrary constant.

2 2
 Example 11.20 Show that 2x
y3
dx + y −3x
y4
dy = 0 is an exact differential equation.
2x y2 −3x2
Solution: Let M(x, y) = y3
and N(x, y) = y4

∂M −6x ∂N −6x
= 4 and = 4
∂y y ∂x y
∂M ∂N
⇒ =
∂y ∂x

It is an exact differential equation. 

Solution of an exact differential equation


To solve an exact differential equation, apply the following steps
• Step 1: By definition, there is a function f such that ∂∂ xf = M(x, y).
Integrating with respect to x, Z
f (x, y) = M(x, y) dx + g(y) (11.1)

• Step 2: To determine g(y)


1. Differentiate equation (11.1) respect to y
2. Take ∂∂ yf = N(x, y) and then
3. Integrate g0 (y) to get g(y)
• Step 3: The solution is given by f (x, y) = c

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
12 Ordinary Differential Equation of First Order
2 2
 Example 11.21 Solve the differential equation 2x
y3
dx + y −3x
y4
dy = 0.
y2 −3x2
Solution: Here M(x, y) = 2x y3
and N(x, y) = y4
is an exact differential equation in the previous example.
Let f (x, y) = c be its solution, then
Z
f (x, y) = M(x, y) dx + g(y)
2x
Z
= dx + g(y)
y3
Thus,
x2
f (x, y) = + g(y) (11.2)
y3
Differentiating equation (11.2) with respect to y
∂ f (x, y) ∂ x2
= ( ) + g0 (y)
∂y ∂ y y3
x2
= −3 4 + g0 (y)
y
y2 − 3x2 x2 ∂ f (x, y) y2 − 3x2
⇒ = −3 4 + g0 (y) since =N=
y4 y ∂y y4
1
⇒ g0 (y) =
y2
1
⇒ g(y) = − + c1
y
x2
Since our solution is in the form f (x, y) = c and f (x, y) = y3
− 1y + c1

x2 1
− + c1 = c
y3 y
x2
Therefore, y3
− 1y = c0 , where c0 = c − c1 is the general solution. 

 Example 11.22 Solve the differential equation


(y cos x + sin y + y) dx + (sin x + x cos y + x) dy = 0
if it is exact.
Solution: Here M(x, y) = y cos x + sin y + y and N(x, y) = sin x + x cos y + x
∂M ∂N
⇒ = cos x + cos y + 1 and = cos x + cos y + 1
∂y ∂x
Since ∂∂My = ∂∂Nx , the given equation is exact.
Let f (x, y) = c be its solution, then
Z
f (x, y) = M dx + g(y)
Z
= (y cos x + sin y + y) dx + g(y) = y sin x + x sin y + xy + g(y)

Differentiating f (x, y) respect to y, we get


∂f
= sin x + x cos y + x + g0 (y)
∂y
∂f
⇒ sin x + x cos y + x = sin x + x cos y + x + g0 (y) since = sin x + x cos y + x
∂y
⇒ g0 (y) = 0
⇒ g(y) = c1 where c1 is constant
⇒ f (x, y) = y sin x + x sin y + xy + c1

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.4 Exact Differential Equation 13

Since our solution is in the form f (x, y) = c and f (x, y) = y sin x + x sin y + xy + c1
y sin x + x sin y + xy + c1 = c
Therefore, y sin x + x sin y + xy = c0 , where c0 = c − c1 is the desired solution. 

 Example 11.23 Test the equation ey dx + (xey + 2y) dy


= 0 for exactness and solve if it is exact.
Solution: Here we have M(x, y) = ey and N(x, y) = xey + 2y. So, ∂∂My = ey and ∂∂Nx = ey . Thus the condition
of exactness is satisfied and hence the given equation is exact.
Let f (x, y) = c be its solution, then
Z Z
f (x, y) = M dx + g(y) = ey dx + g(y) = xey + g(y)

Differentiating f (x, y) respect to y, we get


∂f
= xey + g0 (y)
∂y
∂f
⇒ xey + 2y = xey + x + g0 (y) since = xey + 2y
∂y
⇒ g0 (y) = 2y
⇒ g(y) = y2 + c1 where c1 is constant
⇒ f (x, y) = xey + y2 + c1
Since our solution is in the form f (x, y) = c and f (x, y) = xey + y2 + c1
xey + y2 + c1 = c
Therefore, xey + y2 = c0 , where c0 = c − c1 is the desired solution. 

2 2 2 2
 Example 11.24 Solve xex +y dx + y(ex +y + 1) dy = 0 with y(0) = 0.
2 2 2 2
Solution: Here we have M(x, y) = xex +y and N(x, y) = y(ex +y + 1). Then the given equation is exact
2 2
since ∂∂My = 2xyex +y = ∂∂Nx .
Let f (x, y) = c be its solution, then
1 2 2
Z Z
2 +y2
f (x, y) = M dx + g(y) = xex dx + g(y) = ex +y + g(y)
2
Differentiating f (x, y) respect to y, we get
∂f 2 2
= yex +y + g0 (y)
∂y
2 +y2 2 +y2 ∂f 2 2
⇒ 2xyex = yex + g0 (y) since = 2xyex +y
∂y
⇒ g0 (y) = y
1
⇒ g(y) = y2 + c1 where c1 is constant
2
1 2 2 1
⇒ f (x, y) = ex +y + y2 + c1
2 2
2 +y2
Since our solution is in the form f (x, y) = c and f (x, y) = 12 ex + 21 y2 + c1
1 x2 +y2 1 2
e + y + c1 = c
2 2
2 2
Therefore, 12 ex +y + 12 y2 = c0 , where c0 = c − c1 is the general solution. By initial condition, given
y(0) = 0; that is, y = 0 when x = 0. Because of this
1 0 1 1
e + 0 = c0 ⇒ c0 =
2 2 2
2 2
Substituting the value of c0 , we get 21 ex +y + 21 y2 = 12 .
2 2
Therefore, ex +y + y2 = 1 is a particular solution. 

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
14 Ordinary Differential Equation of First Order

11.5 Integrating Factors


Let the equation
M(x, y) dx + N(x, y) dy = 0 (11.3)
when the left hand side of the equation is not an exact differential equation or total differential. It is
sometimes possible to choose a function µ(x, y) such that after multiplying all terms of the equation by it,
the equation is converted in to an exact differential. The general solution of the equation thus obtained
coincides with the general solution of the original equation; the function µ(x, y) is called the integrating
factor of the equation.
Definition 11.5.1 An integrating factor is a function µ(x, y) when multiplied by it, the left hand side
of equation (11.3) becomes an exact differential.

Example 11.25 The equation 2y dx + x dy = 0 is not an exact differential. But multiplying by x yields
2xy dx + x2 dy = 0 which is exact thus µ(x, y) = x is an integrating factor. 

 Example 11.26 Solve x dx + y dy + (x2 + y2 )x2 dx = 0.


1
Solution: This equation as it is, is not exact. But if we multiply by the factor µ(x, y) = x2 +y2
and the
equation becomes an exact equation. Now let’s rewrite the equation as
x y
( + x2 ) dx + 2 dy = 0
x 2 + y2 x + y2
x 2 y
Here M(x, y) = x2 +y 2 + x and N(x, y) = x2 +y2

Let f (x, y) = c should be its solution, then


Z
f (x, y) = M dx + g(y)

x 1 x3
Z
2 2 2
= ( + x ) dx + g(y) = ln(x + y ) + + g(y)
x 2 + y2 2 3

Differentiating f (x, y) respect to y, we get

∂f y
= 2 + g0 (y)
∂y x + y2
y y ∂f y
⇒ 2 2
= 2 2
+ g0 (y) since = 2
x +y x +y ∂y x + y2
0
⇒ g (y) = 0
⇒ g(y) = c1 where c1 is constant
1 x3
⇒ f (x, y) = ln(x2 + y2 ) + + c1
2 3
3
Since our solution is in the form f (x, y) = c and f (x, y) = 12 ln(x2 + y2 ) + x3 + c1

1 x3
ln(x2 + y2 ) + + c1 = c
2 3
3
Therefore, 21 ln(x2 + y2 ) + x3 = c0 , where c0 = c − c1 is the desired solution. 

How to find an integrating factor


∂N − ∂M
• Case I: If the expression ∂ x M ∂ y = f (y) is not dependent on x but only on y, then the integrating
factor µ can be found from
∂N ∂M
R ∂x − ∂y
dy
µ(y) = e M

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.5 Integrating Factors 15
∂M − ∂N
• Case II: If the expression ∂ y N ∂x
= f (x) is not dependent on y but only on x, then the integrating
factor µ can be found from
∂M ∂N
R ∂y − ∂x
dx
µ(x) = e N

 Example 11.27 Solve the equation (y + xy2 ) dx − x dy = 0.


∂M ∂N
Solution: Since ∂y = 1 + 2xy, ∂x = −1 it is not an exact differential equation. Since
∂N
∂x − ∂∂Mx −2 − 2xy −2
= =
M y + xy2 y
the equation permits of an integrating factor dependent only on y.
− 2y dy
R
µ(x) = e
= e−2 ln |y|
−2
= eln |y|
= |y|−2
1
=
y2
1
Then after multiplying the equation by y2
, we obtain an exact differential equation
1 x
( + x) dx − 2 dy = 0
y y
Solving this equation, we find its complete general solution.
Let M1 (x, y) = 1y + x and N1 (x, y) = − yx2 and let f (x, y) = c be its solution, then
1 x 1
Z Z
f (x, y) = M1 dx + g(y) = ( + x) dx + g(y) = + x2 + g(y)
y y 2
Differentiating f (x, y) respect to y, we get
∂f −x
= 2 + g0 (y)
∂y y
−x −x ∂f −x
⇒ 2 = 2 + g0 (y) since = 2
y y ∂y y
0
⇒ g (y) = 0
⇒ g(y) = c1 where c1 is constant
x 1
⇒ f (x, y) = + x2 + c1
y 2
Since our solution is in the form f (x, y) = c and f (x, y) = xy + 12 x2 + c1
x 1 2
+ x + c1 = c
y 2
−2x
Therefore, xy + 21 x2 = c0 ⇒ y = x2 +2c0
, where c0 = c − c1 is the desired solution. 

 Example 11.28 Solve the equation (x2 + y2 ) dx − 2xy dy = 0.


Solution: Here
∂M
∂y − ∂∂Nx 2y + 2y −2
= =
N −2xy x
R −2
x dx 1
The integral factor is e = x2
1
Multiplying by x2 , the equation becomes an exact differential equation as
(x2 + y2 ) dx − 2xy dy
=0
x2
y2 2y
⇒ (1 + 2 ) dx − dy = 0
x x

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
16 Ordinary Differential Equation of First Order

Solving this equation, we find its complete general solution.


2
Let M1 (x, y) = 1 + xy2 and N1 (x, y) = − 2y
x and let f (x, y) = c be its solution, then

y2 y2
Z Z
f (x, y) = M1 dx + g(y) = (1 + 2
) dx + g(y) = x − + g(y)
x x
Differentiating f (x, y) respect to y, we get

∂f −2y
= + g0 (y)
∂y x
−2y −2y ∂f −2y
⇒ = + g0 (y) since =
x x ∂y x
0
⇒ g (y) = 0
⇒ g(y) = c1 where c1 is constant
y2
⇒ f (x, y) = x − + c1
x
2
Since our solution is in the form f (x, y) = c and f (x, y) = x − yx + c1

y2
x− + c1 = c
x
2
Therefore, x − yx = c0 ⇒ x2 − y2 = c0 x, where c0 = c − c1 is the desired solution. 

 Example 11.29 Solve the initial value problem (ex+y + yex ) dx + (xex − 1) dy = 0, y(0) = −1.
Solution: Let M(x, y) = ex+y + yex and N(x, y) = xex − 1, then

∂M ∂N
= ex+y + ey + yex and = ey
∂y ∂x
∂M ∂N
⇒ 6=
∂y ∂x

Therefore, it is not exact. Here


∂N
∂x − ∂∂My
= −1 = f (y)
M
R
The integral factor is e −1 dy = e−y
Multiplying by e−y , the equation becomes an exact differential equation as

(ex + y) dx + (x − e−y ) dy = 0

Solving this equation, we find its complete general solution.


Let M1 (x, y) = ex + y and N1 (x, y) = x − e−y and let f (x, y) = c be its solution, then
Z Z
f (x, y) = M1 dx + g(y) = (ex + y) dx + g(y) = ex + xy + g(y)

Differentiating f (x, y) respect to y, we get

∂f
= x + g0 (y)
∂y
∂f
⇒ x − e−y = x + g0 (y) since = x − e−y
∂y
⇒ g0 (y) = −e−y
⇒ g(y) = e−y + c1 where c1 is constant
⇒ f (x, y) = ex + xy + e−y + c1

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.5 Integrating Factors 17

Since our solution is in the form f (x, y) = c and f (x, y) = ex + xy + e−y + c1


ex + xy + e−y + c1 = c
Therefore, ex + xy + e−y = c0 ⇒ x2 − y2 = c0 x, where c0 = c − c1 is the general solution. From the initial
condition y(0) = −1, we have

e0 + (0)(−1) + e−(−1) = c0
1+e = c0
Therefore, ex + xy + e−y = 1 + e is a particular solution. 

 Example 11.30 Solve (3x2 y4 + 2xy) dx + (2x2 y3 − x2 ) dy = 0.


∂M ∂N
Solution: Here ∂y = 12x2 y3 + 2x and ∂x = 6x2 y3 − 2x
∂M ∂N
Since ∂y 6= ∂x the equation is not exact. So, let’s find the integral factor
∂M
∂y − ∂∂Nx 6x2 y3 + 4x
=
M 3x2 y4 + 2xy
2x(3xy3 + 2)
=
xy(3xy3 + 2)
2
=
y
R −2
Therefore, integral factor is e y dy = 1
. Multiplying by 1
, the equation becomes exact.
y2 y2

2x x2
(3x2 y2 + ) dx + (2x2 y − 2 ) dy = 0
y y
3x2 2
Let M1 (x, y) = y2
+ 2x 2 x
y and N1 (x, y) = 2x y − y2 and let f (x, y) = c be its solution, then

3x2 2x x2
Z Z
f (x, y) = M1 dx + g(y) = ( 2
+ ) dx + g(y) = x3 y2 + + g(y)
y y y
Differentiating f (x, y) respect to y, we get
∂f x2
= 2x3 y − 2 + g0 (y)
∂y y
x 2 x2
⇒ 2x2 y − 2 = 2x3 y − 2 + g0 (y)
y y
∂f x 2
since = 2x2 y − 2
∂y y

⇒ g0 (y) = 2x2 y − 2x3 y


⇒ g(y) = x2 y2 − x3 y2 + c1 where c1 is constant
x2
⇒ f (x, y) = x3 y2 + + x2 y2 − x3 y2 + c1
y
x2
⇒ f (x, y) = + x2 y2 + c1
y
x2
Since our solution is in the form f (x, y) = c and f (x, y) = y + x2 y2 + c1

x2
+ x2 y2 + c1 + c1 = c
y
x2
Therefore, y + x2 y2 = c0 , where c0 = c − c1 is the general solution. 

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
18 Ordinary Differential Equation of First Order

Theorem 11.5.1 The number of integrating factors are infinite.

1
Theorem 11.5.2 If Mx +Ny 6= 0 and equation M(x, y) dx +N(x, y) dy = 0 is homogeneous, then Mx+Ny
is an integral factor.

 Example 11.31 Solve (x2 y − 2xy2 ) dx + (3x2 − x3 ) dy = 0.


Solution: Here the equation is not exact but homogeneous.

1 1 1
= 3 2 2 2 3
= 2 2
Mx + Ny x y − 2x y + 3x y − x y x y
1
is the integral factor. Therefore, multiplying by x2 y2
the equation reduced to

1 2 3 x
( − ) dx + ( − 2 ) dy = 0
y x y y

which is an exact equation.


Let M1 (x, y) = 1y − 2x and N1 (x, y) = 3y − yx2 and let f (x, y) = c be its solution, then

1 2 x
Z Z
f (x, y) = M1 dx + g(y) = ( − ) dx + g(y) = − 2 ln |x| + g(y)
y x y

Differentiating f (x, y) respect to y, we get

∂f x
= − 2 + g0 (y)
∂y y
3 x x ∂f 3 x
⇒ − 2 = − 2 + g0 (y) since = − 2
y y y ∂y y y
0 3
⇒ g (y) =
y

⇒ g(y) = 3 ln |y| + c1 where c1 is constant


x
⇒ f (x, y) = − 2 ln |x| + 3 ln |y| + c1
y

Since our solution is in the form f (x, y) = c and f (x, y) = xy − 2 ln |x| + 3 ln |y| + c1

x
− 2 ln |x| + 3 ln |y| + c1 = c
y
3
Therefore, xy − 2 ln |x| + 3 ln |y| = c0 ⇒ xy + ln |y|
x2
= c0 x, where c0 = c − c1 is the general solution. 

−y
Remark 11.5.3 Mx + Ny = 0 ⇒ M M
N = x substituting this value of N in to equation (1), we have
y dx−x dy
y2
= 0, or d( xy ) = 0 on integrating, this gives the solution x = cy.

Theorem 11.5.4 If Mx − Ny 6= 0 and equation M(x, y) dx + N(x, y) dy = 0 has the form f1 (x, y)y dx +
1
f2 (x, y)x dy = 0, then Mx−Ny is an integrating factor of equation (1).

 Example 11.32 Solve (x2 y2 + xy + 1)y dx + (x2 y2 − xy + 1)x dy = 0.


Solution: The equation is not exact, we get

1 1 1
= =
Mx − Ny x3 y3 + x2 y2 + xy − x3 y3 + x2 y2 − xy 2x2 y2

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.6 Linear First Order Differential Equation 19

multiplying by this, the given equation assumes the form

1 1 1 1
(y + + ) dx + (x − + 2 ) dy = 0
x x2 y y xy

is an exact equation.
Let M1 (x, y) = y + 1x + x12 y and N1 (x, y) = x − 1y + xy12 and let f (x, y) = c be its solution, then

1 1 y
Z Z
f (x, y) = M1 dx + g(y) = (y + + ) dx + g(y) = xy + ln |x| − + g(y)
x x2 y x

Differentiating f (x, y) respect to y, we get

∂f 1
= x − + g0 (y)
∂y x
1 1 x ∂f 1 1
⇒ x − + 2 = − 2 + g0 (y) since = x− + 2
y xy y ∂y y xy
1 1 1
⇒ g0 (y) = 2 − +
xy y x

1 y
⇒ g(y) = − − ln |y| + + c1 where c1 is constant
xy x
y 1 y
⇒ f (x, y) = xy + ln |x| − − − ln |y| + + c1
x xy x
x 1
⇒ f (x, y) = xy + ln − + c1
y xy
1
Since our solution is in the form f (x, y) = c and f (x, y) = xy + ln xy − xy + c1

x 1
xy + ln − + c1 = c
y xy
3
1
Therefore, xy + ln xy − xy = c0 ⇒ xy + ln |y|
x2
= c0 x, where c0 = c − c1 is the general solution. 

y
Remark 11.5.5 When Mx−Ny = 0 ⇒ M M
N = x . Substituting for N in to equation (1) gives y dx+x dy =
0 or d(xy) = 0, which on integrating yields the solution xy = c

11.6 Linear First Order Differential Equation


Definition 11.6.1 An equation of the form

dy
+ p(x)y = r(x)
dx
where p(x) and r(x) are given continuous functions of x (or are constants) is called first-order linear
equation.

 Example 11.33 y0 − ex y = (x + 1)3 is an example of first-order linear equation. 

To solve first-order linear equations


• Case 1: If r(x) = 0, then y0 = −p(x)y which is separable and hence the general solution is given by
R
y(x) = ce− p(x)dx

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
20 Ordinary Differential Equation of First Order
dy
• Case 2: If r(x) 6= 0, then dx + p(x)y = r(x) can be written as [p(x)y − r(x)] dx + dy = 0 which is
∂M − ∂N
∂y ∂x
not exact, thus N = p(x). R
The solution is then obtained by calculating the integrating factor µ(x) = e p(x) dx and the general
solution can be determined by
R Z R
y = e− p(x) dx
[ r(x)e p(x) dx
dx]

 Example 11.34 Solve the equation y0 + 2y = 3ex .


Solution: The given equation is linear with p(x) = 2 and r(x) = 3ex , then by first order linear differential
equation
R Z R
y = e− p(x) dx
[ r(x)e p(x) dx
dx]
R Z R
= e− 2dx
[ 3ex e 2 dx
dx]
Z
= e−2x [ 3ex e2x dx]
Z
= e−2x [3 e3x dx]
1
= e−2x [3 e3x + c0 ]
3
ye2x = e3x + c0

Therefore, ye2x = e3x + c0 is the general solution. 

dy
 Example 11.35 Solve − (x + 1)y
x dx = x2 − x3 .
Solution: First we have to change the equation in to linear

dy (x + 1)
− y = x − x2
dx x

here p(x) = − (x+1)


x and r(x) = x − x2 . So, the general solution is
R Z R
y = e− p(x) dx
r(x)e p(x) dx
dx
Z
R (x+1) R (x+1)
= e− − x dx
(x − x2 )e − x dx
dx
R (x+1) Z R (x+1)
= e x dx
(x − x2 )e− x dx
dx
Z
(1+ 1x ) dx (−1− 1x ) dx
R R
= e (x − x2 )e dx
Z
= ex+ln x (x − x2 )e−x−ln x dx
Z
= xex (x − x2 )e−x e− ln x dx
1
Z
= xex (x − x2 ) e−x dx
Z
x
= xe (e − xe−x ) dx
x −x

Z
= xex (−e−x − xe−x dx)
= xex (−e−x + xe−x + e−x + c) where c is constant

Therefore, the general solution is y = x2 + cxex . 

dy
 Example 11.36 Solve the initial value problem dx + y tan x = sin 2x, y(0) = 1.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.6 Linear First Order Differential Equation 21

Solution: Here p(x) = tan x, r(x) = sin 2x. So, the general solution is
R Z R
y = e− p(x) dx
[ r(x)e p(x) dx
dx]
R Z R
= e− tan x dx
[ sin 2xe tan x dx
dx]
Z
= e− ln | sec x| [ 2 sin x cos xeln | sec x | dx]
1
Z
− ln | sec x|
= e [ 2 sin x cos x ] dx
| cos x|

1
Z
= | cos x|[ 2 sin x cos x
dx]
| cos x|
1
Z
= cos x[ 2 sin x cos x dx]
Z
cos x
= cos x[ 2 sin x dx]
= cos x[−2 cos x + c0 ]
= c0 cos x − 2cos2 x

Therefore, the general solution is y = c0 cos x − 2cos2 x. From this and the initial condition, 1 = c0 (1) −
2(1)2 , thus c0 = 3 and the solution of our initial value problem is y = 3 cos x − 2 cos2 x. 

 Example 11.37 Solve the initial value problem y0 − 2y = 4, y(0) = 0.


Solution: Since our problem is first order linear ordinary equation with p(x) = −2 and r(x) = 4. The
general solution will be
R Z R
y = e− p(x) dx
[ r(x)e p(x) dx
dx]
R Z R
= e− −2 dx
[ 4e −2x dx
dx]

= e2x [4e−2x dx]


= e2x [−2e−2x + c]
= −2 + c0 e2x
= c0 e2x − 2

Therefore, y = c0 e2x − 2 is the general solution. From this and the initial condition

0 = c0 e0 − 2 ⇒ c0 = 2

and the solution of our initial value problem is

y = 2e2x − 2 = 2(e2x − 1)

dy
 Example 11.38 Solve the initial value problem dx + y = f (x), when

2 0≤x<1
f (x) =
0 x≥1

and y(0) = 0.
Solution: Since the initial condition is at x = 0, for 0 ≤ x < 1, the function f (x) takes on the value 2 and
the differential equation assumes the form

dy
+y = 2
dx

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
22 Ordinary Differential Equation of First Order

Here integral factor is ex . The general solution is y(x) = 2 − xe−x . According to the initial condition c = 2.
Therefore,
y(x) = 2(1 − e−x ), 0 ≤ x < 1
dy
Now, for x ≥ 1, f (x) = 0 and the corresponding differential equation is dx + y = 0, the solution of which
is y(x) = c1 e−x . In order to determine c1 , we use the fact that the solution is continuous at every point. So
that at x = 1
y(1) = c1 e−1 = 2(1 − e−1 ) ⇒ c1 = 2(e − 1)
Hence, y(x) = 2(e − 1)e−x . Thus the general solution is

2(1 − e−x ) 0 ≤ x < 1



y=
2(e − 1)e−x x≥1


Definition 11.6.2 Bernoulli’s Equation


An equation of the form
dy
+ p(x)y = r(x)yn
dx
where p(x) and r(x) are continuous functions of x(or constants), and n 6= 0 and n 6= 1 (otherwise a
linear equation) is called Bernoulli’s equation.
dy
 Example 11.39 Solve the equation dx + y = xy .
Solution: It is Bernoulli’s equation with p(x) = 1, r(x) = x and n = −1. Dividing all terms of the equation
by y−1 , we get yy0 + y2 = x. By making the substitution z = y2 and dx
dz
= 2yy0 in to the above equation, we
get
dz
+ 2z = 2x
dx
which is a linear equation.
Let us find its complete solution using
R Z R
z = e− k(x) dx
[ r(x)e k(x) dx
dx]

where k(x) = 2 and r(x) = 2x. Thus,


R Z R
z = e− 2 dx
[ 2xe 2 dx
dx]
Z R
= e−2x [ 2xe 2 dx
dx]
1 1
= e−2x [2( xe2x − e2x ) + c0 ]
2 4
1
= e−2x [xe2x − e2x + c0 ]
2
1
= x − + c0 e−2x
2
1
y2 = x − + c0 e−2x since z = y2
2
1
Therefore, the general solution is given by y = ( −1
2 + x +Ce
−2x ) 2 . 

dy y y2
 Example 11.40 Solve dx + x = x ln x.
dy
Solution: It is a Bernoulli’s equation with p(x) = 1x and r(x) = lnxx when dividing by y2 , we get y−2 dx +
1 −1 ln x −1 −2 dy dz
xy = x . Put y = z. So that −y dx = dx and the equation reduced to

dz 1 − ln x
− z=
dx x x

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.6 Linear First Order Differential Equation 23

So, the general solution is


ln x R − 1 dx
R 1 Z
z = e x dx [− e x dx]
x
ln x
Z
= eln x [ − 2 dx]
x
ln x
Z
= x[ − 2 dx]
x
z ln x
Z
= − dx
x x2
z 1 1
= ln x + + c
x x x
1
= cx + ln x + 1
y

1
Therefore, the general solution is y = cx + ln x + 1. 

dy
 Example 11.41 Solve the equation dx + xy = x3 y3 .
dy
Solution: Dividing all terms of the equation by y3 ; that is y−3 dx + xy−2 = x3
Let z = y −2

dz dy
= −2y−3 ⇒
dx dx
−1 dz dy
⇒ = y−3
2 dx dx
So, the bernoulli’s equation is reduced to
−1 dz
+ xz = x3
2 dx
dz
− 2xz = −2x3
dx
Let p(x) = −2x and r(x) = −2x3
R Z R
z = e− p(x) dx
r(x)e p(x) dx
dx
R Z R
= e− −2x dx
−2x3 e −2x dx
dx
R Z R
= e 2x dx
−2x3 e− 2x dx
dx
Z
2 2
= ex ( x2 (−2xe−x ) dx

Z
2 2 2
= ex (x2 e−x − 2xe−x dx
2 2 2
= ex (x2 e−x + e−x + c where c is constant
2
= x2 + 1 + cex but z = y−2
2
y−2 = x2 + 1 + cex
1 2
= x2 + 1 + cex
y2
1
y2 = 2
x2 + 1 + cex
1
y = p
2
x2 + 1 + cex
1
Therefore, y = √ 2
is the general solution. 
x2 +1+cex

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
24 Ordinary Differential Equation of First Order

11.7 Exercise
1. Find the differential equation of the family of circles of radius r whose center lies on the x-axis.
dy 2
Ans. y2 [( dx ) + 1] = r2
2. Find the differential equation of the family of parabolas with foci at the origin and axis along the
x-axis.
dy 2 dy
Ans. y( dx ) + 2x dx −y = 0
Hint: the equation of the parabolas with foci at the origin and axis along the x-axis
p is given by
x2 + y2 = x+c
12
.

3. Find the solution of the differential equation y0 = 12 (y2 − 1), then satisfy the initial condition
y(0) = 2.
3+ex
Ans. y = 3−ex

4. Find a particular solution for the differential equation y0 = 1 + 4y2 , y(0) = 0


Ans. 1
2 tan−1 ( 2y ) = x + c0
5. Find a particular solution for the differential equationy0 = y − x, y(0) = 3
Ans. y = x + 1 + 2ex
6. Find the general solution for the differential equation yy0 + 36x = 0.
Ans. y2 + 36x2 = c0
4x2 +y2
7. Find the general solution for the differential equation y0 = xy .
p
Ans. y = 2x2 (c + 4 ln x)
8. Find a particular solution for the differential equation 2xyy0 = 3y2 + x2 , y(1) = 2
x3 1
Ans. y2 +x2
= 5

9. Find the general solution (2x + 1y − xy2 )dx + (2y + 1x − yx2 )dy = 0.

Ans. c0 = x2 = xy + xy + y2
dy
10. Find the general solution for the differential equation dx + xy = x3 y3 .
1
Ans. y = q
2
x2 +1+c0 ex

11. Find the general solution for the differential equation (x2 − y)dx + xdy = 0.
Ans. x − xy = c0

12. Find the general solution for the differential equation (x2 + y2 )dx + (x − 2y)dy = 0.
x3
Ans. 3 − xy − y3 = c0

13. Find the general solution for the differential equation (y − 3x2 )dx − (4y − x)dy = 0.
Ans. 2y2 − xy + xy + x3 = c0
14. Find the general solution for the differential equation (2x tan ydx + (x2 − 2 sin y)dy = 0.
Ans. x2 sin y + 2 sin2 y = c
15. Find the general solution for the differential equation 3y2 y0 − ay3 − x − 1 = 0.

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et
11.7 Exercise 25

Ans. a2 y3 = ceax − a(x + 1) − 1


x2
16. Find the general solution for the differential equation y0 + 4x2 y = (4x2 − x)e− 2 .
x2 4x3
Ans. y = e− 2 + ce− 3

17. Find the initial value problem for the differential equation y0 + 2y sin 2x = 2ecos 2x , y(0) = 0.
Ans. y = 2xecos 2x
1
18. Find the initial value problem for the differential equation y0 + xy2 = 2xe x , y(1) = 14
1
Ans. y = e x (x2 + 14
e − 1)
0 3
19. Solve the for the differential equation y − ( x+1 )y = (x + 1)3 .

Ans. y = (x + 1)3 (x + c0 )

20. Solve the differential equation xy0 + y = x.
2√ c0
Ans. y = 3 x+ x

Any one can get this soft-copy from Google site Exodus4Wisdom c Natnael Nigussie
natnaelnigussie@gmail.com
natnael.nigussie@aastu.edu.et

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy