Dif Eq S03
Dif Eq S03
Dif Eq S03
Session 3
2.3
Sahar Qajar
Sharif University of Technology
Spring 2024
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
dQ
= rate in − rate out
dt
1
▶ rate in = lb/Gal times the flow rate r gal/min,
4
r
or lb/min.
4
rQ(t)
▶ rate out = lb/min.
100
(The concentration throughout the tank is the
Q(t)
same, namely, lb/gal.)
100
dQ r rQ(t)
= −
dt 4 100.
.
.
.
.
. . . . .
. . . .
. . . .
. . . .
. . . .
. . . . .
.
.
.
.
.
.
.
.
.
Modeling with First-Order Differential Equations
Mixing
dQ rQ(t) r
+ =
dt 100 4
Q(0) = Q0
The integrating factor is ert/100 . The general
solution is:
Q(t) = 25 + ce−rt/100
=⇒ c = Q0 − 25
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Mixing
T = 45 =⇒ r =?
Q(t) = 25 + (Q0 − 25)e−rt/100
t := 45, Q0 := 50, Q(t) := 25.5
=⇒ 25.5 = 25 + 25e−0.45r
=⇒ e0.45r = 50
100
=⇒ r = ln(50) ∼
= 8.96 gal/min
45
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest
dS
= rS
dt
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest
dS
= rS
dt
S(0) = S0
The differential equation is both linear and
separable:
=⇒ S(t) = S0 ert
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest: extended to situations involving deposits or withdrawals in addition
to the accrual of interest, dividends, or annual capital gains.
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest: extended to situations involving deposits or withdrawals in addition
to the accrual of interest, dividends, or annual capital gains.
dS
− rS = k
dt
k
=⇒ S(t) = cert −
r
k
S(0) = S0 =⇒ c = S0 −
r
k
=⇒ S(t) = S0 ert + (ert − 1)
r
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest: extended to situations involving deposits or withdrawals in addition
to the accrual of interest, dividends, or annual capital gains.
S(t) = S0 (1 + r/2)2t
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Compound Interest: extended to situations involving deposits or withdrawals in addition
to the accrual of interest, dividends, or annual capital gains.
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chemicals in a Pond
dQ
= rate in − rate out
dt
Q(t)
q(t) =
106
dq 1
=⇒ + q = 10 + 5 sin(2t)
dt 2
Originally, there is no chemical in the pond, so the
initial condition is
q(0) = 0
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chemicals in a Pond
dq 1
+ q = 10 + 5 sin(2t)
dt 2
q(0) = 0
Equation is linear, the coefficient of q is a constant.
Thus the integrating factor is et/2 .
Multiplying equation by this factor and integrating
the resulting equation, we obtain the general
solution:
40 10
q(t) = 20 − cos(2t) + sin(2t) + ce−t/2
17 17
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chemicals in a Pond
dq 1
+ q = 10 + 5 sin(2t)
dt 2
300
q(0) = 0 =⇒ c = −
17
40 10 300 −t/2
q(t) = 20 − cos(2t) + sin(2t) − e
17 17 17
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chemicals in a Pond
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Escape Velocity
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Escape Velocity
mgR2
w(x) = −
(x + R)2
dv mgR2
=⇒ m = −
dt (x + R)2
dv gR2
=⇒ =−
dt (x + R)2
v(0) = v0
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Escape Velocity
dv dv dx dv
= =v
dt dx dt dx
dv gR2
=⇒ v = −
dx (x + R)2
Equation is separable but not linear, so by
separating the variables and integrating, we obtain
v2 gR2
=⇒ = +c
2 x+R
v(0) = v0
(Since x = 0 when t = 0, v = v0 when x = 0)
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Escape Velocity
v2 gR2
= +c
2 x+R
v(0) = v0
v20
=⇒ c = − gR
2
√
2gR2
v = ± v0 − 2gR +
2
x+R
The plus sign must be chosen if the body is rising,
and the minus sign must be chosen if it is falling
back to earth. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Escape Velocity
v20 R
=⇒ Amax =
2gR − v20
√
Amax
=⇒ v0 = 2gR
Amax + R
The escape velocity ve is:
√
ve = lim v0 = 2gR ∼ = 6.9 mi/s or 11.1km/s
Amax →∞
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain
∫ s
′
T0 y = w(z)dz
0
by differentiating with respect to x:
∫ s ∫ s
d d ds
T0 y′′ = w(z)dz = w(z)dz
dx 0 ds 0 dx
√
= w(s) 1 + (y′ )2
√
T0 y′′ = w(s) 1 + (y′ )2
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Modeling with First-Order Differential Equations
Chain