First Order Ordinary Differential Equations
First Order Ordinary Differential Equations
Notes
EHIGIE, Julius Osato*
Contents
1 Linear Equations 1
2 Bernoulli Equations 5
1 Linear Equations
We can write the first order differential equation in various ways. One form is to write the equation in the
form
dy
= f (x, y). (1)
dx
Alternatively we can write a first order ordinary differential equation as
which is more of a general form. However, a first order differential equation can also be written as
d dy
Ly = + P (x) y = + P (x)y = Q(x). (3)
dx dx
Thus if the differential equation (1) or (2) or any first order differential equation can be written in the
simplified form given by (3) then, the equation is called a linear equation. The definition is thereby given
below.
Definition 1.1 A first order ordinary differential equation which can be written in the form
dy
+ P (x)y = Q(x) (4)
dx
is said to be a first order linear ordinary differential equation.
* Email jehigie@unilag.edu.ng
1
Ehigie, J. O. Mathematical Methods
It can be shown that the linear equation (4) has a solution of the form
R
Z R
P (x)dx
ye = e P (x)dx Q(x)dx + C (5)
R
P (x)dx
where e is an integrating factor to equation (4).
To obtain the solution of a first order linear equation, we may consider a differential function
d R P (x)dx R P (x)dx dy d R P (x)dx
ye = e +y e
dx dx dx
Z
P (x)dx dy P (x)dx d
R R
= e + ye P (x)dx
dx dx
R dy R
= e P (x)dx + yP (x)e P (x)dx
dx
R dy
P (x)dx
= e + yP (x)
dx
d R P (x)dx R P (x)dx dy R
=⇒ ye = e + yP (x) = e P (x)dx Q(x) (6)
dx dx
R
P (x)dx
comparison of (3) and (6) shows that e is an integrating factor of (3).
R
Z R R
−
=⇒ y = e P (x)dx
e P (x)dx
Q(x)dx + ce− P (x)dx
(10)
Remark 1.1 The solution of Linear equations can be evaluated by two step:
• Write the ODE in the form (4).
2
Ehigie, J. O. Mathematical Methods
R R 1 R
with P (x)dx = dx = ln x and IF = e P (x)dx = eln x = x. Thus equation (13) becomes
x
Z
yx = x sin xdx + c
yx = −x cos x + sin x + c
or
x(y + cos x) − sin x = c.
3
Ehigie, J. O. Mathematical Methods
Hence, Z
1 1
y· 3 = (x2 − 1) 3 dx + c
(x − x) (x − x)
x2 − 1
Z Z
y 1
3
= 2
dx + C = dx + c
x −x x(x − x) x
y
= log x + c
−xx3
=⇒ y = (x3 − x) log x + c(x3 − x).
3 x
x
Z
x tan
y tan2 = tan2 · 2 +c (18)
2 2 2 sin x · cos x
2 2
Z tan4 x Z
1 2 1 x x
= x dx + c = tan4 · sec2 dx + c. (19)
2 cos2 x 2 2 2
2
x
Setting t = tan , differentiating we have,
2
1 2x
sec dx = dt (20)
2 2
Substituting (20) into (19), we have
Z
x 1
2
y · tan = t4 · 2dt + c
2 2
4
Ehigie, J. O. Mathematical Methods
x t5
=⇒ y tan2 = +c
2 5
x
tan5
2 x 2 + c.
y tan = (21)
2 5
2 Bernoulli Equations
One type of differential equation which is an offset from a linear ordinary differential equation is called
a Bernoulli equation. A method of solution of the Bernoulli equation is such that it reduced to a linear
equation. Hence, the idea is to use a substitution to transform the Bernoulli equation to a first order linear
equation, then apply the technique of solving the linear equation to obtain a solution. We hereby define
the Bernoulli Differential Equation.
5
Ehigie, J. O. Mathematical Methods
6
Ehigie, J. O. Mathematical Methods
Solution:
Given
dy
+ y = y 2 (cos x − sin x) (32)
dx
Observe that (32) is a Bernoulli equation since it is of the form (22). Hence from (32), set v = y −1
On differentiating both sides, we have
dv dy
= −y −2
dx dx
−2
Multiplying both sides of (32) by −y , we obtain
dy
−y −2 − y −1 = sin x − cos x
dx
Thus, the given equation becomes
dv
− v = sin x − cos x (33)
dx
dv
Which is a linear equation of the form + va(x) = b(x). And by (9), we can write the solution as
dx
R
Z R
a(x)dx
ve = e a(x)dx b(x)dx + C (34)
R
where a(x) = −1 and b(x) = sin x − cos x thus −1dx = −x and (34) becomes
Z
ve = (sin x − cos x)e−x dx + c
−x
Solution
dy y y2
x2 dy + y(x + y)dx = 0 =⇒ + =− 2
dx x x
1 dy 1 1
=⇒ 2 + =− 2
y dx xy x
1 1 dy dv
Setting v = − . On differentiating we obtain 2 = . On substituting (37) reduces to a linear
y y dx dx
differential equation in v, given by
dv v 1
− =− 2 (38)
dx x x
7
Ehigie, J. O. Mathematical Methods
1 1
where P (x) = − and Q(x) = − 2 . The solution to the linear equation takes the form
x x
R
Z R
P (x)dx
ve = e P (x)dx Q(x)dx + c
1 1
1
R
R − dx log
P (x)dx x =e − log x
I.F. = e =e =e x =
x
Hence the solution is Z
1 1 1
v · = − 2 · dx + c
x x x
Z
v
=⇒ = −x−3 dx + c
x
1 x−2
=⇒ − =− +C
xy −2
which simplifies to
1 1
= − 2 − c.
xy 2x
References
[1] RONSON, R. (2003). Schaum’s easy outline of differential equations (Crash Course) : [includes
fully solved problems for every topic ; expert tips for mastering differential equations ; all you
need to know to pass the course] . New York, McGraw-Hill.
[2] RONSON, R., COSTA, G. B. (2006). Schaum’s outline of differential equations: [563 fully solved
problems ; concise explanations of all course concepts ; cover first-order, second-order, and nth-
order equations ...]. New York, McGraw-Hill.