MATH2103 For University
MATH2103 For University
MATH2103 For University
Contents
03
1 Introduction and basic principles 3
1.1 Meaning of a differential equation . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Definition of terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
21
1.3 Solution to a differential equation . . . . . . . . . . . . . . . . . . . . . . . . . . 5
TH
2.3 First-order linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 Integrating factor: First-order linear equations . . . . . . . . . . . . . . . . . . 12
2.5 Integrating factor: First-order general equation . . . . . . . . . . . . . . . . . . 13
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 1 of 101
Makerere University MTH 2103 - Differential Equations I
03
8 Nonhomogeneous, Constant-coefficient Equations. 42
8.1 The method of undetermined coefficients. . . . . . . . . . . . . . . . . . . . . . . 42
8.2 Expected difficulties: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
8.3 The Principle of Superposition: . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
21
8.4 Limitation of the method of undetermined coefficients . . . . . . . . . . . . . . . 47
8.5 The method of variation of parameters . . . . . . . . . . . . . . . . . . . . . . . 47
8.6 Special substitutions: Cauchy-Euler equations . . . . . . . . . . . . . . . . . . . 53
8.7 Further Cauchy-Euler equations . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
TH
9 Power Series Solutions 58
9.1 Review of power series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.2 Ordinary points and singular points . . . . . . . . . . . . . . . . . . . . . . . . 62
9.3 Regular and irregular singular points . . . . . . . . . . . . . . . . . . . . . . . . 62
9.4
9.5
-M
Power series solution about an ordinary point . . . . . . . . . . . . . . . . . . . 64
Solutions near regular singular points:
Frobenius Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 2 of 101
Makerere University MTH 2103 - Differential Equations I
03
1 Introduction and basic principles
1.1 Meaning of a differential equation
A differential equation is an expression that involves derivatives of some unknown function.
21
If the unknown function is a function of a single independent variable then the differential
equation is called an ordinary differential equation. If the unknown function depends on two or
more independent variables then the differential equation is called a partial differential equation.
Equations
∂ 2u ∂ 2u
1. y 0 + xy = 3 2. y 00 + 5y 0 + 6y = cos x 3. y 00 = (1 + y 0 2 )(x2 + y 2 ) 4. 2 − 2 = 0
∂t ∂x
TH
∂u ∂u
and 5. =3 are all differential equations.
∂t ∂x
In equations (1)-(3), the unknown function is y and is assumed to be a function of the single
independent variable x, (i.e y = y(x)). The functions y 0 and y 00 are the first and second
dy d2 y
derivatives of y(x) with respect to x (usually denoted by , ). the equations (1)- (3) have
dx dx2
ordinary derivatives depending on one single variable x and are called ordinary differential
equations.
-M
In equations (4) and (5), the unknown function u is a function of two independent variables
t and x (and is usually written as (u(t, x) or u(x, t)). We define
∂u
∂x
and
∂ 2u
∂x2
as the first and
second partial derivative of u with respect to x respectively. And equations (4) and (5) are
called partial differential equations because they involve partial derivatives.
(a) The order of a differential equation is the highest derivative which occurs in the equation.
For example
dy
dx
=x+2 order 1 (or first order)
De
d2 y dy
dx2
+ 2 dx + 3y = 0 second order
0
xy + 3y = 4 first order
(y 00 )2 − (y 0 )3 + 2y = 5x second order
∂z ∂z
∂x
= z + x ∂y first order
∂2z ∂2z
∂x2
+ ∂y 2
= x2 + y second order
s
(b) A differential equation can be written (and can be regarded ) as a polynomial in the
derivatives in which the powers of the derivatives go on decreasing.
th
The degree of a differential equation is the power of the highest derivative appearing in
the equation.
For example; equation (y 00 )3 + 4xy 0 − 3y = x is second order because y 00 is the highest
derivative in the equation, and is of degree 3 because the highest power of the highest
Ma
derivative is 3. Thus
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 3 of 101
Makerere University MTH 2103 - Differential Equations I
03
(iii) y 00 + 5y 2 x = sin x second order, degree 1
(iv) (y 00 )2 + (y 0 )3 + 3y = x2 second order, degree 2
000 00 2
(v) y + 2(y ) = cos 2x order 3, degree 1
000
(vi) ey − xy 00 + y = 0 order 3, degree does not apply
21
√
(vii) y 0 + y = sin θ order 1, degree1
TH
An nth order differential equation is said to be a linear differential equation if it is of the
special form
where the functions ai (x); i = 0, 1, 2, . . . , n and f (x) are given functions independent of
the variable y, with a0 (x) 6= 0. In general, the nth-order equation (1.2) is linear if the
-M
function F (x, y 0 , y 00 . . . y (n) ) is a first degree polynomial in y, y 0 , y 00 , . . . , y (n)
The functions ai (x), i = 0, 1, 2, . . . , n are known as the coefficients of the differential
equation.
If all the coefficients ai (x); i = 0, 1, 2, . . . , n are constants, then equation (1.2) is known
as a linear differential equation with constant coefficient. Otherwise if only one of the
coefficients ai (x), i = 0, 1, 2, . . . , n is a variable, then the differential equation is variable
coefficient.
De
The term linear refers to the fact that each expression in the differential equation is of
degree one or zero in the variables y, y 0 , . . . , y (n) .
Examples 1.1
equation.
The following differential equations are nonlinear
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 4 of 101
Makerere University MTH 2103 - Differential Equations I
03
(ii) y 00 − 5(y 0 )3 = 3y because of the term (y 0 )3
21
The rest of the characteristics do apply on the above equations
Exercise 1.1
TH
(a) 3y 00 + 2y 0 − 4y 2 = 0 (b) 2(y 0 )3 − 3y = 4
(c) (y 00 )2 − 6x(y 0 )3 − 4y = x (d) (y (4) )3 − 3(y 000 )2 − 4(y 0 )5 = 5y 2
1
(e) y 0 + x = (y − xy 0 )−3 (f ) y 00 = (y + (y 0 )2 ) 4
(a) xy 00 − 2ex y 0 − 5x = 0
(c) 3y 000 − 4y 00 + xy = 11
(e)(y 00 )2 − 4y 0 + 5y = 6x
(g) y 000 + 5y 00 − 6y 0 = cos xy
-M
(b) y 00 − 4y 0 − 3 cos x = 5y
(d) y 000 − 6y 00 − 17y 0 = xey
(f ) y (4) − 5y 00 + 11y = 0
(h) y (4) + 3(cos x)y 000 + (y 0 )2 = 0
(i) y 000 = 5 (j) y 000 − x5 = 0
Examples 1.2
p (1 − 2x)
(iii) The function y = x(x − 1) is a solution of y 0 = valid only in x ∈ [0, 1)
2y
√ 1
(iv) The function y = x is a solution of the equation y 0 = valid only in (0, +∞)
2y
Ma
The differential equation y 00 − y = 0 given in (i) above, the function y = e−x is a solution too
and moreover, y = c1 ex + c2 e−x is again a solution to y 00 − y = 0 for some constants c1 and c2 .
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 5 of 101
Makerere University MTH 2103 - Differential Equations I
03
Therefore the process of finding a solution to a differential equation is to focus ones’s mind to
a unique solution (called a primitive) that was differentiated to have the combination terms of
the differential equation satisfied.
Such a primitive function of a differential equation is called the general solution of the differential
21
equation.
A solution to a differential equation that comes from particular qualities specified together
with the equation is called the particular solution. Such a differential equation that has initial
conditions that will result into a particular solution is called an initial value problem (IVP).
Remark: Given any primitive we can in some way obtain a differential equation that is
TH
associated with it by eliminating the constants involved.
Examples 1.3
d2 y d3 y
Then
d3 y
dx3
y = Ax2 + Bx + C,
dy
dx -M
= 2Ax + B,
dx2
= 2A,
dx3
= 0,
3. Obtain the differential equation associated with the solution y = Ae2x + Bex + C
d2 y d3 y
De
dy
Solution: = 2Ae2x + Bex , = 4Ae 2x
+ Be x
, = 8Ae2x + Bex .
dx dx2 dx3
d3 y d2 y 2x d2 y dy
So that 3
− 2
= 4Ae , and 2
− = 2Ae2x .
dx dx dx dx
3 2
2
d3 y d2 y
dy dy dy dy dy
Therefore − = 2 − ⇒ − 3 + 2 =0
dx3 dx2 dx2 dx dx3 dx2 dx
dy
4. Show that y = 2x + Cex is a solution to the differential equation − y = 2(1 − x) and
s
dx
find the particular solution satisfied by x = 0, y = 3.
th
dy
Solution: y = 2x + Cex , = 2 + Cex .
dx
dy
Then − y = 2 + Cex − (2x + Cex ) = 2 + Cex − 2x − Cex = 2 − 2x = 2(1 − x).
dx
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 6 of 101
Makerere University MTH 2103 - Differential Equations I
03
2 Solving first-order oquations
21
A first order differential equation is said to be separable if it is of the form
dy g(x)
=
dx f (y)
R R
such that f (y)dy = g(x)dx and on integration gives f (y)dy = g(x)dx ⇒ F (y) + c1 =
G(x) + c2 ⇒ F (y) = G(x) + C. The method used to solve simple separable differential
TH
equations is known as the method of separation of variables.
Examples 2.1
dy y−1
1. Solve the differential equation: =
dx x+3
Solution: By separation of variables
dy
y−1
=
dx
x+3
⇒
Z
dy
y−1
=
Z
dx
x+3
-M
⇒ ln (y − 1) = ln k(x + 3) ⇒ y = 1 + k(x + 3)
dy 6x5 − 2x + 1
2. Solve the differential equation: =
dx cos y + ey
Solution: By separation of variables
Z Z
y 5
(cos y + e )dy = (6x − 2x + 1)dx ⇒ (cos y + e )dy = (6x5 − 2x + 1)dx
y
pt
⇒ sin y + ey = x6 − x2 + x + c
√
3. Solve the differential equation ydx + (1 + x)dy = 0; y(1) = 1.
De
and y(1) = 1 ⇒ 2 = − ln 2 + c ⇒ c = 2 − ln 2
r
√ √ x+1 x + 1 2
Thus 2 y = − ln(1 + x) + 2 − ln 2 ⇒ 2 y = 2 − ln ⇒ y = 1 − ln .
2 2
s
Exercise 2.1
th
3. = 3x2 (1 + y 2 ) 4. + y2 = y
dx dx
dy sec2 y
5. = 6. y sin xecos x dx + y −1 dy = 0
dx 1 + x2 2
7. (x + xy 2 )dx + ex ydy = 0 8. x2 dx + 2ydy = 0; y(0) = 2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 7 of 101
Makerere University MTH 2103 - Differential Equations I
03
2.2 First order exact equations
dy
Any first order differential equation = f (x, y) can be expressed in the form
dx
21
M (x, y)dx + N (x, y)dy = 0 (2.1)
Examples 2.2
dy 3x2 − y
TH
1. = ⇒ (y − 3x2 )dx + (x − 1)dy = 0 in which M (x, y) = y − 3x2 and
dx x−1
N (x, y) = x − 1.
Examples 2.3
d
R R
1. xdy + ydx = 0 ⇒ dx
(xy) =0 ⇒ d(xy) = 0.dx; ⇒ xy = c.
d
dy
2. 2x2 y dx = 3 − 2xy 2 ⇒ R2x2 ydy + 2xy
2 2 2 2
2
R dx = 3dx2 2
⇒ dx (x y ) = 3dx ⇒ d(x y ) = 3dx ⇒ x y = 3x + c
-M
We are able to solve these two examples because their LHS expressions were reducing to total
differentials.
Definition 2.1 A first-order differential equation whose LHS expressions can be easily re-
grouped into total differentials is said to be exact differential equation
pt
Theorem 2.1 The first-order differential equation M (x, y)dx + N (x, y)dy = 0 is exact iff
∂M (x, y) ∂N (x, y)
=
∂y ∂x
De
∂F ∂F
= M (x, y) and = N (x, y)
∂x ∂y
∂F ∂F
s
∂ 2F ∂ 2F
∂M ∂ ∂F ∂N ∂ ∂F
Then = = and = = .
∂y ∂y ∂x ∂x∂y ∂x ∂x ∂y ∂x∂y
∂M ∂ 2F ∂ 2F ∂N
Hence = = =
∂y ∂y∂x ∂x∂y ∂x
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 8 of 101
Makerere University MTH 2103 - Differential Equations I
03
∂F
(a) We let the solution to take the form F (x, y) = c, such that ∂x
= M (x, y),
and ∂F
∂y
= N (x, y).
Z
Then F (x, y) = M (x, y)dx + g(y) (2.2)
21
(b) To determine g(y) we take the partial derivatives with respect to y of both sides of (2.2)
to give
Z Z
∂F ∂ ∂ ∂
= M (x, y)dx + (g(y)) = M (x, y)dx + g 0 (y) = N (x, y).
∂y ∂y ∂y ∂y
TH
Then g 0 (y) = N (x, y) − ∂y
∂
R R R
M (x, y)dx gives g(y) = [N (x, y) − M (x, y)dx]dy, so
R R R
that F (x, y) = M (x, y)dx + [N (x, y) − M (x, y)dx]dy = c.
Examples 2.4
∂N
∂x
= 2x. Since ∂M
∂y
= 2x = ∂N∂x
be of the form F (x, y) = c in which ∂F
∂x
-M
Solution: Let M (x, y) = 2xy − sec2 x, then ∂M ∂y
= 2x. And N (x, y) = x2 + 2y, then
then the differential equation is exact. Let the solution
= M (x, y) and ∂F∂y
= N (x, y).
∂F
Then ∂x
= M (x, y) = 2xy − sec2 x
Z
⇒ F (x, y) = (2xy) − sec2 x)dx = x2 y − tan x + g(y)
pt
And ∂F
∂y
= x2 + g 0 (y) = N (x, y) = x2 + 2y ⇒ g 0 (y) = 2y ⇒ g(y) = y 2 .
∂y
From which we have
th
∂F
= ex y + xex y + T 0 (x) = M (x, y) = 1 + ex y + xex y ⇒ T 0 (x) = 1 ⇒ T (x) = x.
∂x
Remark: Sometimes after making an equation exact it is sufficient to regroup the terms seen
to be forming total differentials together and thereafter integration of term by term solves the
differential equation without going through the whole process of finding F (x, y) = c.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 9 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 2.5
21
∂x
Since ∂N
∂y
= −4y = ∂N∂x
the equation is exact. And 3x2 dx − 2y 2 dx + dy − 4xydy = 0
2 d
⇒ 3x
R dx + dyR− (2y 2Rdx + 4xydy)R = 0 ⇒ 3x2 dx + dy − dx (xy 2 ) = 0
⇒ 3x2 dx + dy − d(xy 2 ) = 0dx ⇒ x3 + y − xy 2 = c.
TH
Solution: M (x, y) = 2x3 + 3y, ⇒ ∂M ∂y
= 3 and N (x, y) = 3x + y − 1, ⇒ ∂N∂x
= 3. Since
∂M ∂N 3
∂y
= 3 = ∂x , it is exact. And 2x dx + 3ydx + 3xdy + ydy − 1dy = 0
d
⇒ 2x3 dx + ydy − dy + 3(ydx R +3xdy) =R 0 ⇒ 2x
3
R − dy − R3 dx (xy) = 0
R dx + ydy
which on integration gives 2x dx + ydy − dy − 3 d(xy) = 0.dx
⇒ 41 x4 + 12 y 2 − y − 3xy = c ⇒ x4 + 2y 2 − 4y + 12xy = c
Solution: M (t, y) = 3y + et , ⇒
∂M
∂y
-M
3. Solve the differential equation: 3y + et + (3t + cos y) dy
dt
= 0.
∂M ∂N
Since =3= then the equation is exact.
∂y ∂t
Let the solution be F (t, y) = c. Then
∂F
= M (t, y) = 3y + et (1)
∂t
pt
∂F
= N (t, y) = 3t + cos y. (2)
∂y
Integrating (1) w.r.t.t. gives F (t, y) = 3ty + et + h(y) (3)
Integrating (2) w.r.t.y. gives F (t, y) = 3ty + sin y + h(t) (4)
De
Solve the equation: (3x2 y + 8xy 2 )dx + (x3 + 8x2 y + 12y 2 )dy = 0; y(2) = 1.
∂M
Solution: M (x, y) = 3x2 y + 8xy 2 , ⇒ ∂y
= 3x2 + 16xy
∂N
N (x, y) = x3 + 8x2 y + 12y 2 ; ⇒ ∂x
= 3x2 + 16xy
Ma
∂M ∂N
Since ∂y
= 3x2 + 16xy = ∂x
the equation is exact. Let the solution be F (x, y) = c with
∂F
= M (x, y) = 3x2 y + 8xy 2 (2.3)
∂x
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 10 of 101
Makerere University MTH 2103 - Differential Equations I
03
∂F
= N (x, y) = x3 + 8x2 y + 12y 2 (2.4)
∂y
Then we have, from (2.3)
21
Z
F (x, y) = (3x2 y + 8xy 2 )dx = x3 y + 4x2 y 2 + h(y).) (2.5)
TH
So equations (2.5) and (2.6) are equal and they give
x3 y + 4x2 y 2 + h(y) = x3 y + 4x2 y 2 + 4y 3 + f (x); from which we see that for the two to be
equal, h(y) = 4y 3 and f (x) = 0.
Using h(y) in (2.5) or f (x) in (2.6) gives the solution as x3 y + 4x2 y 2 + 4y 3 = c.
And y(2) = 1 ⇒ 8 + 16 + 4 = c ⇒ c = 28 ⇒ x3 y + 4x2 y 2 + 4y 3 = 28.
∂y ∂x
Let the solution be F (x, y) = c with
∂F
= M (x, y) = 3x2 − 2xy + 2 (2.7)
∂x
pt
∂F
= N (x, y) = 6y 2 − x2 + 3 (2.8)
∂y
Z
Then (2.7) gives F (x, y) = (3x2 − 2xy + 2)dx = x3 − x2 y + 2x + g(y) (2.9)
De
Z
And (2.8) gives F (x, y) = (6y 2 − x2 + 3)dy = 2y 3 − x2 y + 3y + f (x) (2.10)
Exercise 2.2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 11 of 101
Makerere University MTH 2103 - Differential Equations I
03
2.3 First-order linear equations
Definition 2.2 A first-order differential equation is said to be linear if it takes the form
dy
a1 (x) + a0 (x)y = b(x) (2.11)
21
dx
where a1 (x), a0 (x), b(x) are continuous functions that depend only on the independent variable
x.
Examples 2.6
TH
dy
1. x2 sin (x − cos x)y = (sin x) dx is linear since it can be written in the form
dy 2
(sin x) dx + (cos x)y = x sin x
dy dy
2. y dx + (sin x)y 3 = ex + 1 is not linear due to the presence of terms y 3 and y dx
If we divide through (2.11) by a1 (x) we write equation (2.11) in standard form
dy
dx -M
+ P (x)y = Q(x)
)
∂M
∂y
= µ(x)P (x)
(2.14)
∂N
∂x
= dµ(x)
dx
dµ(x)
and for exact ∂M
∂y
= ∂N
∂x
⇒ µ(x)P (x) = dx
which on separating of variables gives
R dµ R
µ(x)
= P (x)dx from which we have
s
R
P (x)dx
µ(x) = e (2.15)
th
Then (2.15) is our desired integrating factor; and clearly since µ(x)P (x) = dµ(x)
dx
then
dy dy dµ(x)
µ(x) dx + P (x)µ(x)y = µ(x)Q(x) ⇒ µ(x) R dx + dx y = µ(x)Q(x)
d
⇒ dx (µ(x).y) = µ(x)Q(x) ⇒ µ(x)y = µ(x)Q(x)dx + c. Thus
y = µ(x)−1 ( µ(x)Q(x)dx + c) is the general solution to (2.12) where µ(x) = e P (x)dx .
R R
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 12 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 2.7
dy
1. Solve the differential equation: dx
+ 2y = 3ex
R R
P (x)dx 2dx
Solution: Integrating factor = e =e = e2x . Then multiplying through by the
integrating factor, gives
21
dy d
R
e2x dx + 2e2x y = 3e3x ⇒ dx
(e2x y) = 3e3x e(2x) y = 3e3x dx = e3x + c
Therefore y = ex + ce−2x .
TH
x dx x2
Solution: Rewrite the differential equation as
dy 2
− y = x2 cos x.
dx x
2
R
dy
Then the Integrating factor= e − x dx = e−2 ln x = x12 . Thus x12 dx − x23 y = cos x
d 1
⇒ dx
y = x2 sin x + ( π122 − 1)x2 .
Exercise 2.3
-M
( x2 y) = cos x ⇒ x12 y = sin x + c. And y( π2 ) = 3 ⇒ c = ( π122 − 1) gives the solution
1. y 0 + 3y = x + e−2x 2. y 0 − 2y = x2 e2x
2
3. xy 0 + 2y = x2 − x + 1; y(1) = 12 4. y 0 + 2xy = 2xe−x
pt
∂ ∂
[µ(x, y)M (x, y)] = [µ(x, y)N (x, y)] (2.18)
∂y ∂x
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 13 of 101
Makerere University MTH 2103 - Differential Equations I
03
On differentiating by product rule (2.18) gives
∂µ ∂M ∂µ ∂N
M + µ(x, y) =N + µ(x, y)
∂y ∂y ∂x ∂x
∂µ ∂µ ∂N ∂M
⇒M −N =( − )µ(x, y) (2.19)
21
∂y ∂x ∂x ∂y
TH
−N =( − )µ(x)
dx ∂x ∂y
or
dµ 1 ∂M ∂N
= ( − )µ(x) (2.20)
dx N ∂y ∂x
And if N1 ( ∂M
∂y
− ∂N
∂x
) is a function of x only, say f (x) or a constant, (2.20), would reduce
dµ
to dx = f (x)µ(x) which on separation of variables gives
Z
dµ
µ(x)
Z Z
-M
= f (x)dx ⇒ ln µ(x) = f (x)dx ⇒ µ(x) = e f (x)dx
dy
which on separation of variables gives
Z Z Z
dµ R
= − g(y)dy ⇒ ln µ(y) = − g(y)dy ⇒ µ(y) = e− g(y)dy (2.24)
µ(y)
∂N
∂x
.
∂M ∂N ∂M ∂N
(a) If = then the equation is exact. If 6= then the equation is not exact.
th
∂y ∂x ∂y ∂x
(b) Compute N1 ( ∂M − ∂N ). If this is a function of x only, say f (x); then the integrating factor
R ∂y ∂x
f (x)dx
is µ(x) = e . If it is not a function of x only then
(c) Compute M1 ( ∂M − ∂N ). If this is a function of y only, say g(y); then the integrating factor
Ma
R ∂y ∂x
− g(y)dy
is µ(y) = e .
Then multiplying through the equation by the integrating factor will make the equation
exact and the method of solving exact follows.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 14 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 2.8
21
Solution: The equation (2.25) is neither separable nor linear.
∂M ∂N
M (x, y) = 2x2 + y, ⇒ = 1 N (x, y) = x2 y − x, ⇒ = 2xy − 1
∂y ∂x
∂M ∂N
Since ∂y
= 1 6= 2xy − 1 = ∂x
, the equation is not exact. We compute
TH
1 ∂M ∂N 1 − 2xy + 1 2(1 − xy) 2
( − )= 2
= =− (a function of x only).
N ∂y ∂x x y−x −x(1 − xy) x
2
R R
Then the Integrating factor is µ(x) = e f (x)dx = e − x dx = e−2 ln x = x12 . Multiplying
through by the intergrating factor gives
1
x2
(2x2 + y)dx + x12 (x2 y − x)dy = 0, which is exact.
Cleary 2dx + x−2 ydx + ydy − x−1 dy R = 0 ⇒R 2dx −1+ (x−2 Rydx − x−1
R dy) + ydy = 0
d −1
-M
⇒ 2dx + dx (x y) + ydy = 0 ⇒ 2dx + d(x y) + ydy = 0dx
⇒ 2x − x−1 y + 21 y 2 = c.
2. Solve the differential equation: (y 2 + 2xy)dx − x2 dy = 0
∂M ∂N
Solution: M (x, y) = y 2 + 2xy, ⇒ ∂y
= 2y + 2x N (x, y) = −x2 , ⇒ ∂x
= −2x
∂M ∂N
Since ∂y
= 2y + 2x 6= −2x = ∂x
the equation is not exact.
We check
1 ∂M ∂N [2y + 2x − (−2x)] 2y + 4x
pt
( − )= 2
=
N ∂y ∂x −x −x2
which is not a function of x only. We check
1 ∂M ∂N [2y + 2x − (−2x)]
( − ) =
De
M ∂y ∂x y 2 + 2xy
2y + 4x 2(y + 2x) 2
= 2 = = = g(y), (a function of y only)
y + 2xy y(y + 2x) y
2
R
= e−
R
dy
Then the integrating factor is µ(y) = e− g(y)dy y = e−2 ln y = 1
y2
.
x2
And y12 (y 2 + 2xy)dx − y2 dy = 0 is exact.
−1 2 (−2)
R dx +R 2xy −1dx2 − xR y
Thus dy = 0 ⇒ dx + dxd
(y −1 x2 ) = 0
−1 2
⇒ dx + d(y x ) = 0.dx ⇒ x + y x = c ⇒ xy + x2 = cy.
s
Exercise 2.4
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 15 of 101
Makerere University MTH 2103 - Differential Equations I
03
3 Using substitutions and transformations
21
Consider a first order differential equation M (x, y)dx + N (x, y)dy = 0. Then the functions
M (x, y) and N (x, y) are said to be homogeneous if they both contain expressions of the same
degree.
More generally, a function f (x, y) is said to be a homogeneous function of degree n if f (ax, ay) =
dy
an f (x, y). And to a first order differential equation dx = f (x, y) if the righthand side function
f (x, y) can be written as a function of the ratio xy alone then the equation is homogenous.
TH
Examples 3.1
p
√
√
-M
2. The function f (x, y) = x − 3 xy + 5y is homogeneous with degree 1 because
f (ax, ay) = (ax) − 3 (ax)(ay) + 5(ay) = a(x − 3 xy + 5y) = af (x, y).
p
3. The function f (x, y) = x3 + y 3 is homogeneous with degree 23 because
p p 3p 3
f (ax, ay) = (ax)3 + (ay)3 = a3 x3 + a3 y 3 = a 2 x3 + y 3 = a 2 f (x, y).
x
4. The function f (x, y) = 2y
+ 4 is homogeneous with degree zero because
ax ax x
f (ax, ay) = +4= + 4 = a0 ( 2y + 4) = a0 f (x, y).
pt
2ay a(2y)
dy x−y
5. dx
= x
= 1 − ( xy ) is homogeneous
dy y 2 +2xy
6. dx
= x2
= ( xy )2 + 2( xy ) is homogeneous
De
y
dy x+y 1 1+ x
7. dx
= ln x − ln y + x−y
= ln y + y
1− x
is homogeneous
x
dy x3 −4xy
8. dx
= x2
= x − 4( xy ) is not homogeneous.
Also for the following functions:
4
3. M (x, y) = x3 − 2xy 2 − 5 xy is homogeneous with degree 3
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 16 of 101
Makerere University MTH 2103 - Differential Equations I
03
3.2 The substitution y = vx
If the degree of all the functions in M (x, y) is the same as the degree of the functions in N (x, y)
then the RHS of the differential equation
21
dy M (x, y)
=− = f (x, y)
dx N (x, y)
y
can clearly be written as a ratio of x
alone and the substitution y = vx solves such a differential
equation.
But first check if the differential equation is not separable, exact or linear as these are easily
TH
solved with methods mentioned earlier.
Examples 3.2
-M
Let y = vx, then dy = vdx + xdv. And (x − y)dx + xdy = 0
⇒ (x − xv)dx + x(vdx + xdv) = 0 ⇒ (1 − v)dx + vdx + xdv = 0 ⇒ dx + xdv = 0 which
on separation of variables and integration gives ln x = −ν + c ⇒ ln xc = ν. And this
y
leads to the solution xe x = c.
dy y 2 + 2xy y y
⇒ = 2
= ( )2 + 2 .
dx x x x
dy dv dv dv
And y = vx ⇒ dx = v + x dx gives
R 1 v +Rx dx = v 2 + 2v ⇒ x dx = v2 + v
1 1 1 1 1
⇒ x dx = ( v − v+1 )dv. Then x dx = ( v − v+1 )dv ⇒ ln x = ln v − ln (v + 1) + c.
y
v v y Ax2
⇒ ln Ax = ln v+1 ⇒ Ax = ⇒ Ax = x
= . Therefore y = .
s
y
v+1 x
+1 y+x 1−Ax
Exercise 3.1
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 17 of 101
Makerere University MTH 2103 - Differential Equations I
03
3.3 Coefficients are linear functions
(a) Lines through the origin
Consider the differential equation (ax + by)dx + (cx + dy)dy = 0
21
Then M (x, y) = ax + by and N (x, y) = cx + dy are linear functions (i.e ax + by = 0 and
cx + dy = 0 are lines through the origin).
Clearly these functions M (x, y) and N (x, y) are both homogeneous of the same degree 1
and writing the differential equation as
dy (ax + by) a + b xy
TH
=− =−
dx (cx + dy) c + d xy
implies that the substitution y = vx solves the equation.
Examples 3.3
dy
dx
=−
-M
Solution: The differential equation can be written as
(2x − 5y)
(2x + y)
=−
(2 − 5 xy )
(2 + xy )
dy dv
Letting y = vx ⇒ dx
= v + x dx we get
dv 2 − 5v dv 2 + 5v (v 2 − 3v + 2)
v+x =− ⇒x =− −v =−
dx 2+v dx 2+v 2+v
pt
Thus
(v − 2)4 C
4 ln(v − 2) − 3 ln(v − 1) = − ln x + C ⇒ 3
=
v − 1) x
y
And with v = x
we get the solution (y − 2x)4 = C(y − x)3 .
Here the two linear functions are parallel and as such the appearance of x + 2y in both
M (x, y) and N (x, y) suggests the substitution z = x + 2y.
th
or y = 3 ln(x + 2y + 3) − x + c
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 18 of 101
Makerere University MTH 2103 - Differential Equations I
03
(c) Lines not parallel:
Consider (−3x + y + 6)dx + (x + y + 2)dy = 0.
The functions M (x, y) = −3x + y + 6 and N (x, y) = x + y + 2 are linear and not parallel.
We solve simultaneously the lines −3x + y + 6 = 0 and x + y + z = 0 to give x = 1
21
and y = −3 ⇒ x − 1 = 0, y + 3 = 0
Then we translate the axes as follows:
Let X = x − 1 and Y = y + 3 ⇒ x = X + 1 and y = Y − 3. Then dx = dX and dy = dY
so that (−3x + y + 6)dx + (x + y + 2)dy = 0
⇒ [−3(X + 1) + (Y − 3) + 6]dX + [(X + 1) + (Y − 3) + 2]dY = 0
TH
⇒ [−3X + Y ]dX + [X + Y ]dY = 0. This process always leads to lines through the origin
which we can easily solve by substitution Y = vX. Thus Y = vX ⇒ dY = vdX + Xdv
gives (−3X + vX)dX + [X + vX][vdX + Xdv] = 0
⇒ (−3 + v)dX + (1 + v)(vdXR + Xdv) = 0 ⇒ (v 2 + 2v − 3)dX + (1 + v)dv = 0.
1+v
dv = − X1 dX
R
Separation of variables gives v2 +2v−3
Y2 (Y )
⇒ v 2 + 2v − 3 = XC2 ⇒ X 2 + 2 X − 3 = X2
C
Exercise 3.2
-M
Solve the differential equations
dy
+ P (x)y = Q(x)y n (3.1)
dx
th
dy dy
Thus writing dx
+ p(x)y + Q(x)y n as y −n dx + P (x)y 1−n = Q(x) together with v = y 1−n
gives
dv dy
= (1 − n)y −n
dx dx
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 19 of 101
Makerere University MTH 2103 - Differential Equations I
03
1 dv
⇒( ) + P (x)v = Q(x) (3.2)
1 − n dx
1
And indeed equation (3.2) is linear since n−1
is a constant.
21
Examples 3.4
dy
1. Solve the differential equation: dx
− 5y = − 52 xy 3
Solution: This is Bernoulli equation with n = 3, P (x) = −5, Q(x) = − 25 x. We write
dy dy
the equation as y −3 dx − 5y −2 = − 25 x Let v = y −2 , dx
dv
= −2y −3 dx we get
TH
1 dv 5 dv
− − 5v = − x ⇒ + 10v = 5x
2 dx 2 dx
R
10dx d
whose integrating
R 10xfactor is e = e10x . Thus, dx (v.e10x = 5xe10x )
−10x
10x
⇒ ve = 5 xe dx ⇒ v = 2 − 20 + ce x 1
⇒ y −2 = x2 − 20 1
+ ce−10x
dy
2. Solve the differential equation: + x1 y = xy 2 .
Solution:
Here n = 2, P (x) =
1
x
dx
-M
, Q(x) = x. We write the equation as y −2
dy
dx x
1
− y −1 = x
dν dy dν 1
so that ν = y −1 , = −y −2 gives − ν = −x whose integrating factor is
dx dx dx x
dx
R
e− x = x−1 , so that dx d
(x−1 .ν) = −1 and so ν = −x2 + cx. Then with ν = y −1 , we
1
obtain the solution y = cx−x 2.
pt
Exercise 3.3
dy dy
1. x dx + y = y1 2. dx − y = ex y 2
dy dy
3. dx = y(xy 3 − 1) 4. x dx − (1 + x)y = xy 2
dy dy
5. x2 dx + y 2 = xy 6. 3(1 + x2 ) dx = 2xy(y 3 − 1)
dy 1 dy 3
7. x2 dx − 2xy = 3y 4 ; y(1) = 1
2
8. y − 2 dx + y 2 = 1; y(0) = 4
The law of radioactive decay states: The rate of decay of a radioactive material is proportional
to the amount of material present at the time t.
Let x(t) be the amount present at time t. Then
Ma
dx
= −kx (4.1)
dt
where k is a constant of proportionality and the negative on k signifies decay.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 20 of 101
Makerere University MTH 2103 - Differential Equations I
03
Using separation of variables on equation (4.1) we get
Z Z
dx
= − kdt ⇒ ln x = −kt + C ⇒ x(t) = Ae−kt
x
If initially at t = 0; x = x0 then A = x0 and so
21
x(t) = x0 e−kt (4.2)
Equation (4.2) is then the governing equation of the amount of radioactive substance at any
time t.
TH
Remarks:
(1) The radioactive decay is exponential decay since for all k > 0 we have x(t) → 0 as t → ∞.
(2) The half life of a radioactive substance is the length of time it takes the material to decay
to half its original amount.
Let T be the half life. Then we have
And from equations (4.2) and (4.3) x(T ) = x0 e−kT ⇒ e−kT = 12 ⇒ kT = ln 2. Thus
T = lnk2 is the time it takes the original amount to decay to half the material.
Examples 4.1
pt
Thus
ln( 10
3 )t
x(t) = 3e− 2
th
ln 2 ln 2
(i) To find half life T , we know T = k
= 0.6
= 1.2 years
(ii) To find time when the amount will be 0.4g;
ln( 10
3 )t 2 ln( 30 )
x(t) = 3e− 2 ⇒ ln( 10 )t = 2 ln( 30 ). Therefore t = ln( 10
4
= 4.4 years
Ma
3 4 4
)
ln( 10
3
(ii) To find the amount remaining after 6 years; x(t) = 3e− 2
t
gives
ln( 10 )
− 23 ×6
x(t) = 3e = 0.081
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 21 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 4.1
1. A radioactive isotope has a half life of 16 days. if one wishes to have 30g at the end of 30
days how much radio isotope should he start with? Ans. 110.04g
21
2. A radio isotope is going to be used in an experiment. At the end of 10 days only 5% is
to be left. What should be the half-life?
3. A radioactive isotope sits unused in a laboratory for 10 years at which time it is found to
contain only 80% of the original amount of the radioactive material.
TH
(b) How many additional years will it take until only 15% of the original amount is left? Ans
75.018 years
-M
This law state that the rate of change of the surface temperature of an object is proportional to
the difference between the temperature of the object and the temperature of its surroundings
(also called the ambient temperature) at that time.
Thus if T (t) is the surface temperature of the object at time t and Ts is the temperature of the
sorrounding at time t then we have the differential equation dT dt
= k(T − Ts ).
Remarks:
(a) if T > Ts the body’s temperature is hotter than the temperature of the surrounding, and
pt
in this case there will be loss of temperature of the body; it therefore follows that k will
be negative.
(b) If T < Ts then the body will gain temperature and in this case k will be positive.
R
De
Consider dT
dt
= k(T − Ts ). Then dT
dt
− kT = kTs . The integrating factor e− kdt
= e−kt gives
d
(T e−kt ) = −ke−kt .Ts ⇒ T e−kt = e−kt .Ts + C ⇒ T (t) = Ts + Cekt .
dt
If t = 0 then we have T0 = Ts + C ⇒ C = T0 − Ts .
Thus T (t) = Ts + ekt (T0 − Ts ).
Note that if k < 0 then lim T (t) = lim (Ts + e−kt (T0 − Ts )) = Ts .
s
t→∞ t→∞
That is; the surface temperature of a body cools and eventually approaches the temperature of
the surroundings.
th
The rate of change of temperature of a body is proportional to the excess temperature of the
body and that of its surroundings. And for θ = T − Ts , we write
dθ
= −kθ
dt
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 22 of 101
Makerere University MTH 2103 - Differential Equations I
03
so that Z Z
dθ
= −kdθ ⇒ ln θ = −kt + C ⇒ θ(t) = Ae−kt
θ
If at t = 0, θ = θ0 (the initial excess temperature ) we have A = θ0 and so θ(t) = θ0 e−kt
21
Examples 4.2
1. A cup of coffee at 90o C is placed in an office with constant room temperature of 20o C. If
from experience the cup of coffee drops from 90o C to 70o C in 10 minutes, Find
TH
(ii) how long it will take coffee to cool to 50o C.
2. According to Newton’s law of cooling, the rate at which a substance cools in moving air is
proportional to the difference between the temperature of a substance and that of the air. If
the temperature of the air is 30o and the substance cools from 100o to 70o in 15 minutes, find
when the temperature will be 40o .
Let T be the temperature of the substance at time t minutes. Then
dT dT
= −k(T − 30) or = −kdt.
dt T − 30
s
( Note that the use of k is optional. It will be found that k is positive, but if +k is used it will
be found that k is equally negative)
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 23 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 4.2
1. The temperature of an engine by the time it is shut off is 200o C. The surrounding air
temperature is 30o C. After 10 minutes have elapsed the surface temperature of the engine
is 180o C.
21
(a) How long will it take for the surface temperature of the engine to cool to 40o C. Ans ≈
226.4 minutes
(b) Find the surface temperature of the engine after 60 minutes.
2. An object at 100o C is placed in a room of 40o C constant temperature. What should
TH
be the constant of proportionality in order that the object be at 600 C after 10 minutes?
1
k = 10 ln 3 ≈ 0.1099
R dN
R
dN
dt
-M
= kN.
Then N
= kdt ⇒ N (t) = N0 ekt , where N0 is the initial population.
Examples 4.3
1. If the population of a country doubles in 50 years, in how many years will it treble under
the assumption that the rate of increase is proportional to the number of inhabitants?
pt
Solution: Let y denote the population at time t years and y0 the population at time
t = 0. Then dy
dt
= ky where k is the proportionality factor.
Integrating we have y = Cekt . At time t = 0, y = y0 gives, C = y0 . Thus, y = y0 ekt .
At t = 50, y = 2y0 . ⇒ 2y0 = y0 e50k or e50k = 2.
De
When y = 3y0 we get 3 = ekt . Then 350 = e50kt = (e50k )t = 2t and t = 79 years.
2. In a certain culture of bacteria the rate of increase is proportional to the number present
(a) if it is found that the number doubles in 4 hours, how many may be expected at the
end of 12 hours?
(b) If there are 104 at the end of the 3 hours and 4.104 at the end of five hours, how many
were there in the beginning
Solution: Let x denote the number of bacteria at time t hours. Then dx = kx (a)
s
dt
kt
Integrating , we have x = Ce . Assuming that x = x0 at time t = 0, we have C = x0 and
x = x0 ekt .
th
4 4 5k 4.104
When t = 5, x = 4.10 ⇒ 4.10 = Ce and C = e3k .
104 4.104
Equating the values of C, e3k
= e5k
. Then e2k = 4 and ek = 2.
104 104
Thus the original number is C = e3k
= 8
bacteria.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 24 of 101
Makerere University MTH 2103 - Differential Equations I
03
4.4 Logistic Growth
Numerous attempts have been made to develop models to study the growth of populations.
One means of obtaining a simple model for such a study is to assume that the average birth
rate per individual is a positive constant and that the average death rate per individual is
21
proportional to the population.
If we let x(t) represent the population at time t, then the above assumption leads to the
differential equation
1 dx
= b − ax (4.4)
x dt
TH
where b and a are positive constants. This equation is commonly called the logistic equation
and the growth of the population determined by it is called logistic growth.
1 a
The variables in the logistic equation may be separated to obtain + dx = b dt.
x b − ax
Integrating both sides gives us
x x
ln = bt + c, =⇒ = Aebt . (4.5)
b − ax
-M b − ax
To expedite the study of equation (4.5), let us further assume that at t = 0 the population is
the positive number x0 . Then equation (4.5) may be written
x x0
= ebt
b − ax b − ax0
and upon solving for x we have
bx0 ebt
x(t) = . (4.6)
pt
Exercise 4.3
1. A certain population is known to be growing at the rate given by the logistic equation
s
dx/dt = x(b−ax). Show that the maximum rate of growth will occur when the population
is equal to half its equilibrium size, that is when the population is b/2a.
th
2. A bacterial population is known to have a logistic growth pattern with initial population
1000 and an equilibrium population 10,000. A count shows that at the end of 1 hour
there are 200 bacteria present. Determine the population as a function of time. Ans.
bt
x(t) = 10,000e , where b = ln 94 ≈ 0.81
Ma
9+ebt
3. For the population in number 2 above, determine the time at which the population is
increasing most rapidly and draw a sketch of the logistic curve.
ln 9
Ans. t = ln 9−ln 4
≈ 2.7hr
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 25 of 101
Makerere University MTH 2103 - Differential Equations I
03
4. A college dormitory houses 100 students, each of whom is susceptible to a certain virus
infection. A simple model of epidemics assumes that during the course of an epidemic the
rate of change with respect to time of the number of infected students I is proportional
to the number of infected students and also proportional to the number of uninfected
students, 100 − I
21
(a) If at time t = 0 a single student becomes infected, show that the number of infected
students at time t is given by
100e100kt
I= .
99 + e100kt
TH
(b) If the constant of proportionality k has value 0.001 when t is measured in days, find the
value of the rate of new cases I 0 (t) at the end of each day for the first 9 days.
Ans.(b) 3,6,14,23,24,16,8,3,1.
Exercise 4.4
xy+3x−y−3
= xy−2x+4y−8
2 y2
; y(0) = −1
p
4. y 4 − x2 dy = 4 + y 2 dx
dy dy
7. dx = y2 − 4 8. dx + 2xy = 0 9. dx
dy
= x1+x dy
10. dx = e3x+2y
2
11. y ln x dx
dy
= ( y+1
x
) dy
12. 2 dx − 1
y
= 2x
y
.
1. (cos x cos y + 2x)dx − (sin x sin y + 2y)dy = 0 2. (2xy 2 + 2y) + (2x2 + 2x)y 0 = 0
3. (x + y)(x − y)dx + x(x − 2y)dy = 0 4. (2x + y)dx − (x + 6y)dy = 0
5. (1 + ln x + xy )dx = (1 − ln x)dy 1
6. (x2 y 3 − 1+9x dy 3 2
2 ) dx + x y = 0
dy
9. (5x + 4y)dx + (4x − 8y 3 )dy = 0 10. (1 − 2x2 − 2y) dx = 4x3 + 4xy
11. (x + y)2 dx + (2xy + x2 − 1)dy = 0; y(1) = 1
12. (cos x sin x − xy 2 )dx + y(1 − x2 )dy = 0; y(0) = 2
13. [2x + y 2 − cos(x + y)]dx + [2xy − cos(x + y) − ey ]dy =0
s
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 26 of 101
Makerere University MTH 2103 - Differential Equations I
03
C. Solve the following differential equations.
dy
1. xy 0 + 2y = x2 − x + 1; y(1) = 0 2. dx = xy + 2x + 1
dr
3. (t + y + 1)dt − dy = 0 4. dθ + r tan θ = sec θ
dy dy
2
5. x dx + 3xy + 2x = x + 4x 3
6. dx = e4y1+2x
21
dy
7. dx = e2x + y − 1 8. dx + ( xy − sin y)dy = 0
9. ydx + (2xy − e−2y )dy = 0 10. (y 2 + xy + x2 )dx − x2 dy = 0
y
dy x tan( x )+y
11. dx = csc( xy ) + ( xy ) dy
12. dx = x
13. (−8x + 3y + 17)dx + (3x − y − 6)dy = 0 14. (2x + y − 13)dx − (y + 1)dy = 0
15. (2x + y − 8)dx − (x + 2y − 7)dy = 0 16. (3x + y + 2)dx + (x + y + 2)dy = 0
TH
17. (x + y − 1)dx + (y − x − 5)dy = 0 18. (2x − y)dx + (4x + y − 3)dy = 0
19. (2x − y)dx + (x + y − 3)dy = 0; y(0) = 2 20. (y√− 2x − 1)dx + (x + y − 4)dy = 0
√
21. (x − 3y + 2)dx + 3(x + 3y − 4)dy = 0 22. ( x + y)2 dx = xdy; y(1) = 0
dy
23. (2x − 3y + 4)dx + 3(x − 1)dy = 0; y(3) = 2 24. 2 dx = xy − yx2 ; y(1) = 1
√ dy 1 3
25. (x + xy) dx + x − y = x− 2 y 2 ; y(1) = 1 26. (x + 3y − 4)dx −p (2x − y + 1)dy = 0
2 dy 2
27. xy(1 + xy ) dx = 1; y(1) = 0 28. xydx − x dy = y x2 + y 2 ; y(0) = 1
29. (6x − 3y + 2)dx − (2x − y − 1)dy√= 0 30. (9x − 4y + 4)dx − (2x − y + 1)dy = 0
31. y 3 dx = 2x3 dy − 2x2 ydx; y(1) = 2
-M
32. (x + y − 4)dx − (3x − y − 4)dy = 0; y(4) = 1.
1. A body moves in a straight line so that its velocity exceeds by 2 its distance from a fixed
point of the line. If v = 5 when t = 0, find the equation of motion.
Ans. x = 5et − 2
pt
2. Find the time required for the sum of money to double itself at 5% per annum compounded
continously. Hint: dx
dt
= 0.05x, where x is the amount after t years. Ans. 13.9 years
3. Radium decomposes at a rate proportional to the amount present. If half the original
amount disappears in 1600 years, find the percentage lost in 100 years. Ans. 4.2%
De
4. In a culture of yeast the amount of active ferment grows at a rate proportional to the
amount present. If the amount doubles in 1 hour, how many times the original amount
may be anticipated at the end of 2 34 hours? Ans. 6.73 times the original amount.
5. If, when the temperature of air is 20o C, a certain substance cools from 100o C to 60o C in
10 minutes, find the temperature after 40 minutes. Ans. 25o C
6. A tank contains 100 gal of brine made by dissolving 60 lb of salt in water. Salt water
s
containing 1 lb of salt per gal runs in at a rate 2gal/min and the mixture, kept uniform
by stirring, runs out at the rate 3 gal/min. Find the amount of salt in the tank at the
th
7. Find the time required for a square tank of side 6ft and
√ depth 9ft to empty through a
one inch circular hole in the bottom. (Assume,v = 4.8 h) Ans. 137 min
Ma
8. A tank contains 100gal of brine made by dissolving 80 lb of salt in water. Pure water
runs into the tank at the rate of 4gal/min and the mixture, kept uniform by stirring, runs
out at the same rate. The outflow runs into a second tank which contains 100 gal of pure
water initially and the mixture,kept uniform by stirring, runs out at the same rate. Find
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 27 of 101
Makerere University MTH 2103 - Differential Equations I
03
the amount of salt in the second tank after one hour? Hint: dx
dt
= 4( 45 e−0.04t − 4 100
x
) for
the second tank. Ans. 17.4lb
9. A funnel 10 inch in diameter at the top and 1 inch in diameter at the bottom is 24 inch
deep. If initially full of water, find the time required to empty. Ans. 13.7sec
21
10. Water is flowing into a vertical cylindrical tank of radius 6ft and height 9ft at the rate
6πf t3 /min and is escaping through a hole 1 inch√in diameter in the bottom. Find the
π π
time required to fill the tank. Hint: ( 10 − (24)2 4.8 h)dt = 36πdh. Ans. 65 min
TH
5 Linear dependence and Wronskian
The question we need to answer here is does a linear equation have one solution?
Consider the second- order differential equation y 00 = 0. This equation solves to y 0 = c1 and
y = c1 x + c2 where c1 and c2 are constants of integration.
Regardless of the values given to the constants c1 and c2 the equation y = c1 x + c2 is a solution
-M
to y 00 = 0. Thus there are so many solutions to y 00 = 0 based on the values of c1 and c1 . For
example if c1 = 1, c2 = 1 then we have y1 = x and y2 = 1 as solutions to y 00 = 0 and y = x + 1
a combination of y1 and y2 is also a solution.
However we must formulate the conditions on c1 and c2 to reduce the infinity of solutions to a
single solution and in such a case we need to find conditions which serve to determine c1 and c2 .
For example if y 00 = 0 satisfies initial conditions, y(1) = 1, y 0 (1) = 2 then c1 = 2, and c2 = −1
so that y = 2x − 1 is the stated solution.
pt
dependent) if there exists constants c1 , c2 , . . . , cn not all zero such that c1 f1 +c2 f2 +. . .+cn fn = 0.
If for some c; c1 f1 + c2 f2 + . . . + cn fn = 0 ⇒ c1 = c2 = . . . = cn = 0 ∀n then the functions are
linearly independent.
Examples 5.1
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 28 of 101
Makerere University MTH 2103 - Differential Equations I
03
2. Let f1 (x) = x2 , f2 (x) = x2 . Then c1 f1 + c2 f2 = 0 ⇒ c1 x2 + x2 c2 = 0. And the choice
x = 1, x = 2 gives c1 + 2c2 = 0, 4c1 + c2 = 0, from which we have c1 = 0 = c2 Then the
functions f1 (x) and f2 (x) are linearly independent.
3. Let f (x) = 3x + 12
5
, f2 (x) = 5x + 4. Then c1 f1 + c2 f2 = 0
21
12
⇒ c1 (3x+ 5 )+c2 (5x+4) = 0. And the choice of c1 = 5, c2 = −3 gives c1 f1 +c2 f2 = 0 ⇒ f
and g are linearly dependent.
4. Let f1 (x) = x2 and f2 (x) = x1 . Then c1 f1 + c2 f2 = 0 ⇒ c1 x2 + cx2 = 0. And the choice of
x = 1 and x = 2 gives c1 + c2 = 0, 4c1 + 21 c2 = 0 which clearly gives c1 = c2 = 0 ⇒ f1 and
f2 are linearly independent.
TH
5.2 The Wronskian
Definition 5.3 Let f1 , f2 , . . . , fn be functions that are defined and differentiable at least (n−1)
times in the interval I (i.e possess at least (n − 1) derivatives on I). Then, the determinant of
the functions
0
-M
f1 (x)
f1 (x)
00
f1 (x)
W (x, f1 , f2 , . . . , fn ) =
..
.
f
f
2
0
00
2
(x)
(x)
..
.
.
f2 (x) . . .
.
.
.
.
. f
f
..
.
n
0
00
n
(x)
fn (x)
(x)
(n−1) (n−1) (n−1)
f1 (x) f2 (x) . . . fn (x)
is called the Wronskian (after the Polish Mathematician Hoene Wronski 1778-1853) of the
functions f1 , f2 , . . . , fn and is denoted by W (f1 , f2 , . . . , fn ) or simply W (x, f ).
pt
Examples 5.2
1. f1 (x) = x2 , f2 (x) = 3x − 1
De
2
x 3x − 1
W (f1 , f2 ) = = 2x − 3x2
2x 3
1
2. f1 (x) = x2 , f2 (x) = x3 , f3 (x) = x2
2
x
x3 x−2
W (f1 , f2 , f3 ) = 2x 3x −2x−3
2
s
= 20
2 6x 6x−4
th
Exercise 5.1
1 3
(d) 1 + x, 2 − 3x, 4 − x (e) ln x, ex , (f ) x 2 , x 2
(g) x2 , x2 ln x (h) 6x2 , 14x2 , 2x (i) e7x , e7x
(j) e7x , xe7x (k) ex , xex , x2 ex (l) ex cos 2x, ex sin 2x
(m) x2 − x, x2 + x, x2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 29 of 101
Makerere University MTH 2103 - Differential Equations I
03
6 Homogeneous linear differential equations
Theorem 6.1 Let the functions y1 , y2 , . . . yn be solution of the same linear homogeneous dif-
ferential equation
21
an (x)y (n) + an−1 (x)y (n−1) + . . . + a1 (x)y 0 + a0 (x)y = 0 (6.1)
THEN, for every choice of constants c1 , c2 , . . . cn the linear combinations of the solutions
y = c1 y1 + c2 y2 + . . . + cn yn (6.2)
TH
is also a solution:
Proof:
Clearly (f1 + f2 . . .)0 = f10 + f20 + . . . + fn0 and (cf )0 = cf 0 . Then using (6.2) in (6.1) gives
(n)
(n)
-M
= an (x)[c1 y1 + c2 y2 + . . . + cn yn(n) ] + an−1 (x)[c1 y1
on [a, b]; an (x) 6= 0. THEN the necessary and sufficient condition for y1 , y2 , . . . , yn to be linearly
independent is that the Wronskian of y1 , y2 , . . . , yn be identically different from zero. (i,e
y1 , y2 , . . . , yn are independent if W (y1 , . . . yn ) 6≡ 0).
Lemma 6.1 If y1 , y2 , . . . , yn are linearly independent solutions then the Wronskian never van-
ishes.
s
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 30 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 6.1
1. Verify that y = ex and y = e−x are linearly independent solutions to the differential
equation y 00 − y = 0 and write down its general solution and a unique solution subject to
y(0) = 2, y 0 (0) = 8
21
Solution:
(i) We first show that they are solutions: y1 = ex , y10 = ex , y100 = ex . Then y 00 − y =
ex − ex = 0. Therefore y1 = ex is a solution. y2 = e−x , y20 = −e−x , y200 = e−x . Then
y 00 − y = e−x − e−x = 0. Therefore y2 = e−x is a solution.
TH
(ii) To show that they are linearly independent, we compute their Wronskian. Thus
x −x
x −x
e e
W (e , e ) = x = −1 − 1 = −2 6= 0.
e −e−x
Since the Wronskian is not zero then they are linearly independent.
Verify that the functions y1 and y2 are linearly independent solutions of the given differential
equation. In each case find a general solution ( or a solution satisfying the given conditions).
De
4. x2 y 00 − xy 0 − 3y = 0; y1 = x−1 , y2 = x3
Definition 6.1 Let y1 , y2 be two linearly independent solutions to the second order differential
th
00
equation a2 (x)y + a1(x)y 0 + a0 (x)y = 0. THEN the Wronskian of y1 , y2 is defined as
y y
W (y1 , y2 ) = 10 20 = y1 y20 − y2 y10 .
y1 y2
Theorem 6.3 Let y1 , y2 be two linearly independent solutions to the second order differential
Ma
equation a2 (x)y 00 + a1 (x)y 0 + a0 (x)y = 0. THEN the Wronskian W (y1 , y2 ) satisfies the first order
differential equation
a1 (x)
W0 + W =0 (6.3)
a2 (x)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 31 of 101
Makerere University MTH 2103 - Differential Equations I
03
Proof:
Let y1 , y2 be linearly independent solutions to a2 (x)y 00 + a1 (x)y 0 + a0 (x)y = 0.
THEN a2 (x)y100 + a1 (x)y10 + a0 (x)y1 = 0 and a2 (x)y200 + a1 (x)y20 + a0 (x)y2 = 0 give
21
)
y100 = − aa21 (x)
(x) 0
y1 − a0 (x)
y
a2 (x) 1
00 a1 (x) 0 a0 (x) (6.4)
y2 = − a2 (x) y2 − y
a2 (x) 2
y1 y2
And W (y1 , y2 ) = 0 = y1 y20 − y2 y10
y1 y20
⇒ W 0 = y1 y200 + y20 y10 − y2 y100 − y10 y20 ⇒ W 0 = y1 y200 − y2 y100 (6.5)
TH
Then using (6.4) in (6.5) gives
a1 (x) 0 a0 (x) a1 (x) 0 a0 (x)
W 0 = y1 [− y2 − y2 ] − y2 [− y − y1 ]
a2 (x) a1 (x) a2 (x) 1 a2 (x)
a1 (x) a0 (x) a1 (x) a1 (x)
= [−y1 y20 + y2 y10 ] + [y1 y2 − y2 y1 ] = −[(y1 y20 − y2 y10 ] =− W
a2 (x) a2 (x) a2 (x) a2 (x)
⇒ W0 + -M
a1 (x)
a2 (x)
W =0 (6.6)
Z
a1 (x) −
R a1 (x)
dx+C −
R a1 (x)
dx
ln W = − dx + C ⇒ W = e a2 (x)
⇒ W = ke a2 (x)
called Abel’s formula
a2 (x)
De
Examples 6.2
s
x2 +2
1. Solve the differential equation: xy 00 − 2y 0 + x
y = 0, given that y1 = x sin x is one of
the two linearly independent solutions.
th
R a (x)
− a1 (x) dx 2
R
dx
Solution: Here a1 (x) = −2, a2 (x) = x. W = e 2 =e x = e2 ln x = x2
y y
W (y1 , y2 ) = 10 20 = y1 y20 − y2 y10 = x2
y1 y2
y1 y20 −y2 y10 x2 x2
⇒ = = (x sin = csc2 x
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 32 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 6.2
21
2. (x2 + 1)y 00 − 2xy 0 + 2y = 0; y1 = −x
3. xy 00 + (1 − 2x)y 0 + (x − 1)y = 0; y1 = ex ,
TH
6.2 Method of Order Reduction
Let y1 , y2 be linearly independent solutions to the second order differential equation
2y10 a1 (x) 0
ν 00 + [ + ]ν = 0.
y1 a2 (x)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 33 of 101
Makerere University MTH 2103 - Differential Equations I
03
Theorem 6.4 (Order Reduction)
21
with y1 a known solution. Then the substitution y2 = νy1 (where ν is an unknown function to
be determined) transforms the second order differential equation (6.9) to a first order differential
equation
2y 0 a1 (x)
z0 + [ 1 + ]z = 0 (6.10)
y1 a2 (x)
TH
where z = ν 0 .
The proof of this theorem is clearly the preceeding discussion.
Proof:
z0 + [
2y10
+
y12
a1 (x) z0
]z = 0 ⇒ = −[ 1 +
2y 0
-M
a1 (x)
]
y1 a2 (x) z y1 a2 (x)
2y 0
Z
a1 (x)
⇒ ln z = [− 1 − ]+C
y1 a2 (x)
R 2y1 R a1 (x) R a1 (x)
− dx − dx − dx
z=e y2
.e a2 (x)
.eC ⇒ z = ke−2 ln y1
.e a2 (x)
pt
R a1 (x)
− dx
ke a2 (x)
z= (6.11)
y12
De
R a1 (x)
Z − dx
e a2 (x)
y = c1 y1 + c2 y2 = c1 y1 + c2 y1 dx
th
y12
Proof:
Since z = ν 0 then (6.11) gives
Ma
R a1 (x)
− dx
0 e a2 (x)
ν = (taking the constant c = 0 or k = 1)
y12
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 34 of 101
Makerere University MTH 2103 - Differential Equations I
03
R a1 (x)
Z − dx
e a2 (x)
Thus ν = dx
y12
And y2 = νy1 gives R a1 (x)
Z − dx
e a2 (x)
21
y2 = y1 dx.
y12
Thus the general solution y1 = c1 y1 + c2 y2 becomes
R a1 (x)
Z − dx
e a2 (x)
y = c1 y 1 + c2 y 1 dx.
y12
TH
Examples 6.3
2. Given y = x−1 is a solution to the differential equation 2x2 y 00 + 3xy 0 − y = 0 obtain the
second linearly independent solution and write down the general solution.
pt
1 1
note that 32 is a multiple term√ of x 2 and as such this leads us to taking y2 = x 2 . And
y = c1 y1 + c2 y2 = c1 x−1 + c2 x.
− dx dx 2)
0 e a2 (x)
e 1−x2 e− ln(1−x 1
ν = = = =
y12 x2 x2 x2 (1 − x2 )
Z Z Z Z
dx dx 1 1 1 dx
⇒ν= = + dx +
x2 (1 − x2 ) x2 1−x
Ma
2 1+x 2
1 1 1+x
⇒ν=− 2
+ ln ( )
x 2 1−x
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 35 of 101
Makerere University MTH 2103 - Differential Equations I
03
And y2 = νy1 ⇒ y2 = x(− x12 + 12 ln 1+x
1−x
) so that y = c1 y1 + c2 y2
gives the general solution as y = c1 x + c2 (− x1 + 12 x ln 1−x
1+x
).
Remarks :
21
1. One great advantage of order reduction (and Abel’s formula too!) is that it solves both
constant coefficient and variable coefficient differential equations whose one solution is
known.
2. The reduction of order procedure can be used more generally to reduce a homogeneous
linear nth order differential equation to a homogeneous (n-1)th order equation.
TH
Examples 6.4
Use the substitution y = νy1 to reduce the third order differential equation
y 000 − y 0 = 0 to a second order differential equation.
Solution: y = νy1 ,
y10 = ν 0 y1 + νy10
-M
y 00 = ν 0 y10 + ν 00 y1 + νy100 + ν 0 y10 = ν 00 y1 + 2ν 0 y10 + νy100
y 000 = ν 000 y1 + ν 00 y10 + 2[ν1000 + ν 00 y10 ] + νy1000 + ν 0 y100
= ν 000 y1 + 3ν 00 y10 + 3ν 0 y100 + 3ν 0 y100 = [y1 ν 000 + 3y10 ν 00 + 3y100 ]ν 0 − [y 000 − y 0 ]ν = 0
3y 0
⇒ ν 000 + y11 ν 0 = 0 and letting w = ν 0 in which w0 = ν 00 and w00 = ν 000 we obtain a second
order differential equation
y0 y 00
w00 + 3 1 w0 + 3 1 = 0. (6.12)
y1 y1
And since y1 is known then (6.12) is easily further reducible to first order with
pt
y0
a2 (x) = 1 and a1 (x) = 3 y11 if one root is known.
Exercise 6.3
1. Obtain by method of order reduction, the second linearly independent solution and the
De
2. Reduce the third order differential equations by substitution y = νy1 to second order
s
In cases (a) and (d) solve the equation if the second solutions are e2x and ex respectively.
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 36 of 101
Makerere University MTH 2103 - Differential Equations I
03
3. Solve the differential equation by order reduction.
(a) x3 y 000 − 3x2 y 00 + 6xy 0 − 6y = 0; y1 (x) = x (b) y 00 − 4y 0 − 12y = 0; y1 = e6x
(c) y 00 + 2y 0 + y = 0; y1 = e−x (d) x2 y 00 + 2xy 0 = 0; y1 = 1
(e) x2 y 00 + 2xy 0 = 0; y1 = x−1 (f ) x2 y 00 + 2xy 0 − 2y = 0; y1 = x
21
2 00 0 −1
(g) x y + 3xy + y = 0; y1 = x ln x (h) x2 y 00 + 3xy 0 + y = 0; y1 = x−1
(i) x2 y 00 − x(x + 2)y 0 + (x + 2)y = 0; y1 = x (j) (x − 1)y 00 − xy 0 + y = 0; y1 = ex
(k) xy 00 − y 0 + 4x3 y = 0; y1 = sin x2√ (l) (1 − x cot x)y 00 − xy 0 + y = 0; y1 = x
1 1
(m) y 00 − ( x1 − 16x3
2 )y = 0; y1 = x e
4
2 x
(n) x2 y 00 + xy 0 + (x2 − 41 )y = 0; y1 = x− 2
TH
7 Constant-Coefficient, Homogeneous Equations
Definition 7.1 A homogeneous nth order linear differential equation with constant coefficients
takes the form an y (n) + an−1 y (n−1) + . . . + a1 y 0 + a0 y = 0 where
ai , i = 0, 1, 2, . . . , n are all constants with an 6= 0.
Consider a second order homogeneous linear differential equation with constant coefficients
-M
ay 00 + by 0 + cy 0 = 0,
where a, b, c are all real constants; a 6= 0. Let us denote by m2 = y 00 , m = y 0 , m0 = y. Then
equation (7.1) is
(7.1)
am2 + bm + c = 0. (7.2)
Definition 7.2 Equation (7.2) is commonly known as the characteristic (auxiliary) equation of
the differential equation (7.1). The roots, r1 and r2 of the equation (7.2) are called characteristic
pt
(or auxiliary) roots of the differential equation. Equation (7.2) is clearly a quadratic equation
and in principle, if r1 and r2 are roots of such an equation, then we can write (7.2) as
m2 − (r1 + r2 )m + r1 r2 = 0. (7.3)
De
m2 − (r1 + r2 )m + r1 r2 = 0 ⇒ y 00 − (r1 + r2 )y 0 + r1 r2 y = 0
d 0
⇒ y 00 − r1 y 0 − (y 0 − r1 y)r2 = 0 ⇒ (y − r1 y) − (y 0 − r1 y)r2 = 0.
s
dx
Let ν = y 0 − r1 y. Then
th
dν
− r2 ν = 0 (7.4)
dx
Solving (7.4) by separation of variables gives ν = Cer2 x .
And ν = y 0 − r1 y ⇒ y 0 − r1 y = Cer2 x . The integrating factor of which is e−r1 x .
Thus dxd
(e−r1 x .y) = cer2 x .e−r1 x = Ce−(r1 −r2 )x .
Ma
−1
This integrates to e−r1 x .y = − r1 C
−r2
e−(r1 −r2 ) + C1 ⇒ y = c1 er1 x + r1 −r2
er2 x
C
OR y = c1 er1 x + c2 er2 x (where c2 = − ) (7.5)
r1 − r2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 37 of 101
Makerere University MTH 2103 - Differential Equations I
03
Conclusion: If am2 + bm + c = 0 is an auxiliary equation of a second order linear differential
equation with r1 and r2 as its real and distinct roots. THEN the two linearly independent
solutions to the differential equation are y1 = er1 x and y2 = er2 x .
And the general solution is y = c1 er1 x + c2 er2 x .
21
Generally, if r1 , r2 , . . . , rn are n real and distinct roots of the auxiliary (characteristic) equation
of the nth order homogeneous linear differential equation with constant coefficients, THEN the
n linearly independent solutions of the differential equation are
y1 = er1 x , y2 = er2 x , . . . , yn = ern x and the general solution is y = c1 er1 x + c2 er2 x + . . . + cn ern x .
Examples 7.1
TH
1. Solve the differential equation: y 00 + 5y 0 + 6y = 0.
Solution: The auxiliary equation is
r2 + 5r + 6 = 0 ⇒ r1 = −3, r2 = −2.
And so the two linearly independent solutions are y1 = e−3x , y2 = e−2x . Thus the general
solution is y = c1 e−3x + c2 e−2x .
-M
2. Solve the differential equation y 00 − 4y 0 − 5y = 0 y(0) = 1, y 0 (0) = 2.
Solution: The auxiliary equation is r2 − 4r − 5 = 0 ⇒ r1 = 5, r2 = −1. Thus the
two linearly independent solutions are y1 = e5x , y2 = e−x and the general solution is
y = c1 e5x + c2 e−x . From
rx
ν = y 0 − ry, gives dxdν
− rν = 0 whose solution is ν = c2 ee . And ν = y 0 − ry ⇒ y 0 − ry = c2 erx .
Whose integrating factor is e−rx .
d
(e−rx .y) = erx .e−rx = c2 ⇒ e−rx y = c1 + c2 x.
th
Then dx
Conclusion: Let the two roots r1 and r2 of the auxiliary equation to the second order homoge-
neous linear differential equation with constant coefficients be equal (with r1 = r2 = r). THEN
the two linearly independent solutions corresponding to the root r are y1 = erx and y2 = xerx
and the general solution is y = c1 erx + c2 xerx
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 38 of 101
Makerere University MTH 2103 - Differential Equations I
03
In general if the roots of the auxiliary equation are repeated to the multiplicity k, then the k
linearly independent solutions would be
y1 = erx , y2 = xerx , y3 = x2 erx , . . . , yk = xk−1 erx . And the general solution is
21
Examples 7.2
TH
Solution: The characteristic equation is r2 − 4r + 4 = 0 ⇒ r = 2. And so
y1 = e2x , y2 = xe2x so that the general solution is y = (c1 + c2 x)e2x
Exercise 7.1
1. y 00 + 2y 0 − 3y = 0 2. 4y 00 + 4y 0 + y = 0
3 6y 00 − y 0 − y = 0 4. y 00 + 5y 0 = 0
5 y + y − 2y = 0; y(0) = 1, y (0) = 1 6 y 00 + 8y 0 − 9y = 0; y(1), y 0 (1) = 0
00 0 0
s
independent solutions as y1 = er1 x and y2 = er2 x . Then in this case we shall have
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 39 of 101
Makerere University MTH 2103 - Differential Equations I
03
Remark:
Using the Maclaurin’s expansion we can show easily that
x2 x3 x4 x5
ex = 1 + x + + + + + ...
2! 3! 4! 5!
21
(ax)2 (ax)3 (ax)4 (ax)5
eax = 1 + ax + + + + + ...
2! 3! 4! 5!
(bx)2 (bx)4
cos bx = 1 − + − ...
2! 4!
(bx)3 (bx)5
sin bx = bx − + + ...
3! 5!
TH
Then
(iβ)2 x2 (iβ)3 x3 (iβ)4 x4 (iβ)5 x5
eiβx = 1 + iβx + + + + + ...
2! 3! 4! 5!
(βx)2 (βx)4 (βx)3 (βx)5
= (1 − + + . . .) + i(βx − + + . . .)
2! 4! 3! 5!
= cos βx + i sin βx.
Thus -M
e(α+iβ)x = eαx .eiβx
= eαx (cos βx + i sin βx)
and
e(α−iβ)x = eαx .e(−iβ)x
= eαx (cos (−βx) + i sin (−βx))
pt
y1 = eαx cos βx and y2 = eαx sin βx and the general solution is then
y = eαx (A cos βx + B sin βx) .
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 40 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 7.3
21
Thus r1 = −2 + 3i, r2 = −2 − 3i. And clearly α = −2, β = 3.
Then the general solution is y = e−2x (A cos 3x + B sin 3x). [Note that
y1 = e−2x cos 3x and y2 = e−2x sin 3x are two linearly independent solutions of the differ-
ential equation].
TH
Solution: The auxiliary equation is
√ √
r3 − 2r2 + 5r − 10 = 0 ⇒ r1 = 2, r2 = ±i 5, r3 = −i 5.
√ √
Then the general equation is y = c1 e2x + c2 cos 5x + c3 sin 5x
Thus
Examples 7.4
Exercise 7.2
s
1. y 00 + y = 0 2. y 00 − 6y 0 + 10y = 0
th
3. y 00 + 4y 0 + 6y = 0 4. 4y 00 + 4y 0 + 6y = 0
5. y 00 + 4y 0 + 8y = 0 6. y 00 + 7y = 0
7. y 00 + 2y 0 + 5y = 0 8. 2y 00 + 13y 0 − 7y = 0
9. 3y 00 + 4y 0 + 9y = 0 10. y 00 + 2y 0 + 2y = 0; y(0) = 2, y 0 (0) = 1
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 41 of 101
Makerere University MTH 2103 - Differential Equations I
03
8 Nonhomogeneous, Constant-coefficient Equations.
Definition 8.1 A general nth-order nonhomogeneous linear differential equation with constant
coefficients is of the form an y (n) + an−1 y (n−1) + . . . + a1 y 0 + a0 y = g(x)
where ai i = 0, 1, 2, . . . , n are all real constants with an 6= 0; and g(x) 6= 0. A second order
21
nonhomogeneous linear differential equation with constant coefficients has the form
ay 00 + by 0 + cy = g(x) (8.1)
where a 6= 0, b, c are all real constants and g(x) 6= 0. This is generally an equation
L[y] = g(x).
TH
To find the general solution to the differential equation,
(a) We find first the solution to the homogeneous part L[y] = 0. This solution (of the
homogeneous part) is usually known as the complementary solution and is denoted by
yc = c1 y1 + c2 y2 ; where y1 and y2 are the linearly independent solutions to L[y] = 0.
-M
(b) Thereafter we need to solve the equation for the nonhomogeneous part L[y] = g(x). The
solution to the nonhomogeneous part is usually known as the particular solution and is
denoted by yp . THEN the general solution to the differential equation is y = yc + yp .
Theorem 8.1 Let yc be a solution to the homogeneous part of the second order differential
equation
ay 00 + by 0 + cy = g(x) (8.2)
and let yp be the particular solution to the non homogeneous part of the differential equation.
THEN the general solution of the differential equation (8.2)is y = yc + yp
pt
Proof: Consider L[y] = g(x) in which L[yc ] = 0 then yc = y − yp is a solution since it can be
written as a linear combination of y and yp .
Remark: The particular solution depends on the nature of the RHS function g(x).
De
Since the methods of finding the complementary solution have already been dealt with, we
discuss in this section, different methods of finding the particular solution and hence of solving
the differential equation.
exponential, trigonometrical, sinusoidal functions. The following examples explain the nature
of the applications.
th
Examples 8.1
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 42 of 101
Makerere University MTH 2103 - Differential Equations I
03
To find yp , we first note that g(x) = 3x + 1 is a polynomial of degree 1. So we try a
solution of the form yp = Ax + B, where A and B are constants to be determined (hence
the method of undetermined coefficients). If yp = Ax + B, then yp0 = A and yp00 = 0. And
using these in the differential equation we get 0 − 3A − 4(Ax + B) ≡ 3x + 1. By comparing
coefficients we note that
21
coefficient of x: −4A = 3 ⇒ A = − 34
5
Constants: −3A − 4B = 1 ⇒ B = 16
Therefore yp = Ax + B = − 34 x + 5
16
.
Thus y = yc + yp ⇒ y = c1 e4x + c2 e−x − 34 x + 5
16
TH
If g(x) is a polynomial of degree n we try the function yp as a polynomial of degree n
with n constants to be determined. For example g(x) = 2x2 + 3x − 1
⇒ yp = Ax2 + Bx + C, g(x) = x2 ⇒ yp = Ax2 + Bx + C, g(x) = 4 ⇒ yp = A.
coefficients of x2 : −4A = 4 ⇒ A = −1
3
coefficients of x: −6A − 4B = 0 ⇒ B =
2
13
constants : 2A − 3B − 4C = 0 ⇒ c = −
8
pt
1. The reader may wonder what would happen if a higher degree polynomial such as
De
ax4 + Bx3 + Cx2 + Dx + E was assumed for yp for g(x) with lower degree. The answer
is that all coefficients beyond the quadratic term would turn out to be zero. Thus with
exceptional cases to be noted later; it is unnecessary to assume for yp a polynomial of
higher degree than the degree in the nonhomogeneous term g(x)..
2. If g(x) = 4x2 , do not take yp = Ax2 and leave out the other terms (or if g(x) = 4x2 +2, do
not take yp = Ax2 + B). You must not assume any other terms omitted in the polynomial
s
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 43 of 101
Makerere University MTH 2103 - Differential Equations I
03
To find yp we try yp = Ae3x ⇒ yp0 = 3Ae3x ⇒ yp00 = 9Ae3x Then the differential equation
gives
9Ae3x + 3(3Ae3x ) + 2(Ae3x ) = 10e3x .
1
⇒ 20Ae3x = 10e3x ⇒ 20A = 10 ⇒ A = .
21
2
−2x
Thus yp = 12 e3x and the general solution y = yc + yp is y = c1 e + c2 e−x + 21 e3x .
1 3
And y = c1 e−2x + c2 e−x + e3x ⇒ y 0 = −2c1 e−2x − c2 e−x + e3x .
2 2
1
y(0) = 1 ⇒ c1 + c2 + 2 = 1 2c1 + 2c2 = 1 1
TH
And 0 3 ⇒ ⇒ c1 = 1, c2 = −
y (0) = 0 ⇒ −2c1 − c2 + 2 = 0 −4c1 − 2c2 = −3 2
Thus we have the solution as y = e−2x − 12 e−x + 12 e3x . [Note that the initial conditions
must be used in the general solution BUT not in yc only.]
Case III: If g(x) involves trigonometrical functions of sinusoidal type
g(x) = sin 2x; yp = A cos 2x + B sin 2x
g(x) = 2 cos x yp = A cos x + B sin x
-M
g(x) = x sin 3x yp = (Ax + B) cos 3x + (Cx + D) sin 3x
g(x) = x sin x + 2 cos x; yp = (Ax + B) sin x + (Cx + D) cos x
Examples 8.2
yp = A cos x + B sin x
yp0 = −A sin x + B cos x
yp00 = −A cos x − B sin x
De
5
And so yp = − 17 cos x + 3
17
sin x. Thus y = c1 e4x + c2 e−x − 5
17
cos x + 3
17
sin x.
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 44 of 101
Makerere University MTH 2103 - Differential Equations I
03
1. If the proposed yp has a term that is already a solution of the differential equation in yc .
Solve the differential equation: y 00 − 3y − 4y = e−x .
Solution: The complementary solution is yc = c1 e4x + c2 e−x .
Clearly, for g(x) = e−x , we would take yp = Ae−x ⇒ yp0 = −Ae−x , yp00 = Ae−x . so that
21
(A + 3A − 4A)e−x = e−x ⇒ 0.Ae−x = e−x .
And in this case we cannot determine A. Where is the problem? The problem lies in the
choice of yp we have taken. It contains a term e−x which is a solution to the homogeneous
part (see the complementary solution yc ). To rectify this we have to modify our choice
by multiplying through yp by x. Thus we try
TH
yp = Axe−x
yp0 = e−x (−Ax + A)
yp00 = e−x (Ax − 2A)
-M 1
(Ax − 2A − 3(−Ax + A) − 4Ax)e−x = e−x ⇒ −5A−x = e−x ⇒ −5A = 1 ⇒ A = − .
5
Thus yp = − 15 xe−x and the general solution is y = c1 e4x + c2 e−x − 51 xe−x .
r2 − 4r = 0 ⇒ r(r − 4) = 0 ⇒ r = 0, r = 4 ⇒ yc = c1 + c2 e4x .
pt
With g(x) = 2x, we try yp = Ax + B. But this has a constant B. which is the same as
a solution in yc ( a constant c1 ) so we must try yp = x(Ax + B) = Ax2 + Bx. This gives
yp0 = 2Ax + B, yp00 = 2A. So that 2A − 4(Ax + B) = 2x. And comparing coefficients gives
coefficients of x: −8A = 2 ⇒ A = − 41 , constants: 2A − 4B = 0 ⇒ B = − 18 . Thus
De
This principle is a useful tool while using the method of undetermined coefficients. It states
th
that if you have a second order nonhomogeneous linear differential equation with constant
coefficients ay 00 + by 0 + cy = g(x). with g(x) made up of a sum (or difference ) of different
functions g1 (x), g2 (x), g3 (x), then solve for particular solution of the differential equation in the
following related differential equations.
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 45 of 101
Makerere University MTH 2103 - Differential Equations I
03
Then the particular solution is the sum of the three solutions yp1 , yp2 , yp3 . And the general
solution is y = yc + yp1 + yp2 + yp3 .
The idea here is to lessen or ease the burden of solving for yp with very many constants to be
determined. For instance if we solve y 00 − 4y = 3x + 2e−3x + 5x cos 2x we would expect to use
yp = Ax + B + Ce−3x + (Dx + E) cos 2x + (F x + G) sin 2x ( a whole 7 constants to handle in
21
the process).
The superposition principle then says:
TH
(b) Solve for yp , for g1 (x) = 3x : yp1 = Ax + B ⇒ yp0 1 = A ⇒ yp001 = 0
⇒ 0 − 4(4x + B) = 3x ⇒ 4B = 0 ⇒ B = 0, −4A = 3 ⇒ A = −3 7
. Then yp1 = − 34 x.
(c) Solve for yp2 , for g2 (x) = 2e−3x : yp2 = Ae−3x ⇒ yp0 2 = −3Ae−3x , yp002 = 9Ae−3x . This
gives
2
9Ae−3x − 4Ae−3x = 2e−3x ⇒ 5A = 2 ⇒ A = .
2 −3x
Then yp2 = 5 e .
= (−4A − 4D) sin 2x + (−4B + 4C) cos 2x − 4Ax cos 2x − 4Cx sin 2x
This is a far better organised and simpler approach than using one yp for a big sum of
g(x). However care must be taken once again, at the choice of each trial ypi to check and
see if there is a term (or no term) that is in the solution to the homogeneous equation.
The other advantage is that you avoid multiplying by xs to the whole big yp and simply
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 46 of 101
Makerere University MTH 2103 - Differential Equations I
03
8.4 Limitation of the method of undetermined coefficients
The method of undetermined coefficients only handles particular forms of g(x). If g(x) takes
the forms say; g(x) = tan x, sec2 x, x1 , xcosec x, etc then the method fails to solve for the
particular solution.
21
Exercise 8.1
TH
1. 2y 00 − 4y 0 − 6y = 3e2x 2. y 00 + y 0 − 2y = 2x; y(0) = 0, y 0 (0) = 1
3. y 00 + 2y 0 = 3 + 4 sin 2x 4. y 00 + 4y = x2 + 3ex ; y(0) = 0, y 0 (0) = 2.
5. y 00 + 9y = x2 e3x + 6 6. y 00 − 2y 0 + y = xex + 4; y(0) = 1, y 0 (0) = 1
7. 2y 00 + 3y 0 + y = x2 + 3 sin x 8. y 00 + y = 3 sin 2x + x cos 2x
1. y 000 − 2y 00 + y 0 = x3 + 2ex
000 0 −x
3.y − y = xe + 2 cos x
-M
used to solve the following differential equations. Do not evaluate the constants
2. y iv − 2y 00 + y = ex + sin x
4.y iv − y 000 − y 00 + y 0 = x2 + 4 + x sin x
5. y iv + 2y 000 + 2y 00 = 3ex + 2xe−x + e−x sin x
Note an interesting point here that we only need to multiply x to the affected trial of yp if we
are confronted with a sum ( or difference) of functions in principle of superposition.
We have seen that the method of undetermined coefficients is a simple procedure for determining
particular solutions when the equation has constant coefficients and the nonhomogeneous term
is of special type. Indeed as it has been said, the method of undetermined coefficients does not
work for some other types of the function such as g(x) = tan x, g(x) = x csc x, x12 etc. In
addition, the method does not handle variable coefficients. In this section we discuss a more
general method that can handle both constant coefficients and variable coefficients differential
equation, in addition to any form of the nonhomogeneous function.
s
(8.3)
which in standard form is y 00 + p(x)y 0 + q(x)y = g(x) where p and q are constant functions of
x (or constants ). Let y1 , y2 be two linearly independent solutions of the homogeneous part,
L[y] = 0 of (8.3). Then the complementary solution is yc = c1 y1 + c2 y2
Ma
Let the particular solution yp take the form yp = ν1 (x)y1 (x) + ν2 (x)y2 (x) where ν1 (x) and ν2 (x)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 47 of 101
Makerere University MTH 2103 - Differential Equations I
03
are functions to be determined. Then
y p = ν1 y 1 + ν2 y 2 (8.4)
⇒ = yp0 ν10 y1
+ ν2 y2 + ν1 y10 + ν2 y20
0
21
Then yp0 = ν1 y10 + ν2 y20 (8.6)
And yp00 = ν10 y10 + ν1 y100 + ν20 y20 + ν2 y200 (8.7)
[ν10 y10 + ν1 y100 + ν20 y20 + ν2 y200 ] + p(x)[ν1 y10 + ν2 y20 ] + q(x)[ν1 y1 + ν2 y2 ] = g(x)
TH
⇒ [ν10 y10 + ν20 y20 ] + ν1 [y100 + p(x)y10 + q(x)y1 ] + ν2 [y200 + p(x)y20 + q(x)y2 ] = g(x)
⇒ [ν10 y10 + ν20 y20 ] + ν1 L[y1 ] + ν2 L[y2 ] = g(x)
And since y1 and y2 are solutions to the homogeneous part L[y] = 0, then L[y1 ] = 0 and
L[y1 ] = 0.
This gives ν10 y10 + ν2 y20 = g(x). Then together with (8.5) we have
-M
ν10 y1 + ν20 y2 = 0,
ν10 y10 + ν20 y20 = g(x).
)
(8.8)
And solving simultaneously (8.8) for ν10 (x) and ν20 (x) gives
−g(x)y2 (x) g(x)y1 (x)
ν10 (x) = 0 0
and ν20 (x) = (8.9)
y1 y2 − y2 y1 y1 y20 − y2 y20
pt
and so W (y1 , y2 ) is never zero (or can never vanish) in the interval defining the solutions. Thus
Z Z
gy2 gy1
ν1 (x) = − dx and ν2 (x) = dx
W (y1 , y2 ) W (y1 , y2 )
[Note that the coefficient of y 00 must be 1, to determine the actual g(x) to be used]. And
gives Z Z
gy2 gy1
yp = y1 − dx + y2 dx
W (y1 , y2 ) W (y1 , y2 )
th
y1 ν10 + y2 ν20 = 0
y10 ν10 + y20 ν20 = g(x)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 48 of 101
Makerere University MTH 2103 - Differential Equations I
03
0
y1 y2 ν1 0 y1 y2
can be written as 0 0 = . If A = , then |A| = W and we
y1 y2 ν20 g(x) y10 y20
y y
have W = 10 20 = y1 y20 − y2 y10
y1 y2
21
0
(a) Replacing the first column in W with the column of constant terms gives
g(x)
0 y2
W1 = = −gy2 (8.11)
g(x) y20
TH
0
(b) Replacing the second column in W with the column of constant terms gives
g(x)
y
W2 = 10
0
-M
y1 g(x)
= gy1
Functions (8.11) and (8.12) are the numerators in (8.10). Then, clearly we can write
(8.12)
W1 (y1 , y2 ) W2 (y1 , y2 )
ν10 (x) = and ν20 (x) =
W (y1 , y2 ) W (y1 , y2 )
where W1 (y1 , y2 ) is the Wronskian obtained by replacing the first column in W (y1 , y2 ) with a
column of RHS terms and W2 (y1 , y2 ) is theWronskian
obtained by replacing the second column
pt
0
in W (y1 , y2 ) with a column of the RHS [Note of the subscript 1 on W1 to denote
g(x)
first column and 2 on W2 to denote second column ]. This helps us to avoid working with long
expressions.
De
Examples 8.3
ex
1. Solve the differential equation: y 00 − 2y 0 + y = 1+x2
.
Solution: The auxiliary equation of the homogeneous part is r2 − 2r + 1 = 0 ⇒ r = 1.
Then yc = (c1 + c2 x)ex ⇒ x x
yx1 = e , yx2 = xe are the two linearly independent solutions.
y y e xe
W (y1 , y2 ) = 10 20 = x x
= e2x (x + 1 − x) = e2x .
y1 y2 e e (x + 1)
s
x 2
0 xex = xe2x2 .
Since g(x) = e /(1 + x ), then W1 (y1 , y2 ) = ex x
1+x2
e (x + 1) 1+x
th
W1 (y1 , y2 ) xe2x x
And ν10 (x)
= =− 2 2x
=−
W (y1 , y2 ) (1 + x )e 1 + x2
e2x
Z x
x 1 2
e 0
⇒ ν1 (x) = − dx = − ln (1 + x ). Also W (y , y ) = =
Ma
2 1 2
x
1 + x2 2 e x e 2 1 + x2
1+x
2x Z
W2 (y1 , y2 ) e 1 1
⇒ ν20 (x) = = 2 2x
= 2
⇒ ν2 (x) = dx = tan−1 x.
W (y1 , y2 ) (1 + x )e 1+x 1 + x2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 49 of 101
Makerere University MTH 2103 - Differential Equations I
03
1
Thus yp = ν1 y1 + ν2 y2 ⇒ yp = − ln (1 + x2 ).ex + (tan−1 x)(xex )
2
1 x
= − e ln (1 + x2 ) + xex tan−1 x.
2
21
And y = yc + yp ⇒ y = c1 ex + c2 xex − 12 ex ln (1 + x2 ) + xex tan−1 x.
TH
cos x sin x
W (y1 , y2 ) = = cos2 x + sin2 x = 1
− sin x cos x
0 sin x
Since g(x) = sec x, W1 (y1 , y2 ) = = − sin x sec x = − tan x.
sec x cos x
Z
W1 (y1 , y2 )
Thus ν10 (x) = = − tan x ⇒ ν1 (x) = − tan xdx = ln cos x.
W (y1 , y2 )
W2 (y1 , y2 ) =
-M
cos x 0
=1
− sin x sec x
Z
W2 (y1 , y2 )
Thus ν20 (x) = = 1 ⇒ ν2 (x) = dx = x
W (y1 , y2 )
Then yp = ν1 y1 + ν2 y2 = (cos x) ln cos x + x sin x and the general solution is
y = yc + yp ⇒ y = c1 cos x + c2 sin x + (cos x) ln cos x + x sin x.
pt
and in (8.13) we use the method of variation of parameters for g(x) = tan x, to get
yp1 = − cos x ln(sec x + tan x) and we use method of undetermined coefficients for
g(x) = 3x − 1 (because it is simpler in this case) with yp2 = Ax + B; so that yp2 = 3x − 1.
Then yp = yp1 + yp2 = −(cos x) ln (sec x x + tan x) + 3x − 1. And the general solution is
s
yp = ν1 y1 + ν2 y2 + . . . + ν1 yn (8.14)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 50 of 101
Makerere University MTH 2103 - Differential Equations I
03
so that
yp0 = [ν1 y10 + ν2 y20 + . . . + νn yn ] + [ν10 y1 + ν20 y2 + . . . + νn0 yn ]
Setting
ν10 y1 + ν20 y2 + . . . + νn0 yn = 0 (8.15)
21
gives
yp0 = ν1 y10 + ν2 y20 + . . . + νn yn0
⇒ yp00 = [ν1 y100 + ν2 y200 + . . . + νn yn00 ] + [ν10 y10 + ν20 y20 + . . . νn0 yn0 ]
And setting
TH
ν10 y10 + ν20 y20 + . . . + νn0 yn0 = 0 (8.16)
gives y 00 = ν 0 y100 + ν2 y200 + . . . + νn yn00 .
Continuing this process through (n-1) derivatives gives
(m) (m)
yp(m) = ν1 y1 + ν2 y 2 + . . . + νn yn(m) (8.17)
The sufficient condition for (8.19) to have solutions is that the determinant of coefficients
is not zero. Hence using Cramer’s rule we can get
W1 (y1 , y2 , . . . , yn ) m=1
W (y 1 , y2 , . . . , y n )
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 51 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 8.4
21
ex
x xex e−x
Then W (y1 , y2 , y3 ) = e (x + 1)ex −e−x = 4ex . And
ex (x + 2)ex e−x
0
xex e−x
W1 (y1 , y2 , y3 ) = 0 (x + 1)ex −e−x = e5x (−1 − 2x)
e5x (x + 2)ex e−x
TH
W1 (y1 , y2 , y3 ) e5x (−1 − 2x) 1 1
Therefore ν10 (x) = = x
= e4x − xe4x
W (y1 , y2 , y3 ) 4e 4 2
Z
1 1 1 1 1 1 1
⇒ ν1 (x) = ( e4x − xe4x )dx = e4x − [ xe4x − e4x ] = e4x − xe4x
4 2 16 4 16 8 4
Therefore
x
e
W2 (y1 , y2 , y3 ) = e
-M
x 0 e−x
0 e
−x
ex e5x e−x
= e5x [−1 − 1] = −2e5x
2e5x
Z
W2 (y1 , y2 , y3 ) 1 4x 1 1
ν20 (x) = = − x = − e ⇒ ν2 (x) = − e4x dx = − e4x
W (y1 , y2 , y3 ) 4e 2 2 8
x
e xex 0
pt
x
W3 (y1 , y2 , y3 ) = e (x + 1)ex 0 = e5x (e2x ) = e7x
ex (x + 2)ex e5x
Therefore
e7x
Z
W3 (y1 , y2 , y3 ) 1 1 6x 1
De
Then
yp = ν1 y1 + ν2 y2 + ν3 y3
1 1 −1 4x 1
= ( e4x − xe4x )ex + e .(xex ) + e6x .(e−x )
8 4 8 24
s
1 5x 1 5x 1 5x 1 5x 1 5x 3 5x
= e − xe − xe + e = e − xe
8 4 8 24 6 8
th
1. If all the coefficients of the differential equation are constants (i.e if a differential equation
is constant coefficient linear) it is always possible to find the linearly independent solutions
to the homogeneous part. A particular solution can then be obtained by method of
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 52 of 101
Makerere University MTH 2103 - Differential Equations I
03
3. If the coefficients are not constants (i.e the differential equation is variable coefficient
linear differential equation) then it requires that one solution of the homogeneous part be
known so that we use the Wronskian technique or method of order reduction to obtain
the second linearly independent solution. Then the particular solution can be obtained
by method of variation of parameters.
21
Exercise 8.2 1. Solve the equations by method of variation of parameters.
TH
2. Verify that x and xex are solutions of the homogeneous part of the differential equation
x2 y 00 − x(x + 2)y 0 + (x + 2)y = 2x3 and find the general solution.
3
-M
4. Show that x− 2 cos x and x− 2 sin x are linearly independent solutions to the differential
equation xy 00 + xy 0 + (x2 − 14 )y = 3x 2 sin x
000 00 0 4x
(c) y − 2y − y + 2y = e
Thus if x = et , dy
dt
dy dx
= dx dy t
. dt = dx dy
.e = x dx .
dy dy
Hence x = (8.20)
dx dt
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 53 of 101
Makerere University MTH 2103 - Differential Equations I
03
Differentiating (8.20) with respect to t gives
d2 y
d dy d dy dx dy d dy dy
2
= = x = . +x . Let M =
dt dt dt dt dx dt dx dt dx dx
2
dy dy dM dy dM dx dy d dy dx
21
⇒ 2 = +x = +x . = +x .
dt dt dt dt dx dt dt dx dx dt
dy d2 y dx dy d2 y dy d2 y
= + x 2. = + x 2 .et = + x 2 .x
dt dx dt dt dx dt dx
2
dy d y
= + x2 2
dt dx
TH
d2 y d2 y dy
Hence x2 = − (8.21)
dx2 dt2 dt
The general principle is that the substitution x = et , transforms the second order variable
coefficient linear nonhomogeneous differential equation
d2 y dy
ax2 + bx + cy = h(x)
dx 2 dx
-M
to a second order linear, constant-coefficient, nonhomogeneous differential equation
a
d2 y dy
+ (b − a) + cy = h(et )
dt 2 dt
which can then be solved by the methods we have seen before. (This is got by using equa-
tions (8.20) and (8.21) into equation (8.19)).
pt
Examples 8.5
dx dx
d2 y dy dy d2 y dy
3( − ) + 11 − 3y = 0 ⇒3 + 8 − 3y = 0
dt2 dt dt dt2 dt
which is a constant coefficient with auxiliary equation 3r2 + 8r − 3 = 0
1 1 1
⇒ r1 = 31 , r2 = −3. Thus y1 = e 3 t = (et ) 3 = x 3 and y2 = e−3t = (et )−3 = x−3 .
s
1
The general solution y = c1 y1 + c2 y2 ⇒ y = c1 x 3 + c2 x−3
th
d2 y dy dy 4
3x2 2
+ 11x − 3y = 8 − 3 ln x; y(1) = 1, (1) =
dx dx dx 3
Solution: This is a Cauchy-Euler equation. Let x = et , then (8.20) and (8.21) in the
Ma
d2 y dy t d2 y dy
3 2
+ 8 − 3y = 8 − 3 ln e ⇒ 3 2
+ 8 − 3y = 8 − 3t
dt dt dt dt
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 54 of 101
Makerere University MTH 2103 - Differential Equations I
03
The equation is constant coefficient and we can use method of undetermined coefficients
to solve for yp too. Thus auxiliary equation is 3r2 + 8r − 3 = 0 ⇒ r = 31 , r = −3.
1
Therefore y1 = e 3 t , y2 = e−3t . To find the particular solution we try yp = At + B. This
gives (8A − 3B) − 3At = 8 − 3t ⇒ A = 1, B = 0. Thus the particular solution is yp = t.
1
Hence the general solution is y = yc + yp ⇒ y(t) = c1 e 3 t + c2 e−3t + t
21
1
This gives y(x) = c1 x 3 + c2 x−3 + ln x (8.22)
dy 1 2 1
From (8.22) we have = c1 x− 3 − 3c2 x−4 +
dx 3 x
TH
y(1) = 1 ⇒ c1 + c2 + 0 = 1
Therefore dy c1 = 1, c2 = 0
dx
(1) = 43 ⇒ 13 c − 3c2 = 34
1
Then y = x 3 + ln x
Exercise 8.3
2
d y
2
d y
1. x2 dx dy
2 + 7x dx − 7y = 0
1 dy 5
-M d y
2. x2 dx
2
d y
2 dy
2 − 3x dx + 4y = 0
dy
3. dx 2 − x dx + x2 y = 0 4.x2 dx 2 − 3x dx + 6y = 0
2
d y dy 2
d y
3 2
5. x dx 2 + 3 dx − x y = x 6. x4 dx 2
2 − 6x y = 1 − 6x
2
2
d y dy 2
d y dy
7. x2 dx 2 + 3x dx + 5y = x
2
8.x2 dx 2 + x dx + y = (ln x) sin (ln x)
2
d y dy 0
9. x2 dx 2 − 4x dx + 4y = 0; y(1) = −2, y (1) = −11
pt
A third order Cauchy-Euler equation can be reduced into a contant-coefficient equation. This
is expressed in the exercise below.
Use substitution x = et to show that the third order Cauchy-Euler differential equation
d3 y 2
2d y dy
De
ax3 3
+ bx 2
+ cx + dy = 0
dx dx dx
is transformed into
d3 y d2 y dy
a
3
+ (b − 3a) 2
+ (2a − b + c) + dy = 0
dt dt dt
Hence solve the third-order Cauchy-Euler differential equations
d3 y 2
2d y dy 3
3d y
2
2d y dy
1. x3 − 2x + 3x − 3y = 0 2. x + x − 8x − 4y = 0
s
dx 3 dx 2 dx dx 3 dx 2 dx
3 2 3 2
dy dy dy dy dy dy
3. x3 3 + x2 2 − 2x + 2y = 0 4. x3 3 + 2x2 2 − x + y = 0
th
dx dx dx dx dx dx
d2 y dy
ax2 2
+ bx + cy = 0, (8.23)
dx dx
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 55 of 101
Makerere University MTH 2103 - Differential Equations I
03
into a second order homogeneous equation
d2 y dy
a 2
+ (b − a) + cy = 0.
dt dt
21
Proof:
dy dy dt dy 1 dy
= = e−t . = (8.24)
dx dt
dx dt x dt
d2 y d2 y dy −2t 1 d2 y
d dy d 1 dy 1 dy
2
= = = 2
− e = 2 2
− 2 (8.25)
dx dt dx dt x dt dt dt x dt x dt
TH
Substituting (8.24) and (8.25) into (8.23) gives
1 d2 y
2 1 dy 1 dy
ax − 2 + bx + cy = 0
x2 dt2 x dt x dt
d2 y dy dy
a 2 − a + b + cy = 0
dt dt dt
d2 y dy
-M
a 2 + (b − a) + cy = 0
dt dt
This being constant-coefficient; let the auxiliary equation be aλ2 + (b − a)λ + c = 0. Then λ1 , λ2
are the two auxiliary roots.
⇒ y = c1 x λ 1 + c2 x λ 2 .
in the Cauchy Euler equation. This gives clear equation in λ. The following example
illustrates this point.
th
Exercise 8.4
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 56 of 101
Makerere University MTH 2103 - Differential Equations I
03
Solve the Cauchy-Euler equations.
21
7. x3 y 000 + 3x2 y 00 − 2xy 0 = 2y = 0; x > 0 8. x2 y 00 − 6y = 0
Exercise 8.5
TH
1. x3 y 00 + (5x3 − x2 )y 0 + 2(3x3 − x2 )y = 0; y1 = e2x 2. x2 y 00 + xy 0 − y = 0; y1 = x
3. x2 y 00 + x2 y 0 − (x + 2)y = 0; y1 = x−1 e−x 4. x2 (1 − ln x)y 00 + xy 0 − y = 0; y1 = x
2 00 0 −2x
2
5. x y + (2x − x)y − 2xy = 0; y1 = e 6. y 00 + x2 y 0 + x94 y = 0; y1 = cos x3 .
1. y 000 − 6y 00 − y 0 + 6y = 0
3. y 000 − 3y 00 + 3y 0 + y = 0 -M
5. y 00 − 4y 0 + 4y = 0; y(1) = 1, y 0 (1) = 1
7. y 00 − 2y 0 − 2y = 0; y(0) = 0; y 0 (0) = 3
2. y 000 + y 00 − 6y 0 + 4y = 0
4. y 000 + 2y 00 − 4y 0 − 8y = 0
6. y 00 − 2y 0 + 2y = 0
9. y 000 − y 00 + y 0 + 3y = 0
10. y 000 + 2y 00 + 5y 0 − 26y = 0 11. y (4) + 2y 00 + y = 0
12. y 000 − y 00 − y 0 + y = 0 13. y (6) − y (2) = 0
14. 2y 000 − 4y 00 − 2y 0 + 4y = 0 15. y (iv) − 4y 000 + 4y 00 = 0
16. y 00 − 4y 0 − 5y = 0; y(−1) = 3, y 0 (−1) = 9 17. y (4) + y = 0.
pt
7. 2y 00 − 2y 0 − 4y = 2e3x 8. y 00 − 2y 0 + y = x−1 ex
00
9. y + 4y = tan 2x 10. y 00 + 4y = cosec2 2x
11. y 00 + y = tan x + e3x − 1 12. y 00 + 4y = sec4 x
13. y 00 + y = 3sec x − x2 + 1 14. 21 y 00 + 2y = tan x − 12 x
15. xy − (x + 1)y + y = x , y1 = e , y2 = x + 1 16. y 00 + y = sec3 x
00 0 2 x
2
d y dy d y 2dy
1. x2 dx 3
2 + 3x dx − 8y = (ln x) − 2 ln x 2. x2 dx 2 + 6x dx + 4y = 0
2
d y dy 2
d y dy
3. 9x2 dx 2 + 15 dx + y = 0 4. x2 dx 2
2 − dx = (ln x) − 1
2
d y dy 0
5. x2 dx 2
2 − 3x dx = 9(ln x) + 4; y(1) = 6, y (1) = 8
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 57 of 101
Makerere University MTH 2103 - Differential Equations I
03
9 Power Series Solutions
Often we encounter first order differential equations in which we cannot employ the techniques
mentioned in Chapter 1, and second order differential equations in which none of the two
linearly independent solutions is known so as to use order reduction, Abel’s formula or method
21
of variation of parameters. In most cases such situations are compounded by the fact that the
differential equations whose solutions are not known are variable coefficients. One important
technique that can be used to compute formal solutions and to approximate solutions of linear
and nonlinear differential equations with constant or variable coefficients is the method of series
solution, no matter whether any solution is known.
TH
Before we explain how to obtain series solution to differential equations, we review some of the
properties of power series that will be used.
n=0
an (x − x0 )n (9.1)
The numbers a0 , a1 , . . . , an , . . . are called the coefficients of the power series and the point x0
is called the center of the power series.
We also say that(9.1) is a power series about the point x0 .
∞
pt
X
We say that a power series an (x − x0 )n converges at a specific point x1 if
n=0
N
X
lim an (x1 − x0 )n exists.
N →∞
De
n=0
The value of this limit is called the sum of the series at the point x1 . If this limit does not exist
the series is said to diverge at the point x1 .
Given a power series (9.1) it is important to find all points x for which the series converge. To
do this we compute the radius of convergence of the power series.
The radius of convergence of the power series denoted by R is given by
s
1
R = lim p (the root test of convergence) (9.2)
n→∞ n
|an |
th
an
Or R = lim (the ratio test of convergence) (9.3)
n→∞ an+1
0 < R < ∞ it converges in the interval |x − x0 | < R (or −R + x0 < x < R + x0 ), and diverges
for |x − x0 | > R.
The interval |x − x0 | < R, if R = ∞ is called the interval of convergence of series (9.1)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 58 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 9.1
21
n=1 n=0 n=0
n!
∞ ∞ ∞
X 2n n
X n X
(d) (x − 1) (e) xn (f ) n3 (x − 2)n
n=0
n! n=1
(n + 1) n=1
Solutions:
TH
1 1
(a) Here an = nn and so R = lim p = lim = 0. Hence series (a) converges only for
n→∞ n |a | n→∞ n
n
x = 0.
1 1 1
(b) Here an = (−1)n and R = lim p = lim p = lim = 1. Hence series (b)
n→∞ n
|an | n→∞ n
|(−1) |n n→∞ 1
(c) Here an = 1
n!
and so
-M
−1 < x − 1 < 1 or 0 < x < 2, and diverges for |x − 1| > 1; i.e for x < 0 or x > 2.
an 1
n!
R = lim = lim = lim (n + 1) = ∞
n→∞ an+1 n→∞ 1 n→∞
(n+1)!
n n+2 n(n + 2)
So an /an+1 = . =
n+1 n+1 (n + 1)2
an
Thus R = lim = lim n(n + 2) = 1.
s
and so the series converges for |x| < 1 and diverges for |x| > 1. (And the interval of
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 59 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 9.1
21
5. ∞ 6. ∞
1.2.5...(2n+1) n P n n
P∞ n n n
P∞ n! n
x n=1 n (x + 5) 7. n=1 (−1) ln (n+1) x . 8. nn
x
Pn=0 (2n)!
Pn=1
∞ (x+1)n
9. ∞ x n P∞ n n
P∞ n! n
n=0
√
n!
10. n=0 3 (x − 2) 11. n=1 2n x 12. n=0 n+1
TH
∞
X
f (x) = an (x − x0 )n , for |x − x0 | < R (9.4)
n=0
The function f (x) defined by the power series (9.4) is continuous and has derivatives of all
orders.
The derivatives f 0 (x), f 00 (x), . . . of the function f (x) can be found by differentiating series (9.4)
term by term.
Thus for
∞
X ∞
X
-M ∞
X
f (x) = an (x − x0 )n ; f 0 (x) = nan (x − x0 )n−1 ; f 00 (x) = n(n − 1)an (x − x0 )n−2 ,
n=0 n=1 n=2
and so on
And the series f 0 (x), f 00 (x), . . . have the same radius of convergence as the initial series (9.4)
pt
s De
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 60 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 9.2
Compute the first and second derivatives of the series and find the radius of convergence of the
resulting series
P∞ (−1)n 2n
1. ∞ 2. ∞
21
n n n n
P P
n=0 3 (x − 1) n=0 3 x 3. n=0 (2n)! x
P∞ xn P∞ (x+1)n P∞ xn
4. n=0 n! 5. n=0 n+1 6. n=0 5.7...(2n+3)
The following power series operations are valid within the interval of convergence of the series.
P∞
an (x − x0 )n ± ∞
P n
P∞ n
1. n=0 n=0 bn (x − x0 ) = n=0 (an ± bn )(x − x0 )
TH
2. a(x − x0 )k ∞
P n
P∞ n+k
n=0 an (x − x0 ) = n=0 aan (x − x0 )
3. If ∞
P n
P∞ n
n=0 an (x − x0 ) = n=0 bn (x − x0 ) for all x in some interval |x − x0 | < R, then
an = bn for n = 0, 1, 2, . . .
In practice we have to combine series whose terms are not of the same power. In such cases we
make appropriate change in the index of summation of the series which do not change the sum
of the series but makes the general terms of the same power.
Thus we have the following examples
pt
P∞ P∞
1. n=0 an (x − x0 )n = n=k an−k (x − x0 )n−k
P∞ P∞
2. n=1 nan (x − x0 )n−1 = n=0 (n + 1)an+1 (x − x0 )n
P∞ P∞
3. n=0 3(n + 4)an xn+2 = n=2 3(n + 2)an−2 xn
De
is a Taylor-series expansion
∞
X f (n) (x0 )
f (x) = (x − x0 )n (9.6)
n=0
n!
Ma
of the function f at the point x0 if its Taylor-series expansion (9.6) exists and has a positive
radius of convergence.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 61 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples of analytic functions are :
2. A rational function of two polynomials is analytic at every point where the denominator
21
is different from zero.
TH
The form of the power series solution of a differential equation will depend very much on the
kind of point that x0 is with respect to the differential equation.
A point x0 can be either an ordinary point or a singular point according to the following
definitions.
Consider the second order differential equation
-M
a2 (x)y 00 + a1 (x)y 0 + a0 (x)y = 0 (9.7)
Definition 9.3 A point x0 is called an ordinary point of the differential equation (9.7) if the
two functions
a1 (x) a0 (x)
and (9.8)
a2 (x) a2 (x)
are analytic at the point x0 . If at least one of the functions in (9.8) is not analytic at the point
pt
Definition 9.4 A point x0 is called a regular singular point of the differential equation (9.7)
if it is a singular point (if at least one of the functions in (9.8) is not analytic at x0 ) and the
th
two functions
a1 (x) a0 (x)
(x − x0 ) and (x − x0 )2 (9.9)
a2 (x) a2 (x)
are analytic at the point x0 .
Ma
If at least one of the functions in (9.9) is not analytic at the point x0 then x0 is called an
irregular singular point of the differential equation.
Examples 9.2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 62 of 101
Makerere University MTH 2103 - Differential Equations I
03
Locate the ordinary, regular singular, and irregular singular points of the differential equation
(x4 − x2 )y 00 + (2x + 1)y 0 + x2 (x + 1)y = 0
Solution: Here a2 (x) = x4 − x2 , a1 (x) = 2x + 1, a0 (x) = x2 (x + 1) and so
a1 (x) 2x + 1 2x + 1
21
= 4 2
= 2 (9.10)
a2 (x) x −x x (x − 1)(x + 1)
2
a0 (x) x (x + 1) 1
= = (9.11)
a2 (x) x4 − x2 x−1
Then functions (9.10) and (9.11) are analytic ( defined) for every real number except 0, 1, and
−1. And as such every real number except 0, 1, −1 are all ordinary points of the differential
TH
equation.
Points 0, 1, −1 are singular points of the differential equation because at these points functions
(9.10) and (9.11) are not analytic ( are not defined).
To determine which of the singular points 0, 1, −1 are regular/irregular, we examine the func-
tions (9.9) at these points.
For x0 = 0; we have
(x − x0 )
a1 (x)
a2 (x)
=x 4
x −x
-M
2x + 1
2
=
2x + 1
x(x − 1)(x + 1)
(9.12)
Thus, since one of the functions is not analytic at x0 = 0 then we conclude that the point
x0 = 0 is an irregular singular point.
For x0 = 1, we have
a1 (x) 2x + 1 2x + 1
De
(x − x0 ) = (x − 1) 4 2
= 2
a2 (x) x −x x (x + 1)
which is analytic at x0 = 1. And
a0 (x) x2 (x + 1)
(x − x0 )2 = (x − 1)2 =x−1
a2 (x) x4 − x2
which is analytic at x0 = 1. Thus since both functions are analytic at x0 = 1, we conclude that
x0 = 1 is a regular singular point.
s
a1 (x) 2x + 1 2x + 1
(x − x0 ) = (x + 1) 4 2
= 2 ,
a2 (x) x −x x (x − 1)
which is analytic at x0 = −1. And
a0 (x) x2 (x + 1) (x + 1)2
Ma
(x − x0 )2 = (x + 1)2 4 = .
a2 (x) x − x2 x−1
which is analytic at x0 = −1. Since both are analytic at x0 = −1 then we conclude that the
point x0 = −1 is a regular singular point.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 63 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 9.3
1. Locate the ordinary points, regular singular points, and irregular singular points of the
differential equations.
21
3. (1 − x)y 00 − y + xy = 0 4. 2x2 y 00 + (x − x2 )y 0 − y = 0
5. (x − 1)2 y 00 − (x2 − x)y 0 + y = 0 6. x2 y 00 − (x + 2)y = 0
7. x3 (1 − x2 )y 00 + (2x − 3)y 0 + xy = 0 8. (x − 1)4 y 00 − xy = 0
TH
1. y 00 + (x−1)(x+2)
x
y 0 + x(x−1)
1
2y = 0 2. x(x + 3)y 00 + x2 y 0 − y = 0
00 x 0
3. y + e y + (cos x)y = 0 4. (sin x)y 00 − y = 0
5. y 00 + (2x−1)(x+2)
2x
y 0 + cosx2 x y = 0 6. x3 (x − 1)y 00 + (x − 1)y 0 + 4xy = 0
7. x2 (x2 − 4)y 00 + 2x3 y 0 + 3y = 0 8. x2 y 00 + y = 0
9. x4 y 00 + y = 0 10. x2 (x + 2)y 00 + 3(x − 2)y 0 + y = 0
11. x2 (x − 4)2 y 00 + 3xy 0 − (x − 4)y = 0
9.4
-M
Power series solution about an ordinary point
In this section we show how to solve a differential equation (first order or second order ) with
variable coefficients about an ordinary point x0 . The point x0 is usually dictated by the problem
at hand which requires that we find a solution of a differential equation say
If x0 is an ordinary point of the differential equation (9.14) then the general solution of the
differential equation has a power series expansion about x0 . And
∞
De
X
y(x) = an (x − x0 )n . (9.16)
n=0
Remarks:
(1) At an ordinary point x0 , the solution to the differential equation is guaranteed since all
th
the functions are analytic at this point and convergence of the solution in |x − x0 | < R is
assured.
we approximate the function f (x) in (9.17) with a Maclaurin’s expansion of f (x) and
equate term by term.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 64 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 9.3
21
n=0 n=0
∞
X
y0 = nan xn−1 . Then y 0 + xy = 0
n=1
∞
X ∞
X
n−1
⇒ nan x +x an xn = 0.
TH
n=1 n=0
∞
X ∞
X
n−1
⇒ nan x + an xn+1 = 0.
n=1 n=0
Letting m = n − 1 in the first series gives
∞
X ∞
X ∞
X ∞
X
(n + 1)an+1 xn + an xn+1 = 0. ⇒ (n + 1)an+1 xn + an−1 xn = 0
n=0 n=0
⇒ a1 +
∞
X
n=1
-M n=0
1
an+1 = − an−1 , n ≥ 1.
n+1
Thus we have from the recursive formula, for
n = 1; a2 = − 12 a0
n = 2; a3 = − 31 a1 = 0 (since a1 = 0)
De
n = 3; a4 = − 14 a2 = (− 41 )(− 12 )a0 = 18 a0
n = 4; a5 = − 15 a3 = 0
n = 5; a6 = − 61 a4 = − 61 . 18 a0 = − 48
1
a0 .
Thus
∞
X
y = an xn = a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + a5 x5 + . . .
n=0
s
1 1 1
y = a0 − a0 x 2 + a0 x 4 − a0 x 6 + . . .
2 8 48
th
1 1 4 1 6
y = a0 (1 − x + x − x − . . .)
2 8 48
00
P ∞ n−2 00 2
y = n=2 n(n − 1)an x . And y + x y = 0
∞
X ∞
X ∞
X ∞
X
n−2 2 n n−2
⇒ n(n − 1)an x +x an x = 0 ⇒ n(n − 1)an x + an xn+2 = 0
n=2 n=0 n=2 n=0
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 65 of 101
Makerere University MTH 2103 - Differential Equations I
03
We put the series under the same powers of x by letting m = n − 2 in the first series and
m = n + 2 in the second. Then
∞
X ∞
X
(n + 2)(n + 1)an+2 xn + an−2 xn = 0
n=0 n=2
21
Summing all the series from n = 2 gives
∞
X ∞
X
n
⇒ (2)(1)a2 − (3)(2)a3 x + (n + 2)(n + 1)an+2 x + an−2 xn = 0
n=2 n=2
TH
∞
X
⇒ 2a2 + 6a3 x + [(n + 2)(n + 1)an+2 + an−2 ]xn = 0.
n=2
Thus for
n = 2; a4
(n + 2)(n + 1)an+2 + an−2 = 0 ⇒ an+2 = −
1
= − 4.3 1
a0 = − 12 a0
-M 1
(n + 2)(n + 1)
an−2 ; n ≥ 2
1
n = 3; a5 = − 20 a1
1
n = 4; a6 = − 30 a2 = 0.(since a2 = 0)
1
n = 5; a7 = − 42 a3 = 0(since a3 = 0
1 1
n = 6; a8 = − 56 a4 = 56×12 a0 .
pt
∞
X
And y = an xn = a0 + a1 x + a2 x2 + a3 x3 + . . . gives
n=0
1 1 1
y = a0 + a1 x − a0 x 4 − a1 x 5 + a0 x 8 = . . .
De
12 20 672
1 1 8 1
⇒ y = a0 (1 − x4 + x − . . .) + a1 (x − x5 + . . .).
12 672 20
∞
X ∞
X ∞
X
n−2 n−1
⇒ (2x + 1) n(n − 1)an x + nan x +2 an x n = 0
th
gives
∞
X ∞
X ∞
X ∞
X
n n n
2 n(n + 1)an+1 x + (n + 1)(n + 2)an+2 x + (n + 1)an+1 x + 2 an xn = 0.
n=1 n=0 n=0 n=0
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 66 of 101
Makerere University MTH 2103 - Differential Equations I
03
Summing all the series from n = 1 gives
∞
X ∞
X
2 n(n + 1)an+1 xn + 1.2a2 + (n + 1)(n + 2)an+2 xn
n=1 n=1
∞ ∞
21
X X
n
+ a1 + (n + 1)an+1 x + 2a0 + 2an xn = 0.
n=1 n=1
⇒ 2a2 + a1 + 2a0
X∞
+ [2n(n + 1)an+1 + (n + 1)(n + 2)an+2 + (n + 1)an+1 + 2an ]xn = 0.
TH
n=1
13 1
⇒ a4 = − a0 − a1
12 8
P∞
Thus y = n=0 an xn = a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + . . .
De
1 1 13 1
⇒ y = a0 + a1 x + (−a0 − a1 )x2 + (a0 + a1 )x3 + (− a0 − a1 )x4 = . . .
2 6 12 8
13 4 1 1 1
⇒ y(x) = a0 (1 − x2 − x3 − x + . . .) + a1 (x − x2 + x3 − x4 = . . .).
12 2 6 8
And the two linearly independent solutions to the differential equation are
13 4
y1 (x) = 1 − x2 − x3 − 12 x + . . . and y2 (x) = x − 12 x2 + 16 x3 − 18 x4 + . . . .
4. Solve the differential equation y 00 − 2(x − 1)y 0 + 2y = 0 by power series method about
s
x = 1.
Solution: Since we are solving by power series method about x0 = 1, we let
th
∞
X ∞
X
y= an (x − x0 )n = an (x − 1)n (9.21)
n=0 n=0
Then ∞ ∞ ∞
X X X
n 0 n−1 00
y= an t ⇒y = nan t , y = n(n − 1)an tn−2
n=0 n=1 n=2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 67 of 101
Makerere University MTH 2103 - Differential Equations I
03
And the differential equation
21
n=2 n=1 n=0
X∞ ∞
X ∞
X
⇒ n(n − 1)an tn−2 − 2 nan tn + 2 an t n = 0
n=2 n=1 n=0
TH
∞
X ∞
X ∞
X
(n + 2)(n + 1)an+2 tn − 2 nan tn + 2 an t n = 0
n=0 n=1 n=0
P∞
n=1
-M n=1
(n + 2)(n + 1)
Thus for
n = 1; a3 =0
n = 2; a4 = 2a
4.3
2
= 61 a2 = − 61 a0 (since a2 = −a0 )
De
2.2
n = 3; a5 = 5.4 a3 = 0
2.3
n = 4; a6 = 6.5 a4 = 51 a4 = − 51 . 61 a0 = − 30
1
a0 .
2.4
n = 5, a7 = 7.6 a5 = 0. And
∞
X
y = an tn = a0 + a1 t + a2 t2 + a3 t3 + a4 t4 + . . .
n=0
1 1
⇒ y = a0 + a1 t + (−a0 )t2 + (− a0 )t4 + (− a0 )t6 + . . .
s
6 30
1 1
⇒ y = a0 (1 − t2 − t4 − t6 − . . .) + a1 t
6 30
th
Remarks:
(a) Note that the change of variable t = x − 1 is merely for convenience. The problem could
still be solved with x − 1.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 68 of 101
Makerere University MTH 2103 - Differential Equations I
03
(b) In the initial value problem the power series solution may be sought without specifying
the ordinary point at which the solution must be obtained. In such a case, the solution
would be sought about the initial point defining the conditions.
(c) The number of terms to stop at while computing the coefficients from the recurrence
21
relation is not a big problem to think about. In general we compute enough coefficients
an of the power series solution to obtain a good approximation to the solution.
TH
equation about x0 = 0. Thus
∞
X ∞
X ∞
X
n 0 n−1 00
y= an x , ⇒ y = nan x , y = n(n − 1)an xn−2
n=0 n=1 n=2
∞
X
n=2
∞
X
n(n − 1)an xn−2 − 2x2
-M ∞
X
n=1
∞
X
nan xn−1 + 8
∞
X
n=0
∞
X
an x n = 0
∞
X ∞
X ∞
X
n n
2a2 +(3).(2)a3 x+ (n+2)(n+1)an+2 x −2 (n−1)an−1 x +8a0 +8a1 x+8 an xn = 0.
n=2 n=2 n=2
4
coefficient of x : 6a3 + 8a1 = 0 ⇒ a3 = − a1 . (9.24)
3
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 69 of 101
Makerere University MTH 2103 - Differential Equations I
03
Equating coefficients of xn to zero gives the recurrence relation
21
And for
2a1 − 8a2 2 1
n = 2; a4 = = = .
4.3 4.3 6
4
2.2a2 − 8a3 8(− 3 ) 8
n = 3; a5 = =− = .
5.4 20 15
TH
Thus, y = a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + a5 x5 + . . .
⇒ y = x − 34 + 16 x4 + 15
8 5
x + ...
X ∞
X
-M
differential equation as power series in terms of x − 1. Thus x = 1 + (x − 1)
and x + 3 = 4 + (x − 1). Letting t = x − 1 we have
∞ ∞
X
n 0 n−1 00
y= an t ; y = nan t and y = n(n − 1)an tn−2 .
n=0 n=1 n=2
∞
X ∞
X ∞
X ∞
X
n−2 n−1 n
⇒ n(n − 1)an t + an t + nan t + 2 an tn = 4 + t.
n=2 n=1 n=1 n=0
X X X X
n n n
(n + 2)(n + 1)an+2 t + (n + 1)an+1 t + nan t + 2 an tn = 4 + t
n=0 n=0 n=1 n=0
th
∞
X
⇒ 2a2 + a1 + 2a0 + [(n + 2)(n + 1)an+2 + (n + 1)an+1 + (n + 2)an ]tn = 4 + t
n=1
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 70 of 101
Makerere University MTH 2103 - Differential Equations I
03
Equating coefficients of powers of t on both sides gives:
Coefficients of t0 : 2a2 + a1 + 2a0 = 4 (9.25)
21
And the coefficient of tn to zero gives the recurrence relation
(n + 2)(n + 1)an+2 + (n + 1)an+1 + (n + 2)an = 0 from which we have
an+1 an
⇒ an+2 = − − , n ≥ 2.
n+2 n+1
TH
The initial conditions y(0) = 0 ⇒ a0 = 0 and y 0 (0) = 1 ⇒ a1 = 1 give from (9.25),
a2 = 2 − 21 a1 − a0 = 32 and from (9.26) a3 = 16 − 13 a2 − 12 a1 = − 56 . And from the recurrrence
relation, for n = 2; a4 = − 14 a3 − 13 a2 = − 24
7
. Thus y = a0 + a1 t + a2 t2 + a3 t3 + a4 t4 + . . .
3 2 5 3 7 4
⇒ y = t + 2 t + (− 6 )t + (− 24 )(x − 1) + . . .
⇒ y = (x − 1) + 32 (x − 1)2 − 65 (x − 1)3 − 24 7
(x − 1)4 + . . . .
Often the right hand sides of the nonhomogeneous differential equations have terms that are
not polynomial terms; such as exponential functions, ex ; trigonometrical functions, cos x or
-M
sin x; natural logarithimic functions say ln (n + 2) or even a combination of these.
This situation is handled by finding few terms of Maclaurin’s expansion of the term on the
right hand side and equating corresponding coefficients. This approximation works too when
the coefficients of y 00 , y 0 or y are not polynomials in x for example the differential equation
y 00 + ex y 0 = cos x. In this case we take few terms of Maclaurin’s expansion of ex and few terms
of Maclaurin’s expansion of cos x and the rest remains as previous.
Exercise 9.4
pt
Solve the by power series centred at the initial points of the differential equation.
1. y 00 + xy 0 + y = 0, about x = 0 2. y 00 − xy = 0, about x = 0
3. y 00 − x3 y = 0, about x = 0 4. (2 + x2 )y 00 − xy − 3y = 0, about x = 0
5. y 00 + 3xy 0 + 3y = 0, about x = 0 6. (1 + 4x2 )y 00 − 8y = 00 about x = 0
De
Frobenius Method
Consider the differential equation
a2 (x)y 00 + a1 (x)y 0 + a0 (x)y = 0 (9.27)
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 71 of 101
Makerere University MTH 2103 - Differential Equations I
03
and in this case the solutions are of the form y = xr . This assertion later gives a quadratic
equation in r that produces solutions with fractional and/or negative powers. In this section
we develop this method but first we need to specify the type of equations the method will work
on.
21
Assume that the point x0 is a singular point. If the singular point x0 is not equal to zero we
make a change of variable t = x − x0 that will give an equation for which t0 = 0 is a singular
point.
Then from the definition, the point x0 is a regular singular point if both
a1 (x) a0 (x)
(x − x0 ) and (x − x0 )2
TH
a2 (x) a2 (x)
Where P (x), Q(x), R(x) are analytic at zero; P (0) 6= 0. So that we have at least one solution
of the form y = xr .
Let P (x) =
∞
X
n=0
Pn xn , Q(x) =
-M ∞
X
n=0
Qn xn , R(x) =
∞
X
n=0
Rn xn (9.29)
r
P∞ P∞
be power series of P, Q, R centred at zero. And let y = x n=0 an x n = n=0 an xn+r .
∞
X ∞
X
0 n+r−1 00
so that y = (n + r)an x , y = (n + r)(n + r − 1)an xn+r−2
n=0 n=0
pt
X∞ ∞
X X∞ ∞
X
x2 ( Pn xn )( (n + r)(n + r − 1)an xn+r−2 ) + x( Qn xn )( (n + r)an xn+r−1 )
n=0 n=0 n=0 n=0
De
∞
X X∞
n
+ ( Rn x )( an xn+r ) = 0
n=0 n=0
n=0 n=0
Since a0 6= 0 we have
ρ(r) = P0 r(r − 1) + rQ0 + R0 = 0
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 72 of 101
Makerere University MTH 2103 - Differential Equations I
03
This is known as the indicial equation. Since ρ(r) is a second degree polynomial there are at
most two values of r denoted by r1 and r2 such that ρ(r) = 0.
These are known as the indicial roots or exponents of the differential equation at the regular
∞
X
singular points. And the assumed solution y = xr an xn takes the form that depends on the
21
n=0
nature of r1 and r2
Case 1: If indicial roots r1 and r2 do not differ by an integer
∞
X
If r1 > r2 and r1 − r2 6= integer then y1 = |x|r1
an x n
TH
n=0
∞
X
and y2 = |x|r2 bn xn with b0 = 1
n=0
Examples 9.4
Let y = xr
Then
X∞
an x n =
n=0
∞
X
0
∞
X
an xn+r .
n=0
n+r−1 00
∞
X
-M
y = (n + r)an x and y = (n + r)(n + r − 1)an xn+r−2 .
n=0 n=0
And 2x2 y 00 + (x − x2 )y 0 − y = 0
∞
X ∞
X
2 n+r−2
⇒ 2x (n + r)(n + r − 1)an x +x (n + r)an xn+r−1
pt
n=0 n=0
∞
X ∞
X
2 n+r−1
− x (n + r)an x − an xn+r = 0.
n=0 n=0
De
∞
X ∞
X
⇒ 2 (n + r)(n + r − 1)an xn+r + (n + r)an xn+r
n=0 n=0
∞
X ∞
X
− (n + r)an xn+r+1 − an xn+r = 0 (9.31)
n=0 n=0
And since a0 6= 0 we have the indicial equation 2r2 − r − 1 = 0. The roots of the indicial
equation are − 21 , 1.
Thus, for r1 > r2 ; we have r1 = 1, r2 = − 12 . Since r1 − r2 = 1 + 12 = 32 then the two
roots do not differ by an integer. And we have the two linearly independent solutions as
Ma
∞
X
y0 = |x|r
an xn ; with a0 = 1
n=0
To find the coefficients an , we go back to equation (9.31):
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 73 of 101
Makerere University MTH 2103 - Differential Equations I
03
Setting m = n + 1 in the third series gives
∞
X ∞
X
n+r
2 (n + r)(n + r − 1)an x + (n + r)an xn+r
n=0 n=0
∞ ∞
21
X X
n+r
− (n + r − 1)an−1 x − an xn+r = 0
n=1 n=0
TH
r n+r r
2r(r − 1)a0 x + 2 (n + r)(n + r − 1)an x + ra0 x + (n + r)an xn+r
n=1 n=1
∞
X ∞
X
− (n + r − 1)an−1 xn+r − a0 xr − an xn+r = 0
n=1 n=1
∞
⇒ [2r(r − 1) + r − 1]a0 x r
+
X
-M
[2(n + r)(n + r − 1)an + (n + r)an
n=1
− (n + r − 1)an−1 − an ]xn+r = 0.
The first term gives the indicial equation obtained earlier. And setting the coefficients of
xn+r to zero gives
(n + r − 1)an−1 an−1
⇒ an = = (9.32)
[2(n + r)(n + r − 1) + n + r − 1] 2(n + r) + 1
This relation gives values of an for each r obtained in the indicial equation and these in
turn correspond to the solution.
De
an−1
Thus for r = 1; equation (9.32) gives an = 2n+3
; n ≥ 1. Taking a0 = 1 we have for
n = 1; a1 = a50 = 51
n = 2; a2 = a71 = 51 . 71 = 35
1
a2 1 1 1
n = 3; a3 = 9 = 35 . 9 = 315
∞
X
And y1 = x r1
an xn = xr (a0 + a1 x + a2 x2 + a3 x3 + . . .) gives for a0 = 1,
n=0
y1 (x) = x(1 + 51 x + 1 2 1
x3
s
35
x + 315
+ . . .).
For r = equation (9.32) gives an = an−1
− 21 ; 2n
; n ≥ 1. Thus if a0 = 1, we have for
th
a0 1
n = 1; a1 = 2 = 2
n = 2; a2 = a41 = 12 . 41 = 18
n = 3; a3 = a62 = 16 . 81 = 48
1
.
∞
X
And y2 = xr2 an xn = xr2 (a0 + a1 x + a2 x2 + a3 x3 + . . .) gives
Ma
n=0
∞
1 1 1 1 1
X (x/2)n 1 1
y2 = |x|− 2 (1 + x + x2 + x3 + . . .) = |x|− 2 ⇒ y2 (x) = |x|− 2 e 2 x
2 8 48 n=0
n!
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 74 of 101
Makerere University MTH 2103 - Differential Equations I
03
Note that according to Maclaurin’s expansion,
x 2 x3
ex = 1 + x + + + ···
2! 3!
1 (x/2)2 (x/2)3
ex/2 = 1+ x+ + + ···
21
2 2! 3!
∞
x x 2 x3 X (x/2)n
ex/2 = 1+ + + + ··· =
2 8 48 n=0
n!
1
And y = c1 y1 + c2 y2 ⇒ y = c1 x(1 + 15 x + 1 2
35
x + 1
315
x3 + . . .) + c2 |x|− 2 ex/2 .
TH
2. Solve the differential equation 2xy 00 + y 0 + xy = 0 near the point x = 0.
X∞ X∞
Solution: Let y = an xn+r . Then y 0 = (n + r)xn+r−1 ,
n=0 n=0
∞
X
y 00 = (n + r − 1)(n + r)an xn+r−2
n=0
r
x [2
∞
X
(n + r)(n + r − 1)an x
n=0
n−1
+
∞
X
-M
And substituting into the differential equation gives
(n + r)an x
n=0
n−1
+
∞
X
an xn+1 ] = 0
n=0
Setting the coefficients of lowest power of x to zero, for a0 6= 0 gives the indicial equation
r(2r − 1) = 0. This gives roots r1 = 0, r2 = 21 . Setting the coefficients of xr to zero
gives a1 = 0. and setting the coefficients of xn+r−1 to zero gives the recurrence relation
an−2
an = − (n+r)(2(n+r−1) ; n ≥ 2.
De
an−2
For r1 = 0; an = − n(2n−1) ; n ≥ 2. When
a0
n = 2; a2 = − 6
a1
n = 3; a3 = − 3.5 =0
a2 a0
n = 4; a4 = − 4.7 = − 6.28
n = 5; a5 = 0
a4 a0
n = 6; a6 = − 6.11 = − 6.11.6.28
∞
s
X
x2
And so y = x r
an xn gives for a0 = 1, y1 = 1 − 6
+ x4 + . . .
n=0
th
1 an−2
For r = we have an = − n(2n+1)
2
, ; n ≥ 2. And when
a0 a0
n = 2; a2 = − 2.5 = − 10
a1
n = 3; a3 = − 3.10 =0
a2 a0 a0
n = 4; a4 = − 4.9 = 2.4.5.9 = 360
n = 5; a5 = 0
Ma
a4 a0
n = 6; a6 = − 6.13 = − 6.13 .
1 x4
r
an x gives, for a0 = 1; y2 = x 2 [1 − x62
n
P
And y = x 10
+ 360 − . . .]. And the general solution
x2 1 x 2 x4
4
is y = c1 y1 + c2 y2 = c1 (1 − 6 + x + . . .) + c2 x 2 (1 − 10 + 360 + . . .).
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 75 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 9.5
21
00 0
5. 2xy + 3y − xy = 0 6. 3x2 y 00 + (5x + 3x3 )y 0 + (3x2 − 1)y = 0
7. 2x2 y 00 + 5xy 0 + (1 − x3 )y = 0 8. (2x − 2x2 )y 00 + (1 + x)y 0 + 2y = 0
Case II: If indicial roots differ by a positive integer
If r1 − r2 = N, where N is a positive integer, then the two linearly independent solutions
are ∞ ∞
TH
X X
y1 = xr1 an xn ; a0 6= 0 and y2 = Cy1 (x) ln x + xr2 bn xn ; b0 6= 0
n=0 n=0
Examples 9.5
Solution: Let y =
X
-M
1. Solve the differential equation xy 00 + (x − 6)y 0 − 3y = 0 by power series method.
∞
an xn+r . Then xy 00 + (x − 6)y 0 − 3y = 0 gives
n=0
∞
X ∞
X
n+r−1
(n + r)(n + r − 1)an x −6 (n + r)an xn+r−1
n=0 n=0
∞ ∞
pt
X X
+ (n + r)an xn+r − 3 an xn+r = 0.
n=0 n=0
∞
X ∞
X
r−1 n+r−1
⇒ r(r − 7)a0 x + (n + r)(n + r − 7)an x + (n + r − 3)an xn+r = 0
De
n=1 n=0
Setting m = n − 1 gives
∞
X ∞
X
r−1 n+r
r(r − 7)a0 x + (n + r + 1)(n + r − 6)an+1 x + (n + r − 3)an xn+r = 0
n=0 n=0
Setting the coefficients of the lowest power of x (i.e xr−1 ) to zero gives the indicial equation;
for a0 6= 0; r(r − 7) = 0. This gives the indicial roots r1 = 7 and r2 = 0. And clearly,
s
r1 − r2 = 7 ( a positive integer).
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 76 of 101
Makerere University MTH 2103 - Differential Equations I
03
And for n = 3, 4, 5, 6, we have
−3a4 + 0.a3 = 0 ⇒ a4 = 0
−2a5 + a4 = 0 ⇒ a5 = 0
−a6 + 2a5 = 0 ⇒ a6 = 0
21
0.a7 + 3.a6 = 0 ⇒ a6 = 0
(n−3)
Now for n ≥ 7, we have an+1 = − (n+1)(n−6) an
This gives for
n = 7; a8 = − 48 a7 = − 21 a7
TH
5 5
n = 8; a9 = − 18 a8 = 4.9 a7
n = 9; a10 = − 30 a9 = − 14 a7
6
x2 y 00 − 2xy 0 + xy = 0, (9.34)
n=0
X
y2 = ay1 ln x + xr2 C¯n xn . (9.36)
n=0
If a = 0, then both series have the same form. Thus we begin by substituting
De
∞
X ∞
X
r n
y=x Cn x = Cn xn+r (9.37)
n=0 n=0
∞
X ∞
X ∞
X
x2 (n + r)(n + r − 1)Cn xn+r−2 − 2x (n + r)Cn xn+r−1 + x Cn xn+r = 0.
th
Multiplying the series by coefficients, dividing by xr , and shifting summation into the
third series gives
Ma
∞
X ∞
X ∞
X
n n
(n + r)(n + r − 1)Cn x − 2 (n + r)Cn x + Cn−1 xn = 0. (9.38)
n=0 n=0 n=1
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 77 of 101
Makerere University MTH 2103 - Differential Equations I
03
Equating coefficients then yields
21
Equation (9.39) holds if r is a root of the indicial equation. Then (9.40) is
Now we consider the two roots r1 , r2 . First, consider r1 since there is always a solution
for the larger root.
TH
For Root r1 , let r = r1 = 3. Then (9.41) is (n + 3)nCn + Cn−1 = 0, n ≥ 1 and
Cn−1
Cn = (−1) n(n+3) and so
∞ ∞
X (−1)n 6 n X (−1)n 6 n+3
y 1 = x3 x = x (9.42)
n=0
n!(n + 3)! n=0
n!(n + 3)!
Since taking a = 0 does not give a second solution, we take a = 1 in (9.36) and substitute
(9.43)
∞
X ∞
X ∞
X
(n + r)(n + r − 1)C¯n xn − 2 (n + r)C¯n xn + C̄n−1 xn = x−r [−2xy10 + 3y1 ]. (9.44)
n=0 n=0 n=1
n=0 n=1
th
n = 0 : C̄0 = 0, (9.46)
n = 1 : −2C̄1 + C̄0 = 0 (9.47)
n = 2 : −2C̄2 + C̄1 = 0, (9.48)
Ma
n≥3:
(−1)n−3 6n (−1)n−3 6n (−1)n−3 6n
n(−3)nC̄n + C̄n−1 = −2 +3 = (−2n + 3). (9.49)
(n − 3)!n! (n − 3)!n! (n − 3)!n!
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 78 of 101
Makerere University MTH 2103 - Differential Equations I
03
For n = 3 (9.49) implies that C̄2 = 3!6 (−6 + 3) = −3. Then from (9.48),
C̄1 = 2C̄2 = −6, and, from (9.47), C̄0 = 2C̄1 = −12.
The remaining C̄n may be found recursively from (9.49) for n ≥ 4. However, C̄3 is ar-
bitrary. This happens since we can add a multiple of y1 to y2 and still have a linearly
independent solution.)
21
The simplest choice for C̄3 is C̄3 = 0; and then
TH
Using the terms we have found so far, we have
∞
X (−1)n 6 n+3
y2 = ln x x − 12 − 6x − 3x2 + . . .
n=0
n!(n + 3)!
Exercise 9.6
3. x2 y 00 + x2 y 0 − 2y = 0
-M
Solve the following differential equations by Frobenius method.
1. xy 00 − xy 0 − y = 0 2. xy 00 xy 0 + 2y = 0
4. (x2 − x4 )y 00 + 4xy 0 + (2 + 20x2 )y = 0
5. x y − 2xy + (2 − x)y = 0 6. xy 00 − y = 0
2 00 0
If r1 = r2 = r, then
∞
X
r
y1 = x an xn ; a0 6= 0 and
n=0
De
∞
X
r
y2 = y1 (x) ln x + x bn xn ; b0 6= 0.
n=0
Examples 9.6
X∞
Solution: Let y = an xn+r . Then the process gives the equation
th
n=0
∞
X
2 r
(r + 1) a0 x + [(n + r + 1)2 an − an−1 ]xn+r = 0.
n=1
Setting the coefficients of xr to zero gives the indicial equation (r + 1)2 = 0 whose indicial
Ma
roots are r1 = r2 = −1. And setting the coefficients of xn+r to zero gives (n + r + 1)2 an =
a0 a1 a0
an−1 ; n ≥ 1. This relation gives a1 = (r+2) 2 a2 = (r+3)2 = (r+2)2 (r+3)2 and in general
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 79 of 101
Makerere University MTH 2103 - Differential Equations I
03
a0 a0
an = (r+2)2 (r+3)3 ...(r+n+1)2
;n ≥ 1. And for r = −1, we get an = (n!)2
. Taking a0 = 1; we
X x∞ n
get y1 (x) = x−1 and
n=0
(n!)2
21
X
y2 (x) = y1 (x) ln x + x−1 bn x n (9.51)
n=1
where the coefficients bn are determined by substituting into the original differential equa-
tion the solution (9.51).
TH
Exercise 9.7
Verify that the indicial equation to the differential equations have equal roots and find the
general solution near x = 0.
1. (x2 − x3 )y 00 − 3xy 0 + 4y = 0 2. x2 y 00 + 7xy 0 + (9 + 2x)y = 0
3. x2 y 00 − xy 0 + (1 − x)y = 0 4. x2 y 00 − (3x + x2 )y 0 + (4 − x)y = 0
5. xy 00 + y 0 − 2xy = 0 6. (x2 + x4 )y 00 + (−x + 7x3 )y 0 + (1 + 9x2 )y = 0
7. x2 y 00 + 5xy 0 + (4 − x)y = 0
9. (x2 + x3 )y 00 − (x2 + x)y 0 + y = 0
-M
8. x2 y 00 + (3x + x2 )y 0 + y = 0
10. xy 00 + (1 − x2 )y 0 + 4xy = 0
pt
s De
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 80 of 101
Makerere University MTH 2103 - Differential Equations I
03
10 Systems of linear differential equations
In many applications of differential equations, one is led to simultaneously consider several
ordinary differential equations with several dependent variables and one independent variable.
Such systems may be linear or nonlinear, homogeneous or nonhomogeneous.
21
Depending on the nature of the equations, one may find that dealing with a system of differential
equations is easier than dealing with one higher-order differential equation; or the converse may
hold too.
This then leads to two senarios. The first being that if a system of lower-order differential
equations (especially first order differential equations) is not easy to solve, we can use them to
TH
form one higher-order differential equation that we could use familiar techniques to solve. The
second one being that given one higher-order differential equation, it could be easy to solve it
if transformed into a system of lower-order differential equations.
In this chapter therefore we present two ways of solving systems of differential equations namely:
writing the system as one higher order differential equation; and writing one higher order
differential equation as a system of differential equations.
10.1
-M
Transforming an equation into a system of differential equa-
tions
Examples 10.1
x0 (t) = x1 (t)
x01 (t) = −x(t)
De
2. y 00 + 2y = 4t
Solution: Let y = x1 , y 0 = x2 . Then x01 = y 0 = x2 and x02 = y 00 = 4t − 2y = −2x1 + 4t.
Then we have the system
x01 = x2
x02 = −2x1 + 4t
s
3. 2y 000 − 6y 00 + 4y 0 + y = sin t
th
x01 = y 0 = x2
x02 = y 00 = x3
Ma
1 1
x03 = y 000 = 3y 00 − 2y 0 − y − sin t
2 2
1 1
= 3x3 − 2x2 − x1 + sin t.
2 2
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 81 of 101
Makerere University MTH 2103 - Differential Equations I
03
This gives the system
x01 = x2
x02 = x3
1 1
x03 = − x1 − 2x2 + 3x3 + sin t.
21
2 2
x01 = x2 = x2
TH
x02 = x00 = x3
1
x03 = x000 = − 3 (4t2 x00 − 8tx0 + 8x)
t
8 8 4
= − 3 x1 + 2 x2 − x3
t t t
Then we have the system
x01 = x2
x02 = x3
8
-M 8 4
x03 = − 3 x1 + 2 x2 − x3
t t t
5.
x00 + 3x0 − y 00 + y = sin t
(10.1)
x0 − 4x + 5y 00 − 6y 0 = cos t
pt
Solution: Let x1 = x0 , x2 = y 0 . Then x01 = x00 , x02 = y 00 . And the system (10.1) becomes
x01 + 3x1 − x02 + y = sin t
x1 − 4x + 5x02 − 6x2 = cos t (10.2)
0
y − x2 = 0
De
If in example 4 we had initial conditions x(2) = 3, x0 (2) = −6, x00 (2) = 14. Then
x1 (t) = x(t), x2 (t) = x0 (t), x3 (t) = x00 (t) would give x1 (2) = 3, x2 (2) = −6, and
x3 (2) = 14 as the initial conditions associated with the system of the differential equations
obtained. Clearly the system is of first order and so the initial conditions are of first order.
Examples 10.2
th
Reduce the system of differential equations into a single higher order differential equation.
1.
x0 = x + y
Ma
y0 = x − y
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 82 of 101
Makerere University MTH 2103 - Differential Equations I
03
2.
x0 = x + 2y + t − 1
y 0 = 3x + 2y − 5t − 2
21
Solution: From x0 = x + 2y + t − 1, we have x00 = x0 + 2y 0 + 1. This gives
x00 = x0 + 2(3x + 2y − 5t − 2) + 1
= x0 + 6x + 4y − 10t − 4 + 1
= x0 + 6x + 2(x0 − x − t + 1) − 10t − 4 + 1
TH
= x0 + 6x + 2x0 − 2x − 2t + 2 − 10t − 3
= 3x0 + 4x − 12t − 1.
Thus x00 − 3x0 − 4x = −12t − 1; which is a second order constant coefficient, linear,
nonhomogeneous differential equation.
3.
x0 = x + sin x cos x + 2y
-M
y 0 = = sin2 x(x + sin x cos x + 2y) + x
Thus x00 − 2x0 − 2x = 0; a second order, constant coefficient, linear differential equation.
pt
Examples 11.1
s
1.
x0 = x + y , x(0) = 1
y 0 = x − y y(0) = 0
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 83 of 101
Makerere University MTH 2103 - Differential Equations I
03
And equation (11.1) gives
√ √ √ √
x0 (t) = 2c1 e 2t
− 2c2 e 2t (11.2)
21
√ √ √ √ √ √
y = 2c1 e 2t − 2c2 e− 2t − c1 e 2t − c2 e− 2t
√ √ √ √
y = ( 2 − 1)c1 e 2t − ( 2 + 1)c2 e− 2t
√ √
And x(0) = 1 ⇒ c1 + c2 = 1, √y(0) = 0 ⇒ ( 2 − 1)c √ 1 − ( 2 + 1)c2 = 0 which we solve
simultaneously to give c1 = 21 ( 2 + 1) c2 = 14 (2 − 2). Thus √
√
TH
p √ √ √ √
x(t) = 12 ( (2 + 1)e 2t + 14 (2 − 2)e− 2t and y(t) = 21 e 2t − 42 e− 2t .
x0 = 2x + y + t
y 0 = x + 2y + t2
Solution:
x00 =
=
2x0 + y 0 + 1
-M
2x0 + (x + 2y + t2 ) + 1
= 2x0 + (x + 2x0 − 4x − 2t + t2 ) + 1
= 4x0 − 3x + t2 − 2t + 1
x0 − 4x + y 00 = t2
x0 + x + y 0 = 0.
5x0 + y 00 + 4y 0 = t2 (11.6)
Ma
y 000 + 4y 0 = t2 + 2t (11.7)
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 84 of 101
Makerere University MTH 2103 - Differential Equations I
03
Equation (11.7) is a third order differential equation whose auxiliary equation is
r3 + 4r = 0. This gives r = 0, r = ±2i. Then the solution to the homogeneous part is
1 3
yc = c1 + c2 cos 2t + c3 sin 2t. Clearly the particular solution is yp = 12 t + 14 t2 − 18 t. And
1 3
the general solution is y = c1 + c2 cos 2t + c3 sin 2t + 12 t + 14 t2 − 18 t.
Eliminating y from the system we have
21
x0 − 4x + y 00 = t2
⇒ x00 + 4x = −t2 (11.8)
x00 + x0 + y 00 = 0
The auxiliary equation to the differential equation (11.8) is r2 + 4 = 0. This gives
r = ±2i so that the solution to the homogeneous part of (11.8) is
TH
x = c4 cos 2t + c5 sin 2t, and the particular solution is xp = − 41 t2 + 18 . And hence we get
the solution x(t) = c4 cos 2t + c5 sin 2t − 14 t2 + 18 .
⇒ dX
dt
dx
1. dtdy
=
dt
=
=
3x
x −
+
3 4
4y
5y
1 −5
X where X =
d
is equivalent to dt
x
y
x
y
= -M 3
1
4
−5
x
y
dx
dt
= 2x + 3y − 4t dX 2 3 x −4t
2. dy is equivalent to dt = +
dt
= −x + e−t 1 0 y e−t
And generally we can write a system as dX
dt
= A(t)X+F(t). If F(t) = 0 then we have dX
dt
= AX.
0 0
The general system is in many cases written as X = AX + F if nonhomogeneous or X = AX
pt
if homogeneous.
The process of finding solution to systems of first order linear differential equation rests on the
use of the matrix A.
De
Then using matrix A, we compute |A − λI| = 0 where λ is an eigenvalue of the matrix A. This
s
enables us to obtain the corresponding eigenvectors and hence the solution corresponding to
the particular eigenvalue.
th
The nature of the solution is dictated by the status of the eigenvalue. The eigenvalues may
take on real and distinct, real and equal (repeated), and complex conjugate forms.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 85 of 101
Makerere University MTH 2103 - Differential Equations I
03
λ1 t ξ1
the two linearly independent solution are X1 (t) = ξe = eλ1 t and
ξ2
ν 1
X2 (t) = νeλ2 t = eλ2 t The two solutions will be linearly independent if the Wronskian
ν2
W (X1 (t0 ), X2 (t0 )) 6= 0, for some t0 .
21
If X1 (t) = ξeλ1 t and X2 (t) = νeλ2 t are the two linearly independent solutions to the system of
linear differential equations then general solution is
TH
If λ1 , λ2 , . . . , λn are n eigenvalues associated with a system of n first order linear differential
equations, and ξ1 , ξ2 , . . . , ξn are the corresponding eigenvectors, then the n linearly independent
solutions to the system are X1 (t) = ξ1 eλ1 t , X2 (t) = ξeλ2 t , . . . , Xn = ξ2 eλn t and the general
solution is X(t) = c1 ξ1 eλ1 t + c2 ξ2 eλ2 t + . . . + cn ξn eλn t .
Examples 12.1
Thus we have
1−λ 3 ξ1 0
= (12.1)
5 3−λ ξ2 0
3 3 ξ1 0
For λ = −2; (12.1) gives = from which we have
5 5 ξ2 0
s
3ξ1 + 3ξ2 = 0
⇒ ξ1 = −ξ2 . Choosing ξ2 = −1 gives ξ1 = 1. Thus we have an
5ξ1 + 5ξ2 = 0
1
th
5 −3 ν2 0 5ν1 − 3ν2 = 0
3ν2 . Choosing ν1= 3,gives ν2 = 5. Thus, corresponding to the eigenvalue λ2 = 6 we have
3
eigenvector ν = . And the second solution is
5
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 86 of 101
Makerere University MTH 2103 - Differential Equations I
03
λ2 t 3
X2 = νe = e6t . Then the general solution is
5
1 −2t 3
X = c1 e + c2 e6t (12.2)
−1 5
21
−2t
1 −2t e
The two solutions X1 = e = −2t and
6t −1 −e
3 6t 3e
X2 = e = 6t are linearly independent; for the Wronskian
5 5e−2t
e 6t
3e
TH
W (X1 (t), X2 (t)) = = 5e4t + 3e4t = 8e4t 6= 0.
−e−2t 5e6t
Solution (12.2) is equivalent to x(t) = c1 e−2t + 3c2 e6t and y(t) = −c1 e−2t + 5c2 e6t .
dx
dt
= 2x + 3y
2. Solve the system of differential equations dy , subject
dt
= 2x + y
to x(0) = −4, y(0) = −1.
= λ2 − 3λ − 4 = 0
-M2 3
2 1
X; X(0) =
2
−1
. Then
⇒ λ1 = −1 and λ2 = 4.
3 3 ξ1 0
For λ1 = −1, we have = from which we have
2 2 ξ2 0
3ξ1 + 3ξ2 = 0
⇒ ξ1 = −ξ2 . Choosing ξ2 = −1 gives ξ1 = 1. Thus the
2ξ1 + 2ξ2 = 0
pt
1 1
eigenvector is ξ = and the solution is X1 = e−t .
−1 −1
−2 3 ν1 0 −2ν1 + 3ν2 = 0
For λ = 4, we have = . This gives ⇒
2 −3 ν2 0 2ν1 − 3ν2 = 0
De
3
2ν1 = 3ν2 . Choosing ν2 = 2 gives ν1 = 3 and we have ν = . Then the
2
3
second solution is X2 = e4t and the general solution is X = c1 X1 + c2 X2 =
2
1 −t 3
c1 e + c2 e4t . Thus x(t) = c1 e−t + 3c2 e4t and y(t) = −c1 e−t + 2c2 e4t .
−1 2
The initial conditions x(0) = −4 ⇒ c1 + 3c2 = −4 and y(0) = −1
s
⇒ −c1 + 2c2 = −1. This gives c1 = −1, and c2 = −1. Thus, we have
x(t) = −e−t − 3e4t and y(t) = e−t − 2e4t .
th
= x + 5y − z
dt
dz
= y − 3z
dt
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 87 of 101
Makerere University MTH 2103 - Differential Equations I
03
−4 1 1
Solution: The system in matrix form is X0 = 1 5 −1 X
0 1 −3
−4 − λ 1 1
Then |A−λI| = 0 gives 1 5−λ −1 = (λ + 3)(λ + 4)(λ − 5) = 0 and the
21
0 1 −3 − λ
eigenvalues are λ1 = −3, λ2 = −4, λ3 = 5.
−1 1 1 ξ1 0
For λ1 = −3; we have 1 8 −1 ξ2 = 0 from which we get
0 1 0 ξ3 0
TH
−ξ1 + ξ2 + ξ3 = 0 1
−ξ1 + 8ξ2 − ξ3 = 0 ⇒ ξ1 = ξ3 . Choosing ξ1 = 1 gives ξ3 = 1. Thus ξ = 0 and
ξ2 = 0 1
1
the first solution is X1 = 0 e−3t .
1
0 1 1 ν1 0
For λ2 = −4, we have
ν2 + ν3 = 0
ν1 + 9ν2 − ν3 = 0
1 9 −1
0 1 1
ν2
ν3
-M
= 0 . This gives
0
1
1 10 1
−3t −4t
X = c1 X1 + c2 X2 + c3 X3 becomes X = c1 0 e + c2 −1 e + c3 8 e5t .
1 1 1
Exercise 12.1
s
dt dt dt
dy dy dy
= 4x + 3y
dt dt
= 8x = − 52 x + 2y
dt
0 10 −5 0 −6 2
4. X = X 5. X = X
8 −12 −3 1
Ma
dx dx
6. dt
=x+y−z 7. dt
= 2x − 7y
dy dy
dt
= 2y dt
= 5x + 10y + 4z
dz dz
dt
=y−z dt
= 5y + 2z
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 88 of 101
Makerere University MTH 2103 - Differential Equations I
03
−1 1 0 1 0 1
0
8. X = 1 2 1 X 9. X0 = 0 1 0 X
0 3 −1 1 0 1
21
−1 −1 0 −1 4 2
3
0
10. X =
4
− 23 3 X 11. X0 = 4 −1 −2 X
1 1 1
8 4
−2 0 0 6
1 1 1 4 1
0 2
0 3 0
12. X = X, X(0) = 13. X = 0 2 0 X, X(0) = 3
1 − 12
5
1 1 1 0
TH
12.2 Case II: Complex conjugate eigenvalues
Consider the system of differential equations given by
dx
= 6x − y
dt
dy
dt
= 5x + 4y
(1 − 2i)ξ1 − ξ2 = 0 (12.3)
De
(5+2i)t
X1 = e and X2 = e(5−2i)t
1 − 2i 1 + 2i
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 89 of 101
Makerere University MTH 2103 - Differential Equations I
03
Then it follows that
21
and
TH
x(t) = e5t (A cos 2t + B sin 2t)
y(t) = e5t (A − 2B) cos 2t + e5t (2A + B) sin 2t.
1 + 2i
corresponding to λ1 = 5+2i
and λ2 = 5 − 2i are clearly complex conjugates of each other ( much as the eigenvalues are
complex conjugates).
One eigenvector ξ corresponding to the eigenvalue λ1 is obtained if it is clear enough that the
second eigenvector ν is its complex conjugate.
Thus we have the following generalisation:
pt
Let ξ and ξ¯ be complex conjugate eigenvectors corresponding to the complex conjugate eigen-
values λ and λ̄, where λ = α + βi. Then
¯ λ̄t = ξe
and X2 = ξe ¯ (α−β)t = ξe
¯ αt (cos βt − i sin βt)
For any complex number z = a + ib we note that 21 (z + z̄) = a and 2i (−z + z̄) = b are Real
numbers . Therefore the entries in the column vectors
th
1 ¯ and 1 (−ξ + ξ)
¯
(ξ + ξ)
2 2
are real numbers. By the assertion above, we write
Ma
1 ¯ and B2 = i (−ξ + ξ)
¯
B1 = (ξ + ξ) (12.6)
2 2
And we have the following conclusion:
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 90 of 101
Makerere University MTH 2103 - Differential Equations I
03
Let λ = α + βi be a complex eigenvalue of the coefficient matrix A in the homogeneous system
of differential equation and let B1 and B2 denote the columns defined in (12.6). Then
21
are the two linearly independent solutions. The matrices
B1 andB2 are
clearly
1 1 0
B1 = Re(ξ) and B2 = Im(ξ). For example ξ = = + i has
i − 2i 1 −2
1 0
B1 = Re(ξ) = and B2 = Im(ξ) = .
1 −2
TH
Examples 12.2
0
B2 = Im(ξ) = . And the two linearly independent solutions are
1
αt 2 0
X1 = (B1 cos βt − B2 sin βt)e = [ cos t − sin t]et and
0 1
De
0 2
X2 = (B2 cos βt + B1 sin βt)eαt = [ cos t + sin t]et . The general solution is then
1 0
2 0 t 0 2
X(t) = c1 [( cos t − sin t)e ] + c2 [( cos t + sin t)et ] which simplifies to
0 1 1 0
2 cos t 2 sin t
X(t) = c1 et + c2 et .
− sin t cos t
s
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 91 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 12.2
21
dy dy dy
dt
= 5x + 2y dt
= −2x − y dt
= −2x + 3y
dx dx dx
4. dt
= 4x + 5y 5. dt
= 4x − 5y 6. dt
= x − 8y
dy dy dy
dt
= −2x + 6y dt
= 5x − 4y dt
= x − 3y
dy dx dx
7. dt
= −z 8. dt
= 2x + y + 2z 9. dt
= x − y + 2z
dy dy dy
=z = 3x + 6z = −x + y
TH
dt dt dt
dz dz dz
dt
=z dt
= −4x − 3z dt
= −x + z
dx dx dx
10. dt
= 4x + y 11. dt
= 2x + 5y + z 12. dt
= x − 12y − 14z
dy dy dy
dt
= 6y dt
= −5x − 6y + 4z dt
= x + 2y − 3z
dz dz dz
dt
= −4x + 4z dt
= 2z dt
= x + y − 2z
dx dx
13. dt
= 2x + 4y + 4z 14. dt
= 6x − y; x(0) = −2
dy
dt
dz
dt
= −x − 2y
= −x − 2z
dt
3 − λ −18
Then |A − λI| = = (λ + 3)2 = 0 gives λ1 = λ2 = −3.
2 −9 − λ
De
3
For λ = −3 we find that ξ = , and so the solution corresponding to this is
1
3
X1 = e−3t . But this gives only one solution and since we are interested in the general
1
solution we need to find the second linearly independent solution.
Suppose λ1 is an eigenvalue of multiplicity two and there is only one eigenvector associated
with this eigenvalue. A second solution can be found of the form
s
ξ1 ν1
where ξ = and ν = . Then using (12.7) in the system X0 = AX gives (Aξ −
ξ2 ν2
λ1 ξ)teλ1 t + (Aν−λ1 ν − ξ)eλ1 t = 0. Since this equation is to hold for all values of t we have
(A − λ1 I)ξ = 0 (12.8)
Ma
Solving (12.8) gives one solution X1 = ξeλ1 t . To find the second solution X2 we simply solve
(12.9) for ν, for a known ξ.
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 92 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 12.3
6 −18 ξ1 6ξ1 − 18ξ2 = 0 ξ1 − 3ξ2 = 0
= 0. This gives or .
2 −6 ξ2 2ξ1 − 6ξ2 = 0 − 3ξ
ξ1 2 = 0
3
The two give ξ1 = 3ξ2 . Choosing ξ2 = 1, gives ξ1 = 3. Thus ξ = and the first solution is
21
1
3
X1 = e−3t . To find the second solution, we solve (A − λI)ν = ξ.
1
5 −18 ν1 3 6ν1 − 18ν2 = 3
Thus = , gives , ⇒ ν1 − 3ν2 = 21
2 −6 ν2 1 2ν1 − 6ν2 = 1
TH
1
Choosing ν2 = 0 gives ν1 = 2
. (This
1 choice is not unique. One could choose ν1 = 1 to
2
1 . And from X2 = ξteλt + νeλt we have the second
give ν2 = 6
.) Thus we have ν =
0
1
3 2
solution as X2 = te−3t + e−3t Then the general solution X = c1 X1 + c2 X2 gives
1
0
X = c1
3
1
e−3t + c2 [
3
1
te−3t +
1
2
0
-M
e−3t ].
t2
X1 = ξeλt X2 = ξteλt + νeλt and X3 = ξ eλt + νteλt + ρeλt ,
2
ξ1 ν1
pt
ρ3
(A − λI)ξ = 0
(A − λI)ν = ξ
(A − λI)ρ = ν
s
Examples 12.4
th
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 93 of 101
Makerere University MTH 2103 - Differential Equations I
03
1 1
ξ= 0 so that the first solution is X1 = 0 e2t .
0 0
λt λt
To
find the second solution,
we use X
2 = ξte + νe
, where (A− λI)ν= ξ
gives
2−λ 1 6 ν1 1 0 1 6 ν1 1
21
0 2−λ 5 ν2 = 0 or 0 0 5 ν2 = 0 . Thus we
0 0 2−λ ν3 0 0 0 0 ν3 0
have ν2 + 6ν3 = 1 and 5ν3 =0, from which we see that ν3 = 0 and ν2 = 1. And the choice
0
of ν1 = 0 gives ν2 = 1 . Thus the second solution X2 = ξteλt + νeλt is X2 =
0
TH
1 0
0 te2t + 1 e2t . To find the third solution we use X3 = ξ t2 eλt + νteλt + ρeλt where
2!
0 0
0 1 6 ρ1 0
(A − λI)ρ = ν. This gives 0 0 5 ρ2 = 1 from which we have ρ2 + 6ρ3 = 0
0 0 0 ρ3 0
2
-M 1
2
0
0
6
and 5ρ3 = 1. Thus ρ3 = 51 and ρ2 = − 56 . Then the choice of ρ1 = 0 gives − 5 . Then the
1
5
0
6
third solution X3 = ξ t2! eλt + νteλt + ρeλt gives X3 = 0 t2 e2t + 1 te2t + − 5 e2t .
0 0 1
5
And the general solution X = c1 X1 + c2 X2 + c3 X3 becomes
0
1 1 0 1 0
2 6
X = c1 0 e2t + c2 [ 0 te2t + 1 e2t ] + c3 [ 0 t2 e2t + 1 te2t + − 5 ].
pt
0 0 0 0 0 1 2t
e
5
If λ is of multiplicity four then the four linearly independent solutions would be
X1 = ξeλt
De
X2 = ξteλt + νeλt
t2
X3 = ξ eλt + νteλt + ρeλt
2!
t3 t2
X4 = ξ eλt + ν eλt + ρteλt + γeλt
3! 2
where ξ, ν, ρ and γ are obtained by solving, respectively, equations
s
(A − λI)ξ = 0
(A − λI)ν = ξ
th
(A − λI)ρ = ν
(A − λI)γ = ρ
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 94 of 101
Makerere University MTH 2103 - Differential Equations I
03
Exercise 12.3
21
dx dx dx
1. dt
= 3x − y 2. dt
= −6x + 5y 3. dt
= −x + 3y
dy dy dy
dt
= 9x − 3y dt
= −5x + 4y dt
= −3x + 5y
dx dx dx
4. dt
= 12x − 9y 5. dt
= 3x − y − z 6. dt
= 3x + 2y + 4z
dy dy dy
dt
= 4x =x+y−z
dt dt
= 2x + 2z
dz dz
=x−y−z
dt dt
= 4x + 2y + 3z
TH
5 −4 0 1 0 0 1 0 0
0
7. X = 1 0 2 X 8. X0 = 0 3 1 X 9. X0 = 2 2 −1 X
0 2 5 0 −1 1 0 1 0
4 1 1
10. X0 = 0 4 1 X
0 0 4
11. X0 =
2 4
−1 6
X, X(0) =
−1
6
-M
Solve the given systems subject to the indicated initial conditions.
0 0 1
1
12. X0 = 0 1 0 X, X(0) = 2
1 0 0 5
X0 = AX + F(t); F(t) 6= 0.
The process of solving nonhomogeneous system of differential equations involves solving for the
De
dx
= −x + 2y − 8
dt
dy
= −x + y + 3
dt
Ma
−1 2 −8
Solution: This system in matrix form is X0 = X+ . We first solve the ho-
−1 1 3
0 −1 2 −1 − λ 2
mogeneous system X = X. The determinant |A−λI| = 0 gives
=
−1 1 −1 1−λ
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 95 of 101
Makerere University MTH 2103 - Differential Equations I
03
λ2 + 1 =0, giving the complementary
solution
cos t + sin t cos t − sin t
Xc = c 1 + c2 .
cos t − sin t
−8 a1
Since F(t) = is a constant we assume a particular solution Xp = . This
21
3 b1
0 0
gives X0 p = which on substitution into the equation X0 = AX + F(t) gives =
0 0
−1 2 a1 −8
+ ⇒ 0 = −a1 + 2b1 − 8 and 0 = −a1 + b1 + 3. Solving the equations
−1 1 b1 3
14
simultaneously gives a1 = 14 and b1 = 11 and so Xp = . Thus X = Xc + Xp =
TH
11
cos t + sin t cos t − sin t 14
c1 + c2 + .
cos t − sin t 11
6 1
6t
0
Solution: This system in matrix form is X = X+ . We first solve the
4 3 −10t + 4
0 6 1 6−λ 1
homogeneous system X = X. The determinant |A − λI| = = λ2 −
4 3 4 3 −λ
1
9λ + 14 = 0 gives λ1 = 2 and λ2 = 7. The respective eigenvectors are ξ = for λ1 = 2
pt
−4
1 1
and ν = , forλ2 = 7. Consequently the complementary solution is Xc = c1 e2t +
1 −4
1
c2 e7t .
1
De
6t 6t 0
To solve for the particular solution, F(t) = = + . So we
−10t + 4 −10t 4
a1 t + a2 a1
assume Xp = . This leads to X0 p = which when used in the system gives
b1t+b2 b1
a1 6 1 a1 t + a2 6t
= + . After multiplying out and collecting terms
b1 4 3 b t
1 2+ b −10t +4
a1 (6a1 + b1 + 6)t + (6a2 + b2 )
s
have and .
4a1 + 3b1 − 10 = 0 4a2 + 3b2 − b1 + 4 = 0
Solving the first two equations simultaneously gives a1 = −2 and b1 = 6. And using these
values into the second set of equations and solving for a1 and b1 gives a2 = − 74 and b2 = 10
7
.
4 4
−2t − 7 −2 −7
Then we have Xp = = t+ . Thus, the general solution is
Ma
10 10
6t
+ 7 6 7 4
1 1 −2 −7
X = Xc + Xp = c 1 e2t + c2 e7t + t+ 10 .
−4 1 6 7
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 96 of 101
Makerere University MTH 2103 - Differential Equations I
03
3. Determine the form of the particular solution vector Xp for the system
dx
= 5x + 3y − 2e−t + 1
dt
dy
= −x + y + e−t − 5t + 7
21
dt
Solution:
The system
in matrix
form
is
5 3 −2 0 1
X0 = X+ e−t + t+ . Clearly for homogeneous part, |A−λI| =
−1 1 1 −5 7
1 2t 3
0 yields Xc = c1 e + c2 e4t .
−1 −1
TH
−2 −t 0 1
Since F(t) = e + t+ we assume a particular solution
1 −5
7
a1 −t a2 a3
Xp = e + t+
b1 b2 b3
Remarks:
−2t2 + e2t a1 t2 + a2 t + a3 + a4 e2t
1. If F(t) =
10t + e−t
-M
we would assume Xp =
b1 t + b2 + b3 e−t
2. The method of undetermined coefficients is not as simple as the last examples may seem
to suggest. As in the case of solving nonhomogeneous differential equations that are
not systems, the method can only be applied when the entries in the matrix F(t) are
constants, polynomials, exponentials, sines and cosines ; or finite sums and products of
these functions. The assumption for Xp is actually predicted on a prior knowledge of the
complementary solution Xc . For example if F(t) is a constant vector and λ = 0 is an
eigenvalue, in which case
Xc
contains
a constant vector, then Xp cannot be a constant
pt
a2 a1
vector but rather Xp = t+ .
b2 b1
−t
Similarly if we
−t
have λ = −1 then Xc wouldcontain
a vector term with e , say F(t) =
10t + e 1 0
2 2t , where Xc = e−t + e−4t instead of
2t + te 1 1
De
a1 + a2 t + a3 e−t
Xp = (the difference being on the term with e−t ) then
b1 + b2 + b3 t2 + (b4 + b5 t)e2t
requires multiplication through the first row by t.
The arithmetic and algebraic manipulation go on becoming complicated with the method
of undetermined coefficients. Rather than persue these difficulties we turn our attention
to the method of variation of parameters
s
Exercise 13.1
In numbers 1-8 use the method of undetermined coefficients to solve the given systems
th
dx dx dx
1. dt
= 2x + 3y − 7 2. dt
= 5x + 9y + 2 3. dt
= x + 3y − 2t2
dy dy dy
dt
= −x − 2y + 5 = −x + 11y + 6
dt
= x − 4y + 4t + 9e6t
dt
1
0 4 3
−3 t 0 −1 5 sin t
4. X = X+ e 5. X = X+
Ma
9 6 10
−1 1 −2 cos
t
1 1 1 1 0 0 5 5
6. X0 = 0 2 3 X + −1 e−4t 7. X0 = 0 5 0 X + −10
0 0 5 2 5 0 0 40
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 97 of 101
Makerere University MTH 2103 - Differential Equations I
03
0 −1 −2 3 −4
8. Solve X = X+ subject to X(0) =
3 4 3 5
0 1 −1 3t 2
9. Solve the system X = X+ subject to X(0) =
3 4 3te−2t −1
21
13.2 Method of variation of parameters
Consider the system whose general solution is
1 2t 3
X = c1 e + c2 e3t (13.1)
TH
−3 2
Then this solution can be written as
x(t) = c1 e2t + 3c2 e3t
y(t) = −3c1 e2t + 2c2 e3t
which in turn is equivalent to
x
y
=
-M
e2t 3e3t
−3e2t 2e3t
c1
c2
System (13.2) can be written as X = φ(t)C and this is a solution to X0 = AX. And indeed
(13.2)
The indefinite integral of the column matrix φ−1 (t)F(t) in (13.9) is evaluated by integrating
each entry. Thus the general solution X = Xc + Xp is X = φ(t)C + φ(t) φ−1 (t)F(t)dt.
R
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 98 of 101
Makerere University MTH 2103 - Differential Equations I
03
Examples 13.1
−3 1 3t
Find the general solution to the system X0 = X+ .
2 −4 e−t
−3 1
21
Solution: We first solve the homogeneous system X0 = X and
2 −4
−3 − λ 1
|A − λI| = = (λ + 2)(λ + 5) = 0 ⇒ λ1 = −2 and λ2 = −5. Clearly the
2 −4 − λ
1 1
corresponding eigenvectors to λ1 and λ2 are ξ = and . And the solution vectors
1 −2
TH
1 1
are X1 = e−2t and X2 = e−5t . Then the fundamental matrix solution φ(t) is
1 −2
e−2t e−5t
2 2t 1 2t
−1 e e
given by φ(t) = ⇒ φ (t) = 3 3 .
e−2t −2e−5t 1 5t
3
e − 1 5t
3
e
3t
Now with F(t) = we have
e−t
=
e
Z
Xp = φ(t) φ−1 (t)F(t)dt
−2t
e−5t
e−2t −2e−5t
-M
Z 2 2t 1 2t
3
e
1 5t
3
3
e − 13 e5t
e 3t
e−t
dt
−2t
e−5t 1 t
Z
e 2te2t 3
e
= dt
e−2t −2e−5t te5t − 13 e4t
−2t
e−5t te2t − 12 e2t + 13 et
e
=
e−2t −2e−5t 1 5t
5
te − 25 1 5t
e − 12 1 4t
e
pt
+ 14 e−t
6
t − 27
= 5 50
3
5
t − 50 + 12 e−t
21
6 27 1
1 −2t 1 −5t
Hence X = Xc + Xp = c1 e + c2 e + 53 t − 50 21 + 41 e−t .
1 −2
De
5 50 2
If the solution of the system of differential equations is sought on an interval then the general
solution is Z t
X = φ(t)C + φ(t) φ−1 (s)F(s)ds (13.10)
t0
where t0 and t are points in the interval.
If the system is solved subject to an initial condition X(t0 ) = X0 then substituting t = t0
into (13.10) yields X0 = φ(t0 )C from which we have C = φ−1 (t0 )X0 and the solution to the
s
initial-value problem is
th
Z t
−1
X = φ(t)φ (t0 )X0 + φ(t) φ−1 (s)F(s)ds. (13.11)
t0
0 3 −1 1
For example, given the system X = X, subject to X(0) = . The funda-
−1 3 1
Ma
e2t e4t
mental matrix for the homogeneous part is φ(t) = .
1 e2t −e4t
1
1 1
For t0 = 0; φ(t0 ) = ⇒ φ−1 (t0 ) = 2
1
2 . And
1 −1 2
− 12
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 99 of 101
Makerere University MTH 2103 - Differential Equations I
03
2t
−1 e2t
1 e4t 1 1 1 e + e4t e2t − e4t
φ(t)φ (t0 ) = =
e2t −e4t 1 −1 2 e2t − e4t e2t + e4t
2
21
φ−1 (s)F(s) = 2
1 −4s
2 =
2
e − 1 e−4s 4e4s 2e−2s − 2
R2 t
R t −1 (2 + 2e2s )ds 2t + e2t − 1
⇒ t0 φ (s)F(s)ds = R t −2s 0 = . And
0
(2e − 2)ds −e−2t − 2t + 1
2t
R t −1 e e4t 2t + e2t − 1 2(t − 1)(e2t − e4t )
φ(t) 0 φ (s)F(s)ds = = .
22t −e4t −2e−2t − 2t + 1 2t(e2t + e4t )
TH
Thus, the solution is given by
Z t
−1
X(t) = φ(t)φ (t0 )X0 + φ(t) φ−1 (s)F(s)ds
t0
2t
e 2(t − 1)(e2t − e4t )
= +
e2t 2t(e2t + e4t )
Exercise 13.2
-M
In the problems 1-16 use variation of parameters to solve the given system
dx dx
1. dt
= 3x − 3y + 4 2. dt
= 2x − y
dy dy
= 2x − 2y − 1
dt dt
= 3x − 2y + 4t
3 −5 2 −1
pt
0 1 t
0 sin 2t
3. X = 3 X+ e2 4. X = X+ e2t
4 −1 −1 −t 4 2 2
cos 2t
3 2 2e 3 2 1
5. X0 = X+ −t
0
6. X = X+
−2 −1 e −2 −1 1
0 −1 sec t 1 −1 3
7. X0 = X+ 8. X0 = X+
De
1 0 0 1 1 3
1 −1 cos t 2 −2 1 e−2t
9. X0 = X+ et 10. X0 = X+
1 −1 sin t 6 −6 3
t
0 0 1 0 0 0 1 1
11. X = X+ 12. X = X+
−1 0 sec t tan t −1 0 cot t
1 2 csc t 1 −2 tan t
13. X0 = 1 X+ et 14. X0 = X+
2 − 1 sec
t t 1 −1 1
1 1 0 e 3 −1 −1 0
s
In problems 17 and 18 use equation (13.11) to solve the given system subject to the indicated
initial condition
0 −2 2 5 sin 2t 2
17. X = X+ , X(0) =
2 −5 0 −1
Ma
1 −1 1/t 2
18. X0 = X+ , X(1) =
1 −1 1/t −1
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 100 of 101
Makerere University MTH 2103 - Differential Equations I
03
REFERENCES FOR FURTHER READING
1. John Bird (2014), Understanding Engineering Mathematics. Routledge, Taylor & Francis
Group.
21
2. Stroud K. A. (2005), Engineering Mathematics. 5th Edition, Palgrave Macmillan. ,
3. Thomas M. Creese and Robert M. Haralick, (1978). Differential Equations for Engineers,
McGraw-Hill.
4. Boyce W.E. and Diprima, R.C. (1986) Elementary Differential Equations and Bound-
TH
ary value problems. 4th Edition. Jojn Wiley and sons New York, Chichester, Busbane,
Toronto, Singapore.
5. Derrick W.R. and Grossman, S.I (1976). Elemerntary Differential Equations with Appli-
cations Addison-Wesley Publishing company; Reading, Massachusetts London, Ontario,
Sydney.
lishing Company. -M
6. Shepley L. Ross (1966), Introduction to Ordinary Differential Equations. Blaisdell Pub-
7. Erwin Kreyszig (2006), Advanced Engineering Mathematics. 8th Edition, John Wiley and
Sons Ltd.
8. Finizio N. and Ladas G. (1978), Ordinary Differential Equations with Modern applica-
tions. Wadsworth publishing company, inc. Belmont,Calfonia.
9. Matthey R.M.M. and Molewaar J. (1996), Ordinary Differential Equations in Theory and
pt
10. Murray R. Spiegel (1981), Applied Differential Equations. 3rd Edition, Prentice-Hall.
11. Nagle R.K. and Saff E.B. (1989), Fundamentals of Differential Equations. 2nd Edition.
The Benjamin/cummings publishing company, Inc. Redwood city, Calfonia.
De
12. Rabenstein A.L. (1972), Introduction to Ordinary Differential Equations. 2nd Edition,
Academic press. Newyork, San Francisco London.
13. David A. Sanchez, Richard C. Allen and Walter T. Kyner (1988), Differential Equations.
2nd Edition, Addison-Welsey publishing company.
s
th
Ma
Dr. Joseph Ssebuliba (Maths Dept) - STAT, QE, SAS page 101 of 101