Professional Documents
Culture Documents
July 9, 2021
1.1 Definitions
4. y 00 + 5y 0 + 6y = cos x
5. (x2 + y 2)dx − 2xydy = 0
6. y00 = (1 + y 0)(x2 + y 2)
2
7. dy
dt = h2( dx
d y
2)
Ld2 i
8. dt2
+ R dt
di
+ Ci = cos ωt
Remark.1
1. When an equation involves one or more derivatives with respect to
a particular variable, then that variable is called an independent
variable.
2. A variable is called dependent variable if a derivative of that variable
occurs
3. In example (1 − 4) and 6 the variable y is called dependent variable
while x the independent variable.
4. In example 8, i is the dependent variable and t is the independent
variable and L, R, C and ω are called parameters.
5. Equation 7 which has one dependent variable and 3 independent
variables x, y, t is called a partial differential equation.
Example 1.1.1
3
d2y dy
2
+ 2 + y = 0 (1.1)
dx dx
Is an equation of order two. It is also called a second order equation.
Example 1.1.3
Let us verify that
y = e2x
is a solution of the equation
d2y dy
+ − 6y = 0 (1.5)
dx2 dx
We substitute our tentative solution into the left member of equation
(1.5) and find that
d2y dy
+ − 6y = 4e 2x
+ 2e 2x
− 6e 2x
≡0
dx2 dx
which completes the desired verification. All of the equations we shall
consider in Chapter 2 are of order one, and hence may be written
dy
= f (x, y)
dx
Example 1.1.4
For example, equation (1.1) above is nonlinear, and equation (1.5) is
linear. The equation
x y + xy + x − n y = 4x3
2 00 0 2 2
Example 1.1.5
For example, the equation
∂w ∂w
b0(x, y) + b1(x, y) = R(x, y)
∂x ∂y
is the general first-order linear partial differential equation with two
independent variables and
∂ 2w ∂ 2w ∂ 2w
b0(x, y) 2 + b1(x, y) + b2(x, y) 2
∂x ∂x∂y ∂y
∂w ∂w
+b3(x, y) + b4(x, y) + b5(x, y)w = R(x, y)
∂x ∂y
is the general second-order linear partial differential equation with two
independent variables.
Exercise 1.1.1
For each of the following, state whether the equation is ordinary or
partial, linear or nonlinear, and give its order.
2 2 2
1. ddt2x + k 2x = 0. 2. ∂∂tw2 = a2 ∂∂xw2
3. (x2 + y 2) dx + 2xydy = 0. 4. y 0 + P (x)y = Q(x)
5. y 000 − 3y 0 + 2y = 0. 6. yy 00 = x
2 2 2 d4 y
7. ∂∂xu2 + ∂∂yu2 + ∂∂zu2 = 0. 8. dx 4 = w(x).
2 2
9. x ddt2y − y ddt2x = c1 10. L dt
di
+ Ri = E
11.(x + y)dx + (3x2 − 1) dy = 0. 12. x (y 0)3 + (y 4 − y = 0)
Example 1.2.1
Eliminate the arbitrary constants c1 and c2 from the relation
y = c1e−2x + c2e3x (1.7)
Since two constants are to be eliminated, obtain the two derivatives,
y 0 = −2c1e−2x + 3c2e3x (1.8)
y 00 = 4c1e−2x + 9c2e3x (1.9)
The elimination of c1 from equations (1.8) and (1.9) yields
y 00 + 2y 0 = 15c2e3x (1.10)
the elimination of c2 from equations (1.8) and (1.9) yields
y 0 + 2y = 5c2e3x
Hence
y 00 + 2y 0 = 3 (y 0 + 2y)
or
y 00 − y 0 − 6y = 0
Since e−2x and e3x cannot be zero, equation (1.10) may be rewritten, with
the factors −1, e−2x, and e3x removed, as *
By differentiations and pertinent legitimate mathematical procedures.
Elimination by erasure, for instance, is not permitted.
y 1 1
y 0 −2 3 = 0
y 00 4 9
dny dn−1y dy
a0 n + a1 n−1 + · · · + an−1 + any = 0
dx dx dx
in which the coefficients a0, a1, . . . , an are constants. The study of such
differential equations will receive much of our attention.
Example 1.2.2
Eliminate the constant a from the equation
(x − a)2 + y 2 = a2
Direct differentiation of the relation yields
2(x − a) + 2yy 0 = 0
from which
a = x + yy 0
Therefore, using the original equation, we find that
2 2
(yy 0) + y 2 = (x + yy 0)
or
y 2 = x2 + 2xyy 0
which may be written in the form
x − y dx + 2xydy = 0
2 2
Example 1.2.3
Eliminate B and α from the relation
x = B cos(ωt + α) (1.12)
in which ω is a parameter (not to be eliminated). First we obtain two
derivatives of x with respect to t :
dx
= −ωB sin(ωt + α) (1.13)
dt
d2x
= −ω 2
B cos(ωt + α). (1.14)
dt2
Comparison of equations (1.12) and (1.14) shows at once that
d2x
+ ω 2
x=0
dt2
Example 1.2.4
Eliminate c from the equation
cxy + c2x + 4 = 0
At once we get
c (y + xy 0) + c2 = 0
Since c 6= 0, c = −(y + xy) and substitution into the original equation
leads us to the result
2
x3 (y 0) + x2yy 0 + 4 = 0
Our examples suggest that in a certain sense the totality of solutions of
an nth-order equation depends on n arbitrary constants.
Practice Problem 1.2.1
In each of the following eliminate the arbitrary constants.
Questtion Amswer
x sin y + x2y = c. (sin y + 2xy)dx + (x cos y + x2) dy = 0
3x2 − xy 2 = c (6x − y 2) dx − 2xydy = 0
xy 2 − 1 = cy y 3dx + (xy 2 + 1) dy = 0.
cx2 + x + y 2 = 0 (x + 2y 2) dx − 2xydy = 0.
x = A sin(ωt + β);
d2 x
ω a parameter, not to be eliminated. dt2
+ ω 2x = 0.
x = c1 cos α + c2 sin ut;
d2 x
ω a paramete dt2
+ ω2x = 0
y = cx + c2 + 1 .y = xy 0 + (y 2 + 1
y = mx + mh ;
h a parameter , m to be eliminated. y = xy 0 + yh0
y 2 = 4ax. 2xdy − ydx = 0.
y = c1 + c2e3x y 0 − 3y 0 = 0
y = 4 + c1 e x y 0 − 3y = −12.
y = c1 + c2e−4x y 00 + 4y 0 = 0
y = c1ex + c2e−x, y2 − y − 0
2.1 Introduction
with the point (xo, yo) at its centre. Then there is a positive number
h ≤ a, such that, the initial value problem (I.V.P) has one and only
one solution in the interval |x − xo| < h
We now consider one of the methods for solving first order differential equa-
tion.
Example 2.2.1
Solution
We separate the variable to obtain,
dy 2
= dx
y x
Integrating each term, we get;
dy Z 2
= dx =⇒ ln |y| = 2 ln|x| + c
Z
y x
or
y = ecx2 (since |x| = x) (2.9)
If x is in the first quadrant.
Or
y = c1 x2
where c1 = ec is any positive constant.
Example 2.2.2
Solve the differential equation
xdx − (5y 4 + 3)dy = 0
Solution
1 2
x =y 5 + 3y + c
2
This is the required general solution
Exercise 2.2.1
Solve the Initial Value Problem of:
2x(y + 1)dx − ydy = 0, y(0) = −2 (2.10)
Solution
Exercise 2.2.2
Find the general solution of each of the following differential equations.
1. y dx
dy
= sin x Soln: y 2 = −2 cos x + c
2. 1 dy
x dx = 1
y 2 −2
Soln: 3x2 = 2y 3 − 12y + c
3. sin y dx
dy
= 1
x Soln: cos y = c − ln |x|
4. cos y dx
dy
=4 Soln: sin y = 4x + c
y 2 dy
5. x3 dx
= ln x Soln. 16y 3 = 12x4 ln |x| − 3x4 + 48c
Practice Problem 2.2.1
Examples of Word problems
1. Curve
A curve passes through the points (1, 2) and ( 15 , −10) and if the
gradient is inversely propositional to x2, find the equation of the
curve.
Solution
Its gradient is inversely proportional to x2
dy 1 dy k
=⇒ ∝ 2 =⇒ = 2
dx x dx x
where k is a constant to be determined, i.e. the constant of
proportionality .
k k
dy = =⇒ = +c
Z Z
dx y −
x2 x
This is the general solution of the differential equation.
Now the curve passes through (1, 2) and ( 51 , −10)
k
y =− +c
x
2 = −k + c
−
−10 = −5k + c
12 = 4k
Thus k = 3 and c = 5
The particular solution becomes y = −3
x +5
2. Finance
The sum of kshs.5000 is invested at the rate of 8% per year com-
pounded continuously. What will the amount be after 25 years?.
Solution
Ley y(t) be the amount of money (capital+ interest) at a time
t
Then the rate of change of the money at time t is given by ;
dy 8
= y (2.11)
dt 100
Equation 2.11 is separable differential equation, i.e. it can be
written as;
dy 8
= dt (2.12)
y 100
and the solution is obtained by integrating both sides of the
equation.
dy 8 8
= dt =⇒ ln |y| = t+c (2.13)
Z
y 100 100
Since y(t) is a positive and ln y = + c ln e =⇒ ln y =
8t
100
8t
ln e 100 +c Moving from logarithm form, we obtain
8t c
y = e 100 ×e (2.14)
This is the general solution.
Now at time t = 0 we have that y(0) = e0ec =⇒ y(0) = ec
8t
Hence y(t) = y(0)e 100
Now since y(0) = 5000 (The initial amount invested )
8×25
We find that y(25) = y(0) e 100 = kshs.36, 945.28
Definition 2.3.1
A function f (x, y) is said to be homogeneous of degree n, if on replacing
x and y by λx and λy, where λ is a parameter, then we have.
f (λx, λy) = λnf (x, y) (2.15)
Example 2.3.1
Definition 2.4.1
A differential equation
dy M (x, y)
M (x, y)dx + N (x, y)dy = 0 or =− (2.16)
dx N (x, y)
is said to be homogeneous, if the coefficients (or the function) M (x, y)
and N (x, y) are homogeneous and of the same degree in x and y
By the proceeding theorem, the ratio M
N is a function of y
x alone i.e.
dy y dy y
= −g( ) or + g( ) = 0 (2.17)
dx x dx x
y
x = v =⇒ y = vx
dy d dv
= (vx) = v + x (2.18)
dx dx dx
xdv
+ v + g(v) = 0 (2.19)
dx
Example 2.4.1
Solve the differential equation
(x2 − xy + y 2)dx − xydy = 0 (2.20)
Solution
Here M (x, y) = x2 −xy+y 2 and N (x, y) = −xy are homogeneous
of degree 2. in x and y
Let y = vx then 2.20 becomes
(x2 − x2v + x2v 2)dx − x2v(vdx + xdv) = 0 (2.21)
From 2.18 dy
dx = v + x dx
dv
=⇒ dy = vdx + xdv
x 1−v
ln |x| + v + ln |v − 1| + c = 0
Moving from logarithmic form to power form, we obtain;
ln(xev (v − 1)) = ln c
or
xev (v − 1) = ec = C1
Substituting v = xy , we get
y y
xe x ( x −1) = c1
y y −x
xe x ( ) = c1
y
x
e x (y − x) = c1
Where c1 = ec is a positive constant.
Exercise 2.4.1
Problems T/A
Solve the differential equations
1. xydx + (x2 + y 2)dy = 0 by means of the substitution x = vy where
dx = vdy + ydv
2. dy
dx = 5x+4y
2x−y by means of substitution y = vx
Solution
2 1
1. y( 2x
y2
+ 1) 4 = ec OR (2x2 + y 2)y 2 = c41
2 +2xy+5x2
2. ln[ y x2
] − 3 tan−1( y+1
2x ) = −2 ln x + c
1. Case 1.
Consider the equation
dy a1x + b1y + c1
=− or (a1x + b1y + c1) + (a2x + b2y + c2)dy = 0
dx a2x + b2y + c2
(2.22)
where
a1 b2 − a2 b1 = 0 (2.23)
In this case we let a1x + b1y = t, then
dt − a1dx
a1dx + b1dy = dt =⇒ dy = (2.24)
b1
Replacing the variable y and dy in 2.22 we obtain
Example 2.5.1
Solve the differential equation
(x + y)dx + (3x + 3y − 4)dy = 0 (2.26)
Solution
Here a1 = 1, b1 = 1, a2 = 3, b2 = 3, =⇒ a1b2 − a2b1 = 0
We therefore apply the transformation of type 2.24, namely
x+y =t
Then x + y = t =⇒ dy = dt − dx and so the equation 2.26
becomes
tdx+(3t−4)(dt−dx) = 0 =⇒ tdx+3tdt−3tdx−4dt+4dx = 0
Which implies that
(4 − 2t)dx + (3t − 4)dt = 0
in which the variables are now separable.
2(2 − t)dx + (3t − 4)dt = 0
3t − 4
2dx + dt = 0
2−t
Z 3t − 4
2dx + dt = 0
Z
2−t
Z 3t − 4
I1 = 2dx = 2x, I2 =
Z
dt
2−t
To integrate I2 we use (synthetic/long) division to obtain I2 =
= (−3 + 2−t )dt
R 3t−4 R 2
2−t
Thus I2 = (−3 + 2−t 2
)dt = −3t − 2 ln |2 − t| = c
R
Therefore we obtain
2x = 3t + 2 ln |2 − t| + c
2x − 3(x + y) − 2 ln |2 − x − y| = c
Is the required general solution.
Example 2.5.2
Find the differential equation (x + 2y − 1)dx + 3(x + 2y)dy = 0
Solution
We notice that a1 = 1, b1 = 2, a2 = 3, b2 = 6 =⇒ a1b2 −
a2b1 = 0
So we let x + 2y = t =⇒ dx = dt − 2dy and the differential
equation becomes
(t − 1)(dt − 2dy) + 3tdy = 0
tdt − 2tdy − dt2dy + 3tdy = 0
(t − 1)dt + (t + 2)dy = 0
(t − 1)
dt + dy = 0
(t + 2)
Integrating each term, we obtain
t−1
dt = − dy
Z Z
t+2
Z t+2−3
dt = −y + c
t+2
Z t+2 3
( − )dt = −y + c
t+2 t+2
3
(1 − )dt = −y + c
Z
t+2
t − 3 ln(t + 2) = −y + c. or − y = t − 3 ln |t + 2| + c
But t = x + 2y
− y = x + 2y − 3 ln |x + 2y + 2| + c
x + 3y − 3 ln |x + 2y + 2| + c = 0
Thus the general solution for the differential equation is given
by
x + 3y = 3 ln |x + 3y + 2| + c
2. Case 2.
x=u+h
(2.28)
y =v+k
a1x + b1y + c1 = 0
(2.29)
a2x + b2y + c2 = 0
The point (h, k) lies on the point of intersection of the lines given by
equation 2.29
The substitution 2.28 now reduces equation 2.27 to homogeneous form
given by
Example 2.5.3
Solve the differential equation
(x + 2y − 4)dx − (2x + y − 5)dy = 0 (2.31)
Solution
Here a1 = 1, b1 = 2, a2 = −2, b2 = 1 =⇒ a1b2 − a2b1 6= 0
We use the transformation 2.28 by first solving the simultane-
ous equation
x + 2y − 4 = 0
(2.32)
2x + y − 5 = 0
It is easy to see that y = 1 and x = 2 are solution of 2.32 i.e.
the point (2, 1) is a point of intersection of the two lines.
Then using 2.28 we have
x = u + h =⇒ x = u + 2
(2.33)
y = v + k =⇒ y = v + 1
From 2.33 it is obvious that dx = du and dy = dv
Substituting for x and y from (x+2y−4)dx−(2x+y−5)dy =
0, we have
(u + 2 + 2v+2 − 4)du − (2u + 4 − v + 1 − 5)dv
(2.34)
(u + 2v)du − (2u + v)dv = 0
To solve this, we let u = zv =⇒ du = vdz + zdv
(vz + 2v)(vdz + zdv) − (2vz + v)dv = 0
v(z + 2)(vdz + zdv) − v(2z + 1dv) = 0
(z + 2)(vdz + zdv) − (2z + 1)dv = 0
zvdz + z 2dv + 2vdz + 2zdv − 2zdv − dv = 0
(z 2 − 1)dv + v(z + 2)dz = 0
z2 − 1 v
+ =0
(z + 2)dz dv
z+2 dv
dz = =0
z2 − 1 v
By integrating each term, I1 = dv = ln |v|, I = z+2
dz
R R
v 2 z 2 −1
To integrate I2 we use the method of partial fraction decom-
position. i.e.
z+2 z+2 A B
= = +
z 2 − 1 (z − 1)(z + 1) z − 1 z + 1
=⇒ z + 2 = A(z + 1) + B(z − 1)
Solution
It is easy to see that A = 23 and B = − 12
Now I2 = = =
R z+2 1R 3 1
z 2 −1
dz 2 z−1 − z+1 dz
2 [3 ln |z − 1| − ln |z + 1|] + c
1
u
Substituting back z = =⇒ v 2 · (z − 1)3 =
v
u u
v 2( − 1)3 = c( + 1)
v v
(u − v) 3
(u + v)
v2 = c
v3 v
=⇒ (u + v)3 = c(u + v)
On which by substituting back 2.33 we get,
(x − 2 − (y + 1))3 = c(x + y − 3)
Remark.2
We note that if 2.36 is exact then (because of 2.36 and 2.37) it is
equivalent to dF = 0 and so f (x, y) = c
Example 2.6.1
Show that the differential equation
(2x − y)dx + (−x + 4y)dy = 0 (2.38)
is an exact equation.
Solution
d 2 d
d(x2 − xy + 2y 2) = (x − xy + 2y 2)dx + (x2 − xy + 2y 2)dy
dx dy
=(2x − y)dx + (−x + 2y)dy
The general solution of 2.38 is given implicitly as (x2 −xy+2y 2) = c
Remark.3
The following two questions are important:
1. Is there a systematic way to check id the differential equation 2.36
is exact?
2. If we know the differential equation 2.36 is exact, is there a system-
atic way to solve it?
Now let φ(x, y) be a function for which ∂φ∂x = M and note that φ is the result
of integrating M dx with respect to x while keeping y fixed. Now
∂ dφ ∂ 2φ dM
= = (2.43)
∂y dx ∂y∂x dy
and since 2.40 is satisfied we have
∂ 2φ ∂N
= (2.44)
∂x∂y ∂x
By integrating the latter equation 2.44 w.r.t. x the arbitrary constant may
be any function of y, call it B 0(y) we obtain
∂φ
= N + B 0(y) (2.45)
∂y
where B (y) =
0 d
dy B(y)
Now let
∂φ ∂φ
f = φ(x, y) = B(y) =⇒ df = dx + dy − B 0(y)dy
∂x ∂y
=M dx + [N + B(y)]dy − B 0(y)dy
=M dx + N dy
Hence we say equation 2.38 is exact and its L.H.S is expression as the total
differential of f.
Example 2.6.2
Solve the differential equation
3x(xy − 2)dx + (x3 + 2y)dy = 0 (2.46)
Solution
Let M (x, y) = 3x(xy − 2) = 3x2y − 6x and N (x, y) = x3 + 2y
Then
∂M ∂N
= 3x2 =
∂y ∂x
Thus this differential equation is exact and its solution is f (x, y) =
c whose
dF
= M = 3x2y − 6x (2.47)
dx
dF
= N = x3 + 2y (2.48)
dy
Integrating 3.7 with respect to x while keeping y fixed we get
f (x, y) = x3y − 3x2 + φ(y) (2.49)
Where φ(y) is unknown function satisfying 3.9. We differentiate
2.49 w.r.t y and then compare with 3.9
f (x, y) = x3y − 3x2 + φ(y)
∂f
= x3 + φ0(y) = x3 + 2y (2.50)
∂y
i.e. φ0(y) = 2y Or φ(y) = y 2
Hence 2.49 now becomes f (x, y) = x3y − 3x2 + y 2. Again, Recall
that f (x, y) = c Thus
f (x, y) = x2y − 3x2 + y 2 = c
Solution
We have (2x3 − xy 2 − 2y + 3)dx − (x2y + 2x)dy = 0
Let M (x, y) = (2x3 − xy 2 − 2y + 3), N (x, y) = −x2y − 2x
∂f ∂f
= −2xy − 2 =
∂y ∂x
Hence the equation is exact.
Let f (x, y) = c and dx
df
= M = 2x3 − xy 2 − 2y + 3 and df
dy = −x2y − 2x
Integrating
df 1 4 x2 2
= 2x − xy − 2y + 3dx = x − y − 2xy + 3x + φ(y)
Z
3 2
dx 2 2
and
df
= − x2y − 2x + φ0(y)
dy
=⇒ − x2y − 2x + φ0(y) = −x2y − 2x
Thus φ0(y) = 0
And hence the general solution is given by f (x, y) = 21 x4 − 12 x2y 2 −
2xy + 3x = c
Solution
Let M (x, y) = cos y − cot x and N (x, y) = − sin x sin y
∂M
= − cos x sin y
∂y
∂N
= − sin x cos y
∂x
Therefore, ∂M
∂y = ∂N
∂x = − cos x sin y and thus the equation is exact.
The required differential equation is f (x, y) = c
dF
= M = cos x cos y − cot x
dx
dF
= N = − sin x sin y.
dy Z
f (x, y) = (cos x cos y − cot x)dx
= sin x cos y − ln | sin x| + φ(y)
Now, ∂f
∂y = − sin x sin y + φ (y)
0
x0
µ(x)g(x)dx,
or
1 Zx
y= µ0 y0 + µ(x)g(x)
(3.7)
µ(x) x0
We now determine µ(x) from 3.4. Differentiating and expanding yields
dy dµ dy
µ + pµy = y+µ (3.8)
dx dx dx
dµ
= pµ (3.9)
dx
Zµ dµ Zx
= p(x)dx,
µ0 µ x0
µ Zx
ln = p(x)dx,
µ 0 x0
Zx
µ(x) = µ0 exp
)
p(x)dx
x0
1 Zx
y= y0 + µ(x)g(x)dx
(3.10)
µ(x) x0
with
Zx
µ(x) = exp
p(x)dx
(3.11)
x0
Example 3.0.1
Solve the differential equation 2(y − 4x2)dx + xdy = 0
Solution
The equation is linear in y, when we put in standard form becomes
2ydx − 8x2dx + xdy = 0
xdy + 2ydx = 8x2
dy 2
+ y = 8x (3.12)
dx x
We now obtain the integrating factor
µ(x) =e
R
p(x)dx
R 2 2
=e x dx = e2 ln x = eln x = x2
Multiplying equation 3.12 with the integrating factor, we obtain
the exact equation
dy
x2 + 2xy = 8x3 (3.13)
dx
Solving the exact equation 3.13
d 2
(x y) = 8x3 (3.14)
dx
By integrating 3.14 we obtain
d 2
(x y) = 8x3dx
Z Z
dx
x2y = 2x4 + c
This is the required general solution.
Example 3.0.2
dy
+ y cot x =5ecos x
dx
µ(x) = e = e cot xdx
R R
p(x)dx
R cos x
=e sin x dx = eln sin x
= sin x.
multiplying the equation by the integrating factor µ(x) = sin x we
get.
dy cos x
sin x +y sin x = 5ecos x sin x
dx sin x
dy
sin x + y cos x = 5ecos x sin x
dx
d
(y sin x) = 5ecos x sin x
dx
d(y sin x) = 5ecos x sin xdx
Z Z
π π
−4 sin( ) = −5ecos( 2 ) + c
2
−4(1) = −5e0 + c =⇒ c = 1
Thus the particular solution is y sin x = −5ecos x + 1
Example 3.0.3
Solve dy
dx + 2y = e−x with y(0) = 3
4
Solution
Note that this equation is not separable. With p(x) = 2 and
g(x) = e−x, we have
Zx
µ(x) = exp
2dx
0
=e 2x
and
−2x 3
Zx
y =e + e2xe−xdx
4 0
3 x
=e−2x
+
Z
exdx
4 0
3
=e−2x ex −
4
1
=e−x 1 − e−x
4
Example 3.0.4
Solve dy
dx − 2xy = x, with y(0) − 0
Solution
This equation is separable and we solve it in two ways. First, using an
integrating factor with p(x) = −2x and g(x) = x
Zx
µ(x) = exp(−2 xdx)
0
−x2
=e
and
Zx
x2 2
y=e xe−x dx
0
The integral can be done by substitution with u = x2, du = 2xdx,
2
Zx
−x2 1 Zx −u
xe dx = e du
0 20
x2
1 −u
= − e
2 0
1 2
= (1 − e−x )
2
Therefore,
1 2 2
y = ex (1 − e−x )
2
1 2
= (ex − 1)
2
Second, we integrate by separating variables:
dy
− 2xy = x
dx
dy
= x(1 + 2y)
dx
Zy dy Zx
= xdx
0 1 + 2y 0
1 1
ln(1 + 2y) = 2
2 x
2
1 + 2y = ex
1 2
y = (ex − 1)
2
The results from two different solution methods are the same , and the
choice of method is a personal preference.
3.1 Applications
S0 rS + k
= 0 dt
1 rS + k
ln =t
r rS0 + k
rS + k = (rS0 + k) ert (3.18)
rS0ert + kert − k
S=
r
k rt
S = S0e + e 1 − e
rt −rt
r
where the first term on the right-hand side of (3.18) comes from the initial
invested capital, and the second term comes from the deposits (or with-
drawals). Evidently, compounding results in the exponential growth of an
investment.
Example 3.1.1
As a practical example, we can analyze a simple retirement plan. It
is easiest to assume that all amounts and returns are in real dollars
(adjusted for inflation). Suppose a 25 year-old plans to set aside a fixed
amount every year of his/her working life, invests at a real return of
6%, and retires at age 65. How much must he/she invest each year to
have HK$8, 000, 000 at retirement? (Note: US$1 ≈ HK$8. ) We need
to solve (3.18) for k using t = 40 years, S(t) = $8, 000, 000, S0 = 0,
and r = 0.06 per year. We have
rS(t)
k=
ert − 1
0.06 × 8, 000, 000
k=
e0.06 × 40 − 1
= $47, 889 year −1
To have saved approximately one million US$ at retirement, the worker
would need to save about HK$50,000 per year over his/her work-
ing life. Note that the amount saved over the worker’s life is ap-
proximately 40 × $50, 000 = $2, 000, 000, while the amount earned
on the investment (at the assumed 6% real return) is approximately
$8, 000, 000 − $2, 000, 000 = $6, 000, 000. The amount earned from the
investment is about 3× the amount saved, even with the modest real
return of 6%. Sound investment planning is well worth the effort.
C dC Z t
= k 0 dt
Z
= −
(A0 − C) (B0 − C) B0 − A0 A0 − C B0 − C
and the remaining integral of (3.21) becomes (using C < A0, B0)
dC 1 dC dC
[ Z C Z C
=
Z
−
(A0 − C) (B0 − C) B0 − A0 0 A0 − C 0 B −C
0
0
1 A − C B − C
0 0
= − ln + ln
B0 − A0 A0 B0
1 A0 (B0 − C)
= ln
B0 (A0 − C)
E0 − A0
Using this integral in (3.21) multiplying by (B0 − A0) and exponentiat-
ing, we obtain
A0 (B0 − C)
= e(B0−A0)kt
B0 (A0 − C)
Solving for C, we finally obtain
e(B0−A0)kt − 1
C(t) = A0B0 (3.23)
B0e(B0−A0)kt − A0
As one would expect, the reaction stops after one of the reactants is depleted;
and the final concentration of product is equal to the initial concentration
of the depleted reactant.
Using Newton’s law, we model a mass m free falling under gravity but with
air resistance. We assume that the force of air resistance is proportional to
the speed of the mass and opposes the direction of motion. We define the x
-axis to point in the upward direction, opposite the force of gravity. Near the
surface of the Earth, the force of gravity is approximately constant and is
given by −mg, with g = 9.8 m/s2 the usual gravitational acceleration. The
force of air resistance is modelled by −kv, where v is the vertical velocity
of the mass and k is a positive constant. When the mass is falling, v < 0
and the force of air resistance is positive, pointing upward and opposing the
motion. The total force on the mass is therefore given by F = −mg − kv.
With F = ma and a = dv/dt, we obtain the differential equation
dv
m = −mg − kv (3.24)
dt
The terminal velocity v∞ of the mass is defined as the asymptotic velocity
after air resistance balances the gravitational force, When the mass is at
terminal velocity, dv/dt = 0 so that
mg
v∞ = −. (3.25)
k
The approach to the terminal velocity of a mass initially at rest is obtained
by solving (3.25) with initial condition v(0) = 0. The equation is both linear
and separable, and I solve by separating variables:
dv
= − 0t dt
R0
m
R
0 mg+kv
k ln = −t
m mg+kv
mg
1 + mgkv
= e−kt/m
=− k 1−e
mg −kt/m
v
Example 3.1.2
As an example, a skydiver of mass m = 100 kg with his parachute
closed may have a terminal velocity of 200 km/hr. With
g = 9.8 m/s 10 km/m (60 s/min)2(60 min/hr)2 = 127, 008 km/hr2
2 −3
one obtains from (2.22), k = 63, 504 kg/hr. One-half of the ter-
minal velocity for free-fall (100 km/hr) is therefore attained when
1 − e−kt/m = 1/2, or t = m ln 2/k ≈ 4 sec . Approximately 95%
= rN 1 − (3.26)
dt K
where K is called the carrying capacity of the environment. Making (3.26)
dimensionless using τ = rt and x = N/K leads to the logistic equation,
dx
= x(1 − x)
dτ
where we may assume the initial condition x(0) = x0 > 0. Separating
variables and integrating
x dx Z τ
= 0 dτ
Z
x0 x(1 − x)
The integral on the left-hand-side can be done using the method of partial
fractions:
1 a b
= +
x(1 − x) x 1 − x
and the cover-up method yields a = b = 1. Therefore,
x dx Z x dx Z x dx
= +
Z
x0 x(1 − x) x0 x x0 (1 − x)
x 1−x
= ln − ln
x0 1 − x0
x (1 − x0)
= ln
x0(1 − x)
=τ
Solving for x, we first exponentiate both sides and then isolate x :
= et
x(1−x0 )
x0 (1−x)
x (1 − x0) = x0eτ − xx0eτ
x 1 − x0 + x0e> = x0cτ
x = x0+(1−x
x0
0 )e
−t
The population, therefore, grows in size until it reaches the carrying capacity
of its environment.
Chapter 4
dny dn−1y dy
b0(x) n + b1(x) n−1 + . . . + bn−1(x) + bn(x)y = Q(x) (4.1)
dx dx dx
Definition 4.1.1
We consider equation 4.1, we have that:
1. If Q(x) = 0, then the equation 4.1 is said to be linear and
homogeneous.
Remark.4
The term linear refers to the fact that each expression in the differential
equation is of degree 1 And for degree zero in the variable y, y 0, . . . , y n
Example 4.1.2
Find the unique solution of the following I.V.P
y 00 + y = 0, y(0) = 0, y 0(0) = 1 (4.4)
Solution
The solution of above differential equations are sin x and cos x
For y 00 + y = 0 =⇒ y1 = sin x, y10 = cos x, y 00 = − sin x
y 00 + y = − sin x + sin x = 0
y(0) = 0 =⇒ y = 0 when x = 0
y(0) = c1 sin(0) + c2 cos(0) = 0 =⇒ y(0) = 0 + c2 = 0 =⇒ c2 = 0‘and
y 0(0) = c1 cos(0) − c2 cos(0) = 1 =⇒ y 0(0) = c1 = 1
and so y = sin x is the only solution of the I.V.P, which satisfy given
conditions.
The best way of telling whether or not the solution of a linear differential
equations are linearly dependent is by the means of Wronskian
Definition 4.1.3: Wronskian
Consider a sequence of functions f1, f2, . . . , fn each of which is dif-
ferentiable at least (n − 1) times in [a, b]. Then the Wronskian of
f1, f2, . . . , fn is the determinant function
f1 f2 f3 . . . fn
f10 f20 f30 . . . fn0
W (f1, f2, . . . , fn) = f100 f200 f300 . . . fn00 (4.5)
... ... ... ... ...
n−1 n−1 n−1 n−1
f1 f2 f3 . . . fn
and its value at x ∈ [a, b] = W (f1, f2, . . . , fn)(x)
Example 4.1.3
Given f1(x) = x2, f2 = cos x. Find W (f1, f2)
Solution
From the definition of W and of the functions f1 and f2, we have,
x2 cos x
W (f1, f2) = = −x sin x − 2x cos x
2
(4.6)
2x − sin x
Remark.5
If it happens that the Wronskian is not zero, then the functions
f1, f2, . . . , fn are linearly independent.
f (D)y = 0 (4.9)
f (D)emx = 0 (4.10)
f (m) = 0 (4.11)
is called the auxiliary equation associated with (4.8) or (4.9). The aux-
iliary equation for (4.8) is of degree n. Let its roots be m1, m2, . . . , mn.
If these roots are all real and distinct, then the n solutions
are linearly independent and the general solution of (4.8) can be written
at once. It is
Example 4.2.2
Solve the equation
3D + 5D − 2D y = 0
3 2
y = c1 + c2e−2x + c3 exp x
3
Example 4.2.3
Solve the equation
d2x
− 4x = 0
dt2
with the conditions that when t = 0, x = 0 and dx
dt = 3.
The auxiliary equation is
m2 − 4 = 0
with roots m = 2, −2. Hence the general solution of the differential
equation is
x = c1e2t + c2e−2t
It remains to enforce the conditions at t = 0. Now
dx
= 2c1e2t − 2c2e−2t
dt
Thus the condition that x = 0 when t = 0 requires that
0 = c1 + c2
and the condition that dx
dt = 3 when t = 0 requires that
Exercise 4.2.1
In exercises 1 through 22, find the general solution. When the
operator D is used, it is implied that the independent variable is x.
(a) (D2 − D − 2) y = 0 ANS. y = c1e−x + c2e2x.
(b) (D2 + 3D) y = 0 ANS. y = c1 + c2e−3x.
(c) (D2 − D − 6) y = 0 ANS. y = c1e−2x + c2e3x.
(d) (D2 + 5D + 6) y = 0 ANS. y = c1e−2x + c2e−3x.
(e) (D3 + 2D2 − 15D) y = 0 ANS.
y = c1 + c2e3x + c3e−5x.
(f) (D3 + 2D2 − 8D) y = 0 ANS.
y = c1 + c2e2x + c3e−4x.
(g) (D3 − 3D2 − D + 3) y = 0. ANS.
y = c1e3x + c2ex + c3e−x.
(h) (4D3 − 13D + 6) y = 0 ANS.
y = c1ex/2 + c2e3x/2 + c3e−2x.
(i) (4D3 − 49D − 60) y = 0. ANS.
y = c1e4x + c2e−5x/2 + c3e−3x/2.
d3 x 2
(j) dt3 dt = 0.
− 2 ddt2x − 3 dx ANS. x = c1 + c2e−t + c3e3t.
d3 x
(k) dt3
− 7 dx
dt + 6x = 0. ANS.x = c1et + c2e2t + c3e−3t.
(l) (10D3 + D2 − 7D + 2) y = 0. ANS.
y = c1e−x + c2ex/2 + c3e2x/5.
(m) (D3 − 3D2 − 3D +√1) y = 0. √ ANS.
y = c1e−x + c2e(2+ 3)x + c3e(2− 3)x.
Find the particular solution as indicated.
i. (D2 − 2D − 3) y = 0; when x = 0, y = 0, y 0 = −4
ANS. y = e−x − e3x.
ii. (D2 − D − 6) y = 0; when x = 0, y = 0, and when x =
1, y = e3.
AN S.y = e − e / 1−e
3x −2x −5
the operator f (D) has repeated factors ; that is, the auxiliary equation
f (m) = 0 has repeated roots. Then the method of the previous section
does not yield the general solution. Let the auxiliary equation have
three equal roots m1 = b, m2 = b, m3 = b. The corresponding part of
the solution yielded by previous method is
y = c1ebx + c2ebx + c3ebx
(4.13)
y = (c1 + c2 + c3) ebx
Now (4.13) can be replaced by
y = c4ebx (4.14)
with c4 = c1 + c2 + c3. Thus, corresponding to the three roots under
consideration, this method has yielded only the solution (4.14).
(D − b) =0 for k = 0, 1, 2, . . . , (n − 1) (4.16)
n k bx
x e
f (D)y = 0
can be written
g(D)(D − b)ny = 0 (4.18)
where g(D) contains all the factors of f (D) except (D − b)n. Then any
solution of
(D − b)ny = 0 (4.19)
is also a solution of (4.18) and therefore of (4.12)
The auxiliary equation; repeated roots Now we are in a position to write
the solution of equation (4.12) whenever the auxiliary equation has only
real roots. Each root of the auxiliary equation is either distinct from all
the other roots or it is one of a set of equal roots. Corresponding to a
root mi distinct from all others, there is the solution
With the aid of synthetic division, it is easily seen that the auxiliary
equation
m4 − 7m3 + 18m2 − 20m + 8 = 0 (4.23)
has the roots m = 1, 2, 2, 2. Then the general solution of equation
(4.22) is
y = c1ex + c2e2x + c3xe2x + c4x2e2x
or
y = c1e + c2 + c3x + c4x e2x
x 2
Example 4.2.5
Solve the equation Solve the equation
d4 y d3y d2y
+2 3 + 2 =0
dx4 dx dx
The auxiliary equation is
m4 + 2m3 + m2 = 0
with roots m = 0, 0, −1, −1. Hence the desired solution is
y = c1 + c2x + c3e−x + c4xe−x
Exercise 4.2.2
Find the general solution
(a) (D3 − 4D2 + 4D) y = 0
(b) (9D3 + 6D2 + D) y = 0
(c) (2D4 − 3D3 − 2D2) y = 0
(d) (2D4 − 5D3 − 3D2) y = 0
(e) (D3 + 3D2 − 4) y = 0
(f) (4D3 − 27D + 27) y = 0
(g) (D3 + 3D2 + 3D + 1) y = 0
(h) (D3 + 6D2 + 12D + 8) y = 0
(i) (D5 − D3) y = 0 or y = c1 + c2x + c3x2 + c6 cosh x + c7 sinh x
(j) (D5 − 16D3) y = 0
(k) (4D4 + 4D3 − 3D2 − 2D + 1) y = 0
(l) (4D4 − 4D3 − 23D2 + 12D + 36) y = 0
(m) (D4 + 3D3 − 6D2 − 28D − 24) y = 0
The reduction of the solution (4.27) above to the desirable form (4.29)
has been done once and that is enough. Whenever a pair of conjugate
imaginary roots of the auxiliary equation appears, we write down at
once, in the form given on the right in equation (4.29), the particular
solution corresponding to those two roots.
Example 4.2.6
EXAMPLE (a): Solve the equation
D − 3D + 9D + 13 y = 0
3 2
Let
f (x) = a0y (n) + a1y (n−1) + . . . + any = Q(x) (4.31)
be a differential equation with real constant coefficients a0, a1, . . . , an
Theorem 4.3.1. The general solution of the non-homogeneous equa-
tion ?? is equal to the sum of the general solution of the corresponding
homogeneous equation and some particular solution of the non homo-
geneous equations.
yg = yh + yp (4.32)
Example 4.3.1
Find the general solution of the non homogeneous equation
y 00 − 2y 0 − 3y = 1 − x2 (4.33)
Solution
For ygeneral we have y 00 −2y 0 −3y = 0 and the characteristic equation
is
f (m) = m2 − 2m − 3 = 0
f (m) = (m − 3)(m + 1) = 0 =⇒ m1 = −1, m2 = 3 and
general solution is
yh = c1e−x + c2e3x
We have to look for yp solutions in the term.
yp = Ax2 + Bx + C
Where A, B, C are constants to be determined.
yp =Ax2 + Bx + C
yp0 = 2Ax + B
yp00 = 2A
We substitute these derivatives in the equation ??
y 00 − 2y 0 − 3y = 1 − x2
2A − 4Ax − B − 3(Ax2 + Bx + C) = 1 − x2
2A − 4Ax − 2B − 3Ax2 − 3Bx − 3C = 1 − x2
− 3Ax2 − (4A + 3B)x + (2A − 2B − 3C) = 1 − x2
Comparing the coefficients
1
3Ax2 = x2 =⇒ A =
3
−(4A + 3B)x = 0 =⇒ 4A + 3B = 0 or x = 0
2A − 2B − 3C = 1
i.e. 3B = −4 3 =⇒ B = 9
4
Also 23 + 98 − 3C = 1 =⇒ C = 5
27
So yg = yh + yp = c1e−x + c2e3x + 13 x2 − 49 x + 27
5