Professional Documents
Culture Documents
1
2.2.3 The Euler-Cauchy Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.1.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2
UNIVERSITY OF ZIMBABWE
DEPARTMENT OF MATHEMATICS
Lecture Notes
Tapedzesa G
FIRST-ORDER DIFFERENTIAL
EQUATIONS
dy
1. dx = cos x.
!2
d2 y dy
2. ey dx2 + 2 dx = 1.
d y 3 d y 2
3. 4 dx3 + sin x dx2 + 5xy = 0.
!3 !7 !3
d2 dx dx
4. dt2
+ 3x dt + x3 dt = 5t.
∂2u
5. k ∂u
∂t = ∂x2
- the heat equation.
1
∂2u ∂2u
6. ∂t2
+ ∂x2
= 0 - the Laplace equation.
Note that the last two equations are partial differential equations.
The general form of an nth order ordinary differential equation, in which y is the dependent variable
and x is the independent variable, is
F (x, y, y 0 , y 00 , · · · , y (n) ) = 0,
where the nth derivative must actually appear in this function. Lower order derivatives may be
missing, however. If F is a linear function of the variables y, y 0 , y 00 , · · · , y (n) ), that is
then the differential equation is said to be linear. Otherwise, the differential equation is said to
be non-linear.
A function f (x), defined on an interval I, which when substituted into the differential equation
reduces the equation to an identity is called a solution of the equation on the interval. A solution
of an ordinary differential equation, containing as many arbitrary constants is called the general
solution of the ordinary differential equation. Geometrically, the general solution of an ordinary
differential equation is a family of infinitely many solution curves, one for each set of values of
the constants. If we choose a specific set of values of the constants we obtain what is called a
particular solution of the ordinary differential equation. A particular solution does not contain
any arbitrary constants.
2
1.3.1 Solution Methods
Separation of variables
A first-order differential equation is one of separable variables if it can be cast in the form
dy
= g(x)h(x), or M (x)dx + N (y)dy = 0. (1.2)
dx
Whenever the variables are separable, equation (1.1) can be integrated to give
Z Z
M (x)dx + N (y)dy = c,
3
Here, f is any (differentiable) function of xy . Such an ordinary differential equation is called a
homogeneous ordinary differential equation.
y
The form of (1.3) suggests that we st x = u; thus,
y = ux
and hence
y 0 = u0 x + u.
Substituting into (1.3) then gives
u0 x + u = f (u) or u0 x = f (u) − u,
which can be separated.
du dx
= . (1.4)
f (u) − u x
Example 1.3.2. Solve
2xyy 0 = y 2 − x2 .
Solution 1.3.2. In standard form, we have
! ! !
y 2 − x2 y x 1 y 1 1 y
y0 = = − = − y =f .
2xy 2x 2y 2 x 2 x x
Hence the differential equation is homogeneous, and so we set xy = u. we substitute y and y 0 and
then simplify as follows:
u 1
u0 x + u = − ,
2 2u
u 1 −u2 − 1
u0 x = − − = .
2 2u 2u
We can now separate variables the integrate:
2udu dx
2
=− ,
1+u x
and hence,
ln(1 + u2 ) = − ln |x| + ln c.
Taking exponents on both sides yields
c
1 + u2 = ,
x
that is, !
y c
1+ = or x2 + y 2 = cx.
x x
4
Exercise 1.3.2. Classify each of the following differential equations as either homogeneous or not
homogeneous:
1. y 0 = log x − log y.
y x2
2. y 0 = x − y .
!
y y
3. y 0 = x + sin x .
5
By the assumption of continuity the two second partial derivatives are equal. Thus,
∂M ∂N
= . (1.12)
∂y ∂x
In the above integration, y is to be regarded as a constant, and k(y) plays the role of a constant of
integration. Differentiation of (1.13) with respect to y gives
!
R
∂ M dx
∂f dk
= + . (1.14)
∂y ∂y dy
dk
Solving (1.8) and (1.14) simultaneously we get dy , and hence k(y) upon integration.
Thus,
∂M ∂N
= − sin(x + y) = .
∂y ∂x
The equation is, therefore, exact. The solution is f (x, y) = c (c is a constant) where
Z Z
f (x, y) = M dx + k(y) = cos(x + y)dx + k(y) = sin(x + y) + k(y).
∂f dk
= cos(x + y) + = N (x, y) = 3y 2 + 2y + cos(x + y).
∂y dy
Hence,
dk
= 3y 2 + 2y.
dy
6
By integration,
k = y 3 + y 2 + c1 .
Thus,
f (x, y) = sin(x + y) + y 3 + y 2 = c
is the general solution.
Exercise 1.3.3. Solve the initial value problem
(cos y sinh x + 1)dx − sin y cosh xdy = 0, y(1) = 2.
If r(x) = 0 then the equation is variables separable. In the case that r(x) 6= 0, the differential
equation (1.15) has a pleasant property; namely, it has an integrating factor depending only on x.
To find a solution we go through the following steps:
7
4. By the product rule the equation simplifies to
!
d R
p(x)dx
R
ye = r(x)e p(x)dx ,
dx
8
Bernoulli Equation: Reduction to linear form
Numerous applications can be modeled by ODEs that are nonlinear but can be transformed to
linear ODEs. One of the most useful ones of these is the Bernoulli equation, which has the form
dy
+ p(x)y = r(x)y n , (1.17)
dx
where n is any real number. If n = 1 or n = 1, equation (1.17) is linear. Otherwise it is nonlinear.
Then we use the substitution
u = y 1−n . (1.18)
We differentiate this and substitute y and y 0 from (1.17), obtaining the linear ODE
Solving the linear equation (1.19) gives u as a function of x. To get the required solution y we use
back-substitution u = y 1−n .
Example 1.3.5. Solve the following logistic equation (also known as Verhulst equation):
y 0 = Ay − By 2 .
y 0 − Ay = −By 2 .
u0 + Au = B,
9
There are several other differential equations which can be transformed by certain substitutions
into either separable variables, exact or a general linear first-order ODE. In fact, all first-order
differential equations of the form
dy
= F (a1 x + a2 y + a3 ), (1.20)
dx
where a1 , a2 , a3 are constants can be transformed to separable variable type by introducing the
substitution
u = a1 x + a2 y + a3 . (1.21)
Exercise 1.3.7. Solve the following differential equations using a suitable substitutions:
dy
1. dx = (x + y)2 ,
dy
2. dx = (2x + y − 3)3 + 1,
dy 1−x−y
3. dx = x+y ,
dy
4. dx = sin(x + 2y + 3).
Numerical solutions
Sometimes, it is difficult or not worthy finding an exact (or analytic) solution of a first-order
differential equation. In such situations it is wise to employ numerical methods. we shall consider
some of the techniques of finding an approximate solution of a differential equation of the form
(1.1)
y 0 = f (x, y),
with y(x0 ) = y0 on an interval Ω ∈ R2 .
This technique is based on the assumption that the required solution can be expanded in
a Taylor series about a point xk , k = 0, 1, · · · . Given y0 = y(x0 ), we can find successive
estimates of yk = y(xk ) for k = 0, 1, · · · using the following scheme
h2 00 hn (n)
y(xk ) = y(xk ) + hy 0 (xk ) + y (xk ) + · · · + y (xk ), (1.22)
2! n!
10
where h = xk+1 − xk is the step size in the variable x and y 00 , . . . , y (n) can be obtained by
successively differentiating the given differential equation (1.1). The scheme (1.22) is known
as Taylor’s formula of order n.
Example 1.3.6. Use Taylor’s method of order 4 to approximate the solution of the differential
equation
y 0 = y + ex on [0, 2], with y(0) = 1.
Use
(a) h = 1.
(b) h = 0.5.
(c) h = 0.25.
h2 00 h3 h4
y(xk ) = y(xk ) + hy 0 (xk ) + y (xk ) + y 000 (xk ) + y (iv) (xk )
2! 3! 4!
1 1 1
= yk + h(yk + exk ) + h2 (yk + 2exk ) + h3 (yk + 3exk ) + h4 (yk + 4exk )
2 6 24
h2 h3 h4 h3 h4 xk
= (1 + h + + + )yk + (h + h2 + + )e .
2 6 24 2 6
Use the automated formula to complete the solution.
2. Euler’s method
3. Runge-Kutta’s methods
11
Chapter 2
SECOND-ORDER LINEAR
DIFFERENTIAL EQUATIONS
A second-order ordinary differential equation is said to be linear if it can be written in the form
The characteristic feature of this equation is that it is linear in the unknown function y and its
derivatives, whereas p(x) and q(x) as well as r(x) may be any given functions of x.
12
2.1 Homogeneous Linear Ordinary Differential Equations
Theorem 2.1.1. For a homogeneous linear differential equation (2.2), any linear combination of
two solutions on an open interval I is again a solution of (2.2) on I.
Proof. Let y1 (x) and y2 (x) be solutions of (2.2) on I. Then by substituting y = c1 y1 + c2 y2 and its
derivatives into (2.2), we get
Note that this highly important result holds for homogeneous linear ODEs only but does not hold
for non-homogeneous linear and non-linear ODEs.
Recall that for a first-order ODE, an initial value problem consists of the ODE and one initial
conditiony(x0 ) = y0 . The initial condition is used to determine the arbitrary constant, usually
denoted by c, in the general solution of the ODE. That solution is called a particular solution of the
ODE. Now for a second-order homogeneous linear ODE (2.2) an initial value problem consists
of the ODE itself and two initial conditions
The conditions (2.3) are used to determine the two arbitrary constants c1 and c2 in a general
solution
y = c1 y1 + c2 y2 (2.4)
of the ODE, in which y1 and y2 are solutions of (2.2) that are not proportional, and c1 and c2 are
arbitrary constants. These y1 and y2 are called a basis (or a fundamental system) of solutions
13
of (2.2) on I. In fact, the two functions y1 and y2 are said to be linearly independent, which
they must be, on an interval I where they are defined if
Type I
If in a second-order differential equation, the dependent variable y does not appear explicitly, the
equation can then be written in the form
By setting z = y 0 we can obtain a first-order differential equation in z(x) and from its solution, the
solution of the original equation (by simply integrating).
Example 2.2.1. Reduce the following differential equation to first-order, then solve it:
2xy 00 = 3y 0 .
2xz 0 = 3z.
14
Back-substitution then gives
3 √
y 0 = Dx 2 , D= c.
Integration yields
5
y = c1 x 2 + c2 ,
2D
which is the general solution, where c1 = 5 , c2 are arbitrary constants.
Type II
Another type of equations reducible to first order is when the independent variable x does not
appear explicitly in the differential equation. That is, the differential equation is of the form
y 00 + a1 y 0 + a0 y = b0 (2.6)
Type III
Suppose we obtain a solution y1 (x) (not identically zero) of a given homogeneous differential equa-
tion (2.2) by some other specified method or by guessing. Then the transformation
y = v(x)y1 (x)
Since y = v(x)y1 (x) then y 0 = vy10 + y1 v 0 and hence y 00 = vy100 + 2v 0 y10 + y1 v 00 . Substituting
these into (2.2) we obtain
15
The expression in the last parenthesis is zero, since y1 is a solution of (2.2). Thus,
v 00 y1 + v 0 (2y10 + py1 ) = 0.
It is worthy noting that the method of reduction of order works even for non-linear second-order
ODEs.
Example 2.2.2. Given that y1 (x) = x4 is a solution of the second-order differential equation
x2 y 00 − 7xy 0 + 16y = 0,
use the method of reduction of order to obtain a second linearly independent solution.
Solution 2.2.2. The second solution is of the form y = v(x)y1 = v(x)x4 , for a suitable choice of
the function v(x). We directly establish that
Thus,
1 0
v 00 + v = 0.
x
setting w = v 0 , we obtain
1
w0 + w = 0,
x
16
which is separable. We integrate to get
c1
w= ,
x
where c1 is a constant. Recall that w = v 0 , hence,
Z Z
c1
v = wdx = dx = c1 ln |x| + ln c2 .
x
Setting c1 = 1 and c2 = 1 since we are looking for the second linearly independent solution, we
obtain
y2 (x) = vy1 = x4 ln |x|.
Exercise 2.2.2. 1. Reduce the order of the following differential equations and hence solve:
(a) y 00 = y 0 tanh x.
(b) xy 00 + y 0 = (y 0 )2 .
(c) y 00 + ey (y 0 )3 = 0.
(d) y 00 + (y 0 )3 cos y.
2. Verify that the given function is a solution of the given differential equation for all positive x
and find y2 such that y1 , y2 form a fundamental set of solutions for all positive x.
(a) x2 y 00 − 4xy 0 + 4y = 0, y1 = x.
(b) y 00 + 1 0
xy + (1 − 1 2
4 x )y = 0, y1 = cos
√ x.
x
a2 y 00 + a1 y 0 + a0 y = 0, (2.7)
Recall that the solution of the first-order homogeneous linear differential equation with constant
coefficients (y 0 + ky = 0) is y = ce−kx . We thus conjecture that
y = eλx (2.8)
might be a solution of the differential equation (2.7) if λ is properly chosen. Substituting (2.8) and
its respective derivatives
y 0 = λeλx and y 00 = λ2 eλx
17
into (2.7), we obtain
eλx (a2 λ2 + a1 λ + a0 ) = 0.
Since emx 6= 0 for all x ∈ (−∞, ∞), we have
a2 λ2 + a1 λ + a0 = 0. (2.9)
Equation (2.9) is called the characteristic equation or auxiliary equation of the differential
equation (2.7). The characteristic equation (2.9) may have three kinds of roots, depending on
the sign of the discriminant a2 − 4b, namely; two real roots if a2 − 4b > 0, a real double root if
a2 − 4b = 0, and complex conjugate roots if a2 − 4b < 0.
18
Case II: Real double root λ1 = λ2 = − a2
19
Case III: Complex conjugate roots λ1 = a + iω, λ2 = a − iω
This case occurs when the discriminant is negative. We can show that a basis of solutions of (2.7)
on any interval is
y1 = eax cos ωx, y2 = eax sin ωx.
The corresponding general solution is
λ2 + 0.4λ + 9.04 = 0.
The first initial condition gives y(0) = c1 = 0. Thus y = c2 e−0.2x sin 3x, whose derivative is
From this and the second initial condition we obtain y 0 (0) = 3c2 = 3.Hence c2 = 1, and the solution
is
y = e−0.2x sin 3x.
Exercise 2.2.3. Show that in the special case, λ1 = −λ2 , and real, the general solution can be
written as
y = c1 cosh λ1 x + c2 sinh λ1 x.
x2 y 00 + axy 0 + by = 0, (2.11)
where a and b are constants. Such equations can be solved by making a substitution
y = xm (2.12)
20
and its derivatives
y 0 = mxm−1 , y 00 = m(m − 1)xm−2
into (2.12). This gives
x2 m(m − 1)xm−2 + axmxm−1 + bxm = 0.
Dividing throughout by xm and simplifying we obtain the auxiliary equation
m2 + (a − 1)m + b = 0. (2.13)
Hence y = xm is a solution of (2.11) if and only if m is a root of (2.13). if the roots m1 and m2 are
real and different, then the functions
constitute a basis of solutions of the differential equation (2.11) for all x for which these functions
are defined. The corresponding general solution is
y = c1 xm1 + c2 xm2 ,
x2 y 00 − 1.5xy 0 − 1.5y = 0.
m2 + 0.5m − 0.5 = 0.
The roots are m1 = 0.5 and m2 = −1. Hence a basis of solutions for all positive x is
y1 = x0.5 , y2 = x−1 .
21
2.3 Non-homogeneous Linear Differential Equations
We now consider the methods for solving second-order non-homogeneous linear differential equa-
tions of the form
where f (x) 6= 0. A general solution of the homogeneous equation (2.14) on some open interval I is
a solution of the form
y = yc + yp .
yc = c1 y1 (x) + c2 y2 (x) is called the complementary function and yp is called the particular
integral.
The complementary function is the general solution of the corresponding homogeneous equation
on I, and the particular is any solution of (2.14) on I containing no arbitrary constants. The main
task in this section is to discuss methods for finding the particular integral, yp .
The method of undetermined coefficients applies to linear differential equations with constant co-
efficients
y 00 + ay 0 + by = f (x), (2.15)
where f (x) is either an exponential function, a power of x, a cosine or sine, or sums or products
of such functions. The key idea of the method is to assume for yp an expression similar to that
of f (x), involving unknown coefficients that need to be determined by substitution of yp into the
given differential equation.
1. If f (x) in (2.15) is any one of the functions in the first column in the table below, choose
the corresponding yp in the second column and determine its ’undetermined’ coefficients by
substituting yp and its derivatives into (2.15).
2. If f (x) is a solution of the homogeneous equation corresponding to (2.15), then multiply your
choice of yp by x, or by x2 if this is a solution again.
22
3. If f (x) is a sum and/or product of functions listed in several row in the first column of the
table, then choose for yp the sum and/or product of the functions in the corresponding rows
in the second column.
1. y 00 + 4y = 8x2
2. y 00 − 3y 0 + 2y = ex
3. y 00 − 2y 0 + y = ex + x.
The method of undetermined coefficients is useful for obtaining particular solutions of non-homogeneous
linear differential equations only in the case where coefficients are constants and also the non-
homogeneous function was restricted to a specific class of functions.
We are now going to discuss a slightly more powerful method; which solves a rather larger class
of linear differential equations, in that the non-homogeneous function can be any function and the
coefficients need not be constants.
Let y1 (x) and y2 (x) be the linearly independent solutions of the corresponding homogeneous part
of equation (2.16), then the complementary function is given by
yc (x) = c1 y1 + c2 y2 .
23
A particular solution of (2.16) is sought in the form
yp (x) = v1 y1 + v2 y2 (2.17)
which can be obtained from the complementary function by replacing the constants c1 and c2 by
the functions v1 and v2 , hence the name variation of parameters. Differentiation of (2.16) gives
v10 y1 + v2 y2 = 0. (2.19)
Thus,
Substituting (2.17), (2.20) and (2.21) into (2.16) and collecting terms containing v1 and terms
containing v2 we readily obtain
v1 (y100 + py10 + qy1 ) + v2 (y200 + py20 + qy2 ) + v10 y10 + v20 y20 = f (x).
Since y1 and y2 are solutions of the corresponding homogeneous equation, the above equation
reduces to
Equation (2.22) together with condition (2.19) is a system of two linear algebraic equations for the
unknown functions v10 and v20 . The solution of such a system is obtained, by Cramer’s rule, as
y2 f (x) y1 f (x)
v10 = , v2 = , (2.23)
W W
where W = y1 y20 − y10 y2 is the Wronskian of y1 and y2 .
24
Here we have ignored the constants of integration since we are looking for a particular solution.
y 00 + y = sec x.
Solution 2.3.1. y1 = cos x, y2 = sin x form the solution basis of the corresponding homogeneous
equation.The Wronslian, W = y1 y20 − y10 y2 = cos2 x + sin2 x = 1. Thus, the particular solution is
Z Z
y2 f (x) y1 f (x)
yp = −y1 dx + y2 dx
W W
Z Z
= − cos x sin x sec xdx + sin x cos x sec xdx
1. y 00 + 4y 0 + 3y = 65 cos 2x,
Observe that the method of undetermined coefficients is simpler than the method of variation of
parameters.
25
Chapter 3
SERIES SOLUTIONS OF
ORDINARY DIFFERENTIAL
EQUATIONS
Many linear differential equations of second order have solutions which are not expressible in terms
of the well-known functions such as the trigonometric, logarithmic, polynomial and exponential
functions. We may obtain, however, a valid representation of many such functions by the power
series method, which gives solutions in the form of power series.
Definition 3.1.1. A power series about a point x = x0 is an infinite series of the form
∞
X
cn (x − x0 )n , (3.1)
n=0
26
For example,
∞ ∞
X (−1)n n
X (x − 3)n
x and
n n3
n=1 n=1
(−1)n
are power series about the points x = 0 and x = 3, respectively. In the first example cn = n
and x0 = 0, whereas, in the second, cn = n13 and x0 = 3.
∞
1 X
1. = xm = 1 + x + x2 + · · · (|x| < 1).
1−x
m=0
∞
X xm x2 x3
2. ex = =1+x+ + + · · ·.
m! 2 3!
m=0
∞
X x2m x2 x4 x6
3. cos x = =1− + − + · · ·.
(2m)! 2! 4! 6!
n=0
∞
X x2m+1 x3 x5 x7
4. sin x = =x− + − + · · ·.
(2m + 1)! 3! 5! 7!
n=0
Definition 3.1.2. Every power series has an interval of convergence. This is the set of all
numbers for which the series converges.
The series will converge for all values of x such that L < 1 and will diverge for L > 1, otherwise
the test is inconclusive. If the interval of convergence is finite, it has the mid-point x = x0 , so that
it is of the form
|x − x0 | < R (3.3)
and the series (3.1) converges for all values of x such that |x − x0 | < R and diverges for all x such
that |x − x0 | > R. The number R is called the radius of convergence of (3.1), and is given by
c
n
R = lim .
n→∞ cn+1
27
For a power series
∞
X
cn (x − x0 )n
n=0
2. If 0 < R < ∞, the series converges, and respectively diverges for all x satisfying
where R > 0.
Example 3.1.1. Find the radius of convergence of each of the following series
∞
X (−1)n x6 x9
1. x3n = 1 − f racx3 8 + − + · · ·.
8n 64 512
n=0
∞
X (x − 3)n
2. .
n3
n=0
(−1)n
Solution 3.1.1. 1. The power series is centered at x3 = 0, with cn = 8n and so
(−1)n+1
cn+1 = 8n+1
. The radius of convergence is given by
c
n 8n+1
R = lim = lim = 8.
n→∞ cn+1 n→∞ 8n
Hence the series converges for |x3 | < 8, that is , |x| < 2, and diverges for |x| > 2.
2. The power series is centered at x = 3. in this case, cn = n13 . The radius of convergence is,
therefore,
c
n n + 13
R = lim = lim = 1.
n→∞ cn+1 n→∞ n3
The series converges for |x − 3| < 1 or 2 < x < 4, and so diverges for (−∞, 2) ∪ (4, ∞). On
the boundaries:
28
• at x = 2, the series becomes
∞
X (−1)n
,
n3
n=0
2 ≤ x ≤ 4.
Termwise differentiation
converges for |x − x0 | < R, where R < 0, then the series obtained by differentiating term by term
also converges for those values of x. that is,
X
y 0 (x) = mam (x − x0 )m−1 (|x − x0 | < R).
m→∞
Similarly, X
y 00 (x) = m(m − 1)am (x − x0 )m−2 (|x − x0 | < R).
m→∞
29
Termwise addition
Two power series may be added term by term. More precisely; if the series
X X
am (x − x0 )m and bm (x − x0 )m
m→∞ m→∞
have positive radii of convergence and their sums are, say, f (x) and g(x), then the series
X
y(x) = (am + bm )(x − x0 )m
m→∞
converges and represents f (x) + g(x) for each x that lies in the intersection of the convergence
intervals of the original series.
If a power series has a positive radius of convergence and a sum that is identically zero throughout
its interval of convergence, then each coefficient of the series must be zero.
If the coefficients p(x) and q(x) and the function r(x) on the right side of
are real analytic functions (that is, have power series representations), then (3.4) has power series
solutions. Thus, polynomials, sines, cosines and exponential functions are everywhere analytic; so
too are sums and products of these functions
30
Definition 3.2.1. The point x = x0 is an ordinary point of the differential equation (3.5) if both
p(x) and q(x) are analytic at x = x0 . If either of these functions is not analytic at x = x0 , then x0
is a singular point of (3.5).
Example 3.2.1. Identify all the singular points, if they exist, of each of the following differential
equations
2. p(x) = −1 4
x and q(x) = 3−x , which are not analytic at x = 0 and x = 3 respectively. So x = 0
and x = 3 are the singular points of the given differential equation.
There are two types of singular points; a regular singular point and an irregular singular point.
Definition 3.2.2. A point x = x0 is called a regular singular point of a differential equation
(3.5) if not all of p(x) and q(x) are analytic but if (x − x0 )p(x) and (x − x0 )2 q(x) are analytic at
x = x0 . Otherwise the point is an irregular singular point.
Example 3.2.2. Find and classify the singular points of the equation
For x0 = 1,
2(x − 1)2 2
(x − x0 )p(x) = 2 2
= ,
x (x − 1) x
31
which is analytic at x = 1. On the other hand,
(x − 1)2
(x − x0 )2 q(x) = = 1,
(x − 1)2
Exercise 3.2.1. Locate and classify the singular points of each of the following differential equations
Suppose that the point x = x0 is an ordinary point of the differential equation (3.5), then the
differential equation has two linearly independent power series solutions of the form
∞
X
y= cn (x − x0 )n , (3.6)
n=0
where these power series converge in some interval |x − x0 | < R about x0 , where R > 0.
Thus, near or about an ordinary point (x = x0 ) of a differential equation, we can find a series
solution valid in a region surrounding the point x = x0 with radius of convergence R. The radius
of convergence of this series is as large as the distance to the nearest point of singularity to x0 .
However, if the differential equation does not have singular points in the plane, then the power
series solution converges in the entire plane. The main task in solving any differential equation
using the power series method is to find a relation between the coefficients cn , n ≥ 2, and the two
arbitrarily constant coefficients c0 , c1 .
Solution 3.2.3. Clearly, the point x = 0 is an ordinary point of the given differential equation.
We, therefore, seek solutions of the form
∞
X
y= cn xn . (3.7)
n=0
32
Successive differentiation of (3.7) gives
∞
X
y0 = ncn xn−1 (3.8)
n=0
and
∞
X
y 00 = n(n − 1)cn xn−2 . (3.9)
n=0
This simplifies to
∞
X ∞
X
2 n
(n − 1)cn x − n(n − 1)cn xn−2 = 0. (3.11)
n=0 n=0
Shift the powers of x−x0 , which is simply x in this case, to the smallest one present in the equation.
In this case the smallest exponent of x is n − 2, hence we shift the index of the term in the first
sum in (3.11) by replacing n by n − 2. Thus,
∞
X ∞
X
[(n − 2)2 − 1]cn−2 xn−2 − n(n − 1)cn xn−2 = 0.
n−2=0 n=0
This simplifies to
∞
X ∞
X
2 n−2
(n − 4n + 3)cn−2 x − n(n − 1)cn xn−2 = 0. (3.12)
n=2 n=0
33
Step II: Expressing all summations over a common range
The common range of the summations in (3.12) is [2, ∞). Writing out, explicitly, the terms that
do not belong to the common range we have
∞
X ∞
X
2
((n − 4n + 3)cn−2 x n−2
− n(n − 1)cn xn−2 − 0 · c0 x−2 + 0 · c1 x−1 = 0.
n=2 n=2
That is,
∞
X
0 · c0 x−2 + 0 · c1 x−1 + [(n − 3)(n − 1)cn−2 − n(n − 1)cn ]xn−2 = 0. (3.13)
n=2
c2 = − 21 c0 ,
c3 = 0,
c4 = 14 c2 = − 81 c0 ,
c5 = − 32 c3 = 0,
c6 = 21 c4 = − 16
1
c0 , etc.
34
The points x = 1 and x = −1 are the only singular points of the given differential equation. The
minimum distance between x0 = 0 and these singular points, which is the radius of convergence, is
R = 1. The above solution is, therefore, valid in the interval |x| < 1.
Exercise 3.2.2. Find the power series solution of the differential equation
(x3 − 1)y 00 + x2 y 0 + xy = 0
Theorem 3.2.1 (Frobenius Method). If x0 is a regular singular point for the differential equation
then the differential equation has at least one non-zero solution of the form
∞
X
r
y(x) = (x − x0 ) cn (x − x0 )n , (3.16)
n=0
where the exponent r is a constant which may be real or complex, chosen so that c0 6= 0. If
(x − x0 )p(x) and (x − x0 )2 q(x) have power series which converge for |x − x0 | < R then the power
series also converges for |x − x0 | < R.
We will call a solution of the form (3.16) a generalized power series solution. Although the
theorem guarantees only one generalized power series solution, not a basis, the differential equation
(3.15) also has a second solution, such that these two solutions are linearly independent, that may
similar to (3.16), but with a different r and different coefficients, or may contain a logarithmic term.
35
Let us now illustrate the Frobenius method by solving the differential equation
2xy 00 + y 0 + y = 0
Then
∞
X ∞
X
0 n+r−1 00
y (x) = (n + r)cn x , y (x) = (n + r)(n + r − 1)cn xn+r−2 .
n=0 n=0
which simplifies to
∞ ∞
" #
X X
xr (2n + 2r − 1)(n + r)cn xn−1 + cn xn = 0.
n=0 n=0
Writing out all the summations over a common range,m and simplifying, we obtain
∞
X
(2r − 1)rc0 x−1 + [(2n + 2r − 1)(n + r)cn + cn−1 ]xn−1 = 0.
n=1
36
Now, the coefficient of each power of x must be zero. In particular, we must have
(2r − 1)r = 0.
This is called the indicial equation of the given differential equation. The Frobenius method
gives one of the basis solutions, which will always be of the form (3.16), where r is a root of the
indicial equation. The other solution will be of the form indicated by the indicial equation. There
are three possible cases which we state in form of a theorem as follows:
Theorem 3.2.2. Suppose that the differential equation (3.15) satisfies the assumptions in Theorem
3.2.1. Let r1 and r2 be the roots of the indicial equation. Then we have the following three cases:
A basis is
y1 (x) = xr1 (c0 + c1 x + c2 x2 + · · · )
and
y2 (x) = xr2 (A0 + A1 x + A2 x2 + · · · )
with coefficients obtained successively from (3.18) with r = r1 and r = r2 , respectively.
A basis is
y1 (x) = xr (c0 + c1 x + c2 x2 + · · · )
and
y2 (x) = y1 (x) ln x + xr (A1 x + A2 x2 + · · · ) (x > 0).
A basis is
y1 (x) = xr1 (c0 + c1 x + c2 x2 + · · · )
37
and
y2 (x) = ky1 (x) ln x + xr2 (A0 + A1 x + A2 x2 + · · · ) (x > 0),
where the roots are so denoted that r1 > r2 and k may turn out to be zero.
1 2 1 1
=1−x+ x − x3 + − ··· .
3·2 (5 · 3)3! (7 · 5 · 3)4!
If r = 12 , the recurrence formula becomes
1
cn = − cn−1 .
n(2n + 1)
38
We find that
1
c1 = − ,
3
2 1
c2 = − c1 = c0 ,
5 2·5·3
1 1
c3 = − c2 = − c0,
3·7 3!(7 · 5 · 3)
and in general,
1
cn = (−1)n .
n!(2n + 1)(2n − 1) · · · 1
We thus obtain a second power series solution to the given differential equation:
" #
1 1 1 1
y2 (x) = x 2 1 − x + x2 − x3 + · · · .
3 2·5·3 3!(7 · 5 · 3)
The general solution to the given differential equation is a superposition of y1 (x) and y2 (x):
" # " #
1 2 1 1 √ 1 1 1
y = c1 1−x+ x − x3 + −· · · +c2 x 1− x+ x2 − x3 +· · · .
3·2 (5 · 3)3! (7 · 5 · 3)4! 3 2·5·3 3!(7 · 5 · 3)
We obtained two linearly independent power series solutions in this case, but this does not always
happen. If the roots of the indicial equation differ by an integer, we may obtain only one power
series solution. In that case, a second independent solution can then be found by referring to
Theorem 3.2.2 or by the method of reduction of order.
39
Chapter 4
4.1 Definitions
We have so far looked at the methods of solving linear differential equations, mainly those with
a continuous non-homogeneous function. However, in many applications, the non-homogeneous
function is not continuous but may be piecewise continuous. The Laplace transform method is an
invaluable tool for solving such problems. The process of solution consists of three steps:
1. The given ODE is transformed into an algebraic equation, known as the subsidiary equa-
tion.
3. The solution obtained in step 2 is transformed back, resulting in the solution of the given
problem.
The switching from calculus to algebra is called operational calculus. The Laplace transform
method is the most important operational method for solving initial value problems that arise
in engineering. The method solves problems more directly; initial value problems without first
determining a general solution, and non-homogeneous ODs without first solving the corresponding
homogeneous ODE.
40
Definition 4.1.1. The class of functions defined by
Z ∞
T {f (t)}(s) = K(s, t)f (t)dt = F (s) (4.1)
−∞
Various choices of K(s, t) in (4.1) lead to special transforms, each with its own properties to make
it useful in special circumstances.
Definition 4.1.2. The Laplace transform of a function f (t), t ≥ 0 is denoted by L{f (t)} and is
given by
Z ∞
L{f (t)}(s) = e−st f (t)dt = F (s), (4.2)
t=0
Furthermore, the original function f (t) in (4.2) is called the inverse Laplace transform of F (s)
and is denoted by L−1 {F (s)}, that is,
4.1.1 Notation
2. Original functions are denoted by lowercase letters and their transforms by uppercase letters,
so that F (s) denotes the transform f (t), and Y (s) denotes the transform of y(t), and so on.
Example 4.1.1. Find the Laplace transforms, F (s) = L{f (t)}(s) in each of the following cases:
2. f (t) = t.
41
Solution 4.1.1. 1. Z ∞
a
L{a}(s) = ae−st dt = .
0 s
2. Z ∞
a
L{t}(s) = te−st dt =
0 s
∞
−te−st 1 ∞ −st
Z
= + e dt
s s t=0
t=0
1
= .
s2
3. ∞
Z ∞
at −st at 1 −(s−a)t
L{e }(s) = e e dt = e
a−s
0
t=0
1
= .
s−a
Exercise 4.1.1. Complete the following table of Laplace transforms:
eat
cos at
sin at
cosh at
sinh at
teat
tn eat
ebt cos at
ebt sin at
ebt cosh at
ebt sinh at
t sin at
t cos at
42
Theorem 4.1.1 (Linearity of the Laplace Transform). The Laplace transform is a linear opera-
tion; that is, for any functions f (t) and g(t) whose Laplace transforms exist and any constants a
and b the Laplace transform of af (t) + bg(t) exists, and is given by
2. Let F (s) = 1
(s−a)(s−b) , a 6= b. Find L−1 {F (s)}(t).
Solution 4.1.2. 1. Since cosh at = 21 (eat + e−at ), we obtain from Example 4.1.1 and Theorem
4.1.1
L{f (t)} = L{cosh at}
!
1 1 1 1 s
= (L{eat } + L{e−at }) = + = .
2 2 s−a s+a s2 − a2
2. Since ! !
1 1 1 1
= − ,
(s − a)(s − b) a−b s−a s−b
we have from Theorem 4.1.1
( )
−1 −1 1
L {F (s)}(t) = L
(s − a)(s − b)
!" ( ) ( )#
1 1 1 eat − ebt
= L−1 − L−1 = .
a−b s−a s−b a−b
43
Exercise 4.1.2. Let
s
F (s) = , a 6= b.
(s − a)(s − b)
Find L−1 {F (s)}(t).
Theorem 4.1.2 (The First Shifting Theorem). If f (t) has the Laplace transform F (s), then eat f (t)
has the Laplace transform F (s − a). That is,
L{eat f (t)} = F (s − a)
24
L{e7t t4 } = F (s − 7) = .
(s − 7)5
2. Since
s s s+2 2
= = − ,
s2 + 4s + 5 2
(2 + 2) + 1 (s + 2) + 1 (2 + 2)2 + 1
we readily deduce that
( ) ( ) ( )
s s+2 2
L−1 2
= L−1 − 2L−1
s + 4s + 5 (s + 2) + 1 (s + 2) + 1
44
4.1.2 Laplace Transforms of Derivatives
Since the ultimate objective is to solve differential equations using Laplace transforms, the rela-
tionship between the Laplace transform of a derivative and the Laplace transform of the original
function will play an important role. By definition
Z ∞
L{f (t)} = e−st f (t)dt
0
∞
−f (t)e−st 1 ∞ −st 0
Z
= + e f (t)dt
s s 0
t=0
f (0) 1
= + L{f 0 (t)}.
s s
Hence,
Further, by definition, Z ∞
0
L{f (t)} = e−st f 0 (t)dt
0
∞
−f 0 (t)e−st 1 ∞ −st 00
Z
= + e f (t)dt
s s 0
t=0
0
f (0) 1
= + L{f 00 (t)}.
s s
Thus,
We shall now discuss how the Laplace transform method solves initial value problems. There are
three major steps which shall be illustrate using an example.
45
Illustrative example
Solve
y 00 − 3y 0 + 2y = 0, y(0) = −3, y 0 (0) = 5
using the Laplace transform method.
Let L{y(t)} = Y (s) be the Laplace transform of the solution of the differential equation. Trans-
forming the differential equation and using the linearity property of the Laplace transform operator,
we obtain
L{y 00 − 3y 0 + 2y} = L{0}.
Thus,
L{y 00 } − 3L{y 0 } + 2L{y} = 0.
Substitution according to (4.3) and (4.4) gives
Thus,
Equation (4.5) is called the subsidiary equation of the given differential equation.
46
Step 3: Inversion of Y (s) to obtain y(t) = L−1 {Y (s)}(t)
= 8e2t − 11et .
Thus, y(t) = 8e2t − 11et is the solution of the given initial value problem.
47