You are on page 1of 20

Differential Equations

Second-order ODEs
Intro-Definitions-Reduction of order

Dr. Ahmed Sayed AbdelSamea

Giza, Egypt, Spring 2018


aabdelsamea@zewailcity.edu.eg
Higher order ODEs
Definition 1
The non-homogeneous linear n-th order ODE is given by:
𝒂𝒏 𝒙 𝒚 𝒏 + 𝒂𝒏−𝟏 𝒙 𝒚 𝒏−𝟏 + ⋯ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝒈 𝒙 ,
where 𝒂𝒏 𝒙 , 𝒂𝒏−𝟏 𝒙 , … , 𝒂𝟎 𝒙 and 𝒈 𝒙 ≠ 𝟎 are continuous
functions of 𝒙 on an interval 𝑰.
When 𝒈 𝒙 = 𝟎, it is said to be homogeneous.
Definition 2
When the n-th order ODE given by:
𝒂𝒏 𝒙 𝒚 𝒏 + 𝒂𝒏−𝟏 𝒙 𝒚 𝒏−𝟏 + ⋯ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 =𝒈 𝒙 ,
satisfies the following initial conditions:
𝒚 𝒙𝟎 = 𝒚𝟎 , 𝒚′ 𝒙𝟎 = 𝒚𝟏 , … , 𝐚𝐧𝐝 𝒚 𝒏−𝟏 𝒙𝟎 = 𝒚𝒏−𝟏 , it is called
an initial value problem (IVP).
Higher order ODEs
Theorem 1 (Existence and Uniqueness)
Let 𝒂𝒏 𝒙 , 𝒂𝒏−𝟏 𝒙 , … , 𝒂𝟎 𝒙 and 𝒈 𝒙 be continuous functions
on an interval I , and let 𝒂𝒏 𝒙 ≠ 𝟎 for every 𝒙 in I. For any
point 𝒙𝟎 in this interval I , there is one and only one function
𝒚 𝒙 defined on I which is a solution to the n-th order IVP .

Theorem 2 (Superposition Principle)


Suppose that 𝒚𝟏 , 𝒚𝟐 … , 𝒚𝒏 are solutions to the homogeneous
linear ODE on an interval I :
𝒂𝒏 𝒙 𝒚 𝒏 + 𝒂𝒏−𝟏 𝒙 𝒚 𝒏−𝟏 + ⋯ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝟎
Then
𝒏
𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐 + ⋯ + 𝒄𝒏 𝒚𝒏 = 𝒄𝒊 𝒚𝒊
𝒊=𝟏
is also a solution on I where 𝒄𝒊 ; 𝒊 = 𝟏, . . , 𝒏 are arbitrary
constants.
Higher order ODEs
Definition 3
A set of functions 𝒇𝟏 (𝒙), 𝒇𝟐 (𝒙), … , 𝒇𝒏 (𝒙) is said to be a linear
dependent set (at least one function can be expressed as a linear
combination of the remaining functions) on an interval I, if
there exist constants 𝒄𝟏 , 𝒄𝟐 , … , 𝒄𝒏 , not all zeros, such that:
𝒄𝟏 𝒇𝟏 𝒙 , +𝒄𝟐 𝒇𝟐 𝒙 + ⋯ + 𝒄𝒏 𝒇𝒏 𝒙 = 𝟎
for every 𝒙 in the interval I. Otherwise, it is a linearly
independent set.

In other words, if, 𝒄𝟏 = 𝒄𝟐 = ⋯ = 𝒄𝒏 = 𝟎, the set of 𝒏-functions


is called a linearly independent set (we can not represent any
function as a linear combinations of the others).
Higher order ODEs

Example 𝒇𝟏 𝒙 = cos𝟐 𝒙 , 𝒇𝟐 𝒙 = sin𝟐 𝒙 , 𝒇𝟑 𝒙 = tan𝟐 𝒙 ,


𝝅 𝝅
𝒇𝟒 𝒙 = sec 𝟐 𝒙 is a linear dependent set on the interval − , .
𝟐 𝟐

Example 𝒇𝟏 𝒙 = cos 𝒙 , 𝒇𝟐 𝒙 = sin 𝒙 , is a linear independent


𝝅 𝝅
set on the interval − , . What about −∞, ∞ ?
𝟐 𝟐

Example 𝒇𝟏 𝒙 = 𝒙 + 𝟓, 𝒇𝟐 𝒙 = 𝒙 + 𝟓𝒙, 𝒇𝟑 𝒙 = 𝒙 − 𝟏,
𝒇𝟒 𝒙 = 𝒙𝟐 is a linear dependent set on the interval 𝟎, ∞ .
Higher order ODEs
Definition 4
The Wronskian of the functions 𝒇𝟏 (𝒙), 𝒇𝟐 (𝒙), … , 𝒇𝒏 (𝒙), each
possesses at least 𝒏 − 𝟏 derivatives, is defined by
𝒇𝟏 𝒇𝟐 … 𝒇𝒏
𝒇′𝟏 𝒇′𝟐 … 𝒇′𝒏
𝑾 𝒇𝟏 , 𝒇𝟐 , … , 𝒇𝒏 = ⋮ ⋮ … ⋮
(𝒏−𝟏) (𝒏−𝟏) (𝒏−𝟏)
𝒇𝟏 𝒇𝟐 … 𝒇𝒏
Theorem 3
The set of functions 𝒇𝟏 (𝒙), 𝒇𝟐 (𝒙), … , 𝒇𝒏 (𝒙) is linearly
independent set if and only if 𝑾 𝒇𝟏 , 𝒇𝟐 , … , 𝒇𝒏 ≠ 𝟎.

The Wronskian was named after the Polish mathematician H.


Wronski (1778–1863).
Higher order ODEs
Theorem 4
Let 𝒚𝟏 , 𝒚𝟐 , … , 𝒚𝒏 be 𝒏 solutions of the homogeneous linear 𝒏-th
order ODE on the interval I. Then, the set of solutions is
linearly independent on I if and only if 𝑾 𝒚𝟏 , 𝒚𝟐 , … , 𝒚𝒏 ≠ 𝟎
for every 𝒙 on I and is called a fundamental set of solutions.

Theorem 5
Let 𝒚𝟏 , 𝒚𝟐 , … , 𝒚𝒏 be a fundamental set of solutions of the linear
homogeneous 𝒏-th order ODE on an interval I. Then, general
solution of ODE on interval I is: 𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐 + ⋯ + 𝒄𝒏 𝒚𝒏 ,
where 𝒄𝒊 , 𝒊 = 𝟏, 𝟐, … , 𝒏 are arbitrary constants.
Higher order ODEs
Example
Show that 𝒚𝟏 = 𝒆𝒙 , 𝒚𝟐 = 𝒆𝟐𝒙 , 𝒚𝟑 = 𝒆𝟑𝒙 , form a fundamental set
of solution on −∞, ∞ for the 3rd order ODE:
𝒚′′′ − 𝟔𝒚′′ + 𝟏𝟏𝒚′ − 𝟔𝒚 = 𝟎.

Solution
𝑾 𝒚𝟏 , 𝒚𝟐 , 𝒚𝟑 = 𝟐𝒆𝟔𝒙 ≠ 𝟎
Second order ODEs
Definition 1
The general solution of homogeneous linear 2-nd order ODE
𝒂𝟐 𝒙 𝒚′′ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝟎,
or, equivalently, 𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝟎.
using the fundamental set of solutions 𝒚𝟏 , 𝒚𝟐 is given by:
𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐
where 𝒚𝟏 , 𝒚𝟐 are two linearly independent solutions and 𝒄𝟏 , 𝒄𝟐
𝒚
are arbitrary constants 𝟏 ≠ 𝐜𝐨𝐧𝐬𝐭𝐚𝐧𝐭 .
𝒚𝟐

Note
𝒚𝟏 𝒚𝟐 ′ ′
Wronskian: 𝑾 𝒚𝟏 , 𝒚𝟐 = 𝒚′ ′ = 𝒚𝟏 𝒚𝟐 − 𝒚𝟐 𝒚𝟏 ≠ 𝟎.
𝒚𝟐
𝟏
Second order ODEs
Proposition 1
Suppose that 𝒚𝟏 and 𝒚𝟐 are solutions to the homogenous linear
2-nd order ODE: 𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝟎 on the interval I.
Then the Wronskian: 𝑾 𝒚𝟏 , 𝒚𝟐 is either identically zero on I
or it is never equal to zero.

Proposition 2
Suppose that 𝒚𝟏 and 𝒚𝟐 are solutions to the homogenous linear
2-nd order ODE: 𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝟎 on the interval I.
Then 𝒚𝟏 and 𝒚𝟐 are linearly dependent if and only if their
Wronskian: 𝑾 𝒚𝟏 , 𝒚𝟐 is identically zero on I.
Second order ODEs
Proposition 3
Suppose that 𝒚𝟏 and 𝒚𝟐 are solutions to the homogenous linear
2-nd order ODE: 𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝟎 on the interval I.
Then 𝒚𝟏 and 𝒚𝟐 are linearly independent if and only if their
Wronskian: 𝑾 𝒚𝟏 , 𝒚𝟐 ≠ 𝟎.

Theorem
Suppose that 𝒚𝟏 and 𝒚𝟐 are independent solutions to the
homogenous linear 2-nd order ODE:
𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝟎
on the interval I. Then the general solution is given by:
𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐
where 𝒄𝟏 , 𝒄𝟐 are arbitrary constants.
Second order ODEs
Exercise
Show that 𝒚𝟏 = 𝒆𝟑𝒙 , 𝒚𝟐 = 𝒆−𝟑𝒙 , form a fundamental set of
solutions for the 2nd order ODE: 𝒚′′ − 𝟗𝒚 = 𝟎, hence find the
general solution and the interval of existence. Is the function
𝒚 = 𝟒 sinh 𝟑𝒙 − 𝟓𝒆𝟑𝒙 a solution to the above ODE? Why?
Second order ODEs

The 2nd order DE is given by (normal form): 𝒚′′ = 𝒇(𝒙, 𝒚, 𝒚′ )


Example: object motion (Newton’s 2nd law)
𝒅 𝒅𝟐 𝒚
(𝒎𝒗) = 𝑭 𝒎 𝟐 = 𝑭(𝒕, 𝒚, 𝒚′ )
𝒅𝒕 𝒅𝒕
𝒎𝒚′′ = 𝑭(𝒕, 𝒚, 𝒚′ )
where,
• 𝒎 : is the object mass,
• 𝒚 : is the object location (displacement),
• 𝒚′ : is the object velocity,
• 𝒚′′ : is the object acceleration.
Second order ODEs
Notes
• The nonhomogeneous linear second order ODE is given by
𝒂𝟐 𝒙 𝒚′′ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝒈(𝒙)

• In the standard form, it is: 𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝒇(𝒙)


It has no powers for 𝒚, 𝒚′ , 𝐚𝐧𝐝 𝒚′′ more than 1, no products
and no non-linear functions. 𝒑, 𝒒 are continuous functions
of the independent variable (𝒙) on some interval I. 𝒇 𝒙 is
called the forcing (driving force) term.
• The homogenous linear 2nd order DE is given by:
𝒚′′ + 𝒑 𝒙 𝒚′ + 𝒒 𝒙 𝒚 = 𝟎 (no forcing term).
Second order ODEs
Boundary Value Problem (BVP)
The nonhomogeneous linear second order ODE given by
𝒂𝟐 𝒙 𝒚′′ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝒈(𝒙)
defined on an interval 𝑰 ≡ (𝒂, 𝒃) with the following boundary
conditions:
𝒚 𝒂 = 𝒚𝟎 , 𝒚 𝒃 = 𝒚𝟏
is called a boundary value problem (BVP).
However, there are other boundary conditions forms as
𝒚′ 𝒂 = 𝒚𝟎 , 𝒚 𝒃 = 𝒚𝟏
𝒚 𝒂 = 𝒚𝟎 , 𝒚′ 𝒃 = 𝒚𝟏
𝒚′ 𝒂 = 𝒚𝟎 , 𝒚′ 𝒃 = 𝒚𝟏
Second order ODEs
Differential Operators
𝒅
The differential operator symbol 𝑫 can be used instead of to
𝒅𝒙
simplify notation. Therefore, the 2nd order ODE can be given by
𝒂𝟐 𝒙 𝑫𝟐 𝒚 + 𝒂𝟏 𝒙 𝑫𝒚 + 𝒂𝟎 𝒙 𝒚 = 𝒈(𝒙)
where, in general,
𝒅 𝒏𝒚
𝑫𝒏 𝒚 = 𝒚 𝒏 = 𝒏
.
𝒅𝒙
Then, we can define the 2nd order linear operator 𝑳 as
𝑳 ≡ 𝒂𝟐 𝒙 𝑫𝟐 + 𝒂𝟏 𝒙 𝑫 + 𝒂𝟎 𝒙 .
Therefore the 2nd order ODE can by written in a short hand
notation as
𝑳 𝒚 =𝒈 𝒙 .
Second order ODEs
Example: the vibrating spring
𝒎𝒚′′ + 𝝁𝒚′ + 𝒌𝒚 = 𝑭(𝒕)
where,
• 𝒎 is the spring mass.
• 𝒚, 𝒚′ , 𝐚𝐧𝐝 𝒚′′ are the displacement, velocity and acceleration.
• 𝝁 is the damping constant.
• 𝒌 is the spring constant.
• 𝑭(𝒕) is the driving force.
Second order ODEs
Example: Consider the 2nd order ODE: 𝒚′′ − 𝒚 = 𝟎.
Given that 𝒚𝟏 𝒕 = 𝒆𝒕 is a solution in the interval −∞, ∞ ,
find 𝒚𝟐 𝒕 , hence give the general solution.

Solution
Let 𝒚𝟐 𝒕 = 𝒖 𝒕 𝒚𝟏 𝒕 𝒆𝒕 𝒖′′ + 𝟐𝒖′ = 𝟎 𝒖′′ + 𝟐𝒖′ = 𝟎.
Using the reduction method: let 𝒖′ = 𝒘, then the 2nd-order DE
becomes 𝒘′ + 𝟐𝒘 = 𝟎 (1st-order separable) 𝒘 𝒕 = 𝒌𝟏 𝒆−𝟐𝒕
𝒖 𝒕 = 𝒌𝟏 𝒆−𝟐𝒕 + 𝒌𝟐
𝒚𝟐 𝒕 = 𝒌𝟏 𝒆−𝒕 + 𝒌𝟐 𝒆𝒕 (choose 𝒌𝟏 = 𝟏, 𝒌𝟐 = 𝟎) 𝒚𝟐 𝒕 = 𝒆−𝒕
The general solution: 𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐 = 𝒄𝟏 𝒆𝒕 + 𝒄𝟐 𝒆−𝒕
Linear Homogenous 2nd order DE with Variable Coefficients
Consider the 2nd order ODE in the standard form:
𝒚′′ + 𝒑 𝒙 𝒚′ + 𝒒 𝒙 𝒚 = 𝟎
If 𝒚𝟏 (𝒙) is one solution of the above 2nd order DE, one can get
another independent solution, by reduction of order as follows:
Let 𝒚𝟐 𝒙 = 𝒖(𝒙)𝒚𝟏 (𝒙), then get 𝒚′𝟐 , 𝒚′′
𝟐 and substitute back in

the original DE and simplify to get:


𝒆− 𝒑 𝒙 𝒅𝒙
𝒚𝟐 𝒙 = 𝒚𝟏 𝒙 𝟐
𝒅𝒙
𝒚𝟏 𝒙
Exercise
What about the nonhomogeneous case?
𝒚′′ + 𝒑(𝒙)𝒚′ + 𝒒 𝒙 𝒚 = 𝒇(𝒙)
Linear Homogenous 2nd order DE with Variable Coefficients
Example: Find the general solution of the ODE:
𝒙𝟐 𝒚′′ − 𝟑𝒙𝒚′ + 𝟒𝒚 = 𝟎.
Given that 𝒚𝟏 𝒙 = 𝒙𝟐 is a solution in the interval 𝟎, ∞ .

Solution
Write the ODE in the standard form:
′′
𝟑 ′ 𝟒
𝒚 − 𝒚 + 𝟐𝒚=𝟎
𝒙 𝒙
𝟏
− 𝒑 𝒙 𝒅𝒙 𝟑 𝒙𝒅𝒙
𝒆 𝒆
Then 𝒚𝟐 𝒙 = 𝒚𝟏 𝒙 𝒅𝒙 𝒚𝟐 𝒙 = 𝒙𝟐 𝒅𝒙
𝒚𝟏 𝒙 𝟐 𝒙𝟒
𝒚𝟐 𝒙 = 𝒙𝟐 ln 𝒙
The general solution: 𝒚 = 𝒄𝟏 𝒚𝟏 + 𝒄𝟐 𝒚𝟐 = 𝒄𝟏 𝒙𝟐 + 𝒄𝟐 𝒙𝟐 ln 𝒙

You might also like