Second-Order Linear ODEs Overview
Second-Order Linear ODEs Overview
Differential Equations
2. Reduction of Order
Topic 1: Introduction 2
Definition: Second-Order Linear ODE
Topic 1: Introduction 3
Initial value problem (IVP)
Topic 1: Introduction 4
Basic Theory of Linear ODEs
Theorem
(Existence and Uniqueness) Let p(x), q(x) and f(x) be continuous
functions on an internal I. Then for each xo I , the IVP
The proof of this theorem is fairly difficult. One may refer to, for example, E.A.
Coddington, An introduction to ODEs, Dover, 1961, for the proof.
Topic 1: Introduction 5
Superposition principle or linearity principle
Theorem
If y1(x) and y2(x) are two solutions to the homogeneous DE:
y ''+ p ( x ) y '+ q ( x ) y = 0, x I,
Then any linear combination of y1 and y2.
y ( x ) = c1 y1 ( x ) + c2 y2 ( x )
Topic 1: Introduction 6
Superposition principle or linearity principle
Example
Verify that y ( x ) = c1 cos x + c2 sin x with c1 and c2 being arbitrary
constants is a solution to y ''+ y = 0.
Topic 1: Introduction 7
Linear dependence/Independence
Definition
Two functions y1 ( x ) , y2 ( x ) defined on an interval I are said to be linearly
independent (LI), if one of them is NOT a constant multiple of the other,
i.e., the ratio is not a constant, but a function of x:
y1 ( x ) y2 ( x )
constant or constant.
y2 ( x ) y1 ( x )
Topic 1: Introduction 8
Example
Topic 1: Introduction 9
Wronskian
Definition
Let y1 and y2 be differentiable functions on the interval I. The Wronskian
of y1 and y2, is defined by
y1 y2
W ( y1 , y2 )( x ) = ' '
= y y
1 2
'
− y '
1 y2 (5)
y1 y2
Note: W ( y1 , y2 )( x ) = −W ( y2 , y1 )( x )
Topic 1: Introduction 10
Example
Theorem
Let y1 and y2 be the solution to the homogeneous equation:
Then we have
W ( y1 , y2 )( x ) = 0 LD
W ( y1 , y2 )( x ) 0 LI
Topic 1: Introduction 12
Example
W ( y1 , y2 ) = ... = e3 x 0
Topic 1: Introduction 13
Theorem
Topic 1: Introduction 14
Example
r ( r − 1) x r + 3rx r − 8 x r = 0 r 2 + 2r − 8 = 0
Therefore, the roots are r = -4, 2, which means y1 = x-4 and y2 = x2 are
two solutions of the equation. Moreover, they are linearly independent.
Thus the general solution is
y ( x ) = c1 x −4 + c2 x 2
Topic 1: Introduction 15
Exercise
Key: The GS is
y ( x ) = c1e x + c2e3 x
Topic 1: Introduction 16
Outline
2. Reduction of Order
Topic 1: Introduction 17
Reduction of order
y ( x ) = c1 y1 ( x ) + c2 y2 ( x )
Topic 1: Introduction 18
Example
Topic 1: Introduction 19
Example (Cont.’)
Theorem
Let y1 ( x ) 0 be a solution to the second-order linear DE in the standard
form
y ''+ p ( x ) y '+ q ( x ) y = 0, (11)
Then a second linearly independent solution is
1 − p ( x ) dx
y2 ( x ) = y1 ( x ) 2 e dx (12)
y1 ( x )
Then the general solution is
y ( x ) = c1 y1 ( x ) + c2 y2 ( x )
Remarks: it only applied to (i) the standard form (i.e., the coefficient of y’’
is 1; and (ii) homogeneous DE.
Topic 1: Introduction 21
Exercise
Use the formula (12) in the Theorem to find y2 of the equation (10) in the
previous example.
Key: y2 ( x ) = e − x (1 + 2 x + 2 x 2 )
Given 1 ( ) = 2
y x x , find a second LI solution to
x 2 y ''− 3xy '+ 4 y = 0, x0
Key: y2 ( x ) = x 2 ln x
Topic 1: Introduction 22
Outline
2. Reduction of Order
Topic 1: Introduction 23
Homogeneous DE with Constant Coefficients
We now discuss how to solve second-order linear DE, and start with a simple
but important case in the form
Based on the theory, to find its general solution, it is suffices to find two
linearly independent solutions, say y1 ( x ) & y2 ( x )
Then the GS is
y ( x ) = c1 y1 ( x ) + c2 y2 ( x )
Topic 1: Introduction 24
Theorem
ar 2 + br + c = 0
Correspondence:
ay ''+ by '+ cy = 0, ar 2 + br + c = 0
Topic 1: Introduction 25
Example
Topic 1: Introduction 26
(2) The CE is
9r − 12r + 4 = ( 3r − 2 ) = 0,
2 2
2
2 x
Which has only one root: r = . By the linear theory, y1 = e 3 is a solution. We
3
lack another LI solution. Using the Reduction of order, we can find the other
one is 2
x
y2 = xy1 = xe 3
(16)
Topic 1: Introduction 27
(3) The CE is
r + 4r + 13 = ( r + 2 ) + 9 = 0
2 2
( r + 2 ) = −9
2
r + 2 = −9 = 3 −1 = 3i,
Are two solutions (which are linearly independent). Note that y1 is the
conjugate of y2 and vice versa.
Topic 1: Introduction 28
However, we would like to express the solution in terms of real functions for
the reason that the given DE has real coefficients. Recall the Euler’s formula
for complex exponential:
e a +bi = e a ebi = e a ( cos b + i sin b ) , (18)
For any real numbers a,b. Apply it to y1 :
y1 ( x ) = e( −2+3i ) x = e −2 x e3 xi = e −2 x ( cos ( 3x ) + i sin ( 3x ) )
= e −2 x cos ( 3 x ) + e −2 x sin ( 3 x ) i
Then we take the real and imaginary parts to form the GS:
y ( x ) = ( c1 cos 3x + c2 sin 3 x ) e −2 x
Note: We can apply (18) to y2(x), which leads to the same GS.
Topic 1: Introduction 29
Summary of the Rules
(i) If the CE (20) has two real, distinct roots: r1 r2 (i.e., when b 2 − 4ac 0 ),
then the GS of (19) is
Topic 1: Introduction 30
Summary of the Rules
b
(ii) If the CE (20) has only on root: r1 (i.e., when b 2
− 4ac = 0 , so r1 = − ),
2a
then the GS of (19) is
y ( x ) = ( c1 + c2 x ) e r1x (22)
(iii) If the CE (20) has two complex conjugated roots: i with real ,
(i.e., when b 2 − 4ac 0 ), then the GS of (19) is
Note: here, we used the Euler’s formula (18) to extract the real and imaginary
parts to form the GS as with the previous Example.
Topic 1: Introduction 31
Reduction of Order for Rule (ii)
We next justify why the GS in Case (ii) takes the form (22). By Theorem on
Slide 29, (19) has one solution y1 ( x ) = e
r1 x
2a
Topic 1: Introduction 32
Application example: Simple Harmonic Motion
𝑚𝑥 ′′ + 𝑘𝑥 = 0
Topic 1: Introduction 33
Application example: Simple Harmonic Motion
Rearrange the equation and introduce new variable, called the angular frequency, 𝜔
𝑚𝑥 ′′ + 𝑘𝑥 = 0
𝑥 ′′ + 𝜔2 𝑥 = 0 where 𝜔 = 𝑘/𝑚
Topic 1: Introduction 34
Application example 1: Simple Harmonic Motion
A 200 gram mass stretches a spring 5 cm. Find the equation of motion of the mass if it is
released from rest from a position 10 cm below the equilibrium position. What is the frequency
of the motion?
Solution
Topic 1: Introduction 35
Modeling a motorcycle suspension system
(damped system)
The ODE is
𝑚𝑥" + 𝑏𝑥′ + 𝑘𝑥 = 0
𝑚 = mass
𝑏 = Shock absorber
constant
𝑘 = Spring constant
Topic 1: Introduction 36
Application example 2: Damped system
Suppose that the spring in the previous example is immersed in a fluid with damping constant
𝑏 = 20. Find the position of the mass at any time 𝑡 if it starts from the equilibrium position and is
given a push to start it with an initial velocity of 0.6 m/s.
Solution
Topic 1: Introduction 37
Outline
2. Reduction of Order
Topic 1: Introduction 38
Theorem
yc ( x )
Topic 1: Introduction 39
▪ Consider the nonhomogeneous DE with constant coefficients:
Topic 1: Introduction 40
Method of undetermined coefficients
Topic 1: Introduction 41
Example
y '' p − y p = 8 Ae = 16e
3x 3x
A=2 y p = 2e 3x
Topic 1: Introduction 43
−x
We now solve (ii) y ''− y = 16e . Similar to (i), we take the trial solution:
y p ( x ) = Be − x , and substitute it into the equation:
y
It fails to work, because p ( x ) = Be −x
, happens to be a solution of
homogeneous DE: y ''− y = 0, obtain from (28) by taking
c1 = 0, c2 = B.
Topic 1: Introduction 44
In this case, we have to modify the above attempt: y p ( x ) = Be .
−x
B = −8 y p ( x ) = −8 xe − x
The GS of (ii) is
y ( x ) = y p ( x ) + yc ( x ) = −8 xe − x + c1e x + c2e − x
Topic 1: Introduction 45
Trial solution yp(x) for different types of f(x)
f ( x ) = an x n + an −1 x n −1 + ... + a1 x + ao , an 0.
y p ( x ) = A2 x 2 + A1 x + Ao
It might fail, if there is any term being a solution of the homogeneous DE.
Modify it by multiplying usual yp by x!
Topic 1: Introduction 46
Trial solution yp(x) for different types of f(x)
y p ( x ) = Ae x
y p ( x ) = Ae − x
Topic 1: Introduction 47
Trial solution yp(x) for different types of f(x)
f ( x ) = C cos ( x ) + D sin ( x )
Topic 1: Introduction 48
Trial solution yp(x) for different types of f(x)
y p ( x ) = ( A cos ( 3x ) + B sin ( 3x ) ) e 2 x
y p ( x ) = ( A1 x + B1 ) cos ( 3x ) + ( A2 x + B2 ) sin ( 3x )
We have to modify it by multiplying x, if it contains a term which is a
solution to the homogeneous DE.
Type V: f(x) = sum of previous types. We treat it separately (see the last
example).
Topic 1: Introduction 49
Trial Functions
6t + 4t − 2t + 5
3 2 Pt 3 + Qt 2 + Rt + S P, Q, R, and S
In each case, write an appropriate trial solution. Do not solve for the
coefficients in your propose trial solution:
( i ) y ''+ 5 y ' = 4 x 2
( ii ) y ''− y = 3xe x
( )
iii y ''− 4 y '+ 5 y = 3e 2x
sin x
Solution: (i) The CE: r 2 + 5r = 0 has the two roots r = 0, −5, so the
complementary function
yc ( x ) = c1 + c2e −5 x . (30)
As f ( x ) = 4 x , we propose the usual trial solution
2
y p ( x ) = Ao + A1 x + A2 x 2
Topic 1: Introduction 51
Example (Cont.’)
y p ( x ) = x ( Ao + A1 x + A2 x 2 ) = Ao x + A1 x 2 + A2 x 3
No any term solves the homogeneous DE any more! It gives the trial
solution of (1).
Topic 1: Introduction 52
Example (Cont.’)
(ii) The CE: r 2 − 1 = 0 has the roots r = 1, so the GS to the homogeneous
equation is
yc ( x ) = c1e x + c2e x
Topic 1: Introduction 53
Example (Cont.’)
Topic 1: Introduction 54
Type V: Sum of different types
Topic 1: Introduction 55
Example
Solution:
y p ( x ) = y p1 ( x ) + y p 2 ( x ) = Ao e3 x + ( B0 + B1 x + B2 x 2 )
Topic 1: Introduction 56
End of Chapter Two: Part 1
Second order linear DE
Topic 1: Introduction 57