Second Order Linear Equations
Second Order Linear Equations
Second Order Linear Equations Further, this structure and these methods can be understood at
a fairly elementary mathematical level.
3 / 177 4 / 177
P2 (t)y 00 + P1 (t)y 0 + P0 (t)y = Q(t) (1) Homogeneous equations
Remark
Definition
Since P2 (t) is not identically zero, equation (1) can be written as
A second order linear differential equation
y 00 + p(t)y 0 + q(t)y = g (t). (2)
L[y ] = y 00 + p(t)y 0 + q(t)y = g (t)
Example 1 is said to be homogeneous if the term g (t) is zero for all t.
The equation Otherwise, the equation is called nonhomogeneous. The term g (t)
ty 00 + 6t 2 y 0 − 2t 3 y = e t is called nonhomogeneous term.
is a linear second order differential equation.
Example 1
Example 2 The equation
The equation y 00 − sin t y 0 + 5y = 0
y 00 + yy 0 = 0 is a homogenous second order linear differential equation.
is a nonlinear second order differential equation.
5 / 177 6 / 177
Definition
(Initial value problem)
An initial value problem consists of a second order differential
equation y 00 = f (t, y , y 0 ) together with a pair of initial conditions
Example 2 y (t0 ) = y0 , y 0 (t0 ) = y00 , where y0 and y00 are given numbers.
The equation
y 00 + y = e t A second order linear equation
is a nonhomogeneous second order linear differential equation. y 00 + p(t)y 0 + q(t)y = g (t)
7 / 177 8 / 177
Equations with the dependent variable missing Examples
v 0 = f (t, v ) v 0 = tv 2
dv Examples
= tdt
v2
Example 2
1 1 Solve the initial value problem
− = t 2 + c1 .
v 2
Thus we obtain t 2 y 00 + (y 0 )2 − 2ty 0 = 0, y (2) = 5, y 0 (2) = 2.
−2
v= 2 .
t + 2c1 Solution
Having obtained v , we now use y 0 = v to obtain y as The given differential equation is a second order equation with
follows: the dependent variable y missing.
−2 √
Z
t Let y0 = v.
y= 2
dt u=√ =⇒ dt = 2c1 du
t + 2c1 2c1
√ Then the equation becomes t 2 v 0 + v 2 − 2tv = 0 or
−2 2c1 du
Z
=
2c1 (u 2 + 1) t 2 v 0 − 2tv = −v 2
It follows that, (provided c1 6= 0),
√ which is a Bernoulli first order equation with n = 2.
2 −1 t Let w = v 1−n = v −1 .
y = − √ tan √ + c2 .
c1 2c1 Then w 0 = −v −2 v 0 .
11 / 177 12 / 177
t 2 v 0 − 2tv = −v 2 0 t2
y =
t + c1
The Bernoulli equation can be written as
t 2 v −2 v 0 − 2tv −1 = −1.
Substituting w = v −1 , w 0 = −v −2 v 0 into this equation
and hence y 0 = t.
gives
−t 2 w 0 − 2tw = −1 or t 2 w 0 + 2tw = 1. Therefore,
1
d 2 y = t 2 + c2 .
OR t w =1 2
dt
Integrating give The initial condition y (2) = 5 implies
t 2 w = t + c1
5 = 2 + c2 =⇒ c2 = 3
and hence
t2 and hence the solution of the initial value problem is
t 2 v −1 = t + c1 =⇒ v = .
t + c1 1
2
y = t 2 + 3.
As a result we get y 0 = t+c t
. 2
1
Using the initial condition y 0 (2) = 2 we obtain
4
2= =⇒ 2 + c1 = 2 =⇒ c1 = 0
2 + c1 13 / 177 14 / 177
−1
y0 =
y2 + c1
a separable equation for y (t)
17 / 177 18 / 177
Examples dv dy
=
v y +1
Example 2
Solve Integrating to obtain
(y + 1)y 00 = (y 0 )2 . ln |v | = ln |y + 1| + c
=⇒ |v | = e c |y + 1| =⇒ v = ±e c (y + 1)
Solution
The given differential equation is a second order equation with Thus the solution can be written as
the independent variable t missing. v = c1 (y + 1).
Let y0 = v (y ). Next we solve y 0 = v = c1 (y + 1).
Then the equation becomes a separable first order equation It is a first order linear equation with integrating factor
µ(t) = e −c1 t .
dv
(y + 1)v = v2 y 0 − c1 y = c1 =⇒ e −c1 t (y 0 − c1 y ) = c1 e −c1 t
dy
=⇒ dt d
(e −c1 t y ) = c1 e −c1 t =⇒ e −c1 t y = −e −c1 t + c2
or
dv dy Therefore,
= ,
v y +1 y = c2 e c1 t − 1.
v 6= 0
19 / 177 20 / 177
−2y
v dv
dy + e =0
It follows that In this section we will provide a clear picture of the structure of
y y
e dy = dt =⇒ e = t + c2 . the solutions of all second order linear homogeneous equations.
In turn, this understanding will assist us in finding the solutions
The initial condition y (3) = 0 implies that of other problems that we will encounter later.
1 = 3 + c2 =⇒ c2 = −2 In developing the theory of linear differential equations, it is
helpful to introduce a differential operator notation.
and hence the solution of the initial value problem is Let p and q ‘be continuous functions on an open interval
I = (α, β).
ey = t − 2
The cases α = −∞, or β = ∞, or both, are included.
and hence
y = ln(t − 2).
23 / 177 24 / 177
Then, for any function ϕ that is twice differentiable on I , we
define the differential operator L by the equation With equation (3) we associate a set of initial conditions
00 0
L[ϕ] = ϕ + pϕ + qϕ.
y (t0 ) = y0 , y 0 (t0 ) = y00 , (4)
Note that L[ϕ] is a function on I . The value of L[ϕ] at a
where t0 is any point in the interval I , and y0 and y00 are
point t is
given real numbers.
L[ϕ](t) = ϕ00 (t) + p(t)ϕ0 (t) + q(t)ϕ(t). Recall that a second order differential equation
In this chapter we study the second order linear equation L[y ] = y 00 + p(t)y 0 + q(t)y = g (t)
L[ϕ](t) = g (t).
Since it is customary to use the symbol y to denote is said to be homogeneous if the term g (t) is zero for all t.
ϕ(t), we will usually write this equation in the form Otherwise, the equation is called nonhomogeneous.
The term g (t) is called nonhomogeneous term.
L[y ] = y 00 + p(t)y 0 + q(t)y = g (t). (3)
25 / 177 26 / 177
Examples
Example
The following Theorem explains whether the initial value
problem (3), (4) always has a solution, and whether it may Find the largest interval in which the solution of the initial value
have more than one solution. problem
27 / 177 28 / 177
Structure of solutions of linear homogeneous equations
then the linear combination ϕ(t) = c1 y1 + c2 y2 is also a solution are solutions of the equation.
for any values of the constants c1 and c2 .
29 / 177 30 / 177
31 / 177 32 / 177
Examples
Example 1 Example 2
Find the Wronskian of y1 = e t and y2 = e −t at t = 0. Find the Wronskian of y1 = t and y2 = te −t .
Solution Solution
Using the definition we have y1 y2
W (y1 , y2 ) =
y y et e −t y10 y20
W (y1 , y2 )(t) = 10 20 = t .
y1 y2 e −e −t t te −t
=
1 1 1 e −t − te −t
Thus W (y1 , y2 )(0) = = −2.
1 −1 = t(1 − t)e −t − te −t = −t 2 e −t .
33 / 177 34 / 177
Theorem
Let y1 and y2 be two solutions of the differential equation Definition
L[y ] = y 00 + p(t)y 0 + q(t)y = 0. If y1 and y2 are two solutions of L[y ] = 0 with
W (y1 , y2 ) 6= 0, then the set {y1 , y2 } is called a fundamental set
If W (y1 , y2 ) 6= 0, then of solutions of L[y ] = 0.
y = c1 y1 + c2 y2 ,
35 / 177 36 / 177
Examples
Example 1
Show that y1 = 1 and y2 = e t form a fundamental set of solutions
of the equation y 00 − y 0 = 0.
y200 − y20 = e t − e t = 0
37 / 177 38 / 177
Example 2
Show that y1 = t and y2 = 1t form a fundamental set of solutions of
the equation t 2 y 00 + ty 0 − y = 0, t > 0.
t 2 y200 + ty20 − y2 = 2t −1 − t −1 − t −1 = 0
Definition
Two functions f and g are said to be linearly dependent on an
We have seen that the general solution of a second order linear interval I if there exist two constants k1 and k2 , not both zero, such
homogeneous differential equation can be represented as a that
linear combination of two solutions y1 and y2 whose Wronskian k1 f (t) + k2 g (t) = 0
W (y1 , y2 ) is not zero. for all t ∈ I . The functions f and g are said to be linearly
There is relation between this condition and the concept of independent on an interval I if they are not linearly dependent.
linear independence of two functions.
We briefly discuss this very important algebraic idea in this Example
section. Determine whether the given pair of functions is linearly
independent or linearly dependent.
(a) f (t) = 3t − 5, g (t) = 9t − 15.
(b) f (t) = t, g (t) = t − 1.
41 / 177 42 / 177
Solution
(a) f (t) = 3t − 5, g (t) = 9t − 15.
To solve this problem we assume that
k1 f (t) + k2 g (t) = k1 (3t − 5) + k2 (9t − 15) = 0 for all t ∈ R. It follows that k1 = −3k2 and hence there are solutions other
Now we look for values of k1 and k2 that satisfy this equation. than k1 = k2 = 0.
Since we have two unknowns k1 and k2 , we need two equation. For example we can choose k2 = 1, k1 = −3 and hence we see
We can choose any two values of t ∈ R. that
g (t) = 3f (t).
Choosing t = 0 gives
Therefore, f (t) = 3t − 5, g (t) = 9t − 15 are linearly
−5k1 − 15k2 = 0. dependent.
Choosing t = 1 gives
−2k1 − 6k2 = 0.
43 / 177 44 / 177
(b) f (t) = t, g (t) = t − 1.
Theorem
We assume that
If f and g are differentiable functions on an open interval I and if
k1 f (t) + k2 g (t) = k1 t + k2 (t − 1) = 0
W (f , g )(t0 ) 6= 0 for some t0 ∈ I , then f and g are linearly
for all t ∈ R. independent on I .
Now we look for values of k1 and k2 that satisfy this equation.
Since we have two unknowns k1 and k2 , we need two equation. Example
We can choose any two values of t ∈ R. Determine whether the given pair of functions is linearly
Choosing t = 0 gives independent or linearly dependent.
(a) f (t) = t 2 , g (t) = t.
−k2 = 0 and hence k2 = 0.
(b) f (t) = t 2, g (t) = −2t 2 .
Choosing t = 1 gives (c) f (t) = cos(2t), g (t) = sin(2t).
k1 = 0. (d) f (t) = e 1−2t , g (t) = e −2t .
It follows that the only solution is k1 = k2 = 0. (e) f (t) = t 3 , g (t) = t 2 |t|.
Therefore f (t) = t, g (t) = t − 1 are linearly independent.
45 / 177 46 / 177
Solution
49 / 177 50 / 177
Theorem
Proof.
If y1 and y2 are solutions of the differential equation
Assume y1 and y2 are solutions of the differential equation
L[y ] = y 00 + p(t)y 0 + q(t)y = 0, L[y ] = y 00 + p(t)y 0 + q(t)y = 0.
This implies that
where p and q are continuous on an open interval I , then the
Wronskian W (y1 , y2 )(t) is given by y100 + p(t)y10 + q(t)y1 = 0,
(6)
Z y200 + p(t)y20 + q(t)y2 = 0.
W (y1 , y2 )(t) = c exp − p(t)dt ,
Multiplying the first equation by −y2 , the second by y1 , and
adding the resulting equations, we obtain
where c is a certain constant that depends on y1 and y2 , but not on
t. Further, W (y1 , y2 )(t) is either zero for all t ∈ I (if c = 0) or else
is never zero in I (if c 6= 0).
51 / 177 52 / 177
Example
Example
Find the Wronskian of two solutions of the equation
y1 y200 − y2 y100 + p(y1 y20 − y2 y10 ) = 0. (7)
t 2 y 00 − t(t + 2)y 0 + (t + 1)y = 0.
Let W (t) = W (y1 , y2 )(t).
y y Solution
Then W = 10 20 = y1 y20 − y2 y10
y1 y2 −t(t + 2) −(t + 2)
In this example p(t) = 2
= .
It follows that W0 = y1 y200 − y2 y100 . t t
By Abel’s formula
Thus equation (7) becomes
Z
0 W = c exp − p(t)dt
W + pW = 0.
Now we can solve this first order linear differential equation for Z Z
W: (t + 2) 2
Z 0 = c exp dt = c exp 1+ dt .
exp p(t)dt W = 0. t t
W = ce t+2 ln |t| = ct 2 e t .
53 / 177 54 / 177
Theorem Example
55 / 177 56 / 177
3.4 Complex Roots of the Characteristic Equation Linear Equations with Constant Coefficients
Definition
In this section we study a method to find the general solution A second order differential equation
to the special case of the second order homogeneous linear
differential equation in which all of the coefficients are real y 00 + p(t)y 0 + q(t)y = g (t)
constants.
is called an equation with constant coefficients if p(t) and q(t) are
constat functions.
57 / 177 58 / 177
Examples
ay 00 + by 0 + cy = Q(t), (9)
59 / 177 60 / 177
Solving homogeneous equation with constant coefficients Solving homogeneous equation with constant
coefficients
Consider a second order linear homogeneous equation
Example 3
ay 00 + by 0 + cy = 0, (10)
Solve the equation ay 0 + by = 0.
where a, b, and c are given constants.
Solution Based on our experience with the last example, we look for
Integrating factor µ = exp
R b
= e bt/a . solutions in the form y = e rt .
a dt
Substituting into equation (10), we get
Thus the solution is
−bt/a (ar 2 + br + c)e rt = 0.
y (t) = ce .
Since e rt 6= 0 for all t, we can divide the last equation by e rt to
obtain
ar2 + br + c = 0. (11)
Thus, equation (10) has solution in the form y = e rt if and
only if r is a solution of the polynomial equation (11).
61 / 177 62 / 177
Characteristic equation
Example
Find the characteristic equation for each of the following differential
equations and solve it.
Definition
(1) 5y 00 − 3y 0 + 7y = 0.
The equation
(2) −4y 00 + y 0 = 0.
ar2 + br + c = 0
is called the characteristic equation for the differential equation Solution
ay00 + by0 + cy = 0 (1) The characteristic equation is 5r 2 − 3r + 7 = 0.
The solutions of it are
. √ √
3 ± 9 − 140 3 ± i 131
r1,2 = = .
10 10
(2) The characteristic equation is −4r 2 + r = 0 or r (4r − 1) = 0.
Thus the solutions are r1 = 0, r2 = 14 .
63 / 177 64 / 177
Real distinct roots
Proposition
Since the characteristic equation If the characteristic equation ar 2 + br + c = 0 has real and
distinct roots r1 and r2 , then the general solution of the differential
ar 2 + br + c = 0
equation ay 00 + by 0 + cy = 0 is given by
is a quadratic equation, it has two roots, which would provide
y = c1 e r1 t + c2 e r2 t ,
us with the two independent solutions we need to form the
general solution. where c1 and c2 are arbitrary constants.
However, the two roots of the characteristic equation may be
real and distinct, real and repeated, or complex conjugate. Proof.
These three cases lead to different types of solutions for We know that y1 = e r1 t and y2 = e r2 t are solutions of
ay 00 + by 0 + cy = 0.
ay 00 + by 0 + cy = 0 So it remains to show that W (y1 , y2 ) 6= 0.
and we consider each case in turn. e r1 t e r2 t
But W (y1 , y2 ) = = (r2 − r1 )e (r1 +r2 )t 6= 0.
r1 e r1 t r2 e r2 t
65 / 177 66 / 177
Examples
Example 1 Example 2
Find the general solution of the equation Solve the initial value problem
2y 00 − 3y 0 + y = 0. 6y 00 − 5y 0 + y = 0, y (0) = 4, y 0 (0) = 0.
Solution Solution
The characteristic equation is 2r 2 − 3r + 1 = 0 The characteristic equation is 6r 2 − 5r + 1 = 0 and its
and its solutions are r1 = 12 , r2 = 1. solutions are r1 = 21 , r2 = 31 .
Thus the general solution of the equation 2y 00 − 3y 0 + y = 0 Thus the general solution of the equation 6y 00 − 5y 0 + y = 0
is y = c1 e t/2 + c2 e t . is y = c1 e t/2 + c2 e t/3 .
67 / 177 68 / 177
Complex roots
Initial conditions y (0) = 4, y 0 (0) = 0 The characteristic equation ar 2 + br + c = 0 has two
solutions √
y = c1 e t/2 + c2 e t/3 −b ± b 2 − 4ac
r1,2 = .
1 1 2a
y 0 = c1 e t/2 + c2 e t/3
2 3 If b 2 − 4ac < 0, then the roots of the characteristic equation
Using the initial conditions we find has the roots
√
c1 + c2 = 4, −b ± i 4ac − b 2
1 1
r1,2 = = λ ± iµ.
2 c1 + 3 c2 = 0.
2a
It follows that y1 = e (λ+iµ)t and y2 = e (λ−iµ)t are
c1 + c2 = 4, solutions of the differential equation ay 00 + by 0 + cy = 0.
c1 + 32 c2 = 0. These two solutions are complex but we started with only real
It follows that the solution of the initial value problem is numbers in our differential equation and we would like our
solutions to be real.
y = −8e t/2 + 12e t/3 .
The following formula we help us in finding the real solution
from the complex solutions.
69 / 177 70 / 177
71 / 177 72 / 177
Proposition
73 / 177 74 / 177
Examples
Example 2
Example 1
Find the solution of the initial value problem
Find the general solution of the equation y 00 − 2y 0 + 6y = 0.
y 00 + 4y 0 + 5y = 0, y (0) = 0, y 0 (0) = 1.
Solution
The characteristic equation is r 2 − 2r + 6 = 0 Solution
and its solutions are The characteristic equation is r 2 + 4r + 5 = 0 and its
√ solutions are
2± 4 − 24 √ √
r1,2 = = 1 ± i 5. −4 ± 16 − 20
2 r1,2 = = −2 ± i.
2
It follows that the general solution of the given differential
equation is It follows that the general solution of the given differential
√ √ equation is
y = e t [c1 cos( 5t) + c2 sin( 5t)]. y = e −2t [c1 cos(t) + c2 sin(t)].
Next we apply the initial conditions.
y (0) = 0 gives c1 = 0.
75 / 177 76 / 177
Example 3
Thus y = c2 e −2t sin(t).
Find the general solution of the equation y 00 + 16y = 0.
y0 −2e −2t e −2t
It follows that = c2 sin(t) + cos(t) .
Thus y 0 (0) = 1 gives Solution
The characteristic equation is r 2 + 16 = 0 and its solutions
c2 = 1.
are
Therefore, the solution of the initial value problem is r1,2 = ±4i.
It follows that the general solution of the given differential
y = e −2t sin(t). equation is
y = c1 cos(4t) + c2 sin(4t).
77 / 177 78 / 177
79 / 177 80 / 177
Starting with y = vy1 , we obtain It follows that
ay100 + by10 + cy1 = 0
y 0 = vy10 + v 0 y1 , y 00 = vy100 + 2v 0 y10 + v 00 y1 .
and the equation for v becomes
Substituting the expressions in the equation
ay 00 + by 0 + cy = 0 we get −be −bt/2a v 0 + ae −bt/2a v 00 + be −bt/2a v 0 = 0.
a(vy100 + 2v 0 y10 + v 00 y1 ) + b(vy10 + v 0 y1 ) + cvy1 = 0. Thus the equation for v reduces to
Arranging terms yields v 00 = 0.
v (ay100 + by10 + cy1 ) + 2av 0 y10 + av 00 y1 + bv 0 y1 = 0. So we can find v (t) = c2 t + c1 , where c1 and c2 are arbitrary
Since y1 = e −bt/2a , we have constants.
b −bt/2a Therefore, y (t) = e −bt/2a (c2 t + c1 ) = c2 te −bt/2a + c1 e −bt/2a .
y10 = − e , We note that y is a linear combination of two solutions:
2a
b 2 −bt/2a y1 = e −bt/2a , and y2 = te −bt/2a
y100 = e .
4a2
with W (y1 , y2 ) = e −bt/2a 6= 0.
81 / 177 82 / 177
Examples
Example 1
Proposition
Find the general solution of the equation 4y 00 + 4y 0 + y = 0.
If the characteristic equation ar 2
+ br + c = 0 has two equal roots
−b Solution
r1 = r2 = , then the general solution of the differential equation
2a
00 0
ay + by + cy = 0 is given by The characteristic equation is 4r 2 + 4r + 1 = 0 or
83 / 177 84 / 177
Example 2 It follows that the general solution of the given differential
Find the solution of the initial value problem equation is
y = e −3t [c1 t + c2 ].
y 00 + 6y 0 + 9y = 0, y (−1) = 2, y 0 (−1) = 1. Next we apply the initial conditions y (−1) = 2, y 0 (−1) = 1.
y 0 = −3e −3t [c1 t + c2 ] + c1 e −3t = e −3t [−3c1 t − 3c2 + c1 ].
Solution Thus the initial conditions give
The characteristic equation is
e 3 [−c1 + c2 ] = 2,
r 2 + 6r + 9 = 0 e 3 [4c1 − 3c2 ] = 1.
or −4c1 + 4c2 = 8e −3 ,
(r + 3)2 = 0. 4c1 − 3c2 = e −3 .
85 / 177 86 / 177
Reduction of Order
The method we have used to obtain a second solution of
ay 00 + by 0 + cy = 0 when r1 = r2 can be applied to other This an second order equation for v with dependent variable v
equations. missing.
Suppose we know a solution y1 (t) of
Thus, the substitution w = v 0 transforms it to a first order
y 00 + p(t)y 0 + q(t)y = 0 (12) equation for w :
87 / 177 88 / 177
Examples
Example 1
Use the method of reduction of order to find the general solution of te t (v 00 + 2v 0 + v ) − 2(t − 1)e t (v 0 + v ) + (t − 2)e t v = 0.
the equation ty 00 − 2(t − 1)y 0 + (t − 2)y = 0, if y1 (t) = e t is
a solution.
Dividing the equation by e t and collecting similar terms, we
obtain
Solution
We use the transformation y = vy1 = e t v . tv 00 +(2t−2t+2)v 0 +(t−2t+2+t−2)v = 0 OR tv 00 +2v 0 = 0.
It follows that
This an second order equation for v with dependent variable v
y 0 = et v 0 + et v , missing.
y 00 = e t v 00 + 2e t v 0 + e t v .
Thus, the substitution w = v 0 transforms it to a first order
Substituting into the equation we obtain linear equation for w :
Example 2
t 2 w 0 + 2tw = 0 ⇒ (t 2 w )0 = 0 Given that y1 (t) = t is a solution of 2t 2 y 00 + ty 0 − y = 0. Find
the general solution of the equation.
t 2 w = c1
Solution
Thus, we obtain
w = c1 /t 2 . We use the transformation y = vy1 = tv .
It follows that
Next we integrate y 0 = tv 0 + v ,
0 2
v = w = c1 /t y 00 = tv 00 + 2v 0 .
to find Substituting into the equation we obtain
c1
v =−+ c2 .
t
Finally, we use the formula y = e t v to obtain the general 2t 2 (tv 00 + 2v 0 ) + t(tv 0 + v ) − tv = 0.
solution of the given equation
Collecting similar terms, we obtain
t
y = e [c2 − c1 /t].
2t 3 v 00 + (4t 2 + t 2 )v 0 + (t − t)v = 0 OR 2t 3 v 00 + 5t 2 v 0 = 0.
91 / 177 92 / 177
This an second order equation for v with dependent variable v
missing.
Thus, the substitution w = v 0 transforms it to a first order
linear equation for w :
2
2tw 0 + 5w = 0. v = − c1 t −3/2 + c2
3
This equation can be integrated after multiplying it by 21 t 3/2 .
Finally, we use the formula y = tv to obtain the general
5 solution of the given equation
t 5/2 w 0 + t 3/2 w = 0 ⇒ (t 5/2 w )0 = 0
2 2
y = − c1 t −1/2 + c2 t.
t 5/2 w = c1 3
Thus, we obtain
w = c1 t −5/2 .
Next we integrate to find
2
v = − c1 t −3/2 + c2 .
3
93 / 177 94 / 177
Example 3
Find the general solution of the equation t 4 v 00 + 5t 3 v 0 = 0.
t 2 y 00 + ty 0 − 4y = 0, t > 0, if y1 (t) = t 2 is a solution. This an second order equation for v with dependent variable v
missing.
Solution Thus, the substitution w = v 0 transforms it to a first order
We use the transformation y = vy1 = t 2 v . linear equation for w :
It follows that tw 0 + 5w = 0.
y 0 = t 2 v 0 + 2tv ,
y 00 = t 2 v 00 + 4tv 0 + 2v . This equation can be integrated after multiplying it by t 4 :
t 5 w 0 + 5t 4 w = 0.
Substituting into the equation we obtain
Thus, we obtain
t 2 (t 2 v 00 + 4tv 0 + 2v ) + t(t 2 v 0 + 2tv ) − 4t 2 v = 0.
t 5 w = c1 OR w = c1 t −5 .
Collecting similar terms, we obtain Next we integrate to find
1
t 4 v 00 +(4t 3 +t 3 )v 0 +(2t 2 +2t 2 −4t 2 )v = 0 OR t 4 v 00 +5t 3 v 0 = 0. v = − c1 t −4 + c2 .
4
95 / 177 96 / 177
Example 4
Use the method of reduction of order to find the general solution of
the equation t 2 y 00 − t(t + 2)y 0 + (t + 2)y = 0, t > 0, if y1 (t) = t
1
v = − c1 t −4 + c2 is a solution.
4
Solution
Finally, we use the formula y = t 2 v to obtain the general We use the transformation y = vy1 = tv .
solution of the given equation
It follows that
1 y 0 = tv 0 + v ,
y = − c1 t −2 + c2 t 2 . y 00 = tv 00 + 2v 0 .
4
Substituting into the equation we obtain
97 / 177 98 / 177
e −t w 0 − e −t w = 0 OR (e −t w )0 = 0
Thus, we obtain
e −t w = c1 OR w = c1 e t .
99 / 177 100 / 177
3.6 Nonhomogeneous Equations; Method of Theorem 7
Undetermined Coefficients
Theorem
If u1 and u2 are two solutions of the nonhomogeneous equation
The following two theorems describe the structure of solutions L[y ] = y 00 + p(t)y 0 + q(t)y = 0.
of the nonhomogeneous equation (13) and provide a basis for
constructing its general solution. Proof.
Let u1 and u2 are two solutions of the nonhomogeneous
equation L[y ] = g (t) and let u = u1 − u2 .
Then L[u] = L[u1 ] − L[u2 ] = g (t) − g (t) = 0.
Theorem 8
Theorem
The general solution of the nonhomogeneous equation
The method of undetermined coefficients consists of making an In this case we may modify the initial assumption and try again.
initial assumption about the form of the particular solution yp , The main advantage of the method of undetermined
but with the coefficients left unspecified. coefficients is that it is straightforward to execute once the
We then substitute the assumed expression into L[y ] = g (t) assumption is made as to the form of yp .
and attempt to determine the coefficients so as to satisfy that Its major limitation is that it is useful primarily for equations for
equation. which we can easily write down the correct form of the
If we are successful, then we have found a solution of the particular solution in advance.
differential equation L[y ] = g (t) and can use it for the For this reason, this method is usually used only for problems in
particular solution yp . which the homogeneous equation has constant coefficients and
If we cannot determine the coefficients, then this means that the nonhomogeneous term is restricted to a relatively small
there is no solution of the form that we assumed. class of functions.
How to find yp
Since g (t) is an exponential and we know that exponentials
never just appear or disappear in the differentiation process it
Consider
seems that a likely form of the particular solution would be
ay 00 + by 0 + cy = g (t),
yp = Ae 2t . where a, b, and c are constants.
Let r1 and r2 be the roots of the characteristic equation
yp0 = 2Ae 2t ,
yp00 = 4Ae 2t . ar 2 + br + c = 0.
Substituting for yp and yp00 into the equation y 00 − y = e 2t (1) If g (t) = e αt (an t n + · · · + a1 t + a0 )
yields with n = 0, 1, 2, . . . , then yp has the form
4Ae 2t − Ae 2t = e 2t .
yp = t s e αt (An t n + · · · + A1 t + A0 ) ,
This gives A = 1/3 and hence we obtain a particular solution
1 where s is the number of the roots r1 , r2 that are equal to α.
yp = e 2t .
3
Example 1
Determine a suitable form for particular solutions of the following
(2) If g (t) = e αt [A cos(βt) + B sin(βt)] (an t n + · · · + a1 t + a0 )
equations. Do not evaluate the constants.
with n = 0, 1, 2, . . . , then yp has the form
(a) y 00 − y = e t (2t + 5).
h
yp = t s e αt cos(βt)(An t n + · · · + A1 t + A0 ) (b) y 00 − y = e 2t t 2 .
i (c) y 00 + 2y 0 + y = e −t (t 3 − 2t).
+ sin(βt)(Bn t n + · · · + B1 t + B0 ) , (d) y 00 + y = e 3t (sin t + 3 cos t)(3t 4 − t 2 + 7).
where s is the number of the roots r1 , r2 that are equal to (e) y 00 + 2y 0 + 5y = −5te −t cos(2t).
α + iβ. (f) 4y 00 + 4y 0 + 5y = (5t 2 − 4t − 1) sin(3t).
(g) y 00 + y = tan t.
(h) y 00 + y = e t t −2 .
Example 1 (d)
(d) y 00 + y = e 3t (sin t + 3 cos t)(3t 4 − t 2 + 7). Now α + iβ = 3 + i and we have
In this example g (t) = e 3t (sin t + 3 cos t)(3t 4 − t 2 + 7).
0, r1 6= α + iβ, r2 6= α + iβ,
If g (t) = e αt [A cos(βt) + B sin(βt)] (an t n + · · · + a1 t + a0 ) s= 1, r1 = α + iβ, r2 6= α + iβ,
with n = 0, 1, 2, . . . , then yp has the form
yp = t s e αt [cos(βt)(An t n + · · · + A1 t + A0 ) 2, r1 = r2 = α + iβ?
+ sin(βt)(Bn t n + · · · + B1 t + B0 )] ,
where s is the number of the roots r1 , r2 that are equal to α + iβ. The characteristic equation of the equation reads
r 2 + 1 = 0 and hence r1,2 = ±i 6= 3 + i.
Here α = 3, β = 1 and n = 4. Thus s = 0 and hence
It follows that h
h yp = e 3t cos(t)(A4 t 4 + A3 t 3 + A2 t 2 + A1 t + A0 )
yp = t s e 3t cos(t)(A4 t 4 + A3 t 3 + A2 t 2 + A1 t + A0 ) i
i + sin(t)(B4 t 4 + B3 t 3 + B2 t 2 + B1 t + B0 ) .
+ sin(t)(B4 t 4 + B3 t 3 + B2 t 2 + B1 t + B0 ) .
yp = cos(3t)(A2 t 2 + A1 t + A0 ) + sin(3t)(B2 t 2 + B1 t + B0 )
+ sin(βt)(Bn t n + · · · + B1 t + B0 )] ,
where s is the number of the roots r1 , r2 that are equal to
α + iβ.
125 / 177 126 / 177
yp = e −t (A1 t 3 + A0 t 2 )
Next we look for a particular solution yp of the yp0 = −e −t (A1 t 3 + A0 t 2 ) + e −t (3A1 t 2 + 2A0 t)
nonhomogeneous equation = e −t (−A1 t 3 − A0 t 2 + 3A1 t 2 + 2A0 t)
yp = −e −t (−A1 t 3 − A0 t 2 + 3A1 t 2 + 2A0 t)
00
y 00 + 2y 0 + y = e −t (2t − 5). + e −t (−3A1 t 2 − 2A0 t + 6A1 t + 2A0 )
= e −t (A1 t 3 + A0 t 2 − 6A1 t 2 − 4A0 t + 6A1 t + 2A0 )
In this example g (t) = e −t (2t − 5).
y + 2y 0 + y = e −t (2t − 5) ⇒
00
It follows that
yp = t s e −t (A1 t + A0 ). e −t (A1 t 3 + A0 t 2 − 6A1 t 2 + 6A1 t − 4A0 t + 2A0 )
+2e −t (−A1 t 3 − A0 t 2 + 3A1 t 2 + 2A0 t)
Since r1 = r2 = −1, we have s = 2. +e −t (A1 t 3 + A0 t 2 ) = e −t (2t − 5).
Therefore, Now we divide both sides by e −t and then compare the
coefficients of different powers of t:
yp = t 2 e −t (A1 t + A0 ) = e −t (A1 t 3 + A0 t 2 ).
t3 : A1 − 2A1 + A1 = 0 X
In order to determine the coefficients A1 , A0 we substitute yp t2 : A0 − 6A1 − 2A0 + 6A1 + A0 = 0 X
into the equation. t: −4A0 + 6A1 + 4A0 = 2 ⇒ A1 = 31
1: 2A0 = −5 ⇒ A0 = − 52
131 / 177 132 / 177
Example 4
Solve the equation y 00 + 2y = e t sin(3t).
As a result we find
Solution
−t 1 3 5 2 The general solution is given by
yp = e t − t
3 2
y = yc + yp ,
and the general solution of the nonhomogeneous equation is
where yc is the general solution of the corresponding
1 3 5 2
y = yc + yp = c1 e −t + c2 te −t + e −t t − t . homogeneous equation y 00 + 2y = 0 and yp is some
3 2
particular solution of y 00 + 2y = e t sin(3t).
First of all we find the general solution yc of the
homogeneous equation y 00 + 2y = 0.
The characteristic equation
√ of the equation reads r 2 + 2 = 0
and hence r1,2 = ±i 2.
Example 1
Determine a suitable form for yp of yp = u1 + u2 + u3 , where
First of all we find the general solution yc of the Since r1 = 3i, r2 = −3i, s1 = s2 = s3 = 0, and hence
homogeneous equation y 00 + 9y = 0.
The characteristic equation of the equation reads r 2 + 9 = 0 yp = A0 e 3t + B0 e −3t + e 3t [C0 sin(3t) + D0 cos(3t)].
and hence r1 = 3i, r2 = −3i.
149 / 177 150 / 177
u10 y10 + u20 y20 = g (t). (21) (y1 y20 − y10 y2 )u10 = −y2 g (t).
Examples
Example 1
sin t
Find the general solution of y 00 + y =
cos2 t
Solution
Finally we integrate (23) and (24) to obtain u1 and u2 .
The general solution is given by
The constants of integration can be taken to be zero, since we
are looking for a particular solution. y = yc + yp ,
Example 2
1
Find the general solution of y 00 + 3y 0 + 2y =
et +1
Thus
yp = − sin(t) ln | cos t| − cos(t)[tan(t) − t] Solution
and the general solution is The general solution is given by
Example 3
Consider the equation L[y ] = t 2 y 00 − 2y = 3t 2 − 1, t > 0.
Thus
(a) Show that y1 = t2 and y2 = t −1 are fundamental solutions of
yp = e −t ln(e t + 1) + e −2t [ln(e t + 1) − 1 − e t ] L[y ] = 0.
(b) Find the general solution of the equation L[y ] = 3t 2 − 1.
= (e −t + e −2t ) ln(1 + e t ) − e −2t − e −t
and the general solution is Solution
(a) Show that y1 = t 2 and y2 = t −1 are fundamental solutions of
y = c1 e −t + c2 e −2t + (e −t + e −2t ) ln(1 + e t ) − e −2t − e −t
L[y ] = 0.
or (i) y1 = t 2 and y2 = t −1 are solutions of the equation?
y = c1 e −t + c2 e −2t + (e −t + e −2t ) ln(1 + e t ). We have y1 = t 2 , y10 = 2t, y100 = 2. Thus
t 2 y100 − 2y1 = 2t 2 − 2t 2 = 0
177 / 177