Session 10: Ordinary Differential Equation: Second-Order Linear Differential Equations
Session 10: Ordinary Differential Equation: Second-Order Linear Differential Equations
Session 10: Ordinary Differential Equation: Second-Order Linear Differential Equations
(𝐷 2 + 𝑝0 𝐷 + 𝑞0 )𝑦 = 0 (5)
▪ 𝐷 2 + 𝑝0 𝐷 + 𝑞0 is called the auxiliary or characteristic equation. The roots of the
characteristics may be (a) real and unequal (b) real and equal (c)a complex-
conjugate pair.
▪ Case 1: The roots of the characteristic equation are real and unequal. Assume the
roots of the characteristic equation are 𝑎 and 𝑏. We may therefore write the
original differential equation Eqn. (4) in the following factored form:
(𝐷 − 𝑎 ) 𝑢 = 0 (6)
where 𝑢 = (𝐷 − 𝑏)𝑦.
▪ Eqn. (6) may be solved by letting 𝑢 = 𝑐𝑒 𝑎𝑥 and 𝑦 = 𝑐𝑒 𝑏𝑥 ∫ 𝑒 (𝑎−𝑏)𝑥 𝑑𝑥 + 𝑐2𝑒 𝑏𝑥 .
In this case, the solution of Eqn. (6) is,
𝑦 = 𝑐1 𝑦1 + 𝑐2 𝑦2 = 𝑐1 𝑒 𝑎𝑥 + 𝑐2 𝑒 𝑏𝑥 (7)
Example 1
Solve
𝑦 " + 𝑦 ′ − 2𝑦 = 0
Solution
The corresponding characteristic equation is
𝐷2 + 𝐷 − 2 = 0
(𝐷 − 1)(𝐷 + 2) = 0
with roots equal to 1 and −2. By the use of case 1, the general solution of the differential
equation to be solved is
𝑦 = 𝑐1𝑒 𝑥 + 𝑐2 𝑒 −2𝑥
▪ Case 2: The roots of the characteristic equation are real and equal. Since the roots
are real and equal 𝑎 = 𝑏, we may write the original differential equation in the
following factored form:
(𝐷 − 𝑎 ) 𝑢 = 0
where 𝑢 = (𝐷 − 𝑎)𝑦.
▪ On solving the differential equation, we obtain
𝑦(𝑥 ) = 𝑐1 𝑦1 + 𝑐2 𝑦2 = 𝑐1 𝑥𝑒 𝑎𝑥 + 𝑐2 𝑒 𝑏𝑥 (8)
Josef Hoëné de Wronski (1778-1853), Polish mathematician known for work that involved applying philosophy to mathematics. He
developed a series expansion whose coefficients were determinants, now known as Wronskians.
Example 2
Solve
𝑦 " − 2𝑦 ′ + 𝑦 = 0
Solution
The characteristic equation may be factored as follows
(𝐷 − 1)(𝐷 − 1) = 0
with solution 𝑎 = 𝑏 = 1. The general solution is
𝑦(𝑥 ) = (𝑐1 𝑥 + 𝑐2)𝑒 𝑥
Example 3
Solve
𝑦 " + 9𝑦 ′ = 0
Solution
The characteristic equation is
(𝐷 2 + 9) = 0
with roots ±3𝑖 . The general solution is
𝑦(𝑥 ) = 𝑐1 𝑒 3𝑖𝑥 + 𝑐2𝑒 −3𝑖𝑥
𝐷 2 + 𝜔2 = 0
with solutions ±𝑖𝜔. The general solution of the equation of motion is therefore
𝑥 (𝑡) = 𝑐1𝑒 𝑖𝜔𝑡 + 𝑐2 𝑒 −𝑖𝜔𝑡
𝑥(𝑡) = 𝑐1 (cos 𝜔𝑡 + 𝑖 sin 𝜔𝑡) + 𝑐2 (cos 𝜔𝑡 − 𝑖 sin 𝜔𝑡)
𝑥 (𝑡) = 𝐴 cos 𝜔𝑡 + 𝐵 sin 𝜔𝑡
Applying the initial conditions 𝑥 (0) = 𝑋0 = 𝐴 and 𝑥̇ (0) = 0 = 𝐵𝜔 or 𝐵 = 0 since 𝜔 ≠ 0, we
obtain the following solution for the original equation of motion
𝑥(𝑡) = 𝑋0 cos 𝜔𝑡
(b) The period of motion is the time required for the mass to repeat itself, it is determined as
follows:
𝑥 (𝑡 ) = 𝑥 (𝑡 + 𝑇 )
where 𝑇 is the period.
𝑋0 cos 𝜔𝑡 = 𝑋0 cos 𝜔(𝑡 + 𝑇)
the solution of the equation of motion for the following cases (a) 𝛿 = 0 (no damping), (b) 𝛿 = 𝜔
(critical damping), (c) 𝛿 < 𝜔 (light damping) and (d) 𝛿 > 𝜔 (heavy damping).
Solution
(a) The equation of motion for 𝛿 = 0 reduces to
𝑥̈ + 𝜔2 𝑥 = 0
the solution of the differential equation is
𝑥(𝑡) = 𝑋0 cos 𝜔𝑡
for 𝑥 (0) = 𝑋0 and 𝑥̇ (0) = 0. The motion in this case is oscillatory and periodic with constant
amplitude 𝑋0 .
(b) For 𝛿 = 𝜔 ≠ 0, the solutions of the corresponding characteristics equation are real and
equal, −𝛿. The solution of the equation of motion for critical damping is
𝑥(𝑡) = (𝑐1 𝑡 + 𝑐2 )𝑒 −𝛿𝑡 = 𝑋0 (𝛿𝑡 + 1)𝑒 −𝛿𝑡
for 𝑥 (0) = 𝑋0 and 𝑥̇ (0) = 0. The motion in this case is not oscillatory and approaches
equilibrium at a rapid rate.
(c) For light damping 𝛿 < 𝜔 the solutions of the corresponding characteristics equation are
−𝛿 ± 𝑖∆ where ∆= √𝜔 2 + 𝛿 2 . The solution of the equation of motion is
𝛿
𝑥 (𝑡) = 𝑋0 (cos ∆𝑡 + sin ∆𝑡) 𝑒 −𝛿𝑡
∆
for 𝑥 (0) = 𝑋0 and 𝑥̇ (0) = 0. In this case, the motion is oscillatory with decreasing amplitude,
𝑋0 𝑒 −𝛿𝑡 , and is not periodic.
(d) For heavy damping 𝛿 > 𝜔, the solutions of the characteristic equation are −𝛿 ± ∆′ where
∆′= √𝜔 2 − 𝛿 2 . The solution of the equation of motion foe heavy damping subject to
initial conditions 𝑥 (0) = 𝑋0 and 𝑥̇ (0) = 0 is
𝛿 + ∆′ (𝛿+∆′ )𝑡
𝛿 − ∆′ ′
( )
𝑥 𝑡 =( ′
) 𝑋0 𝑒 +( ′
) 𝑋0 𝑒 −(𝛿+∆ )𝑡 .
2∆ 2∆
The motion is not oscillatory and approaches equilibrium at a rate less rapid than for critical
damping.
• The two widely used methods for solving differential equations in the above category are
1. successive integration and
• undetermined coefficients, 𝑦 = 𝑦ℎ + 𝑦𝑝 where 𝑦ℎ is the solution of the corresponding
homogeneous differential equation and 𝑦𝑝 is any solution of the nonhomogeneous
differential equation.
where 𝑢 = (𝐷 − 𝑏)𝑦. The differential equation may be solved using the general
formula, we obtain,
𝑢 = 𝑒 𝑎𝑥 ∫ 𝑓 (𝑥 )𝑒 −𝑎𝑥 𝑑𝑥 + 𝑐1 𝑒 𝑎𝑥 ≡ 𝑄̅ (𝑥 ) (3)
Example 1
By use of the method of successive integration, solve
𝑦 " − 2𝑦 ′ + 𝑦 = 2 cos 𝑥
Solution
The roots of the characteristic equation of the corresponding homogeneous differential equation
are real and equal, 1. The equation for characteristic equation is 𝑄̅ (𝑥 ) reduces to
𝑄̅ (𝑥 ) = 2𝑒 𝑥 ∫ 𝑒 −𝑥 cos 𝑥 𝑑𝑥 + 𝑐1 𝑒 𝑥
differential equation is
𝑔
𝑦(𝑡) = 𝐴 cos 𝜔𝑡 + 𝐵 sin 𝜔𝑡 −
𝜔2
𝑔
Initial condition 𝑦(0) = 𝑌0 leads to 𝐴 = 𝑌0 − 𝜔2 and initial condition 𝑦̇ (0) = 0
• The usual procedure for solving differential equation of the form givenin Eqn. (1) is the
power series method due to Frobenius and Fuchs.
• Frobenius yields the following two types of information concerning the solution of Eqn.
(1):
(a) form of the solution as a result of the nature of 𝑝(𝑥 ) and 𝑞(𝑥 )
(b) form of the solution as indicated by the nature of the solution of the indicial equation.
• We will only use the second type of information.
1. If 𝑝(𝑥 ) and 𝑞(𝑥 ) are regular at 𝑥 = 0, then Eqn. (1) possesses two distinct solutions
of the form
∞
𝑦(𝑥 ) = ∑ 𝑎𝜆 𝑥 𝜆 (2)
𝜆=0
(𝑎𝜆 ≠ 0).
2. If 𝑝(𝑥 ) and 𝑞(𝑥 ) are singular at 𝑥 = 0 but 𝑥𝑝(𝑥 ) and 𝑥 2 𝑞(𝑥 ) are regular at 𝑥 = 0,
then there will always be at least one solution of Eqn. (1) of the form
∞
(𝑎𝜆 ≠ 0).
3. If 𝑝(𝑥 ) and 𝑞(𝑥 ) are irregular singular points at 𝑥 = 0 and 𝑥𝑝(𝑥 ) and 𝑥 2 𝑞 (𝑥 ) are
singular at 𝑥 = 0, then regular solution of Eqn. (1) may not exist. In this case, no
general method for solving the equation is known.
Example 1
Consider the differential equation
𝑥𝑦 " + 2𝑦 ′ + 𝑥𝑦 = 0
By use of the power series method obtain the (a) indicial equation and its two solutions (b)
recursion formula and (c) general solution of the differential equation, 𝑦(𝑥 ).
Solution
The standard form of this differential equation is,
2
𝑦" + 𝑦′ + 𝑦 = 0
𝑥
2
Note that 𝑝(𝑥 ) → 𝑥 and 𝑞(𝑥 ) → 1; hence the differential equation is of the type 2 form and the
𝑦(𝑥 ) = ∑ 𝑎𝜆 𝑥 𝜆+𝑘
𝜆=0
(𝑎𝜆 ≠ 0). On substituting the above equation into the original differential equation, one obtains
∞ ∞
The basic plan at this stage is to write the above equation using a single sum. On replacing 𝜆
with 𝜆′ + 2 in the first sum, the power of 𝑥 in the first sum becomes the same as that in the
second sum. The above equation now becomes
∞ ∞
Terms in the above equation are linearly independent and we required that
𝑎0 𝑘 (𝑘 + 1) = 0 ,
this is called the indicial equation. The indicial equation results from equating the coefficient of
the lowest power of the variable to zero. We also required
𝑎1 (𝑘 + 1)(𝑘 + 2) = 0
and
𝑎𝜆+2 (𝜆 + 𝑘 + 3)(𝜆 + 𝑘 + 2)
which is the recursion formula. The recursion formula is used to evaluate the coefficient for th
remaining powers of the variable. In this case, the solutions of the indicial equation are 𝑘 = 0 and
𝑘 = −1. When 𝑘 = 0, 𝑎1 = 0, because of equation between the indicial and recursion formula.
The coefficient 𝑎1 is arbitrary when 𝑘 = −1, and two independent solutions of the original
differential equation may be obtained by use of 𝑘 = −1 since 𝑎0 is arbitrary by hypothesis. The
form of the solution of the original differential equation becomes,
∞
𝑦(𝑥 ) = ∑ 𝑎𝜆 𝑥 𝜆−1
𝜆=0
Values of the coefficients in the above equation are obtained from the recursion formula using 𝑘 =
−1. The general expressions for even and odd expansion coefficients respectively are
(−1)𝑗 𝑎0
𝑎2𝑗 =
(2𝑗)!
and
(−1)𝑗 𝑎1
𝑎2𝑗+1 =
(2𝑗 + 1)!
for 𝑗 = 0, 1, 2, 3, . ..
The general solution of the original differential equation is obtained by substituting the above
coefficients into our 𝑦(𝑥 ),
∞ ∞
(−1)𝑗 2𝑗 (−1)𝑗 𝑥 2𝑗+1
𝑦(𝑥 ) = 𝑎0 ∑ 𝑥 + 𝑎1 ∑ .
(2𝑗)! (2𝑗 + 1)!
𝑗=0 𝑗=0
ln 𝑥 𝑑𝑥 ln 𝑥 𝑑𝑥
𝑦(𝑥 ) = −𝑥 ∫ + 𝑥2 ∫
𝑥 𝑥2
1
𝑦(𝑥 ) = −𝑥 [ (ln 𝑥 )2 + ln 𝑥 + 1] − 𝑐1 𝑥 + 𝑐2 𝑥 2
2
• Eqn. (10) will now be put in the form of a definite integral that is useful in solving initial
or boundary value problems.
• Let 𝑥 be a point in the closed interval [𝑎, 𝑏] such that the first term in Eqn. (10) is
replaced by a definite integral from 𝑏 to 𝑥 and the second term is replaced by a definite
integral from 𝑎 to 𝑥. In terms of the two indicated integrals,
𝑥 𝑏 𝑏
𝑦1 (𝑡)𝑦2 (𝑥 )𝑑𝑡 𝑦1 (𝑥 )𝑦2 (𝑡)𝑑𝑡
𝑦 (𝑥 ) = ∫ +∫ = ∫ 𝐺 (𝑥, 𝑡)𝑓(𝑡)𝑑𝑡 (11)
𝑎 𝑊 (𝑡 ) 𝑥 𝑊 (𝑡 ) 𝑎
• The function 𝐺 (𝑥, 𝑡) in the above equation is called the Green’s function for Eqn. (10)
subject to the appropriate boundary conditions. The Green’s function is defined by
𝑦 (𝑡)𝑦2 (𝑥 )⁄𝑊 (𝑡) ≡ 𝐺1 𝑓𝑜𝑟 𝑎 < 𝑡 < 𝑥
𝐺 (𝑥, 𝑡) = { 1 (12)
𝑦1 (𝑥 )𝑦2 (𝑡)⁄𝑊 (𝑡) ≡ 𝐺1 𝑓𝑜𝑟 𝑥 < 𝑡 < 𝑏
• Note that the Green’s function depends only 𝑦1 , 𝑦2 and the Wronskian. The quantity
𝑊 (𝑡) means 𝑊 [𝑦1 (𝑡), 𝑦2 (𝑡)]. The value of the Green’s function approach is related to
the fact that initial or boundary conditions are incorporated in the formulation of the
problem in a natural manner. At 𝑡 = 𝑎, 𝐺1 (𝑥, 𝑡) satisfies the boundary condition imposed
on 𝑦(𝑥 ) and 𝐺2 (𝑥, 𝑡) satisfies the boundary condition for 𝑦(𝑥 ) at 𝑡 = 𝑏.
Example 2
By use of the Green’s function method, find the solution of
𝑦 ” = 6𝑥
where 𝑦 ′(0) = 𝑦(1) = 0, 𝑦1 = 𝑥 and 𝑦2 = 𝑥 − 1.
Solution
Here the Wronskian equals 1 and the Green’s functions become
𝐺1 (𝑥, 𝑡) = 𝑡(𝑥 − 1)
for 0 ≤ 𝑡 ≤ 𝑥, and
𝐺2 (𝑥, 𝑡) = 𝑥 (𝑡 − 1)
for 𝑥 ≤ 𝑡 ≤ 1. The solution of the differential equation is,
1
𝑦(𝑥 ) = ∫ 𝐺 (𝑥, 𝑡) = 𝑥 3 .
0