MA3264CHAP1
MA3264CHAP1
MA3264CHAP1
CHAPTER 1
DIFFERENTIAL EQUATIONS
1.1 Introduction
A dierential equation is an equation that
contains one or more derivatives of a dieren-
tiable function.
The order of a d.e. is the order of the equa-
tion's highest order derivative; and a d.e. is
linear if it can be put in the form
any (n)(x)+an 1y (n 1)
(x)+ +a1y (1)(x)+a0y (x) = F;
2
cos x.
Basically, dierential equations are solved us-
ing integration, and it is clear that there will
be as many integrations as the order of the DE.
Therefore, THE GENERAL SOLUTION OF
AN nth-ORDER DE WILL HAVE n ARBI-
TRARY CONSTANTS.
3
the variables, because everything involving x is
on one side, and everything involving y is on the
other.
Z Z
M (x)dx = N (y )dy + c:
ex = tan 1
y + c;
4
or
tan 1
y = ex c;
or
y = tan(ex c):
7
Example 4. Suppose that a sky diver falls
from rest toward the earth and the parachute
opens at an instant t = 0, when sky diver's
speed is v (0) = v0 = 10 m/s. Find the speed of
the sky diver at any later time t.
10
shape it traces out as it moves around the Sun.
The best way to describe an orbit is by using
plane polar coordinates [please revise if nec-
essary!]. These give the position of a point in
the plane by specifying its distance r from the
origin together with the angle made by its po-
sition vector with the x axis. A shape or graph
in the plane is given by a function of the form
r() [just as, in Cartesian coordinates, a graph
Example 6.
Solve 2xyy 0 y 2 + x2 = 0. [x2 + y 2 = cx]
Linear Change of Variable
A d.e. of the form y 0 = f (ax + by + c),
6 0 (if b = 0, the
where f is continuous and b =
equation is separable) can be solved by setting
u = ax + by + c.
14
Separating variables and integrating :
0 1
B 1 C
@ 1 A du = 2dx:
4u + 11
1
Thus u `nj4u + 11j = 2x + c1,
4
or 4x + 8y + `nj4x 8y + 11j = c.
15
1.3 Linear First Order ODEs
A d.e. which can be written in the form
dy
+ P (x)y = Q(x) (1)
dx
where P and Q are functions of x, is called a
linear rst order d.e. Relation (1) above is the
standard form of such a d.e.
Ry 0 + RP y = RQ
16
or
(Ry )0 = RQ:
Example 8. Solve
(i) xy 0 3y = x2; x > 0.
(ii) y 0 y = e2x.
18
Example 10A. A tank contains, at time t =
1 second, 100 cubic metres of pure water. At
that instant, salty water with a concentration
of 10 kilograms per cubic metre begins to be
pumped in at a rate of 10=t cubic metres per
second, and the mixed solution is pumped out
at the same rate. How many kilograms of salt
are there in the tank after 1010 seconds?
19
implies that K = 1000; so Q(1010) = 1000
100 = 900 kg. Note that, again, after a suf-
ciently long time, the salt concentration ap-
proaches 10 kg/m3.
20
view of what we have been learning here, the
concentration of CO2 will rise exponentially quickly
towards a limiting value. Does this sound fa-
miliar? Let us go on. Warned by their sci-
entists, the inhabitants of the planet immedi-
ately1 reduce the concentration of the CO2 in
the gases they inject into their atmosphere at
a rapid rate, proportional to the reciprocal of
time. What will happen? Now consider this
problem: A tank contains, at time t = 1 second,
100 cubic metres of pure air (negligible CO2).
At that instant, polluted air with a concentra-
tion of 10/t litres of CO2 per cubic metre begins
1 OK, this part may not sound familiar
21
to be pumped in at a rate of 10 cubic metres per
second, and the mixed solution is pumped out
at the same rate. Give a graph of the quantity
of CO2 in the tank as a function of time.
23
we saw that radioactive substances typically de-
cay at a rate proportional to the amount present.
Sometimes the product of a radioactive decay
is itself a radioactive substance which in turn
decays (at a dierent rate). An interesting ex-
ample of this is provided by Uranium-Thorium
dating, which is a method used by palaeontolo-
gists to determine how old certain fossils [espe-
cially ancient corals] are. Corals lter the sea-
water in which they live. Sea-water contains a
tiny amount of a certain kind of Uranium [Ura-
nium 234] and the corals absorb this into their
bodies. Uranium 234 decays, with a half-life of
245000 years, into Thorium 230, which itself de-
24
cays with a half-life of 75000 years. Thorium is
not found in sea-water; so when the coral dies,
it has a certain amount of Uranium in it but no
Thorium [because the lifetime of a coral polyp
is negligible compared with 245000 years]. It
is possible to measure the ratio of the amounts
of Uranium and Thorium in any given sample.
From this ratio we want to work out the age
of the sample [the time when it died]. This is
important if we want to know whether global
warming is causing corals to die now. [Maybe
they die o regularly over long periods of time
and the current deaths have nothing to do with
global warming.]
25
Let U(t) be the number of atoms of Uranium
in a particular sample of ancient coral and let
T(t) be the number of atoms of Thorium. Be-
cause each decay of one Uranium atom produces
one Thorium atom, Thorium atoms are being
born at exactly the same rate at which Uranium
atoms die: so we have
dU
= kU U; (1)
dt
dT
= +kU U kT T; (2)
dt
where kU ; kT are constants [related to the half-
6 kT , and U (0) = U0, T (0) = 0.
lives] with kU =
We want to nd t given that we know the ratio
of T(t) to U(t) at the present time.
26
Solving (4) with the given data gives U =
U0 e kU t: From this we see that U0=2 = U0 e kU 245000
dT
+ kT T = kU U0e kU t:
dt
An integrating factor is ekT t. Solving, with
T (0) = 0, gives
kU
T (t) = U0(e kU t e kT t).
kT kU
Unfortunately we don't know U0 but luckily
that goes away when we take the ratio:
kU
T =U = [1 e(kU kT )t]:
kT kU
27
[Check that the expression on the right side is
positive after t = 0; note also that while both
U and T tend to zero, their ratio does not.] So
now if we measure the ratio T/U at the present
time, we can solve this for t and we have our
answer. This method is good for coral fossils
up to about half a million years old.
28
it is nonlinear. To solve, we rewrite this as
y ny 0 + y 1 np(x) = q (x), and set y 1 n = z .
Examples. To solve
(i) y 0 Ay = By 2; A; B constants.
29
(ii) y 0 + y = x2y 2. [y (Aex + x2 + 2x + 2) = 1]
31
in the PAST. On the other hand, the plant can
get sick only once (they never recover). So once
*many* plants have been infected, the rate of
infection goes down, simply because there are so
few new plants to infect. (If the fraction of in-
fected plants is x(t), this means that the rate of
infection now depends on the fraction of healthy
plants, that is, 1 x(t).) So you end up with
33
The d.e.
y 00 + 4y = e x sin x
for all x in I .
34
Homogeneous d.e.s
The general solutions of homogeneous equa-
tions can be found with the help of the Su-
perposition or linearity principle, which is
contained in the following theorem.
35
Substituting y = c1y1 + c2y2 in the left of (2),
we get
Caution
The above result does not hold for nonhomo-
geneous or nonlinear d.e.s. For example, y =
1 + cos x and y = 1 + sin x are solutions of the
nonhomogeneous linear d.e. y 00 + y = 1, but
2(1 + cos x) and 2 + cos x + sin x are not its
36
solutions. Similarly, y = 1 and y = x2 are solu-
tions of the nonlinear d.e. yy 00 xy 0 = 0. But
x2 and x2 + 1 are not its solutions.
37
ear second order d.e.
Let y1(x) and y2(x) be dened on some inter-
val I . Then y1 and y2 are said to be linearly
dependent on I if one of them is a CONSTANT
MULTIPLE OF THE OTHER ONE. Other-
wise they are LINEARLY INDEPENDENT.
A general solution of y 00 + py 0 + qy = 0 on
an open interval I is y = c1y1 + c2y2, where y1
and y2 are linearly independent solutions of the
d.e. and c1, c2 are arbitrary constants.
38
For example, y1 = cos x and y2 = sin x are
linearly independent solutions of y 00 + y = 0. A
general solution is y = c1 cos x + c2 sin x.
y 00 + ay 0 + by = 0; a; b constants: (1)
solution if is a solution of
2 + a + b = 0: (2)
2 = 12 ( a a2 4b ):
a2 4b = 0,
41
Solution. The characteristic equation is 2+
2 = 0 ( a2 4b = 9 > 0). The roots are 1 = 1
and 2 = 2. The general solution is y =
c1ex + c2e 2x. Initial conditions y (0) = 4 and
is the solution.
y200 = a e ax a e ax 2 ax
2
2
2
2 + a4 xe 2
42
!
= a+ a2 x e ax
2
4
So
" #
y200 + ay20 + by2 = a+ a2 x + a
4
a2 x + bx e ax
2
2
" #
= b a2 xe ax
2 =0
4
because b = a2 .
4
Example 14.
(i) Solve y 00 + 8y 0 + 16y = 0.
43
(ii) Solve the initial problem y 00 4y 0 + 4y = 0,
y (0) = 3, y 0(0) = 1.
a
2
iw, where i 2
= 1. We try
ax
y1 = e 2 coswx
ax
y2 = e 2 sinwx
44
ax
1 and 2, goes into the exponential part e 2
To conclude: set
ax
y1 = e 2 cos wx;
ax
y2 = e 2 sin wx:
y = c1y1 + c2y2
ax
= e 2 (c1 cos wx + c2 sin wx):
45
Example 15.
(i) Solve y 00 + 2y 0 + 5y = 0.
Nonhomogeneous equations
We consider
and
46
y200 + p(x)y20 + q (x)y2 = r(x): (4)
Determination of yp(x)
Method of undetermined coecients
This method applies to equations of the form
y 00 + ay 0 + by = r(x), where a and b are con-
48
such functions.
1. Polynomial case
In this case k = 0. The method begins with
\try a polynomial with unknown coecients".
Example 16.
y 00 4y 0 + y = x2 + x + 2:
2A 4(2Ax + B ) + Ax2 + Bx + C = x2 + x + 2
or
Ax2 + (B 8A)x + 2A 4B + C = x2 + x + 2:
50
Comparing coecients, we have
A = 1
B 8A = 1 ) B = 9
2A 4B + C = 2 ) C = 36
So Ax2 + Bx + C = x2 + 9x + 36 is a particular
solution.
This means
2A = 2 ) A = 1
2B = 0 ) B = 0
51
6A 2C = 0 ) C = 3
2B 2D = 0 ) D = 0
So y = x3 3x is a particular solution.
2. Exponential case
Here k is real but not zero. The method be-
gins with \put y = uekx, where u = u(x)."
This substitution will remove ekx from the equa-
tion and reduce the problem to the polynomial
case 1 (above).
Example 18.
y 00 4y 0 + 2y = 2x3e2x: (1)
52
Substituting y = ue2x, we get
y0 = u0e2x + 2ue2x
y 00 = u00e2x + 4u0e2x + 4ue2x:
or
u00 2u = 2x3:
53
Example 19.
y 00 4y 0 + 4y = 20x3e2x:
yp = x5e2x.
3. Trigonometric case
Here we use complex exponentials. Recall:
es+it = es(cos t + i sin t). We only need the
We solve instead
55
z 00 + 4z = 16xei2x: (2)
Example 21.
56
y 00 + 2y 0 + 5y = 16xe x cos 2x: (1)
Solve instead
z 00 + 2z 0 + 5z = 16xe( 1+2i)x
: (2)
1+2i)x
Re (z ) will be a solution of (1). Put z = ue( ,
u = u(x). [Solution is y = Ae( x)cos(2x) +
58
able z(x), dened by
1Z
ln(z ) ln(y ) + p(x):
2
It can then be shown (by a very tedious but
in principle elementary) calculation that z(x)
satises
z 00 + Q(x)z = 0:
59