Академический Документы
Профессиональный Документы
Культура Документы
Solution Methods
Bishnu P. Lamichhane∗
August 8, 2017
Theorem 1 Let an (x), an−1 (x), · · · , a0 (x) and g(x) be continuous on an inter-
val I ⊂ R and an (x) 6= 0 for every x ∈ I. If x0 is any point in this interval, then
a solution y(x) of the initial value problem (1.1)–(1.2) exists on the interval and
is unique.
1
Theorem 4 If y1 , y2 , . . . , yk are (k − 1)-times continuously differentiable on
(a, b), then S = {y1 , y2 , . . . yk } is linearly dependent ⇒ W (y1 , y2 , . . . , yk ) ≡ 0.
Equivalently, W (y1 , y2 , . . . , yk ) 6≡ 0 ⇒ S is linearly independent.
The function yc is called the complementary function for the ODE (1.1).
2
1.1 Linear ODEs with Constant Coefficients
We look for a solution of the form y(x) = erx , where r is a complex number.
Substituting into the equation (1.5) we get
for all x. Since erx is not zero for any x it follows that we must have
1. If rj is distinct from all the other roots then the function yj (x) = erj x is
a corresponding solution of (1.5).
3
Remark 10 Since we assume that all the ci are real, the characteristic polyno-
mial is a real polynomial, so any complex roots occur in complex conjugate pairs
α + iβ and α − iβ. In this case, the corresponding solutions are e(α+iβ)x and
e(α−iβ)x , which we can rewrite as
If we use the formula eiθ = cos(θ) + i sin(θ) that we learned in first year, we can
deduce that
So when all the ci are real, and α + iβ and α − iβ are roots of the charac-
teristic polynomial, we can replace e(α+iβ)x and e(α−iβ)x with eαx cos(βx) and
eαx sin(βx) throughout the resulting fundamental set of solutions.
As particular case of the above discussion for a linear homogeneous second order
differential equation with constant coefficients, we have the following theorem.
ay 00 + by 0 + cy = 0, (1.7)
1. If r1 and r2 are distinct and real (b2 − 4ac > 0), then (1.7) has the general
solution
y = C1 er1 x + C2 er2 x .
y = (C1 + C2 x) er1 x .
3. If r1 and r2 are distinct and complex (b2 − 4ac < 0), i.e., r1 = α + iβ and
r2 = α − iβ, then the general solution is
4
We start with a solution y = erx . Then y 0 = rerx and y 00 = r2 erx . Plugging
this function in the equation gives
y 00 − 6y 0 + 8y = 0,
r2 erx − 6rerx + 8erx = 0,
r2 − 6r + 8 = 0 (divide through by erx ),
(r − 2)(r − 4) = 0.
We note that the functions e2x and e4x are linearly independent since it is not
possible to write e4x = Ce2x for a constant C. Thus the general solution is
y = C1 e2x + C2 e4x .
Now we apply the initial conditions to determine C1 and C2 . We first note that
y 0 = 2C1 e2x + 4C2 e4x . We plug in x = 0 in y(x) and y 0 (x) to find
−2 = y(0) = C1 + C2 ,
6 = y 0 (0) = 2C1 + 4C2 .
For another example of the first case, take the equation y 00 − k 2 y = 0. Here the
characteristic equation is r2 − k 2 = 0 or (r − k)(r + k) = 0 and hence e−kx and
ekx are the two linearly independent solutions.
y 00 − 8y 0 + 16y = 0.
5
Examples
1. In the first step, we find the complete solution to the homogeneous differ-
ential equation (1.4) and call this the general solution to the homogeneous
ODE, and denote it by yc .
2. Then in the second step we find a particular solution to the non-homogeneous
DE (1.1), which we call yp . The complete solution of the ODE is obtained
by adding yc and yp .
6
Hence the general solution to such equations is of the form y(x) = yc (x) + yp (x)
where yc is called the complementary function and is the general solution of
the associated homogeneous equation and yp (x) is a particular solution to the
equation itself. If there are any initial conditions given with the differential
equation, they are applied to y(x). There are three main methods for finding a
particular solution.
To do this, we look at the right-hand side of the DE, and try an arbitrary
function of that form. We substitute our guess into the DE and then try to
solve to find the coefficients.
The following table indicates what guess to make based on what is on the right-
hand side of the DE. If there is a sum of terms on the right-hand side, we add
together the guesses for the individual terms.
y 00 − 2y 0 + y = 16e5x .
7
The characteristic equation corresponding to the homogeneous differential equa-
tion y 00 − 2y 0 + y = 0 is r2 − 2r + 1 = 0 = (r − 1)2 . Hence the complementary
function is yc (x) = Aex + Bxex for some constants A, B. Next we find the
particular solution by guessing that yp = Ce5x ; upon substituting into the dif-
ferential equation we get
in which case C = 1 and then yp (x) = e5x . Hence the general solution to the
differential equation is yg (x) = Aex + Bxex + e5x . If we were also given initial
conditions with the differential equation, we would now apply them to yg (x).
The one problem is that if the left-hand side is already one of the fundamental
set of solutions to the homogeneous ODE, we cannot use it. In this case, we
multiply by a large enough power of x to eliminate the problem, and try that
instead. If the right-hand side of the differential equation is already one of
the fundamental set of solutions to the associated homogeneous equation then
a constant multiple of it cannot be a particular solution. We now guess a
particular solution which is x times it and so on until we find a function which
is not the solution of the associated homogeneous equation. For instance, for
the equation y 00 − 2y 0 + y = 16ex we choose yp (x) = Cx2 ex since ex and xex
are in the fundamental set of solutions to the associated homogeneous equation
and cannot therefore be particular solutions to the nonhomogeneous equation.
Note 17 Often the superposition principle can also be applied for a non-homogeneous
equation. For example, if y1 and y2 are particular solutions of the differential
equations
Ly = g1 (x), and Ly = g2 (x),
respectively, where L is a linear differential operator, y1 + y2 is a particular
solution of the differential equation Ly = g1 (x) + g2 (x).
This method was introduced by Lagrange in 1774. This method is more powerful
than the method of undetermined coefficients as it also works for linear ODEs
with non-constant coefficients. This method can be used once a fundamental
set of solutions of the associated homogeneous differential equation is known.
8
and assume that P (x), Q(x) and f (x) are continuous functions of x in some
interval I. Let {y1 (x), y2 (x)} be two linear independent solutions of the homo-
geneous linear differential equation
y 00 + P (x)y 0 + Q(x)y = 0.
The main idea of the method of the variation of parameters is that we seek a
particular solution of (2.9) in the form
yp0 = u01 y1 +u1 y10 +u02 y2 +u2 y20 , and yp00 = u001 y1 +2u01 y10 +u1 y100 +u002 y2 +2u02 y20 +u2 y200 .
Thus we have
y1 u01 + y2 u02 = 0
u01 y10 + u02 y20 = f (x).
Example 18 Let x > 0. Given that the set {x, x ln(x)} is a fundamental set of
solutions of x2 y 00 − xy 0 + y = 0 solve the IVP x2 y 00 − xy 0 + y = 2x3 with y(1) = 1
and y 0 (1) = 2.
9
Solution: We try a particular solution of the form yp = xu1 (x)+(x ln(x))u2 (x),
in which case
Integrating we have
x2
u1 = − x2 ln(x) and u2 = x2 .
2
Note that we do not introduce constants of integration here as they will add
unnecessary solutions to the homogeneous equation to our particular solution.
Hence we compute
10
3 Reduction of Order for Linear Homogeneous
Differential Equations
3.1 Examples
(i) Given that y(x) = cosh x is a solution of y 00 −y = 0 we may use reduction of
order to find a second linearly independent solution as follows. Substitute
y(x) = v(x) cosh x into the differential equation:
therefore
0 A
(cosh x)2 v 0 = 0 × cosh2 x so that v 0 = 2 = A sech2 x,
cosh x
is the general solution of the differential equation. Hence the second lin-
early independent solution is y(x) = sinh x.
(ii) It is easy to see that y(x) = x is a solution of x2 y 00 − xy 0 + y = 0 [if y = x
then y 0 = x, y 00 = 0 and then clearly x2 (0) − x(1) + x = 0]. We may
now use reduction of order to find a second, linearly independent solution,
11
and also the general solution for x > 0. Substitute y(x) = xv(x) into the
differential equation:
y − xy 0 + x2 y 00 = xv − x[v + xv 0 ] + x2 [2v 0 + xv 00 ] = 0 so
v(x − x) + v 0 (−x2 + 2x2 ) + x3 v 00 = 0 and then
1
(v 0 )0 + v 0 = 0, since x > 0,
x
therefore
0
xv 0 = 0 × x = 0 so
A
v0 = and then
x
v = A ln x + B,
which we would expect from the standard form of the differential equation
d2 y 1 dy 1
+ − + y = 0.
dx2 x dx x2
General Case
In general, we can find a fundamental set of solutions for a second order differ-
ential equation of the form (3.12) by using the method of reduction of order. Let
P (x) and Q(x) be continuous in some interval I, and let y1 (x) be a known solu-
tion of (3.12), which is non-zero in the interval I. We now define y = u(x)y1 (x)
and plug into the differential equation to obtain
12
Thus
which reduces to
y1 u00 + (2y10 + P y1 )u0 = 0.
Now we can introduce w = u0 , and write the above equation as
y1 w0 + (2y10 + P y1 )w = 0.
This equation can be solved by using the method of the separation of variables
dw y0
+ 2 1 dx + P dx = 0.
w y1
Integrating we have Z
ln |wy12 | = − P dx + c.
13
1
R
which had integrating factor e x dx = eln |x| = x since x > 0, and so
(xv 0 )0 = 2x hence
xv 0 = x2 + A that is
A
v0 = x + which has solution
x
x2
v= + A ln x + B for x > 0 and constants A, B.
2
x3
Therefore the general solution to the differential equation is y(x) = +
2
[Ax ln x + Bx] = yp (x) + yc (x). Hence, in one calculation we not only re-
cover the second linearly independent solution of the associated homogeneous
equation, but also the particular solution.
We consider the method of reduction of order for two cases of the general second
order differential equation of the form
F (x, y, y 0 , y 00 ) = 0.
In this case we can reduce the order of the differential equation by using the
substitution
dy
p= .
dx
−p−1 = x2 + c21 .
14
Independent variable x is missing
ln |p| = ln |y| + c1 ,
y = c4 ec2 x .
y = xm
to solve the above differential equation. We note that the coefficient of y (n) is
zero at x = 0 for this equation. Hence the previous existence results cannot be
applied for this equation. We plan to find a general solution of this equation
defined on the interval (0, ∞).
15
To simplify the presentation we consider the second order Cauchy-Euler equa-
tion of the form
d2 y dy
ax2 2 + bx + cy = g(x). (4.13)
dx dx
As before we first find the complementary function yc , which is the general
solution of the homogeneous equation
d2 y dy
ax2 + bx + cy = 0,
dx2 dx
and a particular solution yp of the (4.13). Then the general solution of (4.13)
is written as y = yc + yp .
am2 + (b − a)m + c = 0.
Case I: Two distinct real roots. Let m1 and m2 be two real roots. Then y1 = xm1
and y2 = xm2 form a fundamental set of solutions. Hence the general
solution is
y = c1 x m 1 + c2 x m 2 .
Case II: Real repeated root. Let m be the repeated root. The solution is given by
y = c1 xm ln(x) + c2 xm
d2 y dy
ax2 2
+ bx + cy = 0.
dx dx
Let t = ln(x) and x = et , and y(x) = φ(ln(x)) = φ(t). Differentiating with
respect to x we have
d2 y 1 d2 φ dφ
dy 1 dφ
= and = − .
dx x dt dx2 x2 dt2 dt
d2 φ dφ
a + (b − a) + cφ = 0.
dt2 dt
This equation in φ(t) can be easily solved using its characteristic polyno-
mial
am2 + (b − a)m + c = 0.
16
Now, let m1 be the repeated root of this polynomial. If the roots are
equal, the general solution is given by
Thus the solution y(x) is found by setting t = ln(x), hence φ(ln(x)) = y(x).
Hence
y(x) = c1 xm1 + c2 ln(x)xm1 .
Case III: Complex roots. Let α ± iβ be two complex conjugate roots. The solution
is given by
y = c1 xα cos(β ln(x)) + c2 xα sin(β ln(x)).
This is derived by setting x = et and using Euler’s formula.
m(m − 1) − 3m + 3 = 0 or m = 1, 3.
y = Cx + Dx3 .
Exercises
a(x − x0 )2 y 00 + b(x − x0 )y 0 + cy = 0,
17
5 Green’s functions
We note that the solution of the following second order initial value problem
y 00 + P (x)y 0 + Q(x)y = f (x), y(x0 ) = y0 , y 0 (x0 ) = y1
can be expressed as
y(x) = yh (x) + yp (x),
where yh (x) is the solution of the associated homogeneous ODE with inhomo-
geneous initial conditions
y 00 + P (x)y 0 + Q(x)y = 0, y(x0 ) = y0 , y 0 (x0 ) = y1 ,
and yp (x) is the solution of the non-homogeneous ODE with homogeneous initial
conditions
y 00 + P (x)y 0 + Q(x)y = f (x), y(x0 ) = 0, y 0 (x0 ) = 0.
The solution of this initial value problem is called a rest solution as it describes
a physical system initially at rest. We now proceed to construct the solution
yp of this initial value problem using Green’s function. Let y1 and y2 be two
fundamental solutions of the homogeneous ODE
y 00 + P (x)y 0 + Q(x)y = 0
in the interval I. Using the method of variation of parameters we can write a
particular solution of the ODE
y 00 + P (x)y 0 + Q(x)y = f (x)
in the form
yp (x) = u1 (x)y1 (x) + u2 (x)y2 (x),
where u1 and u2 are given by
y2 (x)f (x) y1 (x)f (x) y (x) y2 (x)
u01 (x) = − , and u02 (x) = with W (x) = 10
y1 (x) y20 (x)
W (x) W (x)
Thus we have
Z x Z x
y2 (t)f (t) y1 (t)f (t)
yp (x) = −y1 (x) dt + y2 (x) dt.
x0 W (t) x0 W (t)
We can simplify the above expression for yp as
Z x
yp (x) = G(x, t)f (t) dt,
x0
18
Remark 23 The Green’s function for the differential equation does not depend
on the right hand side function f (x), and hence this is the same for the linear
differential operator L = D2 + P (x)D + Q(x).
We note that the particular solution yp satisfies the initial value problem
1 = C2 , and 2 = 2C1 .
Hence
yg (x) = sin(2x) + cos(2x)
is the solution of the initial value problem
y 00 + 4y = 0, y(0) = 1, y 0 (0) = 2.
Now we write a particular solution of the ODE in terms of the Green’s function
1 x
Z
yp (x) = sin(2(x − t))f (t) dt.
2 0
19
Now we consider three cases. If x < 0, we have f (x) = 0, and thus yp (x) = 0.
If 0 ≤ x ≤ 2π, we have
1 x
Z
1
yp (x) = sin(2(x − t)) sin(t) dt = sin (x) (3x cos x − 2 cos x + 2) .
2 0 3
1 2π 1 x 1 2π
Z Z Z
yp (x) = sin(2(x−t))f (t) dt+ sin(2(x−t))f (t) dt = sin(2(x−t)) sin(t) dt = π sin(2x).
2 0 2 2π 2 0
20