Professional Documents
Culture Documents
Contents
1 Basic concepts
1.1
Differential equations . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2
Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3
1.4
1.5
1.6
Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.7
2.1
2.2
10
2.3
12
2.3.1
Bernoulli equations . . . . . . . . . . . . . . . . . . . . . . . . .
15
2.3.2
Riccati equation . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
2.4
21
2.5
23
2.6
27
2.6.1
30
2
3 Second order differential equations
33
3.1
General theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
3.2
38
3.3
42
3.4
. . . . . . . . . . . . . . . . . . .
44
3.5
49
3.6
52
3.7
Euler-Cauchy equations
54
. . . . . . . . . . . . . . . . . . . . . . . . . .
62
4.1
63
4.2
64
4.3
65
4.3.1
Ordinary points . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
4.3.2
Singular points . . . . . . . . . . . . . . . . . . . . . . . . . . .
66
4.4
68
4.5
74
A Analytic functions
88
89
History of revisions
These course notes are a work in progress. It will be updated from time to time.
As such, it will be perpetually in draft form. New materials, new examples, within
the scope of the syllabus, will be added on a regular basis. If you spot any errors or
omissions please email me at mbakri@um.edu.my. It is hoped that this draft will evolve
into a self contained notes for this course.
Please check Spectrum for any release of updated version.
Version 6.1 - this version
Version 5 - 11 November 2013
Version 4 - 7 October 2013
Version 3 - 18 September 2013
Version 2 - 11 September 2013
Version 1 - 9 September 2013
Chapter 1
Basic concepts
We introduce the terms and terminologies found in the study of differential equations.
1.1
Differential equations
d2 y
dx2
(1.1)
(1.2)
d3 y
d2 y
+
(cos
x)
+ 3x2 y = 0
dx3
dx2
2
+ 4y
dy
dx
7
+ y3
2y
2y
9 2 =0
2
t
x
dy
dx
(1.3)
2
= 5x
(1.4)
(1.5)
1.2
Notation
dy d2 y d3 y d4 y
d2 n
The Liebnitz notations
, 2 , 3 , 4 , . . . , n are used to represent, respectively,
dx dx dx dx
dx
the first, second, third, fourth, . . . , nth derivatives of y with respect to the independent
variable x.
If the independent variable of y is understood from the context, the expressions
y 0 , y 00 , y 000 , y (4) , . . . , y (n) are sometimes used.
1.3
Example 2. Equations (1.1) to (1.4) are ordinary differential equations, since the
unknown function y depends only on the variable x.
Example 3. Equation (1.5) is a partial differential equation having t and x as independent variables.
1.4
Order: The order of a differential equation is the highest derivative that appears in
the differential equation.
Example 4. In the equation
x2
d2 y
dx2
3
+3
d3 y
dx3
2
+7
dy
=0
dx
d3 y d2 y
dy
The orders of
,
and
are 3, 2 and 1 respectively. The highest order is 3 and
3
2
dx dx
dx
therefore the order of the differential equation is 3.
Degree: The degree of a differential equation is the power of the highest derivative
term.
Example 5. In the equation
x
d2 y
dx2
3
+3
d3 y
dx3
2
+7
dy
=0
dx
d3 y
The order of the differential equation is 3 and
has power 2. Therefore the degree
dx3
of the differential equation is 2.
1.5
+
a
(x)
+
a
(x)
+ a0 (x)y = g(x)
n1
2
1
dxn
dxn1
dx2
dx
where ai (x) and g(x) are functions of x only.
an (x)
Non-linear: Differential equations that do not satisfy the definition of linear are nonlinear.
Example 7. Equations (1.2) and (1.4) are non-linear differential equations.
1.6
Solutions
General solution: Solutions obtained from integrating the differential equations are
called general solutions. The general solution of a nth order ordinary differential equation contains n arbitrary constants resulting from integrating n times.
Example 8. It can be shown the general solution to the differential equation y 00 +4y = 0
is y = A sin 2x + B cos 2x where A, B are constants.
Particular solution: Particular solutions are the solutions obtained by assigning specific values to the arbitrary constants in the general solutions.
Example 9. A few particular solutions to the differential equation in Example 8 are
(a) y = 5 sin 2x 3 cos 2x (choose c1 = 5 and c2 = 3, (b) y = sin 2x (choose c1 = 1
and c2 = 2), and (c) y = 0 (choose c1 = c2 = 0).
Singular solutions: Solutions that can not be expressed by the general solutions are
called singular solutions.
1.7
Initial condition: Constraints that are specified at the initial point, generally time
point, are called initial conditions. Problems with specified initial conditions are called
initial value problems.
Example 10. The constraints in the problem y 00 + 2y 0 = ex ; y() = 1, y 0 () = 2 given
at x = are initial conditions.
Boundary condition: Constraints that are specified at the boundary points, generally space points, are called boundary conditions. Problems with specified boundary
conditions are called boundary value problems.
Example 11. The constraints in the problem y 00 + 2y 0 = ex ; y(0) = 1, y 0 (1) = 1 given
at x = are boundary conditions because the conditions are given at the different
values x = 0 and x = 1.
Chapter 2
First order differential equations
A first order differential equation is an equation that contains a function y(x) and its
derivative y 0 (x). We will look at the different kinds of first order equations and the
methods to solve them.
2.1
(2.1)
10
2.2
Consider a differential equation in differential form (2.1). If M (x, y) = A(x), a function only of x and N (x, y) = B(y), a function only of y, the differential equation is
separable, or has its variables separated. The equation
B(y) dy = A(x) dx
The equation can be solved by integrating both sides.
dy
+ 4x = 0.
dx
A a constant
where C = 2A.
11
dy
dx
dy
= dx. Inte1 + y2
grating,
Z
dy
=
1 + y2
Z
1 dx
tan1 y = x + A,
y = tan(x + A).
dy
y+1
=
subject to the condition y(6) = 0.
dx
x4
dy
dx
=
. Integrating,
1+y
x4
Z
dy
dx
=
1+y
x4
ln |1 + y| = ln |x 4| + ln A
|1 + y| = A|x 4|
which implies
1 + y = A(x 4), where A > 0
12
2.3
(2.2)
is called a linear differential equation, where p(x) and q(x), are functions of x only.
Equation (2.2) is solved by multiplying it by the integrating factor I(x). The integrating
factor is
R
I(x) = e p(x) dx .
Equation (2.2) becomes
R
p(x) dx
R
R
dy
+ p(x)e p(x) dx y = q(x) e p(x) dx .
dx
Observe that the left hand side of this equation can be expressed as
R
p(x) dx
R
dy
d R p(x) dx
+ p(x)e p(x) dx y =
e
y .
dx
dx
(2.3)
13
1 dx
ex y 0 ex y = ex e4x
d x
e y = e3x
dx
Z
Z
d x
e y dx = e3x dx
dx
e3x
ex y =
+c
3
1
y = e4x + ce3x .
3
6
1
y=
x
x
The integrating factor is I(x) = e 1/x dx = eln x = x. Multiply the equation by the
integrating factor and integrate to obtain
x y 0 + y = 6
d
(x y) = 6
dx
Z
d
(x y) dx = 6 dx
dx
x y = 6x + c
c
y = 6 + .
x
Example 19. Solve the initial value problem y 0 + y tan x = sin 2x,
y(0) = 1.
tan x dx
14
dy
y
=
,
dx
2x + 3y 2 2
y(1) = 1.
1
y2 .
x
=
y 2 dy
y3
y3
d
1
3
2
x = 3
dy y 2
y y
Z
Z
d
1
3
2
x dy =
dy
dy y 2
y y3
1
1
x = 3 ln y + 2 + c.
y2
y
15
When x = 1, y = 1, which implies 1 = 0 + 1 + c so that x = 3y 2 ln y + 1.
2.3.1
Bernoulli equations
(2.4)
where n 6= 0, 1.
If n = 0 or n = 1 then (2.4) is a linear differential equation. For any other value of n,
the equation can be reduced to the linear form by making the substitutions
v = y 1n
and
dy
dv
= (1 n)y n .
dx
dx
dy
+ (1 n)y n p(x)y = (1 n)y n r(x)y n
dx
(1 n)y n
dy
+ (1 n)p(x)y 1n = (1 n)r(x)
dx
dv
+ (1 n)p(x)v = (1 n)r(x)
dx
dy
dx
+ 3x2 y = xex y 2 .
Solution. The equation is not linear but Bernoullis with n = 2. Make the substitution
dv
dy
v = y 12 = y 1 . Then
= y 2 .
dx
dx
Multiply the equation by y 2 to obtain
y 2
3
dy
3x2 y 1 = xex
dx
3
dv
3x2 v = xex .
dx
3
dv
3x2 ex v = x
dx
3x2 dx
= ex . Then
16
d x3
e
v = x
dx
Z
Z
d x3
e
v dx = x dx
dx
3
x2
ex v = + c
2
2
3
x
ex y 1 = + c
2
x3
1
e
=
(2c x2 )
y
2
2
y = x3
e (A x2 )
where A = 2c .
dy
+ y = (1 2x)y 4 .
dx
1
3
y=
(1 2x) 4
y .
3
dv
dy
= 3y 4 . Multiply the equation by
dx
dx
(1 2x) 4
dy
3y 4 ( 13 )y = 3y 4
y
dx
3
dy
3y 4
y 3 = (1 2x)
dx
dv
v = 2x 1.
dx
1 dx
= ex . Multiplying
dv
ex v = (2x 1)ex
dx
d x
e v = (2x 1)ex
dx
Z
Z
d x
e v dx = (2x 1)ex dx
dx
ex
Z
ex v = (2x 1)(ex ) 2(ex ) dx
Z
x
= (1 2x)e + 2ex dx
17
= (1 2x)ex 2ex + c
ex y 3 = 2xex ex + c
1
= 2x 1 + cex
y3
y3 =
2.3.2
1
.
cex 2x 1
Riccati equation
(2.5)
Notice that the equation is linear except for the term c(x) y 2 .
If a particular solution u of a Riccati is known, the general solution of the equation is
found by making the substitution
1
y =u+
(2.6)
z
where z is a function of x.
When (2.6) is substituted into equation (2.5), it becomes a linear equation,
0
2
1
1
1
u+
+a u+
=b+c u+
z
z
z
u0
1
1
1
1 0
z + au + a = b + cu2 + 2cu + c 2
2
z
z
z
z
1 0
1
1
1
z + a = 2cu + c 2 ,
2
z
z
z
z
18
RHS = (x x)2 + 1 = 1,
LHS = RHS
or
y=
1
+ x.
Ax
which implies
Therefore
y=
1
+ x.
2x
A=2
1
yx ,
so that
19
Example 24. Solve the equation y 0 + xy = x12 + y 2 for x > 0 with a particular solution
u(x) = x1 subject to y(1) = 2.
Solution. We verify that u(x) =
LHS =
Therefore u(x) =
1/x
1
+
= 0,
2
x
x
1
x
1
x
is a solution.
RHS =
1
+
x2
2
1
= 0,
x
LHS = RHS
is a particular solution.
1
x
1
z
so that y 0 =
1
1
2 z0,
2
x
z
1
y
= 2 + y2
x
x
2
1
1
1
1 1
1
1
1
2 2 z0 +
+
+
= 2 +
x
z
x x z
x
x z
y0 +
1
1
1 1
1
1
2 1
1
1
2 z0 + 2 + = 2 + 2 + + 2
x2
z
x
x z
x
x
x z
z
1 0 1 1
1
z = 2,
z2
x z
z
and multiply by z 2 ,
z0 +
1
z = 1.
x
1/x dx
= eln x = x. Multiply by
x z 0 + z = x
d
(xz 0 ) = x
dx
Z
d
(xz) dx =
dx
xz =
z=
x2
2A x2
+A=
2
2
2A x2
2x
1
2x
=
,
z
B x2
where B = 2A.
20
Then
y=
1
2x
.
+
x B x2
When x = 1, y = 2 so that
2=
1
21
+
1 B1
which implies
Therefore
y=
2x
1
.
+
x 3 x2
B = 3.
21
2.4
y xey/x
is homogeneous of degree 0 because
y
(y)4 + (x)(ex/y )
y
y/x
y xe
=
y
0
= f (x, y).
f (x, y) =
Example 27. The function y 2 xy +1 is not homogeneous since the term 1 is of degree
0 whereas the other terms are of degree 2.
22
dy
= y 2 x2 .
dx
dv
dy
= v + x . Substitute into the equation
dx
dx
y 2 x2
dy
=
dx
2xy
dv
v 2 x2 x2
v+x
=
dx
2vx2
2
dv
v 1
x
=
v
dx
2v
2
1+v
=
2v
2v
1
dv = dx,
1 + v2
x
and integrating,
Z
2v
dv =
1 + v2
1
dx
x
ln(1 + v 2 ) = ln |x| + ln A
1 + v2 =
Substitute v =
y
x
A
,
x
to obtain
1+
y2
A
= ,
2
x
x
which implies
x2 + y 2 = Ax.
x > 0.
23
2.5
(2.7)
a1 x + b 1 y + c 1 = 0
a2 x + b2 y + c2 = 0.
Then equation (2.7) reduces to the homogeneous equation
a1 X + b 1 Y
dY
=
.
dX
a2 X + b 2 Y
To solve this equation, make the substitution Y = V X.
24
Case 2
a1 b 1
= 0, make the substitution z = a1 + b1 y or z = a2 + b2 y.
If
a2 b 2
Example 29. Solve (x 2y + 4) dx + (2x y + 2) dy = 0.
Solution. In standard form, the equation is
dy
x 2y + 4
=
.
dx
2x y + 2
a
Here 1
a2
b1 1
=
b2 2
2
6= 0.
1
x=X +0
y =Y +2
(
so that
dx = dX
dy = dY.
dY
X 2Y
=
which is a homogeneous equation.
dX
2X Y
dY
dV
=V +X
. Equation becomes
dX
dX
X 2V X
dV
=
dX
2X V X
dV
2V 1
X
=
V
dX
2V
V21
=
V 2
V 2
1
dV = dX,
V21
X
V +X
and integrating,
Z
V 2
1
dV =
dX
V21
X
Z
Z
3/2
1/2
1
dV =
dX
V +1 V 1
X
3
1
ln |V + 1| ln |V 1| = ln A ln X
2
2
|V + 1|3
B
ln
= ln 2 ,
|V 1|
X
Z
where B = A2 ,
25
which implies
(V + 1)3
B
= 2.
V 1
X
Since V = Y /X,
Y
(X
+ 1)3
B
= 2
Y
X
1
X
X
(Y + X)3
B
= 2
3
X
Y X
X
(Y + X)3 = B(Y X),
(
and since
X=x
Y = y 2,
(y 2 + x)3 = B(y 2 x)
or
(y + x 2)3 = B(y x 2).
b1 1
=
b2 2
2
= 0.
4
dz
dy
dy
Make the substitution z = x 2y so that
=12
or dx
= 12 (1
dx
dx
becomes
1
dz
z+3
1
=
2
dx
2z + 5
dz
2z + 3
4z + 6
4z + 11
=1+2
=1+
=
dx
2z + 5
2z + 5
2z + 5
dz
dx ).
Equation
26
2z + 5
dz =
4z + 11
1
1/2
dz =
2 4z + 11
1
dz =
4z + 11
Z
1
z
1 dx
1 dx
2 dx
1
ln |4z + 11| = 2x + A
4
4z ln |4z + 11| = 8x + B
4(x 2y) ln |4(x 2y) + 11| = B
4x + 8y + ln |4x 8y + 11| = B.
where B = 4A
27
2.6
(2.8)
Method of solution
When equation (2.8) is determined to be exact, solve either one of the equations
u
= M (x, y)
x
or
u
= N (x, y)
y
for u(x, y).
If we choose
u
x
M (x, y) dx + k(y).
(2.9)
=
M (x, y) dx + k 0 (y) = N (x, y).
y
y
Then
k (y) = N (x, y)
y
0
Z
M (x, y) dx.
Finally, integrate (2.10) with respect to y and substitute the result in (2.9).
The solution to (2.8) is given by
u(x, y) = c
where c is an arbitrary constant.
(2.10)
28
u
y
N (x, y) dy + h(x).
(2.11)
u
=
N (x, y) dy + h0 (x) = M (x, y).
x
x
Then
h (x) = M (x, y)
x
0
Z
N (x, y) dy.
(2.12)
Finally, integrate (2.12) with respect to x and substitute the result in (2.11) and the
solution to (2.8) is given by
u(x, y) = c
for some constant d.
Example 31. Solve the equation xy 0 + y + 4 = 0.
Solution. In differential form, the equation is
(y + 4) dx + |{z}
x dy = 0.
| {z }
N (x,y)
M (x,y)
Now
M
y
= 1 and
N
x
u
= y + 4 then
x
Z
Z
u
dx = y + 4 dx
x
u = xy + 4x + k(y),
If we choose to solve
then
u
= x + k 0 (y) = x = N (x, y).
y
Therefore
k 0 (y) = 0
which implies
k(y) = A
where c1 = c A
29
If we choose to solve
Z
then
u
= x then
y
Z
u
dy = x dy
y
u = xy + h(x),
u
= y + h0 (x) = y + 4 = M (x, y).
x
Therefore
h0 (x) = 4
which implies
h(x) = 4x + B
xy + 4x = c2 ,
| {z }
u(x,y)
M
y
N
x ,
N
= 6x cos 3y.
x
Let
u
= M (x, y) = 2x sin 3y.
x
Then
Z
u=
30
This implies k 0 (y) = 2y so that k(y) = y 2 . Therefore solution is
u(x, y) = x2 sin 3y + y 2 = c.
2.6.1
(2.13)
6= Q
. The equation can be make exact by multiplying it by
is non-exact, that is P
y
x
F (x), a function of x only or by G(y) a function of y only. (It can also be made exact
by multiplying it with a function of both x and y, I(x, y) but this is beyond the scope
of this course)
The function that the equation is multiplied by to make it exact, be it F (x) or G(y),
is called the integrating factor.
dx
y
x
1 dF
1 P
Q
=
,
F dx
Q y
x
31
integrating,
Z
1 P
Q
dx
Q y
x
Z
1 P
Q
ln F =
dx
Q y
x
Z
1 dF
dx =
F dx
1
Q
F (x) = e
Q
dx
( P
y
x )
.
G(y) = e
P
( Q
x y ) dy .
6=
Q
x
1
y
P
y
= y12 and
Now
Z
1
P
Q P
x
y
1
2 (1/y 2 ) dy
1/y
Z
1
= 2y + dy
y
= y 2 + ln y.
dy =
+ln y
= yey .
Q
x
= 2. Since
32
y
ey dx + |2xe
{z } dy = 0.
|{z}
N (x,y)
M (x,y)
Then
2
M
N
= 2xyey =
.
y
x
x ey = c.
P
y
Q
x
= 2x sec2 y and
1
Q
P
Q
y
x
1
[2x sec2 y 0] dx
sec2 y
dx =
Z
=
2x dx
= x2 .
The integrating factor is then
2
F (x) = ex .
Multiply the equation by the integrating factor to obtain the equation
2
Then
N (x,y)
2
M
N
= 2xex sec2 y =
.
y
x
ex tan y = c.
Chapter 3
Second order differential equations
In this chapter we will study important class of second order equations. These equations
have important applications in science and engineering.
3.1
General theory
(3.1)
where a2 (x), a1 (x), a0 (x), g(x) are functions of x called the coefficients of the equation.
Divide equation (3.1) by a2 (x) to obtain
y 00 + p(x)y 0 + q(x)y = r(x)
where p(x) =
a1 (x)
,
a2 (x)
q(x) =
a0 (x)
a2 (x)
and r(x) =
(3.2)
g(x)
.
a2 (x)
We will use this form in subsequent discussions. This form is in standard form.
If r(x) = 0 then (3.2) has the form
y 00 + p(x)y 0 + q(x)y = 0
(3.3)
and is then called homogeneous to indicate that all terms are of the first degree in y
and its derivatives. The original equation (3.2) is called nonhomogeneous because it
contains a term r(x) which does not depend on y. (Note, however, that this use of the
term homogeneous has a different meaning for first order differential equations)
33
34
35
Definition 1. Two functions y1 (x) and y2 (x) are said to be linearly independent if the
equality
k1 y1 (x) + k2 y2 (x) = 0
(3.4)
holds only when k1 = k2 = 0, i.e. when y1 (x) and y2 (x) are not proportional to
the other. Otherwise, y1 (x) and y2 (x) are linearly dependent if (3.4) holds for some
constants k1 and k2 , not both zero.
Example 38. Determine whether the following functions y1 (x) and y2 (x) are linearly
dependent or independent:
(a) y1 (x) = e2x ,
(b) y1 (x) = sin 2x,
y2 (x) = x + 1
y2 (x) = sin x cos x
Solution.
(a) Suppose k1 e2x + k2 (x + 1) = 0.
differentiate w.r.t. x :
2k1 e2x + k2 = 0,
2x
6= 0,
4k1 e
2x
(*)
=0
which implies k1 = 0
36
(b) The functions sin 2x and sin x cos x are proportional since sin 2x = 2 sin x cos x.
Choose k1 = 1 and k2 = 2.
Hence there exist a k1 and k2 not both zero such that k1 sin 2x + k2 sin x cos x = 0.
Therefore y1 (x) = sin 2x and y2 (x) = sin x cos x are linearly dependent.
y2 cos 3x
=
y20 3 sin 3x
sin 3x
3 cos 3x
= 3 cos2 3x + 3 sin2 3x = 3
Hence by Theorem (2), y1 (x) and y2 (x) are linearly independent for all x.
http://math.berkeley.edu/~mcivor/math54s11/wronskian.pdf
37
Example 40. Show that both functions y1 = x1 and y2 = x3 are solutions to the
equation
x2 y 00 xy 0 3y = 0.
What is the general solution?
Solution. We have y10 = x12 and y100 = x23 . Substitute into the LHS of the equation:
LHS = x2 y 00 xy 0 3y = x2 ( x23 ) x( x12 ) x3 = 0.
Likewise y20 = 3x2 and y200 = 6x. Substitute into the LHS of the equation:
LHS = x2 y 00 xy 0 3y = x2 (6x) x(3x2 ) 3x3 = 0.
Hence y1 (x) and y2 (x) are solutions of the equations.
The Wronskian of y1 (x) and y2 (x) is
1
x
W (y1 , y2 ) = 2
x
x3
= 3x + x = 4x
3x2
If x 6= 0 then y1 (x) and y2 (x) are linearly independent. Hence the general solution for
the homogeneous equation is
y(x) = c1 x1 + c2 x3
where c1 and c2 .
Note: If y1 (x) and y2 (x) are solutions of a second order homogeneous equations the
linear combination
y(x) = c1 y1 (x) + c2 y2 (x)
(3.5)
is also a solution. But it does not say (3.5) is the general solution. Only when we have
determined y1 (x) and y2 (x) are linearly independent, then (3.5) is the general solution.
38
3.2
(3.6)
where a, b and c are constants, is known as a linear equation with constant coefficients.
The complementary homogeneous linear equation of (3.6) is given by
ay 00 + by 0 + cy = 0.
(3.7)
The solution to (3.7) is found by considering the function y(x) = emx . Then
y 0 (x) = memx
39
Example 42. Solve the initial value problem y 00 + 5y 0 + 6y = 0 subject to the initial
conditions y(0) = 1.6 and y 0 (0) = 0.
Solution. The characteristic equation is m2 +5m+6 = 0. Solve to obtain m = 3, 2.
Hence the general solution is
y(x) = Ae3x + Be2x
When x = 0, y = 1.6 so that A + B = 1.6.
Now y 0 (x) = 3Ae3x 2Be2x and when x = 0, y 0 = 0 so that 3A 2B = 0.
Solve the simultaneous equations to obtain A = 3.2, B = 4.8. Hence the solution is
y(x) = 3.2e3x + 4.8e2x
40
Example 44. Solve the initial value problem 4y 00 + 16y 0 + 17y = 0 subject to the
condition y(0) = 0.5 and y 0 (0) = 1.
Solution. The characteristic equation is 4m2 + 16m + 17 = 0 and having roots m =
2 21 i. The general solution is
x
x
y(x) = e2x c1 cos + c2 sin
2
2
The initial condition y(0) = 21 implies c1 = 12 .
Differentiate the general solution
c
x c2
x
x
x
1
y 0 (x) = e2x sin +
cos
2e2x c1 cos + c2 sin
2
2
2
2
2
2
h
c2
x
c1
xi
= e2x (2c1 + ) cos + ( 2c2 ) sin
2
2
2
2
The condition y 0 (0) = 1 implies c2 = 0. The solution is then
y(x) = 12 e2x cos x2 .
41
Case III: repeated roots (b2 4ac = 0)
b
The only root is m = 2a
so that y1 (x) = emx is a solution. To find the second linearly
independent solution we can use Lagranges method of reduction of order (see page 49).
The second linearly independent solution is given by y2 (x) = xemx . Therefore the
general solution is
y(x) = c1 emx + xemx .
Example 45. Solve the initial value problem y 00 4y 0 + 4y = 0 subject to the initial
conditions y(0) = 3 and y 0 (0) = 1.
Solution. The characteristic equation is m2 4m + 4 = 0 having roots m = 2, 2. The
general solution is y(x) = c1 e2x + c2 xe2x .
The condition y(0) = 3 implies c1 = 3.
Now y 0 (x) = 2c1 e2x + c2 (x2e2x + e2x ) = (2c1 + c2 ) e2x + 2c2 xe2x and the condition
y 0 (0) = 1 implies c2 = 5.
Hence the solution is y(x) = 3e2x 5xe2x .
42
3.3
So far the homogeneous second order linear differential equations with constant coefficients have been considered. Such equations will only describe physical systems with
free vibration or oscillations. Most often mechanical or electrical systems are subjected
to an applied force or emf.
The nonhomogeneous equation is
ay 00 + by 0 + cy = g(x)
where a, b, c are constants.
Motivating example
As a motivation for solving the general equation, let us first solve the following particular
nonhomogeneous equation
y 00 4y 0 + 3y = 10e2x
(3.9)
The left hand side of the equation can be written as
dy
d dy
y 3
y
dx dx
dx
because
d
dx
dy
dy
d2 y
dy
dy
y 3
y = 2
3 + 3y
dx
dx
dx
dx
dx
2
dy
dy
= 2 4 + 3y.
dx
dx
dy
y, equation (3.9) can be expressed as
dx
dz
3z = 10e2x .
dx
This is a first order linear equation with integrating factor e3x . Then
d 3x
(e z) = 10e5x
dx
Z
e3x z =
10e5x dx = 2e5x + A
43
z = 2e2x + Ae3x .
Substituting z back,
dy
y = 2e2x + Ae3x ,
dx
which is also a linear equation with integrating factor ex . This implies
d x
(e y) = 2e3x + Ae2x
dx
2
A
ex y = e3x + e2x + B
3
2
2 2x A 3x
y= e
+ e + Bex .
3
2
That is, it has the form
2
y(x) = c1 ex + c2 e3x + e2x .
|
{z
} 3
| {z }
yc
yp
We observed that the sum of the first two terms, yc called the complementary function,
is the general solution of the corresponding complementary homogeneous equation,
whilst the third term, yc is a particular solution or integral of the nonhomogeneous
equation.
The above result is generalized in the theorem:
Theorem 4. The general solution of y 00 + p(x)y 0 + q(x)y = r(x) is
y(x) = yc (x) + yp (x)
where the complementary function yc (x) is the general solution of the homogeneous
equation y 00 + p(x)y 0 + q(x)y = 0 and yp (x) is a particular solution.
2 2x
3e
is a particular solution of y 00 4y 0 + 3y =
Solution. If yp (x) = 23 e2x then yp0 (x) = 34 e2x and yp00 (x) = 83 e2x .
The LHS is y 00 4y 0 + 3y = 83 e2x 4 ( 43 e2x ) + 3( 23 e2x ) = 10e2x which equals the
RHS.
44
3.4
The method of undetermined coefficients is suitable for linear ODEs with constant
coefficients a and b
y 00 + ay 0 + by = r(x)
(3.10)
where r(x) is
an exponential function, ex ,
a power of x, xn ,
a sine or cosine, sin x, cos x
sum or product of such functions.
The solution of (3.10) is the sum of a general solution yh of the corresponding homogeneous equation
y 00 + ay 0 + by = 0
(3.11)
and a particular solution, yp of (3.10).
The function yp is chosen so that yp is similar to r(x). The unknown coefficients in yp
is determined by substituting yp and its derivative into the ODE.
The following table shows r(x) and suitable choices of yp and the rules for the correct
form of yp .
Term in r(x)
kex
Choice for yp
Cex
kxn (n = 0, 1, . . . )
k cos x
k sin x
kex cos x
kex sin x
Kn xn + Kn1 xn1 + + K1 x + K0
K cos x + M sin x
ex (K cos x + M sin x)
45
x :
4K2 = 8
4K1 = 0
2K2 + 4K0 = 0
K2 = 2, K1 = 0, K0 = 1
46
Thus the particular solution is yp = 2x2 1. Hence the general solution is
y(x) = c1 cos 2x + c2 sin 2x + 2x2 1.
47
Then
yp0 = 2A sin 2x + 2B cos 2x
yp00 = 4A cos 2x 4B sin 2x.
Substitute into the equation
(4A cos 2x 4B sin 2x) 5(2A sin 2x + 2B cos 2x)
+6(A cos 2x + B sin 2x) = 4 sin 2x
(2A 10B) cos 2x + (10A + 2B) sin 2x = 4 sin 2x.
This implies
5
2A 10B = 0
,
A=
10A + 2B = 4
13
B=
1
13
5
1
cos 2x +
sin 2x.
13
13
48
yp00 = x [e2x (A cos x B sin x) 2e2x (A sin x + B cos x)
2e2x (A sin x + B cos x) + 4e2x (A cos x + B sin x)
+ e2x (A sin x + B cos x) 2e2x (A cos x + B sin x)
+ e2x (A sin x + B cos x) 2e2x (A cos x + B sin x)
that is,
yp = Ax e2x cos x + Bx e2x sin x
yp0 = Ax e2x sin x + Bx e2x cos x
2Ax e2x cos x 2Bx e2x sin x
+ Ae2x cos x + Be2x sin x
= (B 2A)x e2x cos x + (A 2B)x e2x sin x
+ Ae2x cos x + Be2x sin x
yp00 = Ax e2x cos x Bx e2x sin x
+ 2Ax e2x sin x 2Bx e2x cos x
+ 2Ax e2x sin x 2Bx e2x cos x
+ 4Ax e2x cos x + 4Bx e2x sin x
Ae2x sin x + Be2x cos x 2Ae2x cos x 2Be2x sin x
Ae2x sin x + Be2x cos x 2Ae2x cos x 2Be2x sin x
= (3A 4B)x e2x cos x + (4A + 3B)x e2x sin x
(4A + 2B)e2x cos x + (2A 4B)e2x sin x.
Substitute into the equation to obtain
2Be2x cos x 2Ae2x sin x = e2x cos x.
This implies A = 0 and B = 21 . The general solution is
1
y(x) = e2x (c1 cos x + c2 sin x) + x e2x sin x.
2
49
3.5
This method can be used to find a second linearly independent solution of a second
order linear homogeneous equation if the first solution is found by inspection or in
some other way.
Let
y 00 + p(x)y 0 + q(x)y = 0
be a homogeneous linear ODE.
Suppose y1 be a solution. The second solution is assumed to be
y2 = u y1
for some function u(x).
Then
y20 = uy10 + u0 y1
y200 = uy100 + u0 y10 + u0 y10 + u00 y1
= uy100 + 2u0 y10 + u00 y1
Substitute into the equation
y 00 + p(x)y 0 + q(x)y = 0
uy100 + 2u0 y10 + u00 y1 + p(uy10 + u0 y1 ) + quy2 = 0
u(y100 + py10 + qy2 ) + u00 y1 + u0 (y1 + 2y10 ) = 0
Since y1 is a solution, equation (3.12) reduces to
u00 y1 + u0 (py1 + 2y10 ) = 0.
This implies
y10
u = u p + 2
y1
00
u00
y10
=
p
2
u0
y1
(3.12)
50
Integrating
Z
u00
du =
u0
Z
y10
p 2
dx
y1
Z
ln u =
Z
p dx 2 ln y1 =
Z
u = exp
1
p dx + ln 2
y1
p dx + ln
1
y12
1 R p dx
e
y12
This implies
Z
u(x) =
1 R p dx
e
dx
y12
1 R p dx
dx y1 (x)
e
y12
cos x
x
is a solution.
51
cos x
sin x
=
,
x
x
cos x
sin x
+B
.
x
x
1 0
2
y 4x2 y = 0 given that y1 (x) = ex is a solution.
x
Solution. The equation is already in standard form. The second solution is y2 (x) =
2
u(x)ex where
Z
u(x) =
(e
Z
Z
=
2
e
2
(1/x) dx
dx
1
eln x dx
e2x2
=
=
x2
xe2x dx
1 2x2
e .
4
2
= Aex + Cex ,
where C = 14 B.
52
3.6
This method can be used to solve a more general nonhomogeneous linear ODEs of the
form
y 00 + p(x)y 0 + q(x)y = r(x).
(3.13)
This method gives the particular solution yp of equation (3.13). [It does not give the
homogeneous solution, yh of the homogeneous equation.]
If yh = Ay1 (x) + By2 (x), we seek the solution yp of the form
yp = u(x) y1 (x) + v(x) y2 (x).
Then
yp0 = uy10 + u0 y1 + vy20 + v 0 y2
= uy10 + vy20 + u0 y1 + v 0 y2 .
Impose the condition
u0 y1 + v 0 y2 = 0,
(3.14)
(3.15)
(3.16)
(3.17)
Since y1 and y2 are solutions of the homogeneous equation, equation (3.17) reduces to
u0 y10 + v 0 y20 = r
We now have two simultaneous equations, (3.14) and (3.18),
u0 y1 + v 0 y2 = 0
u0 y10 + v 0 y20 = r.
(3.18)
53
We can find u0 and v 0 by using Cramers rule, so that
u0 =
y2 r
W
v0 =
and
y1 r
W
and integrating
Z
u=
y2 r
dx
W
Z
and
v=
y1 r
dx.
W
y2 r(x)
dx =
W
sin x tan x
dx =
1
sin2 x
dx
cos x
Z
=
cos x sec x dx
y1 r(x)
dx =
W
Z
cos x tan x
dx = sin x dx
1
= cos x
Then
yp = (sin x ln | sec x + tan x|) cos x + ( cos x) sin x
= cos x ln | sec x + tan x|
The general solution is
y(x) = A cos x + B sin x cos x ln | sec x + tan x|.
54
3.7
Euler-Cauchy equations
(3.19)
(3.20)
55
1a
.
2
The second solution is obtained by the reduction of order method. Let y2 = uy1 = uxm
where
Z
Z
Z
Z
R
1 R p dx
1
1 a ln x
1 1
a/x dx
e
dx =
e
dx =
e
dx =
dx
u(x) =
2
m
2
2m
y1
(x )
x
x2m xa
Z
1
1
dx
=
2(1a)/2
x
xa
Z
1
dx
=
x
= ln x.
Then the second solution is y2 (x) = u(x)y1 (x) = ln xxm . Therefore the general solution
is
y(x) = Axm + Bxm ln x
= Ax(1a)/2 + Bx(1a)/2 ln x.
Method 2
This method is slightly longer and requires the use of the chain rule.
The Euler-Cauchy equation can also be solved by making the substitution x = et . The
differential equation (3.19) can be expressed as a differential equation having t as the
independent variable. This is because y is some function of x and with the substitution,
y becomes a function of t.
Now if x = et then t = ln x and
dt
1
1
= = t = et .
dx
x
e
Then, by using the chain rule,
dy
dy dt
dy
dy
=
= et = et
dx
dt dx
dt
dt
2
2
d2 y
d dy
dt d
d y dy
t dy
t d
t d y
t dy
2t
=
=
e
=e
e
e
=e
.
dx2
dx dx
dx dt
dt
dt
dt2
dt
dt2
dt
56
2
dt
dt
dt
2
d y dy
dy
+
a
+ by = 0
dt2
dt
dt
d2 y
dy
+ (a 1) + by = 0
2
dt
dt
This equation is a homogeneous second order with constant coefficients. By Section
3.2, it has characteristic equation m2 + (a 1)m + b = 0.
Case I. Different real roots, m1 and m2 .
The general solution is
y = Aem1 t + Bem2 t
= Axm1 + Bxm2 .
Case II. Complex roots m = a bi
The general solution is
y = eat (A cos bt + B sin bt)
= xa [A cos(b ln x) + B sin(b ln x)].
Case III. Equal roots m =
1a
2
57
A
y(x) = + B x.
x
58
3
+ 4y = 0 or 2 4
+ 4y = 0.
2
dt
dt
dt
dt
dt
The characteristic equation is m2 4m + 4 = 0 which implies m = 2, 2. Therefore
y(t) = Ae2t + Bte2t ,
hence the general solution is
y(x) = Ax2 + B ln x x2 = Ax2 + Bx2 ln x.
3
3y = 0 or 2 2 5
3y = 0.
dt2
dt
dt
dt
dt
59
+7
+ 13y = 0 or 2 + 6
+ 13y = 0.
2
dt
dt
dt
dt
dt
The characteristic equation is m2 + 6m + 13 = 0, with roots m = 3 2i. Therefore
the general solution is
y(t) = e3t (A cos 2t + B sin 2t),
so that
y(x) = x3 A cos(2 ln x) + B sin(2 ln x) .
2
+
2y
=
4e
or
3
+ 2y = 4e3t .
2
2
dt
dt
dt
dt
dt
The characteristic equation is m2 3m + 2 = 0. Then the solution to the homogeneous
equation is yh = Aet + Be2t .
By the method of undetermined coefficient, choose yp = Ce3t . Subtitution into the
equation will give C = 2. Then
y(t) = Aet + Be2t + 2e3t ,
and hence the general solution is
y(x) = Ax + Bx2 + 2x3 .
60
Let y1 = x2 and y2 = x3 . The Wronksian of y1 and y2 is
2
x
x3
2
3
= x4
W (x , x ) =
2x 3x2
To find yp we must divide the equation by x2 so that the coefficients of y 00 is 1. Equation
4
6
is now y 00 y 0 + 2 y = 21x6 .
x
x
Then yp = uy1 + vy2 where
Z
u=
y2 r
dx =
W
x3 21x6
dx = 21
x4
x7 dx = 21
=
x6
dx
6
21
,
6x6
and
Z
v=
y1 r
dx =
W
x2 21x6
dx = 21
x4
x7
dx
7
21
= 7.
7x
x8 dx = 21
Therefore
yp = uy1 + vy2 =
21
21
21
1
21
x2 + 7 x3 = 4 4 = 4 .
6x6
7x
6x
7x
2x
1
.
2x4
61
Solution (Method 2). Since the equation is an Euler-Cauchy we make the substitution
y = et .
Then equation becomes
d2 y
dy
5
+ 6y = 21e4t .
dt2
dt
The homogeneous equation
d2 y
dt2
2t
3t
5 dy
dt + 6y = 0 has solution yh = Ae + Be .
As for the non homogeneous part, by the method of undetermined coefficients let yp =
Ce4t . No need for modification since yp does not coincide with the terms in yh .
We have
yp0 = 4Ce4t
yp00 = 16Ce4t .
Substitute into the equation:
16Ce4t 5(4Ce4t ) + 6(Ce4t ) = 21e4t
42e4t = 21e4t ,
which implies C = 21 .
Therefore
1
y(t) = Ae2t + Be3t + e4t ,
2
so that
1
y(x) = Ax2 + Bx3 + x4
2
= Ax2 + Bx3 +
1
.
2x4
Chapter 4
Series solutions of ODEs
In this chapter will study a class of second order equations that cannot be solved in
closed form in terms of elementary functions. The solutions of this class of equations
involve power series.
am (x x0 )m = a0 + a1 (x x0 ) + a2 (x x0 )2 +
(4.1)
m=0
am x m = a0 + a1 x + a2 x 2 +
m=0
62
63
x2
x3
xn
+
+ +
+
2!
3!
n!
cosh x = 1 +
x2
x4
x2n
+
+ +
+
2!
4!
(2n)!
< x <
sinh x = x +
x3
x5
x2n+1
+
+ +
+
3!
5!
(2n + 1)!
< x <
cos x = 1
x2
x4
x2n
+
+ + (1)n
+
2!
4!
(2n)!
< x <
sin x = x
x5
x2n+1
x3
+
+ + (1)n
+
3!
5!
(2n + 1)!
< x <
ln |1 + x| = x
(1 + x)p = 1 + px +
x2
x3
xn
+
+ + (1)n1
+
2
3
n
1 < x
4.1
< x <
p(p 1)(p 2) (p n + 1)
+
n!
1<x<1
Let
2
y1 = a0 + a1 x + a2 x + + an x + =
ai x i
i=0
y 2 = b 0 + b1 x + b2 x + + bn x + =
bi x i
i=0
a1 = b1 ,
a2 = b2 ,
ai = bi
64
X
=
(ai + bi )xi
i=0
2. Termwise multiplication
y 1 y 2 = c0 + c1 x + c2 x 2 + + cn x n +
where
c 0 = a0 b 0
c 1 = a0 b 1 + a1 b 0
c 2 = a0 b 2 + a1 b 1 + a2 b 0
..
.
cn = a0 bn + a1 bn1 + a2 bn2 + + an b0 =
n
X
ai bni
i=0
3. Termwise differentiation
If
y(x) = a0 + a1 x + a2 x2 + + an xn + =
an x n
n=0
then
0
n1
+ =
nan xn1
n=1
00
n2
+ =
n=2
4.2
The most general form of the linear differential equation of second order is
p(x)y 00 + q(x)y 0 + r(x)y = g(x)
where p(x), q(x), r(x), g(x) are continuous functions in an open interval S.
(4.2)
65
Equation (4.2) has a power series solution about x0 . The form of the power series
solutions is determined by whether x0 is an ordinary point or a regular singular point.
If x0 is an ordinary point of the differential equation then the series solution is
y(x) =
an (x x0 )n
n=0
an (x x0 )n+r .
n=0
an x n
n=0
and if 0 is a regular singular solution the series solution takes the form
y(x) =
an xn+r .
n=0
4.3
(4.3)
If a(x) 6= 0 we can divide equation (4.3) by a(x) to obtain the standard form
y 00 + p(x)y 0 + q(x)y = 0
where p(x) =
4.3.1
b(x)
a(x)
and q(x) =
(4.4)
c(x)
.
a(x)
Ordinary points
66
Example 63. The equation y 00 + xy 0 + (x2 4)y = 0 is in standard form with p(x) = x
and q(x) = x2 4. All points x0 R are ordinary points because p(x0 ) = x0 and
q(x0 ) = x20 4 are finite.
Example 65. The equation x2 (x 2)2 y 00 + 2(x 2)y 0 + (x + 1)y = 0 in standard form is
x+1
2
x+1
2
y0 + 2
y = 0 where p(x) = 2
and q(x) = 2
.
y 00 + 2
2
x (x 2)
x (x 2)
x (x 2)
x (x 2)2
Here all points except 0, 2 are ordinary points because p(0), q(0) and p(2), q(2) are not
finite.
4.3.2
Singular points
A point x0 is a singular point of (4.4) if p(x0 ) or q(x0 ) or both are not finite.
Example 66. In Example 63, the equation has no singular point and in Example 64,
the singular points are 0 and 1. In Example 65, the singular points are 0 and 2.
67
xx0
xx0
(4.5)
Example 68. In Example 64, the points 0 and 1 are singular points because p(1) and
q(0) are not finite.
For the point x0 = 0,
x2
=0
x0 x 1
x0
and
lim (x 0)2 q(x) = lim
x0
x0
x
=0
x1
x1
and
x1
x1
=0
x1
x
x1
Example 69. In Example 65, 0 and 2 are singular points because p(0), q(0) and
2
x+1
p(1), q(1) are not finite. Here p(x) = 2
and q(x) = 2
.
x (x 2)
x (x 2)2
For the point x0 = 0,
lim (x 0)p(x) = lim
x0
x0
2
=
x(x 2)
68
and
lim (x 0)2 q(x) = lim
x0
x0
1
x+1
= ,
2
(x 2)
4
x2
x2
and
lim (x 2)2 q(x) = lim
x2
x2
1
2
=
x2
2
3
x+1
= ,
x2
4
Example 71. The equation (1x2 )y 00 2xy 00 +n(n+1)y = 0 is the Legendre equation.
The points x = 1 are singular points and the points x 6= 1 are ordinary points.
Example 72. The equation y 00 = xy is the Airy equation. All points are ordinary
points.
4.4
69
am xm .
m=0
X
2
y = a0 + a1 x + a2 x + =
am xm . Then
m=0
y 0 (x) =
y 00 (x) =
X
m=1
mam xm1
m(m 1)am xm2 .
m=2
m=2
am xm = 0,
m=0
change the dummy variables such that both series match the power of x.
n+2=2
an xn = 0
n=0
(n + 2)(n + 1)an+2 xn
n=0
an xn = 0,
n=0
X
(n + 2)(n + 1)an+2 an xn = 0.
n=0
This implies
(n + 2)(n + 1)an+2 an = 0,
for n = 0, 1, 2, . . .
70
an
,
(n + 2)(n + 1)
for n = 0, 1, 2, . . .
a2 =
a0
21
n = 1,
a3 =
a1
a1
=
32
3!
n = 2,
a4 =
a2
a0
=
43
4!
n = 3,
a5 =
a3
a1
=
54
5!
..
.
In general, if n is even, an =
and if n is odd, an =
a0
an2
= ,
n(n 1)
n!
an2
a1
= .
n(n 1)
n!
Then
y0 = a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + + an xn +
= a0 + a2 x2 + a4 x4 +
|
{z
}
even power of x
a1 x + a3 x3 + a5 x5 +
|
{z
}
odd power of x
a0 2 a0 4
a1
a1
x + x + + a1 x + x3 + x5
2!
4!
3!
5!
x4
x5
x3
x2
+
+ + a1 x +
+
+
= a0 1 +
2!
4!
3!
5!
= a0 +
= a0 cosh x + a1 sinh x.
Therefore the general solution is
y(x) = C cosh x + D sinh x
where C and D are arbitrary constants.
71
ex + ex
2
C
D
2
2
e
+D
+
ex ex
2
D
C
+
2
2
ex
= Aex + Bex ,
where A =
C
2
D
2
and B =
C
2
D
2.
X
am xm . Then
y = a0 + a1 x + a2 x2 + =
m=0
y 0 (x) =
y 00 (x) =
X
m=1
mam xm1
m(m 1)am xm2 .
m=2
m=2
mam xm1
m=1
m=2
X
m=2
am xm = 0
m=0
m(m 1)am xm
mam xm
m=1
am xm = 0.
m=0
(n + 2)[(n + 2) 1]an+2 x
n+2=2
(n+2)2
X
n=2
n(n 1)an xn
72
nan xn
n=1
an xn = 0.
n=0
Simplify
(n + 2)(n + 1)an+2 xn +
n=0
X
n=2
n(n 1)an xn
nan xn
n=1
an xn = 0.
n=0
Make the index of summation start at the same number n = 2 by expanding some of the
summation,
2a2 + 6a3 x +
+
+ a1 x +
a0 a1 x
(n + 2)(n + 1)an+2 xn
n=2
X
n=2
X
n=2
n(n 1)an xn
nan xn
an xn = 0.
n=2
X
(n + 2)(n + 1)an+2 + (n2 1)an = 0.
n=2
This implies
2a2 a0 = 0
6a3 = 0
a0
2
a3 = 0,
a2 =
and
(n + 2)(n + 1)an+2 + (n2 1)an = 0
an+2 =
=
n2 1
an
(n + 2)(n + 1)
n1
an .
n+2
73
a4 =
a2
a0
=
4
42
n=3
a5 =
2a3
=0
5
n=4
a6 =
3a4
3a0
=
6
642
n=5
a7 =
n=6
a8 =
4a5
=0
7
5a6
5 3a0
=
8
8642
1 3 5 (2k 3)
a0 .
2k k!
Then
y = a0 + a1 x + a2 x2 + a3 x3 + + an xn +
= a0 + a2 x2 + a4 x4 + a6 x6 + an xn + + a1 x
a0
a0 4
3a0 6
= a0 + x2 2
x + 3
x + a1 x
2
2
2!
2
3!
1
3
1 2
4
6
= a0 1 + x 2
x + 3
x + a1 x
2
2 2!
2 3!
= a0 (1 + x2 )1/2 + a1 x.
The general solution is
y(x) = Ay1 (x) + By2 (x),
where the linearly independent solutions are
y1 (x) =
p
1 + x2
and
y2 (x) = x.
74
4.5
Let
x2 y 00 + xP (x)y 0 + Q(x)y = 0,
and in standard form
y 00 +
P (x) 0 Q(x)
y + 2 y = 0,
x
x
(4.6)
(4.7)
with
P (x)
Q(x)
and lim x2 2
x0
x0
x
x
be finite, so that 0 is a regular singular point of the equation (4.6).
lim x
To find a solution about a regular singular point, we can use the method by the German
mathematician, Ferdinand Georg Frobenius.
X
n=0
an x =
an xn+r
n=0
75
and
y2 (x) = y1 (x) ln x + xr (A1 x + A2 x2 + )
Note: The second solution y2 (x) may also by obtained by using the reduction of order
method.
Case 3: Roots differing by an integer
Suppose the roots are r1 , r2 with r1 > r2 and r1 r2 Z. Then the two linearly
independent solutions are
y1 (x) = xr1 (a0 + a1 x + a2 x2 + )
and
y2 (x) = k y1 (x) ln x + xr2 (A0 + A1 x + A2 x2 + )
where k is a constant which may turn out to be zero.
This example illustrates Case 1 where the roots do not differ by an integer.
Example 75. Solve the equation 4xy 00 + 2y 0 + y = 0.
Solution. In the form (4.6) the equation is
1
x
x2 y 00 + x y 0 + y = 0
2
4
with P (x) =
1
2
with p(x) =
1/2
x
and q(x) =
1/4
x
1/2 0 1/4
y +
y=0
x
x
and
1/4
0
lim x
1/2
1
1
= lim =
x0 2
x
2
lim x2
1/4
1
= lim x = 0
x0
x
4
x0
and
x0
1/2
0
76
an xn+r . Then
n=0
y =
(n + r) an xn+r1
n=0
y 00 =
(n + r)(n + r 1) an xn+r2
n=0
(n + r)(n + r 1) an xn+r2 + 2
n=0
(n + r) an xn+r1
n=0
an xn+r = 0
n=0
n=0
(n + r) an xn+r1
n=0
an xn+r = 0.
n=0
m=0
2(m + r) am xm+r1
m=0
am1 xm1+r = 0.
m1=0
Simplify,
m=0
X
m=0
X
m=1
2(m + r) am xm+r1
am1 xm+r1 = 0.
77
Make the index of each summation starts at the same number by expanding some of the
summation,
4r(r 1) a0 xr1
+ 2r a0 xr1
+
+
+
m=1
X
m=1
m=1
Simplify
[4r(r 1) + 2r] a0 x
r1
+
+
+
X
m=1
X
m=1
m=1
X
2(m + r)(2m + 2r 1) am + am1 xm+r1 = 0.
m=1
This implies
[4r(r 1) + 2r] a0 = 0,
and
2(m + r)(2m + 2r 1) am + am1 = 0.
Now
4r(r 1) + 2r a0 = 0
(4r2 2r) a0 = 0
Since, by definition a0 6= 0,
4r(r 1) = 0
r = 0,
If we let r1 =
1
2
and r2 = 0, then r1 r2 =
1
2
78
If r = 21 ,
am =
am1
,
2(m + r)(2m + 2r 1)
m = 1, 2, 3, . . .
am1
, then
2m(2m + 1)
m = 1,
a1 =
a0
a0
=
32
3!
m = 2,
a2 =
a1
1
a0
a0
=
=
54
5 4 3!
5!
m = 3,
a3 =
a2
1
a0
a0
=
=
76
7 6 5!
7!
..
.
In general,
am =
(1)m
a0 .
(2k + 1)!
1/2
x
x2
x3
1 +
+ + an xn +
3!
5!
7!
choose a0 = 1. Then
y1 (x) =
X
(1)k
xk+1/2 .
(2k + 1)!
k=0
If r = 0,
am =
am1
, then
2m(2m 1)
m = 1,
a1 =
a0
a0
=
21
2!
m = 2,
a2 =
1
a0
a0
a1
=
=
43
4 3 2!
4!
79
m = 3,
a2
1
a0
a0
=
=
65
6 5 4!
6!
a3 =
..
.
In general,
am =
(1)m
a0 .
(2k)!
a0 2 a2 2
x + x + + an xn +
2!
4!
choose a0 = 1. Then
y2 (x) =
X
(1)k
k=0
(2k)!
xk .
80
This next example illustrates Case 2 where the indicial equation has double root.
Example 76. Solve xy 00 + (x + 1)y 0 + y = 0.
Solution. In the form (4.6) the equation is
x2 y 00 + x(x + 1)y 0 + xy = 0.
x+1
x
x+1 0 1
y + y=0
x
x
and q(x) = x1 .
1
The point 0 is a singular point because 0+1
0 and 0 are not finite. It is a regular singular
point because
x+1
lim x
= lim (x + 1) = 1
x0
x0
x
and
1
lim x2 = lim x = 0
x0
x x0
are both finite.
an xn+r . Then
n=0
(n + r)(n + r 1) an xn+r2 + (x + 1)
(n + r) an xn+r1
n=0
n=0
an xn+r = 0
n=0
(n + r)(n + r 1) an xn+r1 +
n=0
(n + r) an xn+r
n=0
(n + r) an xn+r1 +
n=0
X
n=0
an xn+r = 0
81
Make the power of x to be xn+r1 ,
(m + r)(m + r 1) am xm+r1 +
m=0
(m 1 + r) am1 xm1+r
m1=0
(m + r) am xm+r1 +
m=0
am1 xm1+r = 0,
m1=0
and simplify
(m + r)(m + r 1) am xm+r1 +
m=0
(m + r 1) am1 xm+r1
m=1
(m + r) am xm+r1 +
m=0
am1 xm+r1 = 0.
m=1
X
m=1
X
m=1
X
m=1
(m + r)(m + r 1) am xm+r1
(m + r 1) am1 xm+r1
(m + r) am xm+r1
am1 xm+r1 = 0,
m=1
and simplify
[r(r 1) + r] a0 xr1
X
(m + r)(m + r) am + (m + r) am1 = 0.
m=1
so that
r = 0, 0.
am1
,
m+r
82
and when r = 0,
am =
am1
.
m
a1 = a0
m = 2,
a2 =
m = 3,
a3 =
a1
a0
=
2
2
a2
1
a0
a0
= =
3
3
2
3!
a3
1
a0
a0
a4 =
=
=
4
4
3!
4!
m = 4,
..
.
am = (1)m
a0
.
m!
+ + (1)
x +
2
3!
n!
= a0 a0 x +
= a0 ex .
Taking a0 = 1 we have y1 (x) = ex .
The second solution can be obtained by the reduction of order method. The second
solution is y2 (x) = u(x)y1 (x) where
Z
u(x) =
e
(ex )2
Z
=
Z
=
Z
=
Z
=
e2x e
dx
x+1
x
dx
1
1 x
dx
e2x exln x dx
ex
1
dx
x
1
x2
x3
xn
1+x+
+
+ +
+ dx
x
2!
3!
n!
83
Z
=
x
x2
xn1
1
+1+ +
+ +
+ dx
x
2!
3!
n!
= ln x + x +
x2
x3
xn
+
+ +
+
2 2! 3 3!
n n!
x2
x3
xn
+
+ +
+
2 2! 3 3!
n n!
1
Example 77. Solve the Bessels equation x y + xy + x
4
2 00
y = 0.
Solution. The method of Frobenious says the equation has a series solution of the form
X
an xn+r .
y=
n=0
(n + r)(n + r 1) an xn+r2 + x
(n + r) an xn+r1
n=0
n=0
1
+ x
4
(n + r)(n + r 1) an xn+r +
n=0
X
an xn+r = 0
n=0
(n + r) an xn+r
n=0
X
n=0
an xn+r+2 = 0
an n+r
x
= 0.
4
n=0
84
Make the power of x in the summation to be xm+r ,
(m + r)(m + r 1) am xm+r +
m=0
(m + r) am xm+r
m=0
m2=0
X
am
m=0
(m + r)(m + r 1) am xm+r +
m=0
am2 xm2+r+2 = 0
xm+r = 0
(m + r) am xm+r
m=0
am2 xm+r = 0
m=2
am m+r
x
= 0.
4
m=0
(m + r)(m + r 1) am xm+r
m=2
+ r a0 xr + (1 + r) a1 x1+r +
(m + r) am xm+r
m=2
am2 xm+r = 0
m=2
a0 r a1 1+r X am m+r
x
x
x
= 0,
4
4
4
m=2
and simplify
1
1
r2
a0 xr + (1 + r)2
a1 x1+r
4
4
+
X
1
am + am2 xm+r .
(m + r)2
4
m=2
This implies r2 14 a0 and since a0 6= 0, the indicial equation is
r2
1
= 0,
4
which implies
r1 =
1
1
, r2 = .
2
2
85
This also implies (1 + r)2 14 a1 = 0 and since for r1 = 12 , r2 = 12 , (1 + r)2 41 6= 0,
then a1 = 0.
Also
1
(m + r)2
am + am2 = 0
4
m+r
am =
1
2
1
m+r+
am = am2
2
am2
,
(m + r 21 )(m + r + 21 )
m = 2, 3, 4, . . .
am2
,
m(m + 1)
m = 2,
a2 =
a0
23
m = 3,
a3 =
a1
=0
34
m = 4,
a4 =
a2
1 a0
a0
a0
=
=
=
45
45 23
2345
5!
m = 5,
a5 = 0
m = 6,
a6 =
m = 2, 3, 4, . . .
a4
1
a0
a0
=
=
67
67 2345
7!
..
.
+
3!
5!
7!
x
= a0
sin x
.
x
86
cos x
.
x
Discussion
What happens if we try to find y2 (x) by using r2 = 21 ?
The coefficient of x1+r is (1 + r)2 14 a1 , for r2 = 12 , (1 + r2 )2
may be 0 and may not be 0. We take it to be non zero.
The recurrence relation is
Am =
Am2
,
(m 1)m
m = 2, 3, 4, . . .
m = 2,
A2 =
A0
12
m = 3,
A3 =
A1
23
m = 4,
A4 =
A2
1 A0
A0
A0
=
=
=
34
34 12
1234
4!
m = 5,
A5 =
A3
1 A1
A0
=
=
45
45 23
5!
m = 6,
A6 =
A4
1
A0
A0
=
=
56
56 1234
6!
m = 7,
A7 =
A5
1 A0
A0
=
=
67
6 7 5!
7!
..
.
1
4
= 0. Here A1
87
A0 2 A1 3 A0 4 A1 5
x
x +
x +
x
= x1/2 A0 + A1 x
2!
3!
4!
5!
A0
A0 7
x6
x +
6!
7!
=x
1/2
A0 2 A0 4 A0 4
A0
x +
x
x +
2!
4!
6!
+x
A0
=
x
1/2
A1 3 A1 5 A1 7
x +
x
x +
A1 x
3!
5!
7!
x2
x4
x6
1
+
+
2!
4!
6!
A1
+
x
x5
x7
x3
+
+
3!
5!
7!
x
cos x
sin x
= A0 + A1 .
x
x
It seems that by taking the smaller value r2 we obtain the general solution. However the
smaller value does not give the general solution all the time. Sometimes you will not
end up with any solution if start with the smaller r2 .
J (x) =
x X
k=0
x 2k
(1)k
k! ( + k + 1) 2
x X
k=0
x 2k
(1)k
k! ( + k + 1) 2
where (. . . ) is a gamma function. You will learn about Bessel and gamma functions
in KXEX3244.
Appendix A
Analytic functions
Definition 7. A function f (x) is analytic at x0 if its Taylor series about x0 exists, that
is f (x) can be represented by the series
f (x) =
an (x x0 )n ,
n=0
88
where an =
f (n) (x0 )
n!
Appendix B
Convergence of power series
Theorem 7 (DAlembert Ratio test). For a positive series
Un = U0 + U1 + + Un + ,
Un > 0
n=0
if
Un+1
= m (finite value)
n Un
lim
then
(i) the series converges for m < 1,
(ii) the series diverges for m > 1,
(iii) the series fails for m = 1.
xn
converges?
n(n 1)
n=2
89
(B.1)
90
Then
Un+1
= |x| lim n 1 = |x|
lim
n n + 1
n
Un
(B.2)
n(n 1)
n1 n
Then (B.2) can be expressed as
S2 =
1
1
1 1
1 1
1
1
+
+
+ +
+
2
2 3
3 4
n1 n
As n , S2 1. Therefore S2 converges.
Case 3: If x = 1 series (B.1) is
1
1
1
(1)n
+
+ +
+ < S2
21 32 43
n(n 1)
that is, the series converges as well.
Therefore the radius of convergence is 1 x 1.
1
1
1
1
+ p + p + + p +
p
1
2
3
n
91
Un = U0 + U1 + + Un + ,
Un > 0
n=0
if
lim
p
n
Un = m (finite value)
then
(i) the series converges for m < 1,
(ii) the series diverges for m > 1,
(iii) the test fails for m = 1.
x x2
x3
xn
+ 2 + 3 + + +
+
2
3
4
(n + 1)n
xn
(n+1)n
and
r
p
n
lim Un = lim n
n
xn
= lim
n
(n + 1)n
r
n
x
=0<1
n+1
Index
Airy equation, 68
analytic, 88
Bessel equation, 68
ordinary point, 65
differential equation
boundary conditions, 8
degree, 6
general solutions, 7
initial conditions, 8
linear, 6
non-linear, 7
order, 6
ordinary, 5
partial, 5
particular solution, 7
singular solutions, 7
power series, 62
algebraic operations, 63
centre, 62
coefficients, 62
interval of convergence, 62
radius of convergence, 62
reduction of order, 75
Euler-Cauchy
characteristic equation, 54
first order
Bernoulli equations, 15
differential form, 9
exact, 27
non-exact, integrating factor, 30
homogeneous, 21
reducible to, 23
linear, 12
integrating factor, 12
Riccati equations, 17
separable, 10
standard form, 9
second order
complementary, 38
constant coefficients, 38
Euler-Cauchy, 54
homogeneous, 33
linear combination, 34
linearly independent, 35
nonhomogeneous, 33, 42
reduction of order, 49
standard form, 33
undetermined coefficients, 44
variation of parameters, 52
singular point
irregular, 67
regular, 67
Wronskian, 36
gamma function, 87
indicial equation, 74
Legendre equation, 68
92