Differential EquationsModeling with First-Order Equations2 of 6
Modeling with First-Order Equations · 2
Newton's Law of Cooling
When a hot object cools down or a cold object warms up in a room, we want to find its temperature at any later time, and Newton's Law of Cooling says the rate of temperature change is proportional to the temperature gap between the object and the room.
The Differential Equation for Cooling and Warming
dtdT=−kgap(T−Tr)
With the cooling constant k>0, the minus sign guarantees that the rate of change dtdT always pulls the object's temperature T toward the room temperature Tr: a positive gap (T>Tr) gives dtdT<0 so the object cools, and a negative gap (T<Tr) gives dtdT>0 so the object warms.
1
Exponential Decay of the Gap
To find a formula for the temperature T(t) when the room temperature Tr is constant, we solve the differential equation by separating variables: we divide both sides by the gap T−Tr so the T terms are with dT and the t terms are with dt.
Solving the Equation: Exponential Decay of the Gap
dtdTT(t)=−k(T−Tr)=?
Separate variables and integrate: Divide by T−Tr and multiply by dt, treating the constant Tr like any fixed number inside the integral:
T−Tr1dT∫T−Tr1dTln∣T−Tr∣=−kdt=∫−kdt=−kt+C
Exponentiate and identify the starting gap: Raise e to both sides, combine ±eC into a single constant C, and plug in t=0 (e0=1) to see that C=T(0)−Tr:
current gapT−Tr=starting gapCe−kt
Adding Tr to both sides gives the temperature at any time t:
T(t)=Tr+Ce−kt
Whether the object starts hotter or colder than the room, the vertical gap between the temperature curve and the horizontal room-temperature line shrinks by the same fraction at each regular time step, and stays zero if the object starts at room temperature.
Whether something starts hotter or colder than the room, the temperature gap between them shrinks by the same fraction at every equal step in time.
2
Cooling Toward Room Temperature
Let's apply the decaying gap to a cooling cup of coffee, first at an equal time step and then at a target temperature in between.
A cup of coffee starts at 90∘C in a 20∘C room. After 10 minutes, the coffee has cooled to 55∘C. What temperature will it be after 20 minutes, and how long will it take to reach 30∘C?
Cooling Problem: Coffee in a Room
Text solution
Halve the gap for the 20-minute stepFrom t=0 to t=10, the gap above the 20∘C room drops from 90−20=70∘C to 55−20=35∘C, so it gets cut in half every 10 minutes:
Gap at t=20:235=17.5∘C⟹T(20)=20+17.5=37.5∘C
Use the 10-minute reading to find kSubstitute the room temperature Tr=20, the starting gap C=70, and the reading T(10)=55 into T−Tr=Ce−kt:
55−2021k=70e−10k=e−10k=−10ln21≈0.0693
Solve for t at the 10∘C gapSet T=30∘C so the gap is 30−20=10∘C and solve for t:
So the coffee cools to 37.5∘C at 20 minutes and reaches 30∘C at about 28.1 minutes, just before the 30-minute mark where the gap halves again to 8.75∘C.
3
Warming Toward Room Temperature
Now let's take an object that starts colder than the room and warms up.
An iced coffee at 5∘C is placed in a 20∘C room. After 15 minutes, it has warmed to 10∘C. What will its temperature be at 30 minutes, and when will it reach 18∘C?
Warming Problem: Iced Coffee in a Room
Text solution
Multiply the negative gap by 32 for the 30-minute stepIn the first 15 minutes, the gap changes from 5−20=−15∘C to 10−20=−10∘C, shrinking by a factor of −15−10=32 every 15 minutes:
Gap at t=30:−10⋅32=−320∘C⟹T(30)=20−320=340∘C
Use the 15-minute reading to find kWith Tr=20 and starting gap C=−15, plug in t=15 and T=10 (notice how the negative signs on both gaps cancel out to leave a positive fraction inside the log):
10−2032k=−15e−15k=e−15k=−15ln32≈0.0270
Solve for t at the −2∘C gapSet T=18∘C so the gap is 18−20=−2∘C and solve for t:
So the iced coffee is at 340∘C after 30 minutes and reaches 18∘C at t=−0.0270ln152≈75 minutes.
4
Finding When Cooling Started
So far, we knew the temperature at t=0. What if we walk in on an object that is already cooling and want to find how long ago it left the oven?
A pan taken out of a 200∘C oven is cooling in a 20∘C kitchen. When you walk in, the pan is 100∘C, and 5 minutes later it is 60∘C. How long ago was the pan taken out of the oven?
Finding When Cooling Started
Text solution
Set t=0 at arrival and find kWith t=0 at your first measurement, the starting gap is C=100−20=80∘C, and 5 minutes later the gap halves to 60−20=40∘C:
T−20e−5kk=80e−kt=21=−5ln21≈0.1386
Solve for t at the 180∘C oven-exit gapSet the gap T−20 to the 200−20=180∘C gap the pan had when it left the oven:
The negative sign on t≈−5.85 minutes means the pan was taken out of the oven 5.85 minutes before you walked into the kitchen.
5
Changing Room Temperature
So far, the room temperature Tr has been constant, which let us separate variables. What if the room temperature Tr(t) is changing over time?
A pot of water starts at T(0)=50∘C with cooling constant k=2 hr−1 in a room whose temperature starts at 20∘C and drops at 4∘C per hour, so Tr(t)=20−4t (with t in hours). Find the water's temperature T(t).
Because T and t are added together inside the gap T−(20−4t), we can no longer separate variables. Expanding the right side turns the equation into a first-order linear differential equation, which we solve by multiplying through by the integrating factor e∫P(t)dt so the left side combines into the derivative of a product:
dtdT+P(t)T=Q(t)⟹dtd(e∫P(t)dtT)=Q(t)e∫P(t)dt
Changing Room Temperature
Text solution
Expand into standard linear formSubstitute k=2 and Tr(t)=20−4t into dtdT=−k(T−Tr), multiply out the right side, and move the 2T term to the left:
Multiply by the integrating factor e2t and integrateMultiply both sides by e∫2dt=e2t to combine the left side into a single derivative, then integrate both sides (using integration by parts on ∫8te2tdt=4te2t−2e2t):
Use T(0)=50 to find C and split out the room temperaturePlug in t=0 and T=50 to solve for C, then split 22 into 20+2 to compare T(t) with the room temperature 20−4t:
50T(t)=22−0+C⟹C=28=room temp(20−4t)+2+28e−2t
As 28e−2t decays toward 0, the pot stays 2∘C warmer than the cooling room, which is the exact gap needed in dtdT=−2⋅gap to make the pot cool at the room's rate of −4∘C/hr.
When the room stays at one temperature, the gap shrinks toward zero, and when the room warms or cools at a steady rate, the object trails on a parallel path by a constant gap.
Key concepts
Every problem starts from Newton's Law of Cooling, dtdT=−k(T−Tr) with k>0, and your first decision is whether the room temperature Tr is fixed or changing with time.
When the room temperature Tr is constant, the equation separates and the gap between the object and the room decays exponentially from the starting gap C=T(0)−Tr:
current gapT−Tr=starting gapCe−kt
Always work with the gap T−Tr rather than the temperature T itself: a 90∘C coffee in a 20∘C room has C=+70, while a 5∘C iced coffee in the same room has C=−15. Before using logarithms to find k, check whether the target time is an equal step from the given reading: if the gap drops from 70∘C to 35∘C in 10 minutes, just halve it again to 17.5∘C at 20 minutes to get T(20)=20+17.5=37.5∘C. Only solve for k when you need a time between steps or the time to reach a target temperature (like setting the gap to 30−20=10∘C in 10=70e−0.0693t). If you don't know when cooling started, set t=0 at your first measurement and solve for the time when the gap equals the oven-exit gap (such as 200−20=180∘C), reading the negative t as how long before your first measurement it happened.
When the room temperature Tr(t) changes over time, separation of variables and T−Tr=Ce−kt no longer apply. Instead, expand and rearrange the differential equation into first-order linear form and multiply by the integrating factor ekt:
dtdT+kT=kTr(t)⟹dtd(ektT)=kTr(t)ekt
For a room cooling as Tr(t)=20−4t with k=2, integrating gives T(t)=(20−4t)+2+Ce−2t, where C is found by plugging T(0) into the full equation after integrating (not from T(0)−Tr(0)).
6
Practice
1
A cup of tea starts at 84∘C in a 20∘C room. After 6 minutes, it has cooled to 52∘C. What will its temperature be after 18 minutes?
Watch out: 8∘C is the remaining gap above the room, not the tea's temperature. Stopping there gives the wrong answer 8∘C, and stopping after two steps at t=12 gives 36∘C.
Compare the gap above the 20∘C room at t=0 and t=6 minutes. How many 6-minute steps take you to 18 minutes?
At t=0, the starting gap is 84−20=64∘C, and at t=6 minutes, the gap is 52−20=32∘C, so the gap halves every 6 minutes:
At t=12 min:232=16∘C,At t=18 min:216=8∘C
(Watch out: 8∘C is the remaining gap above the room, not the tea's temperature. Stopping there gives the wrong answer 8∘C, and stopping after two steps at t=12 gives 36∘C.) Adding back the 20∘C room temperature gives 20+8=28∘C.
2
A bowl of soup at 95∘C is placed in a 20∘C room. After 10 minutes, its temperature is 70∘C. How long after it is placed in the room will the soup reach 35∘C?
Watch out: plugging the temperatures 95,70, and 35 into T=Ce−kt without subtracting the 20∘C room temperature gives k≈0.03054 and the wrong time 32.7 minutes.
Write the exponential decay equation for the gap T−20, and use the 10-minute reading to find k.
The starting gap is 95−20=75∘C, so T−20=75e−kt. At t=10 minutes, the gap is 70−20=50∘C:(Watch out: plugging the temperatures 95,70, and 35 into T=Ce−kt without subtracting the 20∘C room temperature gives k≈0.03054 and the wrong time 32.7 minutes.)
A cold drink at 2∘C is set out on a porch where the air temperature is 26∘C. After 10 minutes, the drink has warmed to 10∘C. Write the equation for T(t) and find the drink's temperature after 17 minutes.
Watch out: writing a positive +24 for the starting gap gives T(t)=26+24e−kt, which makes the cold drink hotter than the porch and gives 38.0∘C at 17 minutes.
Since the drink starts colder than the 26∘C porch, what sign does the starting gap T(0)−26 have?
The starting gap is 2−26=−24∘C, so T−26=−24e−kt.(Watch out: writing a positive +24 for the starting gap gives T(t)=26+24e−kt, which makes the cold drink hotter than the porch and gives 38.0∘C at 17 minutes.) At t=10 minutes, the gap is 10−26=−16∘C:
−1632k=−24e−10k=e−10k=−10ln32≈0.04055 min−1
This gives the temperature equation T(t)=26−24e−0.04055t, and at t=17 minutes:
T(17)=26−24e−0.04055(17)=26−24(32)1.7≈14.0∘C
4
A ceramic mug is taken out of a 180∘C kiln and left to cool in a 20∘C workshop. When you first check the mug, its temperature is 80∘C;10 minutes later, it is 50∘C. How many minutes before your first check was the mug taken out of the kiln?
Watch out: setting 60e−0.0693t equal to the kiln temperature 180 instead of the kiln gap 160 gives t=−0.0693ln(3)≈−15.85, or 15.85 minutes.
Set t=0 at the moment of your first check so you know both the starting gap at t=0 and the gap at t=10.
Setting t=0 at the first check gives a starting gap of 80−20=60∘C, so T−20=60e−kt. At t=10 minutes, the gap is 50−20=30∘C:
3021k=60e−10k=e−10k=−10ln21≈0.0693 min−1
When the mug left the 180∘C kiln, its gap above the 20∘C workshop was 180−20=160∘C:(Watch out: setting 60e−0.0693t equal to the kiln temperature 180 instead of the kiln gap 160 gives t=−0.0693ln(3)≈−15.85, or 15.85 minutes.)
So the mug was taken out of the kiln 14.15 minutes before the first check.
5
A metal block at 10∘C with cooling constant k=3 hr−1 is placed in a room whose temperature starts at 15∘C and rises steadily at 6∘C per hour, so Tr(t)=15+6t (with t in hours). Find T(t), and describe how the block's temperature compares to the room's temperature after a long time.
Because Tr(t)=15+6t changes with time, multiply out the right side of dtdT=−3(T−(15+6t)) to put the equation into first-order linear form.
Expanding dtdT=−3(T−(15+6t)) and moving −3T to the left gives: (Watch out: plugging Tr(t)=15+6t directly into the constant-room formula Tr+Ce−kt gives 15+6t−5e−3t, which misses the −2∘C gap.)
dtdT+3T=45+18t
Multiplying through by the integrating factor e∫3dt=e3t and integrating (with integration by parts ∫18te3tdt=(6t−2)e3t) gives:
Using T(0)=10 to find C:(Watch out: C is no longer the starting gap T(0)−Tr(0)=10−15=−5; you must plug t=0,T=10 into T(t)=13+6t+Ce−3t, which gives C=−3.)
10T(t)=13+0+C⟹C=−3=13+6t−3e−3t=(15+6t)−2−3e−3t
As t grows large, −3e−3t decays to 0 and the block stays 2∘C colder than the warming room.