L01 Ode First Order
L01 Ode First Order
1
Mapúa University
Outline
Learning Objectives
Functional Relationships
Mathematical Origin of Differential Equations
Introduction to ODEs
Existence and Uniqueness of Solutions
First Order ODE’s
Determining Classification and Solution
Exercises
Applications
Solved Problems
Exercises in Applications
Exercises
Learning Objectives
Learning Objectives
f (x, y ) = 0
Functional Relationships
f (x, y ) = 0
y = g (x)
Functional Relationships
f (x, y ) = 0
y = g (x)
For example,
y = cx 2
Functional Relationships
f (x, y ) = 0
y = g (x)
For example,
y = cx 2
This equation describes a family of parabolas with vertices at the
origin.
Family of Parabolas with Vertices at the Origin
1,000
500
0
y
−500
−1,000
−6 −4 −2 0 2 4 6
x
Mathematical Origin of
Differential Equations
Mathematical Origin of Differential Equations
dy y
=2
dx x
This is the differential equation that describes the family of
parabolas represented also by y = cx 2 .
dy y
=2
dx x
This is the differential equation that describes the family of
parabolas represented also by y = cx 2 .
d 2y dy
+ p(x) + q(x)y = r (x)
dx 2 dx
Definitions: Order, Degree, Linearity
▶ Linear Example:
▶ Nonlinear Example:
y ′′ + sin(y ) = 0
Definitions: Order, Degree, Linearity
y = cx 2
y = 4x 2
is a particular solution of
dx y
=2
dy x
Definitions: Solutions and Boundary Conditions
F (x, y , C1 , C2 , C3 , . . . , Cn−1 , Cn ) = 0
dy
= y 2, y (0) = 1
dx
▶ Solution:
1
y (x) =
1−x
▶ Discussion:
▶ The solution exists and is unique for x < 1, but as x → 1, the
solution blows up (i.e., y (x) → ∞).
▶ This illustrates that the existence of a solution may be limited
to a specific interval.
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
Class: Separated
f1 (x)dx + f2 (y ) dy = 0
Equations of the First Order
Class: Separated
f1 (x)dx + f2 (y ) dy = 0
Solution: Z Z
f1 (x)dx + f2 (y ) dy = C
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
(xy 2 + y ) dx − x dy = 0
Equations of the First Order
(xy 2 + y ) dx − x dy = 0
Solution:
(xy 2 + y ) dx − x dy = 0
Solution:
(xy 2 + y ) dx − x dy = 0
Solution:
v2 v
dx
+ dx + v − dv = 0
x x x
dx dv
− =0
x v (v + 2)
Equations of the First Order
(xy 2 + y ) dx − x dy = 0
Solution:
dx dv
− =0
x v (v + 2)
1 v +2
ln x + ln = C1
2 v
Equations of the First Order
(xy 2 + y ) dx − x dy = 0
Solution:
1 v +2
ln x + ln = C1
2 v
1/2
v +2
x = e C1
v
Equations of the First Order
(xy 2 + y ) dx − x dy = 0
Solution:
v + 2 1/2
x = e C1
v
2 2
x 1+ = e 2C1 = C
xy
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
If ux is substituted for y ,
or
f1 (1, u)dx + f2 (1, u)(u dx + x du) = 0
Equations of the First Order
If ux is substituted for y ,
Solution:
Separating variables,
dx f2 (1, u) du
+ =0
x f1 (1, u) + uf2 (1, u)
Equations of the First Order
Class: Homogeneous Equations
If ux is substituted for y ,
Solution:
Separating variables,
dx f2 (1, u) du
+ =0
x f1 (1, u) + uf2 (1, u)
Z
f2 (1, u) du
ln x + =C
f1 (1, u) + uf2 (1, u)
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
(ax + by + c) dx + (gx + hy + k) dy = 0
Equations of the First Order
Class: First order, first degree with linear coefficients
(ax + by + c) dx + (gx + hy + k) dy = 0
x = w +m dx = dw
y = v +n dy = dv
am + bn + c = 0
gm + gh + k = 0
If a/g = b/h the two last equations are inconsistent. In this case,
the substitution w = ax + by is used to eliminate y in the first
order equation.
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
M dx + N dy = 0
with
∂M ∂N
=
∂y ∂x
Equations of the First Order
M dx + N dy = 0
with
∂M ∂N
=
∂y ∂x
Solution: The ODE is integrated directly.
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
R
The quantity exp P dx is called an integrating factor.
Equations of the First Order
Form
M(x, y ) dx + N(x, y ) dy = 0
M dx = N dy = 0
If
∂M ∂N
∂y − ∂x
= f (x)
N
R
then exp f (x) dx is an integrating factor.
Equations of the First Order
M dx = N dy = 0
If
∂M ∂N
∂y − ∂x
= f (y )
M
R
then exp f (y ) dy is an integrating factor.
Equations of the First Order
M dx = N dy = 0
If
M = yf1 (x, y )
and
N = yf2 (x, y )
then 1/(xM − yN) is an integrating factor.
Equations of the First Order
Yes
Is the ODE linear? Check if Separable
No
Check if Homogeneous
Check if Exact
3. x dy 2
dx + 3y = 4x − 3x, x > 0
dy 2 4
4. dx − x y = y
x+3 dy
5. 2x−3y −4 dx = 5
dy
6. dx + 3y = 2x − 1, y (0) = 3
Applications
Application 1: Newton’s Law of Cooling
mg
Motion
kv
Air Resistance
Ground
k
ln |mg − kv | = − t + C′
m
Exponentiate both sides:
k ′ k
|mg − kv | = e − m t+C = Ae − m t
v (t) (velocity)
10
mg mg k
v (t) = k − k − v0 e − m t
0
0 2 4 6 8 10
t (time)
▶ The ODE for free fall with air resistance was solved using
separation of variables.
▶ The final velocity function shows how the object approaches
terminal velocity over time.
▶ This model can be extended to more complex cases, such as
quadratic air resistance or variable mass systems.
Example: First-Order Reaction
▶ Separable Equation:
dC
= −kdt
C
▶ Integrating:
ln C = −kt + C
▶ Solving for [A](t):
C (t) = C0 e −kt
1
Concentration C (t)/C0
0.5
0
0 2 4 6 8 10
Time t
Growth and Decay of Current in an RC Circuit
S R
C
We note that
dq
I =
dt
Switch Closed
We note that
dq
I =
dt
Then the equation for the instantaneous voltage drop across the
circuit is
q dq q
V = IR + = R+
C dt C
Switch Closed
Then the equation for the instantaneous voltage drop across the
circuit is
q dq q
V = IR + = R+
C dt C
Rearranging gives
dq 1 V
+ q=
dt RC R
Switch Closed
Rearranging gives
dq 1 V
+ q=
dt RC R
This is a linear ODE of the form
dq
+ P(t)q = Q(t)
dt
1 V
with P(t) = RC and Q(t) = R.
Switch Closed
or
V
q= + C ′ e −t/RC
R
Applying the condition that when the switch was closed at t = 0,
q=0
V
0= + C′
R
which gives
V
C′ = −
R
Switch Closed
and, therefore,
V V V
q= − e −t/RC = 1 − e −t/RC
R R R
Interpretation
▶ As time passes, the charge q in the capacitor increases
exponentially to some maximum value V /R.
▶ V /R is the final value of the charge in the capacitor,
qf = V /R.
Switch Open
In this case,
V =0
Switch Open
In this case,
V =0
Then the equation for the instantaneous voltage drop across the
circuit is
dq q
0= R+
dt C
Switch Open
Then the equation for the instantaneous voltage drop across the
circuit is
dq q
0= R+
dt C
Rearranging gives
dq 1
=− q
dt RC
Switch Open
Rearranging gives
dq 1
=− q
dt RC
Clearly the variables can be separated, for
1 1
dq = − dt
q RC
Switch Open
or
t
q = C ′′′ e − RC
If the switch is opened (t = 0) when q = qf
qf = C ′′′ e 0 = C ′′′
Switch Open
qf = C ′′′ e 0 = C ′′′
Interpretation
▶ As time passes, the charge q in the capacitor decays
exponentially to zero.
▶ The higher the value of RC , the faster is this decay.
Exercises in Applications
Flight of a Ball
V L
R
We wish to get the current i at t > 0 in the RLC circuit below.
V L
V = EC + EL + ER
where
di
EC = Cq , EL = L , ER = iR
dt
According to Kirchhoff’s voltage law, the voltage V supplied by
the voltage source must equal the sum of the voltage drops across
the capacitor C , inductance L, and resistance R:
V = EC + EL + ER
where
di
EC = Cq , EL = L , ER = iR
dt
V L
R
We wish to get the current i at t > 0 in the RLC circuit below.
V L
V = EC + EL + ER
where
di
EC = Cq , EL = L , ER = iR
dt
According to Kirchhoff’s voltage law, the voltage V supplied by
the voltage source must equal the sum of the voltage drops across
the capacitor C , inductance L, and resistance R:
V = EC + EL + ER
where
di
EC = Cq , EL = L , ER = iR
dt
Thank you!
Questions?