You are on page 1of 95

Ordinary differential equations

(ODEs)

- Ordinary differential equations (ODEs) are differential


equations that depend on a single variable.
- Modeling: translates a physical situation or some other
observations into a “mathematical model.”
Mathematical Modeling
• A model is very often an equation
containing derivatives of an
unknown function. Such a model
is called a differential equation

2
Ordinary differential equation (ODE)
• An ordinary differential equation (ODE) is an equation
that contains one or several
derivatives of an unknown function:

3
Ordinary differential equation (ODE)
• An ODE is said to be of order n if the nth derivative of the
unknown function y is the highest derivative of y in the equation.
• Concept of Solution: find y as y = h(x) in interval a<x<b

EXAMPLE1

4
Initial Value Problem
• A particular solution is obtained from a general solution by an initial
condition.

EXAMPLE
4

5
First-order ODEs
- First-order ODEs contain only the first derivative y’ and may contain
y and any given functions of x .

Or

6
First-order ODEs
• Solve first-order ODSs as follow:

7
First-order ODEs

• Separable ODEs as:

8
First-order ODEs
• Separable ODEs: Example

Ref: page 13
9
First-order ODEs
• Extended Method: Reduction to Separable Form

10
First-order ODEs
• Extended Method: Reduction to Separable Form

Example: Solve as

Solution:

Ref: page 18
11
First-order ODEs
Example: Solve as

12
First-order ODEs
• Exact ODEs. Integrating Factors
Condition:

From:

Then: And:

Ref: page 21
13
First-order ODEs
• Reduction to Exact Form. Integrating
Factors
From:

Then:
A function F(x,y) is then called an integrating factor of 12)

A case:

Ref: page 23
14
First-order ODEs
• Linear ODEs: can be brought into the form

In engineering, r(x) is frequently called the input, and


y(x) is called the output or the response to the input
(and, if given, to the initial condition).

15
First-order ODEs
• Homogeneous Linear ODE:

By separating variables and integrating:

the general solution of the homogeneous

16
First-order ODEs
• Nonhomogeneous Linear ODE: r(x) is nonzero

From:

Then:

17
First-order ODEs
• Nonhomogeneous Linear ODE (cont..): r(x) is nonzero

18
First-order ODEs
• Nonhomogeneous Linear ODE (cont..): r(x) is nonzero
Example: Electric
Circuit

solve the resulting


ODE for the current I(t)
A (amperes), where t is
time.

19
First-order ODEs
• Nonhomogeneous Linear ODE (cont..): r(x) is nonzero
Example: Electric
Circuit
According to Kirchoff laws the model of the RL-circuit:

the general solution

Ref: page 30 20
First-order ODEs
• Nonhomogeneous Linear ODE (cont..): r(x) is nonzero
Example: Electric
Circuit

Ref: page 30 21
First-order ODEs
• Reduction to Linear Form. Bernoulli Equation
Bernoulli equation

If a=0 or a=1, Bernoulli equation is linear


Otherwise it is nonlinear, set as:

get the linear ODE


Ref: page 31 22
First-order ODEs
• Reduction to Linear Form. Bernoulli Equation
Example:

Ref: page 32 23
Second-Order Linear ODEs
Linear Second-order DE

Homogeneous

Homogeneous Linear ODEs: Superposition Principle

25
Linear Second-order DE

Nonhomogeneous

26
Principle of superposition

• For linear and homogenous differential


equation, the linear combination of two
solutions is also a solution.

EXAMPLE 1: page 47

27
Initial Value Problem. Basis. General
Solution
• For a second-order homogeneous linear ODE: an
initial value problem consists of two initial
conditions:

• Two the initial conditions are used to determine the


two arbitrary constants c1 and c2 in a general solution

particular solution 28
Initial Value Problem. Basis. General
Solution
• Example: Solve the initial value problem

29
Initial Value Problem. Basis. General
Solution

Page: 49 30
Homogeneous Linear ODEs
with Constant Coefficients

coefficients a and b are constant


characteristic
equation

31
Homogeneous Linear ODEs
with Constant Coefficients

32
Page: 55 33
Euler–Cauchy Equations

Page: 71 34
Page: 71 35
Case III. Complex conjugate roots are of minor
practical importance.
Page: 72 36
Existence and Uniqueness
of Solutions

37
Nonhomogeneous ODEs

38
Method of Undetermined Coefficients
 To find a particular solution of (1), is suitable for linear
ODEs with constant coefficients a and b

39
Method of Undetermined
Coefficients

40
At page 82 41
At page 82 42
Modeling: Electric Circuits
• Pages: 93-97

43
Modeling: Electric Circuits

44
45
46
47
Higher Order Linear ODEs
Homogeneous Linear ODEs

Linear

Linear-homogeneous.

 Apply Superposition Principle General Solution (Section 3.1)

49
Refer Pape 107
50
Homogeneous Linear ODEs
with Constant Coefficients

The characteristic equation

Simple Complex Roots

Multiple Real Roots

Multiple Complex Roots

51
Nonhomogeneous Linear ODEs

Method of Undetermined Coefficients yp(x)


52
Systems of ODEs
Electrical Network
• Find the currents I1(t) and I2(t) in the network
in Fig. 79. Assume all currents and charges to
be zero at t=0, the instant when the switch is
closed.

54
55
56
57
Page 134
58
59
60
Laplace Transforms

The main purpose of Laplace transforms is the solution of differential equations and
systems of such equations, as well as corresponding initial value problems
62
Laplace Transform. Linearity.
First Shifting Theorem (s-Shifting)

63
Laplace Transform. Linearity.
First Shifting Theorem (s-Shifting)

Page: 205
64
Laplace Transform. Linearity.
First Shifting Theorem (s-Shifting)

65
Laplace Transform. Linearity.
First Shifting Theorem (s-Shifting)

66
Examples

67
Examples

68
Examples

Page: 207 69
70
s-Shifting: Replacing s by s-a in the
Transform

71
Example

72
Laplace Transform of Derivatives

73
74
Laplace Transform of Integral

75
Example

76
Page: 213
Differential Equations, Initial Value Problems

Page 213

77
78
Example: Solve the initial value problem

Page: 215 79
Shifted Data Problems: Solve

80
Page: 216
Unit Step Function (Heaviside Function).

81
Unit Step Function (Heaviside Function).

82
Unit Step Function (Heaviside Function).

83
Example

84
Example

85
Page: 220
Pages: 221

86
87
Pages: 221-224

88
Short Impulses. Dirac’s Delta Function.

 Dirac delta function or the unit impulse function:

89
Short Impulses. Dirac’s Delta Function.

g(t): continuous function

Proof: ?

90
Page: 228
91
Convolution. Integral Equations

92
93
94
Pages: 243-244
95

You might also like