A Differential Equation for Heat Transfer According to Newton's Law of Cooling

Let be the temperature of a building (with neither heat nor air conditioning running) at time and let be the temperature of the surrounding air. Newton's law of cooling states that
where is a constant independent of time.
In this example, is plotted in red; is the initial temperature of the air surrounding the building. The value of depends on a number of factors including the insulation of the building. In this example, you can modify the proportionality constant and mean temperature.
Five specific solutions around the initial temperature are plotted as solid blue curves through the dashed blue lines that represent the direction fields.
  • Contributed by: Stephen Wilkerson
  • (United States Military Academy West Point, Department of Mathematics)


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This is example 4, Heating and Cooling of a Building from [1], Section 1.1, Modeling with First Order Equations.
[1] J. R. Brannan and W. E. Boyce, Differential Equations with Boundary Value Problems: An Introduction to Modern Methods and Applications, New York: John Wiley and Sons, 2010.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.