Lecture Notes Topic 5-Applications of ode
Lecture Notes Topic 5-Applications of ode
dy
= kdt
y
Integrating both sides yields;
Z Z
dy
= kdt
y
⇒ ln y = kt + c
∴ y = Ae kt
where A is the initial value of y and k is the proportionality constant.
Therefore, exponential growth occurs when k > 0 and exponential decay
occurs when k < 0.
Example 1
Given that the rate of change of y is proportional to y . Then when
t = 0, y = 2 and when t = 2, y = 4. What is the value of y when t = 3?
Solution
Since y 0 = ky , we know that y and t are related by the equation
y = Ae kt . The value of the constants A and k can then be found by
applying the initial conditions. Now, when t = 0, y = 2, we have
y = Ae kt ⇒2=A
4 = 2e 2k ⇒ 2 = e 2k
1
ln 2 = 2k ⇒k = ln 2 ≈ 0.3466
2
so that the model becomes
y = 2e 0.3466t
1
∴ ln 3 = 2k ⇒k = ln 3 ≈ 0.5493
2
The exponential growth model then becomes;
y = Ae 0.5493t
N(t) = N0 e 0.4055t
To find the time at which the bacteria have tripled, we solve t =? when
N = 3N0
⇒ 3N0 = N0 e 0.4055t ⇒ 3 = e 0.4055t
ln 3
⇒ ln 3 = ln e 0.4055t = 0.4055t ⇒t= ≈ 2.71hrs
0.4055
Assignment 5a
(i) Suppose a student carrying a flu virus returns to an isolated college
campus of 1000 students. If it is assumed that the rate at which the
virus spreads is proportional not only to the number x of infected
students but also the number of students not infected, determine the
number of infected students after 6 days if it is further observed that
after 4 days x(4) = 50.
(ii) The rate of change of the number of coyotes N(t) in a population is
directly proportional to 650 − N(t) where t is the time in years.
When t = 0, the population is 300, and when t = 2, the population
has increased to 500. Find the population when t = 3.
Radioactive Decay
⇒ x(t) = e −kt+c
⇒ x(t) = Ae −kt
A and k can be obtained from the initial conditions provided.
Example 3
Ten grams of the Plutonium Isotope 239 Pu were released in a nuclear
accident. How long will it take for the 10 grams to decay to 1 gram?
Solution
Let y represent the mass (in grams) of the Plutonium. Since the rate of
decay is proportional to y , we have
y = ce kt
where t is the time in years. To find the values of the constants c and
k,we apply the initial conditions. Using the fact that y = 10 when t = 0,
⇒ 10 = ce 0k ∴ c = 10
Next using the fact that the half-life of 239 Pu is 24, 100 years, we get;
y = 10
5 = 5 when t = 24, 100 so that
1
5 = 10e (24100)k = e (24100)k
2
1 1
⇒k = ln ≈ −0.000028761
24100 2
And the model becomes;
y = 10e −0.000028761t
To find the time it would take for 10 grams to decay to 1 gram, we solve
for t in the equation y = 1 to get;
1
1 = 10e −0.000028761t ⇒ = e −0.000028761t
10
ln 0.1
ln 0.1 = −0.000028761t ⇒t= ≈ 80, 059 years
−0.000028761
Assignment 5b
(i) The rate of decay of a radioactive material is proportional to the
amount present. The half-life of the material is 10 years. How long
does it take for 90% of the material to disintegrate?
(ii) The half-life of Rossidium312 is 4, 801 years. How long will it take for
a mass of Rossidium312 to decay to 98% of its original size?
Newton’s law of cooling
It states that the rate at which the temperature T (t) changes in a cooling
body is proportional to the difference between the temperature of the
body T (t) and that of the constant temperature T0 of the surrounding
medium. i.e.
dT dT
− ∝ (T − T0 ), ⇒ = −k(T − T0 )
dt dt
Separating variables and integrating yields;
Z Z
dT
= −k dt
T − T0
Using substitution technique, let u = T − T0 , ⇒ du = dT to arrive at
Z Z Z
dT du
= −k dt ⇒ = −kt + c
T − T0 u
∴ ln u = −kt + c ⇒ u = e −kt+c ⇒ T − T0 = e −kt+c
giving
T = T0 + Ae −kt
Example 1
Let T represent the temperature (in 0 F ) of an object in a room whose
temperature kept at a constant of 600 . The object cools from 1000 to 900
in 10 minutes. How much longer will it take for the temperature of the
object to decrease to 800 ?
Solution
From Newton’s law of cooling, the rate of change in T is proportional to
the difference between T and T0 = 600 . This can be written as
dT
= T 0 = k(T − 600 ), 800 ≤ T ≤ 1000
dt
To solve this differential equation, we use separation of variables as below;
dT dT
= T 0 = k(T − 600 ) ⇒ = kdt
dt T − 600
Integrating
Z Z
dT
⇒ =k dt ⇒ ln T − 600 = kt + c1
T − 600
by substitution method, but since
y > 60, ⇒ T − 600 = T − 600
By exponential notation, we have;
T − 600 = e kt+c1 ⇒ T = 60 + Ae kt ; A = e c1
Imposing initial conditions T = 100 when t = 0 we get;
100 = 60 + Ae k(0) = 60 + A, ⇒ A = 40
And T = 90 when t = 10, to get;
90 = 60 + 40e k(10) ⇒ 30 = 40e 10k
1 3
∴k = ln ≈ −0.02877
10 4
Resulting in the model as
T = 60 + 40e −0.02877t
Thus, we solve for t =? when T = 80
80 = 60 + 40e −0.02877t ⇒ 20 = 40e −0.02877t
1 1
⇒ = e −0.02877t ⇒ ln = −0.02877t ∴ t ≈ 24.09 minutes
2 2
Example 2
When a cake is removed from a baking oven its temperature is 3000 F .
Three minutes later its temperature is 2000 F . How long will it take to cool
to 1000 F if the room temperature is 700 F .
Solution
We know that T = T0 + Ae −kt , now at t = 0, T = 300, T0 = 70
∴ 300 = 70 + A, ⇒ A = 2300 F
T = 70 + 230e −kt
Also at t = 3, T = 200;
⇒ 30 = 230e −0.1902t
3 3
∴ = e −0.1902t ⇒ ln = −0.1902t
23 23
⇒ ln 0.1304 = −0.1902t
ln 0.1304
∴t= ≈ 10.71minutes
−0.1902
Assignment 5c
(a) A thermometer is taken from an inside room to the outside where the
air temperature is 50 F , after 1 minute the thermometer reads 550 F
and after 5 minutes the reading is 300 F . What is the initial
temperature of the room?
(b) A body at a temperature of 500 F is placed out doors where the
temperature is 1000 F . If after 5 minutes the temperature of the body
is 600 F , find
(i) how long it will take the body to reach a temperature of 750 F
(ii) the temperature of the body after 20 minutes. [7mks]
(c) According to Newton’s Law of Cooling, if a hot object is immersed
into a cool environment, the rate of decrease of the temperature of
the object is proportional to the difference in the temperature of the
object and its environment. If then h(t) is the temperature of the
object at time t, and T0 is the temperature of the environment.
Newton’s law says
dh
= −k(h(t) − T0 )
dt
where k is the coefficient of cooling. Suppose that a body at 950 Celsius is
immersed in a water bath held at 50 Celsius, and the coefficient of cooling
is k = 0.08. What will be the temperature of the body in 10 minutes?
Electric circuits
A simple electric circuit consists of an electric current I (in Amperes), a
resistance R (in Ohms), an inductance L (in Henrys) and a constant
electromotive force E (in Volts) as shown below
figure
Experiments show that the voltage
di
a. drop across the inductor is L dr
b. drop across the resistor is iRR
c. drop across the capacitor is i(t) Q(t)
c dt = c , where Q(t) is the charge
and dQ(t)
dt = i
According to Kirchoff’s second law of voltage, if the switch S is closed
when t = 0, then the applied electromotive force (voltage) is equal to the
sum of the voltage drop in the rest of the circuit. This, in turn means that
the current I satisfies the differential equation
di Q(t)
L + iR + = E (t) (1)
dt C
If no condenser is present in the circuit, then C = ∞ and (1) reduces to :
di
L + iR = E (t) (2)
dt
Example 1
A 12 volt-battery is connected to a simple series circuit in which the
inductance is 12 henry, R = 10 Ohms. Determine the current i if the initial
current is zero.
Solution
We solve the IVP, but we know that
di
L + iR = E (t)
dt
1 di
∴ + 10i = 12, i(0) = 0
2 dt
Expressing it in standard form, we have;
di
⇒ + 20i = 24, p = 20, Q = 24
dt
which is linear first order ODE, thus we compute integrating factor as
R R
pdt 20dt
I .F = u = e =e = e 20t
Solution then becomes Z
ui = Qudt + c
Z
∴ ie 20t = 24 e 20t dt
24 20t
e 20t i = e +c
20
6
⇒ i(t) = + ce −20t
5
Imposing initial conditions, when t = 0, i(0) = 0,
6 6
0= +c ⇒c =−
5 5
6
1 − e −20t
∴ i(t) =
5
Example 2
Find the current I s a function of time t (in sec), given that I satisfies the
differential equation
dI
L + RI = sin 2t
dt
where R and L are nonzero constants.
Solution
We express the given equation in standard form as
dI R 1
+ I = sin 2t
dt L L
R
Then let p(t) = L, so that the integrating factor (I.F) becomes;
R R
= e ( L )dt = e ( L )t
R R
pdt
u = I .F = e
1 R
∴ I (t) = [(R sin 2t − 2L cos 2t)] + ce −( L )t
4L2 + R 2
Assignment 5d
(a) A series circuit contains only a capacitor and inductor. If the capacitor
has an initial charge q0 , determine the subsequent charge q(t)
(b) An RC circuit has emf given (in volts) by 400 cos 2t, a resistance of
100 Ohms and a capacitance of 10−2 Farad. Initially there is no
charge on the capacitor. Find the current in the circuit at any time t.
Mixing Problems
Finally, when t = 10, the amount of alcohol in the tank then becomes
5 5
50 − 10 50 − 10 4
y (10) = − 20 = 20 − ≈ 13.45 gal
2 50 5