Modelling The Heating Curve
Modelling The Heating Curve
Personal Code:
Session Number:
Subject: Mathematics HL
––
Page Count: 14
Mathematical Exploration: Modelling the Heating Curve
Introduction
Often I make hot milk for myself when my parents are late from work. To prepare the milk,
one must turn on the stove and wait for it to reach a boil and turn off the stove before it
overflows. This usually takes a long time and for me this was a problem as I had to waste
time standing by the stove waiting for the milk to boil. Another problem was the milk never
took the same amount of time to reach a boil on different days as the ambient temperature
changes hence it was also not possible to set a timer. Hence, I decided to create a
mathematical model to accurately predict the time it takes for milk to reach a boil based on
Data Collection
In order to accurately predict the time it takes for milk to reach a boil I first needed to
collect data about how the temperature of milk changes with time on the stove. In order to
collect data I brought my small electric stove and sauce pan to school as I was not allowed
to borrow the equipment for home. After learning how to do it, I used Vernier’s1 ‘Stainless
Steel Temperature Probe’ along with the ‘Logger Pro’ software on my computer to take a
reading of the temperature of the milk every 10 second as it heated on the electric stove
until it reached a boil and started overflowing. The raw data contained 181 reading but I
have trimmed the data to only 36 point by only showing every 5th reading for the sake of
1
1. Vernier Software & Technology. Logger Pro 3 Quick Reference Guide.
http://www2.vernier.com/manuals/LP3QuickRefManual.pdf. Accessed 4 July 2018.
| Page 1 of 15 |
Mathematical Exploration: Modelling the Heating Curve
| Page 2 of 15 |
Mathematical Exploration: Modelling the Heating Curve
plot with blue points represents how the temperature of the milk changes over time on
active stove.
After plotting the data I notice that the graph looks like half part of a parabola hence its
how the y-intercept represents the ambient room temperature and wondered if it would be
possible to use this data in order to model a function which could accurately predict the
time required for milk to reach the boiling point which is 98.1 °C at any given initial
| Page 3 of 15 |
Mathematical Exploration: Modelling the Heating Curve
I researched how I would be able to use the data in order to model an equation and found
out that this method is called ‘curve fitting’2 and it is possible to use ‘Google Sheets’3 to find
an equation for a given set of data. After watching some tutorials on how to use this tool I
was able to obtain a function and plot a graph (referring to figure 2) where the blue dots
represent the actual data and the grey line represents the function 𝑓(𝑥) given below.
2
2. Sandra Lach Arlinghaus. 1994. CRC Press – Practical Handbook of Curve Fitting.
3
3. Patricia Goodman. 2 Dec 2014. Add a trendline to a chart in Google Sheets.
https://service.goshen.edu/support/index.php?/default_import/Knowledgebase/Article/View/974/0/
add-a-trendline-to-a-chart-in-google-sheets. Accessed 10 Jul 2018. Accessed 5 July 18.
| Page 4 of 15 |
Mathematical Exploration: Modelling the Heating Curve
The functions fits the actual data with very little uncertainty hence the function can be used
to estimate the amount of time required for milk to reach a boil. As my aim is to estimate
equating to 𝑦
𝑦 0.092 21.8
= 𝑥! + 𝑥+
−0.0000277 −0.0000277 −0.0000277
Adding the square of the half of the coefficient of 𝑥 for making a perfect square
!
𝑦 !
0.092 21.8 0.092
=𝑥 + 𝑥+ +3 6
−0.0000277 −0.0000277 −0.0000277 −0.0000554
!
0.092
−3 6
−0.0000554
! !
𝑦 0.092 21.8 0.092
= 7𝑥 + 3 68 + −3 6
−0.0000277 −0.0000554 −0.0000277 −0.0000554
!
𝑦 0.092 21.8 0.008464
= 7𝑥 + 3 68 + −
−0.0000277 −0.0000554 −0.0000277 0.00000000306916
!
𝑦 0.092
= 7𝑥 + 3 68 − 3544761.4331
−0.0000277 −0.0000554
!
𝑦 0.092
+ 3544761.4331 = 7𝑥 + 3 68
−0.0000277 −0.0000554
| Page 5 of 15 |
Mathematical Exploration: Modelling the Heating Curve
𝑦 0.092
±< + 3544761.4331 = 𝑥 + 3 6
−0.0000277 −0.0000554
Isolating 𝑥
𝑦 0.092
±< + 3544761.4331 − 3 6=𝑥
−0.0000277 −0.0000554
Writing the function in terms of 𝑥 and simplifying polarities. Positive values of square root
were also removed as they are outside the domain of the actual data. Giving the function
𝑥 0.092
𝑓 "# (𝑥) = −< + 3544761.4331 + 3 6
−0.0000277 0.0000554
Upon graphing the function in Desmos4, it was confirmed that this is an accurate inverse
Legend
––– 𝑓(𝑥)
----- 𝑦 = 𝑥
4
4. Desmos. 20 Jul 2018. Functions. https://support.desmos.com/hc/en-us/articles/207316093-
Functions. Accessed 21 Jul 18.
| Page 6 of 15 |
Mathematical Exploration: Modelling the Heating Curve
In order to make the function valid for any value of initial temperature, I subtracted
constant c from 𝑥 which would represent the difference in ambient temperature compared
to the initial temperature in my data which was 22.7 °C. For example, if the room
temperature is 35.0 °C, I would subtract 35.0 − 22.7 = 12.3 to give me the value of c which
would be substituted in the below function to translate the entire function horizontally.
(𝑥 − 𝑐) 0.092
𝑓 "# (𝑥) = −> + 3544761.4331 + 3 6
−0.0000277 0.0000554
Hence, using the above function it would be possible to estimate the time required for the
Newtons law of cooling states that the rate of cooling or heating is proportional to the
difference between the temperature of an object and the ambient temperature.5 In this
case, the highest temperature that the milk will reach can be considered the ambient
temperature forming the below equation where upper case ‘T’ represents the temperature
and the lower case ‘t’ represents the time. With the help of a video tutorial6, I was able to
𝑑𝑇
= 𝑘(𝑇 − 98.1)
𝑑𝑡
5
5. The University of British Columbia. Other differential equations.
http://www.ugrad.math.ubc.ca/coursedoc/math100/notes/diffeqs/cool.html. Accessed 4 Aug 2018.
6
6. Phil Clark. 12 Jan 2016. Differential Equations Newton's Law of Heating Problem.
https://www.youtube.com/watch?v=Kqy1xEUnEIE. Accessed 10 Jul 2018.
| Page 7 of 15 |
Mathematical Exploration: Modelling the Heating Curve
𝑑𝑇
= 𝑘𝑑𝑡
𝑇 − 98.1
𝑑𝑇
C = C 𝑘𝑑𝑡
𝑇 − 98.1
ln(𝑇 − 98.1) = 𝑘𝑡 + 𝐶#
𝑇 − 98.1 = 𝑎𝑒 -.
𝑇 = 98.1 + 𝑎𝑒 -.
22.7 = 98.1 + 𝑎
𝑎 = −75.4
𝑇 = 98.1 − 75.4𝑒 -.
𝑇 − 98.1 = −75.4𝑒 -.
| Page 8 of 15 |
Mathematical Exploration: Modelling the Heating Curve
𝑇 − 98.1
= 𝑒 -.
−75.4
𝑇 − 98.1
ln = 𝑘𝑡
−75.4
𝑇 − 98.1
ln −75.4
𝑘=
𝑡
In order to obtain an accurate value of k, I decided to use several values of temperature (T)
and time (t) from my data. I used Google Sheets to use the above equation for k to calculate
the value of k for all of the data. The average of these values was later calculated to be used
as the final k.
| Page 9 of 15 |
Mathematical Exploration: Modelling the Heating Curve
Just as I did with the previous method, in order to obtain values of time with temperature, I
𝑦 − 98.1
= 𝑒 "1.11#234
−75.4
𝑦 − 98.1
ln = −0.00175𝑥
−75.4
𝑦 − 98.1
ln −75.4
𝑥=
−0.00175
𝑥 − 98.1
ln −75.4
𝑔"# (𝑥) =
−0.00175
Again, just like the previous equation, constant c was subtracted from the equation which
would represent the difference of room temperature from 22.7, the actual room
| Page 10 of 15 |
Mathematical Exploration: Modelling the Heating Curve
temperature from the data used to model the function. This makes the function valid to
calculate the time required to reach a boil at any given value of room temperature.
(𝑥 − 𝑐) − 98.1
ln −75.4
"# (𝑥)
𝑔 =
−0.00175
Evaluation
Using the above 2 methods I have modelled the data in 2 different ways. Below, Table 3 and
the graph in figure 4 compares the data against the actual collected set of data.
| Page 11 of 15 |
Mathematical Exploration: Modelling the Heating Curve
Legend
4 1.1)!
––– 𝑓 "# (𝑥) = −<"1.1111!22 + 3544761.4331 + J1.1111335K
"#$%.!
$%
––– 𝑔"# (𝑥) = "1.11#23
#'(.)
| Page 12 of 15 |
Mathematical Exploration: Modelling the Heating Curve
Conclusion
As the mean difference and the graph clearly indicates, the quadratic model 𝑓 "# (𝑥) is
clearly a more accurate model. Both of these models allow for the subtraction of constant c
from 𝑥 making both models useful in calculating the time required for milk to reach boiling
In order to accurately estimate the time it would take for milk to reach a boil in the
particular stove, I would calculate the value of c based on the room temperature and
substitute the boiling point of milk which is 98.1 in the more accurate function 𝑓 "# (𝑥).
For example, taking the current room temperature of my kitchen which is 30.0 °C, I can
calculate the value of 𝑐 = 30.0 − 22.7 = 7.3. Then, Input the value of the boiling point of
(𝑥 − 7.3) 0.092
𝑓 "# (𝑥) = −> + 3544761.4331 + 3 6
−0.0000277 0.0000554
90.8 0.092
𝑓 "# (98.1) = −> + 3544761.4331 + 3 6
−0.0000277 0.0000554
90.8 0.092
−> + 3544761.4331 + 3 6 = 1144
−0.0000277 0.0000554
To the nearest second, it would take 1144 seconds for my milk to reach a boil when the
room temperature is 30.0 °C in the place where the stove is kept.
| Page 13 of 15 |
Mathematical Exploration: Modelling the Heating Curve
I think the limitation of the model I created was its restriction to be only useful on a certain
type of stove heating at a certain rate. This is because the rate at which the stove is heating
the liquid would change the heating curve making the function useless for accurately
predicting the time on a different stove. I think my model can be greatly improved is by
modifying the function in such way that the intensity of the heat source can be accounted
for in calculating time. Modifying the function in a such a way would make it much more
useful as it would be possible for one to modify the function based on the type of stove they
are using increasing the scope of its application.
Further Application
Other than determining the time it takes milk to reach a specific temperature on a stove,
the same method can be applied to different liquids in order to model their heating curve.
This can be useful for industrial applications as factories can easily determine the time a
certain heating process will take. The same can also be applied in restaurants where
automatic temperature tracking instruments are usually not available.
| Page 14 of 15 |
Mathematical Exploration: Modelling the Heating Curve
Bibliography
Desmos. 20 Jul 2018. Functions. https://support.desmos.com/hc/en-us/articles/207316093-
Functions. Accessed 21 Jul 2018.
Phil Clark. 12 Jan 2016. Differential Equations Newton's Law of Heating Problem.
https://www.youtube.com/watch?v=Kqy1xEUnEIE. Accessed 10 Jul 2018.
Sandra Lach Arlinghaus. 1994. CRC Press – Practical Handbook of Curve Fitting.
Vernier Software & Technology. Logger Pro 3 Quick Reference Guide. 9 May 2008
http://www2.vernier.com/manuals/LP3QuickRefManual.pdf. Accessed 4 July 2018.
| Page 15 of 15 |