Applied MathIII Chapter2 PowerPoint (3)
Applied MathIII Chapter2 PowerPoint (3)
1 / 67
Introduction
Second-order ordinary differential equations arise naturally whenever the rate of change of a system
depends not only on its current state but also on its acceleration, curvature, or second derivative.
These equations appear in physics, engineering, chemistry, biology, and many other fields. They
capture the dynamics of systems that oscillate, vibrate, bend, move under forces, or transfer energy.
While first-order ODEs describe systems governed by simple rates, second-order ODEs describe
systems involving inertia, elasticity, and forces, phenomena that lie at the heart of engineering and
physical sciences. The step from first-order to second-order equations opens the door to modeling
mechanical systems, electrical circuits, structural vibration, fluid motion, chemical reactors, and
wave behavior.
2 / 67
Introduction
This chapter introduces the theory and methods for solving second-order ODEs, including linear
homogeneous equations, equations with constant coefficients, particular solutions for nonhomoge-
neous equations, and the study of oscillatory behavior. Understanding these equations helps students
analyze the stability of structures, resonance in circuits, motion of mechanical systems, and reactions
in chemical processes.
3 / 67
Introduction
• Hooke’s Law:
𝐹 = −𝑘𝑥
yields the well-known harmonic oscillator.
• Kirchhoff’s Laws in Circuits: combining inductors and capacitors leads to equations involving the
second derivative of charge or current.
• Beam Bending Equation: the behavior of a beam under load is governed by a fourth-order equation,
which reduces to secondorder forms in simplified cases.
When students understand second-order ODEs, they can describe oscillations, mechanical vibra-
tions, wave motion, electric resonance, and many feedback-controlled systems. These topics are
essential for advanced study in engineering and science.
𝑑2𝑥 𝑑𝑥
𝑚 2
+ 𝑐 + 𝑘𝑥 = 𝐹 (𝑡),
𝑑𝑡 𝑑𝑡
where
5 / 67
Introduction
6 / 67
Introduction
An electrical engineer designs a radio receiver that must filter and detect a specific frequency. The
key element is an RLC circuit-a resistor (𝑅), inductor (𝐿), and capacitor (𝐶) connected together.
When a voltage is applied, the current oscillates just like a mass on a spring. This system is governed
by the second-order equation:
𝑑2𝑞 𝑑𝑞 1
𝐿 2 +𝑅 + 𝑞 = 𝐸 (𝑡)
𝑑𝑡 𝑑𝑡 𝐶
where 𝑞 is charge and 𝐸 (𝑡) is the input voltage. Second-order ODEs tell the engineer how quickly
the oscillations die out, what frequency the circuit naturally prefers, and how to achieve resonance.
All communication systems: radios, phones, wireless networks-depend on these principles.
7 / 67
Introduction
A mechanical engineer works on a robotic arm that must move smoothly and stop precisely without
overshooting its target. The engineer knows that the arm behaves like a mass-spring-damper system,
which is modeled by the standard second-order differential equation:
𝑑2𝑥 𝑑𝑥
𝑚 2
+ 𝑐 + 𝑘𝑥 = 𝑓 (𝑡).
𝑑𝑡 𝑑𝑡
By analyzing this equation, the engineer determines whether the system is overdamped (slow), un-
derdamped (oscillatory), or critically damped (fastest possible non-oscillating motion). This classifi-
cation is essential in robotics, automotive suspension design, aerospace engineering, and mechanical
control systems.
8 / 67
Introduction
D. Chemical Engineering Story - Temperature and Concentration Oscillations in Re-
actors
A chemical engineer monitors a reactor where temperature can rise rapidly due to heat produced by
reactions. Some reactions even cause oscillatory behavior in temperature or concentration, especially
in systems with feedback loops. A simplified model of the temperature 𝑇 (𝑡) inside a reactor can lead
to an equation like:
𝑑 2𝑇 𝑑𝑇
+ 𝑎 + 𝑏𝑇 = 𝑔(𝑡),
𝑑𝑡 2 𝑑𝑡
where the terms represent heat accumulation, cooling, and reaction-generated heat. Such second-
order ODEs help chemical engineers:
• predict whether temperature will stabilize,
• determine when oscillations will occur (chemical oscillators),
• prevent runaway reactions,
9 / 67
Introduction
Remark
Second-order ordinary differential equations are the mathematical backbone of systems that move,
vibrate, oscillate, or respond dynamically to forces. They teach us how the past behavior of a system
influences its future, how stability can be analyzed, and how to design systems that behave exactly
as intended.
By learning second-order ODEs, students gain access to the tools used to design safe buildings, create
electrical filters, control mechanical systems, and regulate chemical processes. These equations are
not merely academic—they are the heartbeat of modern technology and engineering.
10 / 67
Introduction
As you enter this chapter, remember that mastering second-order differential equations means
understanding the mathematical laws that govern motion, energy, and dynamics across the entire
scientific and engineering world.
11 / 67
SOODE
Definition 1.0
The general form of second order ordinary differential equations (SOODE) is
𝐹 (𝑥, 𝑦, 𝑦 0 , 𝑦 00 ) = 0.
Definition 1.1
A SOODE of the form
𝑦 00 + 𝑝(𝑥)𝑦 0 + 𝑓 (𝑥)𝑦 = 𝑟 (𝑥)
is called a linear SOODE. If 𝑟 (𝑥) = 0, then 𝑦 00 + 𝑝(𝑥)𝑦 0 + 𝑓 (𝑥)𝑦 = 0, is homogeneous
SOODE otherwise non-homogeneous.
12 / 67
SOODE
Example 1.0
Definition 1.2
A solution of 𝐹 (𝑥, 𝑦, 𝑦 0 , 𝑦 00 ) = 0 on an interval 𝐼 is a function 𝜑 that satisfies the differential
equation at each point of 𝐼, i.e., 𝐹 (𝑥, 𝜑(𝑥), 𝜑0 (𝑥), 𝜑00 (𝑥)) = 0 for all 𝑥 in 𝐼.
Example 1.1
13 / 67
SOODE
Example 1.2
Remark
Super position principle in general doesn’t hold for non-homogeneous and non-linear.
14 / 67
SOODE
Example 1.3
15 / 67
Linear Independence and Wronskian
Definition 1.3
A set of 𝑛 functions {𝑦 1 , 𝑦 2 , 𝑦 3 , · · · , 𝑦 𝑛 } defined on an interval 𝐼 is said to be linearly depen-
dent, if there are constants 𝛼1 , 𝛼2 , · · · , 𝛼𝑛 not all zero such that
𝛼1 𝑦 1 + 𝛼2 𝑦 2 + · · · + 𝛼𝑛 𝑦 𝑛 = 0 on 𝐼
16 / 67
Linear Independence and Wronskian
Corollary 1.0
17 / 67
Linear Independence and Wronskian
Definition 1.4
𝑦1 𝑦2 ··· 𝑦𝑛
𝑦 10 𝑦 20 ··· 𝑦 0𝑛
𝑊 (𝑥) = 𝑊 (𝑦 1 , 𝑦 2 , 𝑦 3 , ..., 𝑦 𝑛 ) = .. .. .. .. .
. . . .
𝑦 1(𝑛−1) 𝑦 2(𝑛−1) · · · 𝑦 𝑛(𝑛−1)
𝑦1 𝑦2
𝑊 (𝑦 1 , 𝑦 2 ) = .
𝑦 10 𝑦 20
18 / 67
Linear Independence and Wronskian
Example 1.4
cos(𝑥) sin(𝑥)
𝑊 (cos(𝑥), sin(𝑥)) = = 1.
− sin(𝑥) cos(𝑥)
Remark
If {𝑦 1 , 𝑦 2 } is linearly dependent, then 𝑊 (𝑦 1 , 𝑦 2 ) = 0.
19 / 67
Linear Independence and Wronskian
𝑦1 𝑦2
𝑊 (𝑦 1 , 𝑦 2 ) = = 𝑦 1 𝑦 20 − 𝑦 10 𝑦 2 = 𝛼𝑦 2 𝑦 20 − 𝛼𝑦 2 𝑦 20 = 0.
𝑦 10 𝑦 20
Corollary 1.1
20 / 67
Linear Independence and Wronskian
Example 1.5
√ √
1 Show that the set of functions, 𝑓1 (𝑥) = 𝑥 + 5, 𝑓2 (𝑥) = 𝑥 + 5𝑥, 𝑓3 (𝑥) = 𝑥 − 1 and
𝑓4 (𝑥) = 𝑥 2 is linearly dependent on (0, ∞).
2 Show that the set of functions, sin2 (𝑥), cos2 (𝑥), sec2 (𝑥) and tan2 (𝑥) is linearly
dependent on (− 𝜋2 , 𝜋2 ).
Exercise
1 Check the independet of {cos(𝑥), sin(𝑥)} for every where.
Check the dependent of ln(𝑥), 𝑒 𝑥 , ln(𝑥 2 ) on (0, ∞).
2
21 / 67
General Solutions, Basis, Initial Value Probelem
Definition 1.5
The set {𝑦 1 , 𝑦 2 } is called a fundamental system of solution (fss) or a basis of solution, if 𝑦 1
and 𝑦 2 are linearly independent.
Theorem 1.1
Let 𝑦 1 and 𝑦 2 be any two linearly independent solutions of 𝑦 00 + 𝑝(𝑥)𝑦 0 + 𝑓 (𝑥)𝑦 = 0. If 𝑦 3 = 𝑦 3 (𝑥)
is any other solutions of 𝑦 00 + 𝑝(𝑥)𝑦 0 + 𝑓 (𝑥)𝑦 = 0, then there are constants 𝛼1 and 𝛼2 such that
𝑦 3 (𝑥) = 𝛼1 𝑦 1 (𝑥) + 𝛼2 𝑦 2 (𝑥)
⇒ 𝑦 = 𝛼1 𝑦 1 + 𝛼2 𝑦 2
is a general solution.
22 / 67
General Solutions, Basis, Initial Value Probelem
Example 1.6
23 / 67
Given One Solution to Find Another
=⇒ 𝑦 2 = 𝑢𝑦 1 =⇒ 𝑦 20 = 𝑢 0 𝑦 1 + 𝑢𝑦 10
24 / 67
Given One Solution to Find Another
⇐⇒ 𝑢 00 𝑦 1 + 2𝑢 0 𝑦 10 + 𝑝(𝑥)𝑢 0 𝑦 1 = 0
25 / 67
Given One Solution to Find Another
−2𝑦 10
1
⇐⇒ 𝑑𝑧 = − 𝑝(𝑥) 𝑑𝑥.........separable.
𝑧 𝑦1
∫
⇐⇒ ln |𝑧| + 2 ln |𝑦 1 | = − 𝑝(𝑥)𝑑𝑥
∫
⇐⇒ 𝑧𝑦 21 = 𝑒 − 𝑝(𝑥)𝑑𝑥
or ∫
𝑒− 𝑝(𝑥)𝑑𝑥
𝑑𝑢
𝑧= = 𝑢0 =
𝑦 21 𝑑𝑥
∫ ∫
𝑒− 𝑝 ( 𝑥) 𝑑𝑥
𝑒− 𝑝 ( 𝑥) 𝑑𝑥
Thus 𝑢 = 𝑑𝑥 and 𝑦 2 (𝑥) = 𝑦 1 (𝑥). 𝑑𝑥 is the solution of (1.1), which is linearly
∫ ∫
𝑦12 𝑦12
independent with 𝑦 1 .
26 / 67
Given One Solution to Find Another
Example 1.7
Solution.
In this differential equation 𝑝(𝑥) = − 1𝑥 =⇒ 𝑝(𝑥)𝑑𝑥 = − 1𝑥 𝑑𝑥 = − ln |𝑥| = − ln(𝑥) on (0, ∞),
∫ ∫
∫
∫ − 𝑝 ( 𝑥) 𝑑𝑥
𝑑𝑥 = 𝑥 𝑥𝑥2 𝑑𝑥 = 𝑥 ln |𝑥| = 𝑥 ln(𝑥) on 𝐼 = (0, ∞), i.e., {𝑥, ln(𝑥)} is fss.
∫
𝑦 2 (𝑥) = 𝑦 1 (𝑥). 𝑒 𝑦 2
1
Hence 𝑦 = 𝑐 1 𝑥 + 𝑐 2 𝑥 ln(𝑥) is the general solution of the given differential equation.
27 / 67
Given One Solution to Find Another
Example 1.8
28 / 67
Differential Operator
Definition 1.6
Note
𝑑 𝑥 , 𝑑 𝑥2 , 𝑑 𝑥3 , · · · , denoted by 𝐷, 𝐷 2 , 𝐷 3 , · · · respectively.
𝑑 𝑑2 𝑑3
29 / 67
Differential Operator
Remark
1 Two operators 𝐴 and 𝐵 are equal if and only if 𝐴𝑦 = 𝐵𝑦 for all functions 𝑦.
2 The linear DE of the 𝑛𝑡 ℎ order with constant coefficient,
𝑑𝑛 𝑦 𝑑 𝑛−1 𝑦 𝑑 𝑛−2 𝑦 𝑑𝑦
𝑐𝑛 𝑛
+ 𝑐 𝑛−1 + 𝑐 𝑛−2 𝑛−2
+ ... + 𝑐 1 + 𝑐 0 𝑦 = 𝑟 (𝑥), (1.2)
𝑑𝑥 𝑑𝑥 𝑛−1 𝑑𝑥 𝑑𝑥
can be written using the differential operator as:
⇐⇒ 𝑓 (𝐷)𝑦 = 𝑟 (𝑥),
where 𝑓 (𝐷) = 𝑐 𝑛 𝐷 𝑛 + 𝑐 𝑛−1 𝐷 𝑛−1 + 𝑐 𝑛−2 𝐷 𝑛−2 + ... + 𝑐 1 𝐷 + 𝑐 0 . 30 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Form:
𝑦 00 + 𝑎𝑦 0 + 𝑏𝑦 = 0. (1.3)
Differential operator form:(𝐷 2 + 𝑎𝐷 + 𝑏)𝑦 = 0.
Claim: To solve (1.3)
Trial solution: 𝑦 = 𝑒 𝑚𝑥 =⇒ 𝑦 0 = 𝑚𝑒 𝑚𝑥 and 𝑦 00 = 𝑚 2 𝑒 𝑚𝑥 .
31 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
32 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Example 1.10
Solve 2𝑦 00 − 3𝑦 0 = 0.
Solution.
Trial solution. 𝑦(𝑥) = 𝑒 𝑚𝑥 =⇒ 𝑦 0 = 𝑚𝑒 𝑚𝑥 =⇒ 𝑦 00 = 𝑚 2 𝑒 𝑚𝑥
Substituting. 2𝑚 2 𝑒 𝑚𝑥 − 3𝑚𝑒 𝑚𝑥 = 0 or (2𝑚 2 − 3𝑚)𝑒 𝑚𝑥 = 0.
CE. 2𝑚 2 − 3𝑚 = 0.
CR. 𝑚 1 = 0, 𝑚 2 = 32 .
33 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
n o
Hence {𝑦 1 (𝑥), 𝑦 2 (𝑥)} = 1, 𝑒 2 𝑥 is fss and 𝑦(𝑥) = 𝑐 1 𝑦 1 (𝑥) + 𝑐 2 𝑦 2 (𝑥) = 𝑐 1 + 𝑐 2 𝑒 2 𝑥 is the general
3 3
solution.
Example 1.11
4𝑦 00 − 5𝑦 0 = 0, 𝑦(−2) = 0, 𝑦 0 (−2) = 7.
34 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Case (2). 𝑎 2 − 4𝑏 = 0 then the characteristic equation has only one double real root, i.e., 𝑚 =
− 𝑎2 (double). Therefore, 𝑦 1 (𝑥) = 𝑒 − 2 𝑥 is one solution. To find 𝑦 2 (𝑥) apply given one solution to
𝑎
∫ 𝑒 − ∫ 𝑝 ( 𝑥) 𝑑𝑥
find another, i.e., 𝑦 00 + 𝑎𝑦 0 + 𝑏𝑦 = 0 =⇒ 𝑝(𝑥) = 𝑎. Therefore, 𝑦 2 (𝑥) = 𝑦 1 (𝑥). 𝑦12 ( 𝑥 )
=
∫
− 𝑎𝑑𝑥
𝑒 − 2 𝑥 . 𝑒 − 𝑎 𝑥 2 = 𝑥𝑒 − 2 𝑥 . Hence, 𝑒 − 2 𝑥 , 𝑥𝑒 − 2 𝑥 is fss and 𝑦(𝑥) = 𝑐 1 𝑒 − 2 𝑥 + 𝑐 2 𝑥𝑒 − 2 𝑥 is the general
𝑎 ∫ 𝑎 𝑎 𝑎 𝑎 𝑎
𝑒 2
solution.
35 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Example 1.12
1 Solve 𝑦 00 + 4𝑦 0 + 4𝑦 = 0.
2 Solve the following IVP
36 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Case(3).𝑎 2 − 4𝑏 < 0
The characteristic equation has complex solutions:
√ √ √
𝑚 1,2 = −𝑎± 𝑎2 −4𝑏
2 = −𝑎± 4𝑏−𝑎2 𝑖
2 =⇒ 𝑚 = 𝑚 1,2 = 𝛼 ± 𝛽𝑖, where 𝛼 = − 𝑎2 and 𝛽 = 4𝑏−𝑎2
2
Note. From Euler’s formula:
𝑒 𝑖 𝜃 = cos(𝜃) + 𝑖 sin(𝜃), 𝜃 ∈ R and 𝑒 −𝑖 𝜃 = cos 𝜃 − 𝑖 sin 𝜃 then 𝑒 ( 𝛼+𝛽𝑖) 𝑥 = 𝑒 𝛼𝑥 (cos(𝛽𝑥) + 𝑖 sin(𝛽𝑥)) =
𝑦 1 (𝑥) and 𝑒 ( 𝛼−𝛽𝑖) 𝑥 = 𝑒 𝛼𝑥 (cos(𝛽𝑥) − 𝑖 sin(𝛽𝑥)) = 𝑦 2 (𝑥). Now, let 𝑦 ∗1 (𝑥) = ( 𝑦1 +𝑦
2
2)
= 𝑒 𝛼𝑥 cos(𝛽𝑥)
and 𝑦 ∗2 (𝑥) = − 12 𝑖(𝑦 1 − 𝑦 2 ) = 𝑒 𝛼𝑥 sin(𝛽𝑥). Therefore, 𝑦 ∗1 (𝑥), 𝑦 ∗2 (𝑥) = {𝑒 𝛼𝑥 cos(𝛽𝑥), 𝑒 𝛼𝑥 sin(𝛽𝑥)}
37 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Example 1.13
Solve 𝑦 00 − 2𝑦 0 + 10𝑦 = 0.
Solution.
CE. 𝑚 2 − 2𝑚 + 10 = 0
CR. 𝑚 1 = 1 + 3𝑖, 𝑚 2 = 1 − 3𝑖
this implies 𝛼 = 1, 𝛽 = 3
𝑦 = 𝑒 𝑥 (𝑐 1 cos(3𝑥) + 𝑐 2 sin(3𝑥))
38 / 67
Real Roots, Complex Roots and Double Roots of the Characteristic
Equation
Exercise
Solve
00 0
2𝑦 + 9𝑦 − 5𝑦 = 0
1 𝑦(0) = 2
𝑦 0 (0) = 1
2 𝑦 00 + 5𝑦 0 + 6𝑦 = 0.
3 𝑦 00 = 0.
4 𝑦 00 − 2𝑦 0 − 5𝑦 = 0.
5 3𝑦 00 + 𝑦 0 − 10𝑦 = 0.
39 / 67
Annihilator
Definition 1.7
Let 𝐷 = 𝑑𝑑𝑥 (differential operator), if a differential operator, say 𝐴, applied to a function, say
𝑈, results zero (i.e, 𝐴𝑈 = 0), the operator 𝐴 is said to be the annihilator 𝑈. If 𝐴𝑈 = 0, we
say, 𝐴 is annihilator of 𝑈.
Example 1.14
40 / 67
Annihilator
Function Annihilator
𝑥 𝑚−1 𝐷𝑚
𝑒 𝛼𝑥 𝐷−𝛼
cos(𝛽𝑥) 𝐷 2 + 𝛽2
sin(𝛽𝑥) 𝐷 2 + 𝛽2
𝑥 𝑚−1 𝑒 𝛼𝑥 (𝐷 − 𝛼) 𝑚
𝑥 𝑚−1 cos(𝛽𝑥) (𝐷 2 + 𝛽2 ) 𝑚
𝑥 𝑚−1 sin(𝛽𝑥) (𝐷 2 + 𝛽2 ) 𝑚
𝑒 𝛼𝑥 cos(𝛽𝑥) 𝐷 2 − 2𝛼𝐷 + (𝛼2 + 𝛽2 )
𝑒 𝛼𝑥 sin(𝛽𝑥) 𝐷 2 − 2𝛼𝐷 + (𝛼2 + 𝛽2 )
𝑥 𝑚−1 𝑒 𝛼𝑥 cos(𝛽𝑥) (𝐷 2 − 2𝛼𝐷 + (𝛼2 + 𝛽2 )) 𝑚
𝑥 𝑚−1 𝑒 𝛼𝑥 sin(𝛽𝑥) (𝐷 2 − 2𝛼𝐷 + (𝛼2 + 𝛽2 )) 𝑚
41 / 67
Annihilator
Note.
It is difficult to find the annihilator for the functions like 𝑒 𝑥 , log(𝑥), tan(𝑥).
2
42 / 67
Non-homogeneous Second Order Linear DE with constant coefficients
43 / 67
Steps to Solve 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Undetermined Coefficient (UC)
The differential equation 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) has constant coefficients and the function 𝑟 (𝑥) consists of
finite sums and products of constants, polynomials, exponential functions (𝑒 𝛼𝑥 ), sines and cosines.
44 / 67
Steps to Solve 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Undetermined Coefficient (UC)
Step-5. Substitute 𝑦 𝑝 found in Step-4 in to 𝑓 (𝐷)𝑦 = 𝑟 (𝑥). Match coefficients of various function on
each side of the equality and solve the resulting system of equations for the unknown coefficients in
𝑦 𝑝.
Step-6. With the particular solution (𝑦 𝑝 ) found in step-5 form the general solution 𝑦 = 𝑦 𝑐 + 𝑦 𝑝 of
the DE.
Example 1.15
45 / 67
Steps to Solve 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Undetermined Coefficient (UC)
Solution. 𝑦 00 + 8𝑦 = 5𝑥 + 2𝑒 −𝑥 .....(∗)
[Link]: 𝑦 00 + 8𝑦 = 0.
CE: 𝑚 2 + 8 = 0.√
CR: 𝑚 1,2 = ±𝑖2 2. √ √
Therefore 𝑦 𝑐 = 𝑐 1 cos(2 2𝑥) + 𝑐 2 sin(2 2𝑥). Since 𝐷 2 5𝑥 = 0 = (𝐷 + 1)2𝑒 −𝑥 , the annihilator of
5𝑥 + 2𝑒 −𝑥 is 𝐷 2 (𝐷 + 1). Now, apply 𝐷 2 (𝐷 + 1) to (∗), we have 𝑦 00 + 8𝑦 = 5𝑥 + 2𝑒 −𝑥 ⇐⇒ (𝐷 2 +
8)𝑦 = 5𝑥 + 2𝑒 −𝑥 ⇐⇒ 𝐷 2 (𝐷 + 1) (𝐷 2 + 8)𝑦 = 𝐷 2 (𝐷 + 1) [5𝑥 + 𝑒 −𝑥 ] = 0 ⇐⇒ 𝐷 2 (𝐷 + 1) (𝐷 2 + 8)𝑦 =
0.
CE: 𝑚 2 (𝑚 + 1)(𝑚 2
√ + 8) = 0.
CR: 0, 0, −1, +2
√ 2. √
𝑦 𝑝 = 𝑐 1 cos(2 2𝑥) + 𝑐 2 sin(2 2𝑥) + 𝐴 + 𝐵𝑥 + 𝑐𝑒 −𝑥 . Now, delete the duplicate terms in 𝑦 𝑐 , then
𝑦 𝑝 = 𝐴 + 𝐵𝑥 + 𝐶𝑒 −𝑥 ⇐⇒ 𝑦 0𝑝 = 𝐵 − 𝐶𝑒 −𝑥 ⇐⇒ 𝑦 00𝑝 = 𝐶𝑒 −𝑥
Substituting 𝑦 𝑝 , 𝑦 00𝑝 in (∗).
46 / 67
Steps to Solve 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Undetermined Coefficient (UC)
𝐶𝑒 −𝑥 + 8( 𝐴 + 𝐵 + 𝐶𝑒 −𝑥 ) = 5𝑥 + 2𝑒 −𝑥 ⇐⇒ 9𝐶𝑒 −𝑥 + 8𝐴 + 8𝐵𝑥 = 5𝑥 + 2𝑒 −𝑥 ⇐⇒ 𝐴 = 0, 𝐵 = 58 , 𝐶 =
√ √
9 . Therefore 𝑦 = 𝑦 𝑐 + 𝑦 𝑝 = 𝑐 1 cos(2 2) + 𝑐 2 sin(2 2) + 8 𝑥 + 8 𝑥 is the general solution.
2 5 2
Example 1.16
𝑦 00 − 4𝑦 0 − 12𝑦 = 3𝑒 5𝑥 + sin(2𝑥) + 𝑥𝑒 4𝑥 .
47 / 67
Steps to Solve 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Undetermined Coefficient (UC)
Exercise
Solve the following Differential Equation using the methods of undetermined coefficient.
1 𝑦 00 − 𝑦 0 − 12𝑦 = 𝑒 4𝑥 .
2 𝑦 00 + 25𝑦 = 6𝑠𝑖𝑛(𝑥).
3 𝑦 00 + 6𝑦 0 + 9𝑦 = −𝑥𝑒 4𝑥 .
4 𝑦 00 − 2𝑦 0 + 5𝑦 = 𝑒 𝑥 𝑠𝑖𝑛𝑥.
48 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
Let a set {𝑦 1 , 𝑦 2 } be a fss of 𝑓 (𝐷)𝑦 = 𝑟 (𝑥). The complementary solution of 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) is
𝑦 𝑐 = 𝑐 1 𝑦 1 (𝑥) + 𝑐 2 𝑦 2 (𝑥), 𝑐 1 = 𝑐 2 = 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡𝑠. To determine 𝑦 𝑝 vary the constant 𝑐 1 and 𝑐 2 to
functions of 𝑥, that is, 𝑦 𝑝 (𝑥) = 𝑐 1 (𝑥)𝑦 1 (𝑥) + 𝑐 2 (𝑥)𝑦 2 (𝑥), where 𝑐 1 (𝑥), 𝑐 2 (𝑥) are functions of 𝑥. Then
𝑦 0𝑝 = 𝑐 01 (𝑥)𝑦 1 (𝑥) + 𝑐 1 (𝑥)𝑦 10 (𝑥) + 𝑐 02 (𝑥)𝑦 2 (𝑥) + 𝑐 2 (𝑥)𝑦 20 (𝑥) ⇐⇒ 𝑦 00𝑝 (𝑥) = 𝑐 00
1
(𝑥)𝑦 10 (𝑥) + 2𝑐 01 (𝑥)𝑦 10 (𝑥) +
00 00 0 00
𝑐 1 (𝑥)𝑦 1 (𝑥) + 𝑐 2 (𝑥)𝑦 2 (𝑥) + 2𝑐 2 (𝑥)𝑦 2 (𝑥) + 𝑐 2 (𝑥)𝑦 2 (𝑥).
Substituting in (1.3):
𝑐 00
1 1
𝑦 0 + 2𝑐 01 𝑦 10 + 𝑐 1 𝑦 100 + 𝑐 00
2 2
𝑦 + 2𝑐 02 𝑦 20 + 𝑐 2 𝑦 200 + 𝑝(𝑥) (𝑐 01 𝑦 1 + 𝑐 1 𝑦 10 + 𝑐 02 𝑦 2 + 𝑐 2 𝑦 200 ) + 𝑓 (𝑥) (𝑐 1 𝑦 1 + 𝑐 2 𝑦 2 ) =
𝑟 (𝑥)
⇐⇒ 𝑐 00 𝑦 + 2𝑐 01 𝑦 10 + 𝑐 00
1 1 2 2
𝑦 + 2𝑐 02 𝑦 20 + 𝑝(𝑥) (𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 ) + 𝑐 1 (𝑦 100 + 𝑝(𝑥)𝑦 10 + 𝑓 (𝑥)𝑦 1 ) + 𝑐 2 (𝑦 200 + 𝑝(𝑥)𝑦 20 +
𝑓 (𝑥)𝑦 2 ) = 𝑟 (𝑥)
49 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
⇐⇒ (𝑐 00
1 1
𝑦 + 𝑐 01 𝑦 10 + 𝑐 00
2 2
𝑦 + 𝑐 02 𝑦 20 ) + (𝑐 01 𝑦 10 + 𝑐 02 𝑦 20 ) + 𝑝(𝑥) (𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 ) = 𝑟 (𝑥)
⇐⇒ (𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 ) 0 + (𝑐 01 𝑦 10 + 𝑐 02 𝑦 20 ) + 𝑝(𝑥) (𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 ) = 𝑟 (𝑥). Choose 𝑐 1 (𝑥) and 𝑐 2 (𝑥) so that
𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 = 0, then 𝑐 01 𝑦 10 + 𝑐 02 𝑦 20 = 𝑟 (𝑥).
𝑐 01 𝑦 1 + 𝑐 02 𝑦 2 = 0
Now, solve
𝑐 01 𝑦 10 + 𝑐 02 𝑦 20 = 𝑟 (𝑥)
𝑦1 𝑦2
Since 𝑊 (𝑥) = = 𝑦 1 𝑦 20 − 𝑦 10 𝑦 2 ≠ 0
𝑦 10 𝑦 20
From Cramer’s rule, 𝑐 01 (𝑥) and 𝑐 02 (𝑥) are uniquely determined, that is,
0 𝑦2 𝑦1 0
𝑟 (𝑥) 𝑦 0 (𝑥) 𝑦 0 𝑟 (𝑥)
𝑐 01 (𝑥) = 𝑊 (𝑥)
2
and 𝑐 02 (𝑥) = 1
𝑊 (𝑥) .
50 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
∫
(𝑦 2 (𝑥)) (𝑟 (𝑥))
Then 𝑐 01 (𝑥) = − ( 𝑦2 (𝑊
𝑥 ) ) (𝑟 ( 𝑥 ) )
(𝑥) ⇐⇒ 𝑐 1 (𝑥) = − 𝑑𝑥
𝑊 (𝑥)
∫
𝑦 1 (𝑥)𝑟 (𝑥)
and 𝑐 02 (𝑥) = ( 𝑦1 ( 𝑥 ) ) (𝑟 ( 𝑥 ) )
𝑊 (𝑥) ⇐⇒ 𝑐 2 (𝑥) = 𝑑𝑥
𝑊 (𝑥)
Therefore 𝑦 𝑝 (𝑥) = 𝑐 1 (𝑥)𝑦 1 (𝑥) + 𝑐 2 (𝑥)𝑦 2 (𝑥). Hence 𝑦 = 𝑦 𝑐 + 𝑦 𝑝 is the general solution.
Example 1.17
Solve 𝑦 00 − 2𝑦 0 + 𝑦 = 1 𝑥
𝑥2
𝑒 , 𝑥 > 0 using VP.
51 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
Solution. 𝑦 00 − 2𝑦 0 + 𝑦 = 1 𝑥
𝑥2
𝑒 .
[Link]: 𝑦 00 − 2𝑦 0 + 𝑦 = 0.
CE: 𝑚 2 − 2𝑚 + 𝑚 = 0.
CR: 𝑚 = 1 (double).
Thus, 𝑦 𝑐 (𝑥) = 𝑐 1 𝑒 𝑥 + 𝑐 2 𝑥𝑒 𝑥 . To find 𝑦 𝑝 , we vary 𝑐 1 and 𝑐 2 as a function of 𝑥, i.e.,𝑦 𝑝 = 𝑐 1 (𝑥)𝑒 𝑥 +
𝑐 2 (𝑥)𝑥𝑒 𝑥 . Since 𝑦 1 (𝑥) = 𝑒 𝑥 ⇐⇒ 𝑦 10 (𝑥) = 𝑒 𝑥 and 𝑦 2 (𝑥) = 𝑥𝑒 𝑥 ⇐⇒ 𝑦 20 (𝑥) = 𝑒 𝑥 + 𝑥𝑒 𝑥 .
52 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
53 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
Example 1.18
54 / 67
Solving 𝑓 (𝐷)𝑦 = 𝑟 (𝑥) Using Variation of Parameters (VP)
Exercise
Solve the following using VP.
00
𝑦 + 4𝑦 = sec(2𝑥)
1 𝑦(0) = 1
𝑦 0 (0) = 2
2 𝑦 00 − 2𝑦 0 + 𝑦 = 𝑒 𝑥 ln(𝑥), 𝑥 > 0.
55 / 67
Euler’s-Cauchy DEs
Definition 1.8
Any DE of the form
𝑎 𝑛 𝑥 𝑛 𝐷 𝑛 𝑦 + 𝑎 𝑛−1 𝑥 𝑛−1 𝐷 𝑛−1 𝑦 + · · · + 𝑎 1 𝑥𝐷 𝑦 + 𝑎 0 𝑦 = 𝑔(𝑥), where 𝑎 𝑛 , 𝑎 𝑛−1 , ..., 𝑎 1 , 𝑎 0 are con-
stants is called Euler’s DE.
56 / 67
Second Order Euler’s Differential Equation (SOEDE)
Form:
𝑎 2 𝑥 2 𝐷 2 𝑦 + 𝑎 1 𝑥𝐷 𝑦 + 𝑎 0 𝑦 = 𝑔(𝑥). (1.4)
[Link]:
𝑎 2 𝑥 2 𝐷 2 𝑦 + 𝑎 1 𝑥𝐷 𝑦 + 𝑎 0 𝑦 = 0. (1.5)
Trial solution: 𝑦 = 𝑥 𝑚 , where 𝑚 to be determined.
=⇒ 𝑦 0 = 𝑚𝑥 𝑚−1 , 𝑦 00 = 𝑚(𝑚 − 1)𝑥 𝑚−2
Substituting in (1.5):
𝑎 2 𝑥 2 𝐷 2 𝑦 + 𝑎 1 𝑥𝐷 𝑦 + 𝑎 0 𝑦 = 0.
=⇒ 𝑎 2 𝑚(𝑚 − 1)𝑥 𝑚 + 𝑎 1 𝑚𝑥 𝑚 + 𝑎 0 𝑥 𝑚 = 0
57 / 67
Second Order Euler’s Differential Equation (SOEDE)
=⇒ 𝑎 2 𝑚(𝑚 − 1) + 𝑎 1 𝑚 + 𝑎 0 = 0,since 𝑥 𝑚 ≠ 0
=⇒ 𝑎 2 𝑚 2 + (𝑎 1 − 𝑎 2 )𝑚 + 𝑎 0 = 0 (1.6)
which is the CE of (1.5).
Case-1: If 𝑚 1 and 𝑚 2 are distinct real roots of (1.6). Then {𝑦 1 (𝑥), 𝑦 2 (𝑥)} = {𝑥 𝑚1 , 𝑥 𝑚2 } is fss. Hence
𝑦 = 𝑐 1 𝑥 𝑚1 + 𝑐 2 𝑥 𝑚2 is the general solution.
Example 1.19
Solve 𝑥 2 𝐷 2 𝑦 − 2𝑥𝐷𝑦 − 4𝑦 = 0.
58 / 67
Second Order Euler’s Differential Equation (SOEDE)
Solution:
Trial solution: 𝑦 = 𝑥 𝑚 .
CE: 𝑚 2 − 3𝑚 − 4 = 0.
CR: 𝑚 1,2 = −1, 4.
𝑦 = 𝑐 1 𝑥 −1 + 𝑐 2 𝑥 4 is the general solution.
(𝑎 2 − 𝑎 1 )
𝑚 = 𝑚1 = 𝑚2 = .
2𝑎 2
𝑎2 −𝑎1
( )
Hence 𝑦 1 (𝑥) = 𝑥 2𝑎2
is one solution. To find the other solution apply given one solution to find
another, i.e.,
𝑎 2 𝑥 2 𝐷 2 𝑦 + 𝑎 1 𝑥𝐷 𝑦 + 𝑎 0 𝑦 = 0.
59 / 67
Second Order Euler’s Differential Equation (SOEDE)
𝑎1 𝑎0
⇐⇒ 𝐷 2 𝑦 + 𝐷𝑦 + 𝑦 = 0.
𝑎2𝑥 𝑎2𝑥 2
∫
𝑒− 𝑝(𝑥)𝑑𝑥
∫
𝑚
⇐⇒ 𝑦 2 = 𝑥 𝑑𝑥
𝑥 𝑚2
∫ 𝑎1
∫ − 𝑎2 𝑥 𝑑 𝑥
𝑚 𝑒
=𝑥 𝑎2 −𝑎1 2
𝑑𝑥
( 2𝑎2 )
𝑥
𝑎
∫ − 𝑎1 ln( 𝑥 )
𝑒 2
= 𝑥𝑚 (𝑎2 −𝑎1 )
𝑑𝑥 = 𝑥 𝑚 ln(𝑥).
𝑎2
𝑥
60 / 67
Second Order Euler’s Differential Equation (SOEDE)
𝑎2 −𝑎1 𝑎2 −𝑎1
Therefore 𝑦(𝑥) = 𝑐 1 𝑦 1 + 𝑐 2 𝑦 2 = 𝑐 1 𝑥 2𝑎2
+ 𝑐 2 ln(𝑥)𝑥 2𝑎2
is the general solution.
Example 1.20
Solve 4𝑥 2 𝐷 2 𝑦 + 8𝑥𝐷𝑦 + 𝑦 = 0.
Solution.
Trial solution: 𝑦 = 𝑥 𝑚
CE: 4𝑚 2 + (8 − 4)𝑚 + 1 = 0 ←→ 4𝑚 2 + 4𝑚 + 1 = 0
CR: 𝑚 1,2 = − 12 (double). Therefore, 𝑦 1 (𝑥) = 𝑥 − 2 and 𝑦 2 (𝑥) = 𝑥 − 2 ln( 𝑥 ) . Hence 𝑦(𝑥) = 𝑐 1 𝑥 − 2 +
1 1 1
61 / 67
Second Order Euler’s Differential Equation (SOEDE)
Note
For higher order Euler’s DE. If 𝑚 is a root of multiplicity 𝑘 > 1, then it can be shown that,
𝑥 𝑚 , 𝑥 𝑚 ln(𝑥), 𝑥 𝑚 (ln(𝑥)) 2 , · · · , 𝑥 𝑚 (ln(𝑥)) 𝑘−1 are 𝑘 linearly independent solutions.
𝑦 = 𝑐 1 𝑥 𝛼+𝑖𝛽 + 𝑐 2 𝑥 𝛼−𝑖𝛽
= 𝑥 𝛼 (𝑐 1 𝑥 𝑖𝛽 + 𝑐 2 𝑥 −𝑖𝛽 )
= 𝑥 𝛼 (𝑐 1 (cos(𝛽 ln(𝑥)) + 𝑖 sin(𝛽 ln(𝑥))) + 𝑐 2 (cos(𝛽 ln(𝑥)) − 𝑖 sin(𝛽 ln(𝑥))))
= 𝑥 𝛼 ((𝑐 1 + 𝑐 2 ) cos(𝛽 ln(𝑥)) + (𝑐 1 − 𝑐 2 )𝑖 sin(𝛽 ln(𝑥)))
= 𝑥 𝛼 (𝑘 1 cos(𝛽 ln(𝑥)) + 𝑘 2 sin(𝛽 ln(𝑥))) is the general solution, where 𝑘 1 = 𝑐 1 + 𝑐 2 and 𝑘 2 = (𝑐 1 −
𝑐 2 )𝑖.
62 / 67
Second Order Euler’s Differential Equation (SOEDE)
Example 1.21
Solve 𝑥 2 𝑦 00 + 3𝑥𝑦 0 + 3𝑦 = 0.
Solution:
CE: 𝑚 2 +√2𝑚 + 3 = 0
CR: −1+ 2𝑖. √ √
Thus 𝑦 = 𝑥 −1 (𝑘 1 cos( 2 ln(𝑥)) + 𝑘 2 sin( 2 ln(𝑥))) is the general solution.
Exercise
Solve 𝑥 2 𝑦 00 − 3𝑥𝑦 0 + 3𝑦 = 2𝑥 4 𝑒 𝑥 (Hint: use Euler’s and VP method.)
63 / 67
System of First Order Ordinary Differential Equations (SOFOODEs)
Definition 1.9
1 The system of differential equations is a collection of equations in several unknown
functions and their derivatives.
2 The system is said to be linear if the unknown functions and their derivatives involve in
each equations only to the first power.
Note.
1 Each equation has at least one derivative.
2 A linear system is of normal form when it is solved for all derivatives.
64 / 67
System of First Order Ordinary Differential Equations (SOFOODEs)
Example 1.22
𝑑𝑥 3
= 𝑥 − 𝑦 + 𝑡2 (1.7)
𝑑𝑡 2
𝑑𝑦
= −4𝑥 − 2𝑦 + 4𝑡 + 1 (1.8)
𝑑𝑡
is linear and is of normal form. Find the solution for this system of differential equation.
Example 1.23
65 / 67
System of First Order Ordinary Differential Equations (SOFOODEs)
𝑑 2 𝑥 𝑑𝑥 𝑑𝑦
= − + 3𝑡. (1.9)
𝑑𝑡 2 𝑑𝑡 𝑑𝑡
66 / 67
System of First Order Ordinary Differential Equations (SOFOODEs)
𝑑2 𝑥
𝑑𝑡 2
+ 𝑑𝑥
𝑑𝑡 − 6𝑥 = 3𝑡 2 − 4𝑡 − 1
⇐⇒ 𝑥 = 𝑐 1 𝑒 2𝑡 + 𝑐 2 𝑒 −3𝑡 − 12 𝑡 2 is the general solution for 𝑥 and if we substitute this in to equation (1.7),
we get the other solution, that is, 𝑦 = − 𝑑𝑑𝑡𝑥 + 𝑥 + 32 𝑡 2 = −𝑐 1 𝑒 2𝑡 + 4𝑐 2 𝑒 −3𝑡 + 𝑡 2 + 𝑡. Therefore the solution
of the system is {𝑥(𝑡), 𝑦(𝑡)}, where 𝑥 = 𝑐 1 𝑒 2𝑡 + 𝑐 2 𝑒 −3𝑡 − 12 𝑡 2 and 𝑦 = −𝑐 1 𝑒 2𝑡 + 4𝑐 2 𝑒 −3𝑡 + 𝑡 2 + 𝑡.
Exercise
Solve
( 𝑑𝑥
𝑑𝑡 = 4𝑥 − 𝑦
1
𝑑𝑦
𝑑𝑡 = 2𝑥 + 𝑦
( 𝑑𝑥
𝑑𝑡 = 𝑥 + 2𝑦 + 𝑡 − 1
2
𝑑𝑦
𝑑𝑡 = 3𝑥 + 2𝑦 − 5𝑡 − 2
67 / 67