Dr. Firas K. AL-Zuhairi: Ordinary Differential Equation
Dr. Firas K. AL-Zuhairi: Ordinary Differential Equation
1
Basic Concepts
Equation: Equations describe the relations between the dependent and
independent variables. An equal sign "=" is required in every equation.
2
Differential equations that involve only one independent variable are called
ordinary differential equations.
If there are two or more independent variables then the derivatives are partial
derivatives and the equation is called Partial Differential Equation.
Differential Equations
d2y 2u 2u
2
6 xy 1 2 0
dx y 2
x
3
3
Order and Degree of Differential Equations
Order : order of differential equation is the order of the highest
derivative involved in the differential equation, for example:
Examples :
dy
First order because of max. derivative of y
y ex with respect to x is
dx
d2y dy
2
5 2 y cos( x)
dx dx
Second order because of max. derivative of y
3 with respect to x is
d y
2
dy
2
2y4 1
dx dx
4
Degree : Degree of differential equation is the Degree of the highest
differential, for example:
First degree because of power of the highest
order derivative is 1.
Second degree because of power of the
highest order derivative is 2.
Second degree because of power of the
highest order derivative is 2.
5
Linear or Non-linear ODE
Linear Equations: if the unknown function and its derivatives appear to power one. No
product of the unknown function and/or its derivatives, can be written in this form
an ( x) y n ( x) an 1 ( x) y n 1 ( x) a1 ( x) y ' ( x ) a0 ( x) y ( x) g ( x)
Or
Non-linear: Differential equations that do not satisfy the definition of linear are non-
linear.
6
Ex. Classify the Linearity of ODE
dy Linear ODE
1 y ex
dx
d2y dy
2 2 5 2 x 2 y cos( x) Linear ODE
dx dx
3
d y
2
dy Non-linear ODE
3 2 y 1
dx dx
7
Solution of Differential Equation
A function y=f(x) is said to be a solution of a differential equation if the
differential equation is satisfied when y and its derivatives are replaced
throughout by f(x) and its derivatives. For example if A, B and C are three
arbitrary constants then:
8
Problems:
Show that each function is the solution of the accompanying differential
equation:
Example1.
𝟐
𝑥− =0
𝒚= 𝒙 + 𝟑
𝒅𝒚
=𝟐 𝒙
𝒅𝒙
2
𝑑 𝑦
2
=2
𝑑𝑥
By substituting in differential equation we get:
𝑥 (2)−2𝑥=0 0=0
9
Example2.
𝑥−=0
𝒚=𝑪 𝟏 𝒙 𝟐 +𝑪 𝟐
𝒅𝒚
=𝟐𝑪 𝟏 𝒙
𝒅𝒙
𝒅𝟐 𝒚
𝟐
=𝟐 𝑪 𝟏
𝒅𝒙
By substituting in differential equation we get:
10
First Order Differential Equation
1) Variable Separable
A first order differential equation can be solved by integration if it is possible to
collect all y terms with dy and all x terms with dx that is if it possible to write the
differential equation in the form:
𝑓 ( 𝑦 ) 𝑑𝑦 + 𝑔 ( 𝑥 ) 𝑑𝑥=0
∫ 𝑓 ( 𝑦 )𝑑𝑦+∫ 𝑔 ( 𝑥 )𝑑𝑥=𝐶
Where C is any arbitrary constant
11
Examples : Solve the following differential equations:
(1) (2)
Solution: Solution:
(3) (4)
Solution: Solution:
(5) (6)
Solution: Solution:
14
(7) (8)
y +X =C
(9)
Solution:
(10)
2) Homogeneous
An equation of the form = F() …………………..(1)
Is called a homogeneous equation in which the variables cannot be separated but can
be transformed by a change of variable into an equation where the variable can be
separated,
Assuming ………………(2)
Then ………….............(3)
Differentiating equation (2) we get,
…..…………..……(4)
…..…………..……(6)
18
…..…………..……(7)
After integration and solution of equation (7)we must make a back substitution
of the variables to get the final answer.
Examples : Solve the following differential equations
1)
Solution:
2)
Solution:
3)
Solution:
Summary: In applying the method of variation of parameters to solve the equation