Lec 3 Math
Lec 3 Math
Lec 3 Math
Emad Al-Hemiary
Second Year, First Semester 2021-2022
Basic Concepts
A differential equation is an equation involving an unknown function and its derivatives
Ordinary Differential Equation (ODE)
A differential equation where the unknown function depends on one independent variable.
Partial Differential Equation (PDE)
A differential equation where the unknown function depends on two or more independent
variables
Example 3.1: The following are differential equations involving unknown function 𝑦
𝑑𝑦
= 5𝑥 + 4
𝑑𝑥
𝑦
𝑑2𝑦 𝑑𝑦 2
𝑒 + 2( ) = 1 𝑂𝐷𝐸
𝑑𝑥 2 𝑑𝑥
𝑑3𝑦 𝑑2𝑦
4 3 + sin 𝑥 2 + 3𝑥𝑦 = 0}
𝑑𝑥 𝑑𝑥
𝜕 2𝑦 𝜕 2𝑦
− 4 = 0} 𝑃𝐷𝐸
𝜕𝑡 2 𝜕𝑥 2
The order of a differential equation is the order of the highest derivative appearing in the
equation.
In example 3.1, equation 1 is first-order, equation 2 is second-order, while equation 3 is third-
order.
Notation:
The following notations are used interchangeable:
𝑑𝑦 𝑑2 𝑦 𝑑4 𝑦 𝑑𝑛 𝑦
𝑦 ′ → 𝑑𝑥 , 𝑦 ′′ → 𝑑𝑥 2 , 𝑦 (4) → 𝑑𝑥 4 , …, 𝑦 (𝑛) → 𝑑𝑥 𝑛
1
Engineering Mathematics I Lecture 3: Ordinary Differential Equations Prof. Dr. Emad Al-Hemiary
Second Year, First Semester 2021-2022
Solution:
Differentiating 𝑦(𝑥):
𝑦 ′ = 2𝑐1 cos 2𝑥 − 2𝑐2 sin 2𝑥
𝑦 ′′ = −4𝑐1 sin 2𝑥 − 4𝑐2 cos 2𝑥
Hence:
𝑦 ′′ + 4𝑦 = (−4𝑐1 sin 2𝑥 − 4𝑐2 cos 2𝑥) + 4(𝑐1 sin 2𝑥 + 𝑐2 cos 2𝑥)
= −4𝑐1 sin 2𝑥 − 4𝑐2 cos 2𝑥 + 4𝑐1 sin 2𝑥 + 4𝑐2 cos 2𝑥 = 0
Thus, 𝑦(𝑥) = 𝑐1 sin 2𝑥 + 𝑐2 cos 2𝑥 satisfies the differential equation for all values of 𝑥 and is a
solution on the interval (−∞, ∞).
• A differential equation along with subsidiary conditions on the unknown function and its
derivatives, all given at the same value of the independent variable, constitutes an
initial-value problem. The subsidiary conditions are initial conditions.
• If the subsidiary conditions are given at more than one value of the independent
variable, the problem is a boundary-value problem, and the conditions are boundary
conditions.
2
Engineering Mathematics I Lecture 3: Ordinary Differential Equations Prof. Dr. Emad Al-Hemiary
Second Year, First Semester 2021-2022
Example 3.4:
• The problem 𝑦 ′′ + 2𝑦 ′ = 𝑒 𝑥 ; 𝑦(𝜋) = 1, 𝑦 ′ (𝜋) = 2 is an initial value problem because the
two subsidiary conditions are both given at 𝑥 = 𝜋.
• The problem 𝑦 ′′ + 2𝑦 ′ = 𝑒 𝑥 ; 𝑦(0) = 1, 𝑦(1) = 1 is a boundary value problem because the
two subsidiary conditions are both given at different values 𝑥 = 0 𝑎𝑛𝑑 𝑥 = 1.
Example 3.5
Determine the order, unknown function, and the independent variable in each of the following
differential equations:
Example 3.7
Is 𝑦(𝑥) = 1 a solution of 𝑦 ′′ + 2𝑦 ′ + 𝑦 = 𝑥?
Solution:
Since 𝑦 ′ = 0 and 𝑦 ′′ = 0, then 0 + 2(0) + 1 = 𝑥 → 1 ≠ 𝑥. Thus 𝑦(𝑥) = 1 is not a solution.
Example 3.8
1
Show that 𝑦 = (𝑥 2−1) is a solution of 𝑦 ′ + 2𝑥𝑦 2 = 0 on ℐ = (−1,1) but not on any larger interval
containing ℐ.
Solution:
1 −2𝑥
On the interval ℐ = (−1,1), 𝑦 = (𝑥 2−1) and its derivative 𝑦 ′ = (𝑥 2 −1)2 are well-defined functions.
Substituting these values into the differential equation, we have:
−2𝑥 1
𝑦 ′ + 2𝑥𝑦 2 = + 2𝑥 [ 2 ]=0
(𝑥 2− 1) 2 (𝑥 − 1)
1
Thus 𝑦 = (𝑥 2−1) is a solution in ℐ = (−1,1).
1
Note: however, that (𝑥 2 −1) is not defined at 𝑥 = ±1 and therefore could not be a solution on
any interval containing either of these two points.
Example 3.9
Find the solution to the initial-value problem 𝑦 ′ + 𝑦 = 0; 𝑦(3) = 2, if the general solution to the
differential equation is known to be 𝑦(𝑥) = 𝑐1 𝑒 −𝑥 , where 𝑐1 is an arbitrary constant.
Solution:
Since 𝑦(𝑥) = 𝑐1 𝑒 −𝑥 is a solution to the general initial-value problem 𝑦 ′ + 𝑦 = 0; 𝑦(3) = 2, then:
2
𝑦(3) = 2 = 𝑐1 𝑒 −3 → 𝑐1 = 𝑒 −3 = 2𝑒 3 .
Example 3.10
Find a solution to the initial-value problem 𝑦 ′′ + 4𝑦 = 0; 𝑦(0) = 0, 𝑦 ′ (0) = 1, if the general
solution to the differential equation is known to be 𝑦(𝑥) = 𝑐1 sin 2𝑥 + 𝑐2 cos 2𝑥.
4
Engineering Mathematics I Lecture 3: Ordinary Differential Equations Prof. Dr. Emad Al-Hemiary
Second Year, First Semester 2021-2022
Solution:
We proceed the same way:
𝑦(𝑥) = 𝑐1 sin 2𝑥 + 𝑐2 cos 2𝑥 → 𝑦(0) = 0 = 𝑐1 sin(0) + 𝑐2 cos(0) → 𝑐2 = 0
1
𝑦 ′ = 2𝑐1 cos 2𝑥 − 2𝑐2 sin 2𝑥 → 𝑦 ′ (0) = 2𝑐1 cos(0) − 2𝑐2 sin(0) → 1 = 2𝑐1 → 𝑐1 =
2
Thus:
1
𝑦(𝑥) = 2 sin 2𝑥 is a solution of the initial-value problem 𝑦 ′′ + 4𝑦 = 0
5
Engineering Mathematics I Lecture 3: Ordinary Differential Equations Prof. Dr. Emad Al-Hemiary
Second Year, First Semester 2021-2022
Separable Equations:
Consider a differential equation in differential form. If 𝑀 is a function of 𝑥 only and 𝑁 is a
function of 𝑦 only then the ODE is separable.
Exact Equations:
A differential equation in differential form is exact if:
𝜕𝑀(𝑥, 𝑦) 𝜕𝑁(𝑥, 𝑦)
=
𝜕𝑦 𝜕𝑥
Mathematical Modeling
Mathematical models can be thought of as equations.
Example:
𝑉 = 𝐼𝑅 models the voltage drop (measured in volts) across a resistor (measured in ohms), where
𝐼 is the current (measured in amperes).
Modeling Cycle:
Mathematical
Model
Real Mathematical
World Interpretation/ Solution
Communication