W W L CHEN
c
This chapter originates from material used by the author at Imperial College, University of London, between 1981 and 1990.
It is available free to all individuals, on the understanding that it is not to be used for financial gain,
and may be downloaded and/or photocopied, with or without permission from the author.
However, this document may not be kept on any information storage and retrieval system without permission
from the author, unless such system is not accessible to any individuals other than its owners.
Chapter 14
ORDINARY DIFFERENTIAL EQUATIONS
14.1. Introduction
Any equation containing differential coefficients is called a differential equation. Ordinary differential
equations are those that involve only one independent variable and therefore only ordinary differential
coefficients.
Usually the independent variable is denoted by x and the dependent variable is denoted by y, and we
think of y as a function of x. An ordinary differential equation is therefore any function of x, y and the
derivatives of y such that
F
dy d2 y
,
, . . . = 0.
x, y,
dx dx2
dy
dx
4
+ y2 = x
page 1 of 7
(
dy
dx
2
)1/3
+y
=0
dy
dx
d2 y
dx2
= 5y
page 2 of 7
Example 14.2.1. Consider the equation y 2 = 4A(x + A), where A is a constant. Differentiating once,
we obtain
2y
dy
= 4A,
dx
so that
A=
y dy
.
2 dx
Substituting A into the original equation and simplifying, we obtain the first order non-linear equation
y
dy
dx
2
+ 2x
dy
y = 0.
dx
Example 14.2.2. Suppose that y = (A + Bx)e3x , where A and B are constants. If we differentiate
twice, then we obtain
dy
= Be3x + 3(A + Bx)e3x
dx
and
d2 y
= 6Be3x + 9(A + Bx)e3x .
dx2
dy
dx
and
y 00 =
Writing
y0 =
d2 y
,
dx2
xe3x
(3x + 1)e3x
(9x + 6)e3x
y
A
0
y0 B = 0 .
y 00
1
0
y
y 0 = 0.
y 00
Evaluating the determinant gives rise to the second order linear equation
d2 y
dy
6
+ 9y = 0.
dx2
dx
Example 14.2.3. Suppose that y = Aex + Be2x + Ce3x , where A, B and C are constants. If we
differentiate three times, then we obtain y 0 = Aex 2Be2x + 3Ce3x , y 00 = Aex + 4Be2x + 9Ce3x
and y 000 = Aex 8Be2x + 27Ce3x . The four equations can now be described in matrix form as
ex
ex
x
e
ex
e2x
2e2x
4e2x
8e2x
e3x
3e3x
9e3x
27e3x
y
A
0
y0 B 0
= .
y 00
C
0
1
0
y 000
Since ex , e2x and e3x are all non-zero, we must therefore have
1
1
det
1
1
1
2
4
8
1
3
9
27
y
0
y
= 0.
y 00
000
y
page 3 of 7
Evaluating the determinant gives rise to the second order linear equation
d3 y
dy
7
6y = 0.
dx3
dx
Note that in these three examples, the expression of y as a function of x contains respectively one,
two and three constants. By differentiating this expression respectively once, twice and three times, we
are in a position to eliminate these constants.
In general, if the expression of y as a function of x contains n arbitrary constants, then differentiating
n times, we obtain n further equations. We now have (n + 1) equations containing these n constants,
and we expect to be able (at least theoretically) to eliminate these constants. After eliminating these
constants, we expect to end up with an ordinary differential equation of order n.
The above approach can sometimes be varied, as illustrated in the next example.
Example 14.2.4. The general circle on a plane is given by the equation (x A)2 + (y B)2 = R2 ,
where A, B and R are constants. If we differentiate three times instead of twice, we obtain the equations
(x A) + (y B)y 0 = 0, 1 + (y B)y 00 + (y 0 )2 = 0 and (y B)y 000 + 3y 0 y 00 = 0. These last three equations
can be written in matrix form as
1 y0
0
xA
0
0 y 00 1 + (y 0 )2 y B = 0 .
0 y 000
3y 0 y 00
1
0
Evaluating the determinant gives rise to the equation
dy
3
dx
d2 y
dx2
2
d3 y
=
dx3
1+
d2 y
dx2
2 !
dy
, then the equation becomes
dx
!
du
dx
2
d2 u
=
dx2
1+
du
dx
dy
=6
dx
page 4 of 7
Example 14.3.2. Suppose that in the last example, we no longer neglect air resistence, but assume
Example
14.3.2.force
Suppose
that in the
last speed
example,
webody.
no longer
air resistence,
buta assume
instead
a frictional
proportional
to the
of the
Thenneglect
the body
is subject to
force
instead a frictional force proportional to the speed of the body. Then the body is subject to a force
dx
F = mg b dx ,
F = mg b dt ,
dt
where
b
>
0
is
a
fixed
proportionality
constant.
Using
Newtons
law, the
the equation
equation ofofmotion
motionisisnow
now
where b > 0 is a fixed proportionality constant. Using Newtons law,
given
byby
given
xxxxx
d2 x2
dx
dx
mm d2 x==mg
mgbbdt , ,
dtdt2
dt
or
or
dd22x
dx
x b dx
m
+ mg
mg =
=0.0.
m dt22 +
+ b dt +
dt
dt
Example
14.3.3.Consider
Considera abody
bodyofofmass
massm
m fastened
fastened to
to a spring whose
Example
14.3.3.
whose constant
constantisisk.k. IfIfwe
wemeasure
measure
the
position
x
of
the
body
from
the
relaxed
position
of
the
spring,
with
the
convention
that
the
the position x of the body from the relaxed position of the spring, with the convention that thepositive
positive
direction
the
right,asasshown
shownininthe
thepicture
picturebelow,
below, then
then the
the spring
spring exerts
direction
is is
toto
the
right,
exerts aa restoring
restoringforce
forceFF==kx.
kx.
xx
If we neglect friction and assume that there are no other forces, then using Newtons law, the equation
If we
neglectisfriction
and assume that there are no other forces, then using Newtons law, the equation
of motion
given by
of motion is given by
d2 x
d2 x
m 2 2 = kx,
or
m 2 2 + kx = 0.
d dtx
ddtx
m 2 = kx,
or
m 2 + kx = 0.
dt
dt
Example 14.3.4. Suppose that in the last example, we no longer neglect friction, but assume instead a
frictional force proportional to the speed of the body. Then the body is subject to a force
Example 14.3.4. Suppose that in the last example, we no longer neglect friction, but assume instead a
frictional force proportional to the speed of the body. Then
dx the body is subject to a force
F = kx b .
dt
dx
F
=
kx
b
Using Newtons law, the equation of motion is now givendtby.
d2 x
dx now given by
dx
d2 x
Using Newtons law, the equation
of motion
m 2 = kx
b is
,
or
m 2 +b
+ kx = 0.
dt
dt
dt
dt
d2 x
dx
d2 x
dx
m 2 = kx b ,
or
m 2 +b
+ kx = 0.
Example 14.3.5. Suppose
dt that in the last
dtexample, the body
dt is subject
dt to an additional impressed force
F (t). Then it is subject to a total force
Chapter 14 : Ordinary Differential Equations
dx
F = F (t) kx b .
dt
page 5 of 7
page 5 of 6
Example 14.3.5. Suppose that in the last example, the body is subject to an additional impressed force
F (t). Then it is subject to a total force
F = F (t) kx b
dx
.
dt
dx
d2 x
= F (t) kx b ,
dt2
dt
or
dx
d2 x
+b
+ kx = F (t).
dt2
dt
dq
.
dt
(1)
The voltage across the resistor is RI, the voltage across the capacitor is q/C, and the voltage across the
inductor is
L
dI
.
dt
dI
q
+ RI +
= E.
dt
C
If we now differentiate with respect to t and use the relation (1), then we have
L
dI
I
dE
d2 I
+R
+
=
.
2
dt
dt
C
dt
We shall discuss the solutions of some of these examples in Chapters 15 and 16.
page 6 of 7
page 7 of 7