According to Newton's law of cooling, the rate of change of the temperature of an object is proportional to the difference between its initial temperature and the ambient temperature . At time, the temperature can be expressed as , where is the decay constant.