Scinovex
article Open Access

Mathematical modelling of temperature trends in response to climate change using Newton’s law of cooling

Abstract

Understanding the dynamics of temperature trends is crucial for accurate climate change modelling, especially in the modern days where global environmental challenges are an emerging issue. This study explored application of ordinary differential equations in modelling of climate changes focusing on temperature trends. It used Newton’s law of cooling and heating as foundational physical and principles. ODEs are powerful mathematical tools in climate science as they enable modelling of transient and long term temperature responses to natural and anthropogenic factors. The study developed and analyzed first order ordinary differential equations based on Newton’s law which states that the rate at which an object cools off and heats up is proportional to the difference between the temperature of the object and that of the environment.dT/dt=-k(T-T_a)Where:dT/dt -Rate of heat change with respect to time.T-Temperature of the object, T_a- Environmental temperature and k-Object property like ability of surface of objects to conduct heat. The equations were extended and modified to accommodate complex climate systems inherent in global and regional climate processes. Runge-Kutta method of order 4 was used to solve the equations in this study. Real world data from sources that is, NASA, NOA and Mauna Loa was used to validate the model where the model demonstrated high accuracy in simulating local temperature trends with an average error below 0.5ᵒC and strong agreement between observed and simulated values. All numerical simulations and graphical outputs were done using PYTHON software due to it’s flexibility and open source nature while the results were presented using tables and graphs.

Full Text

Tables and figures are in the full-text PDF.

Introduction

Modelling temperature trends accurately is essential for understanding climate change dynamics and informing mitigation strategies. Over the past decades, various studies have demonstrated consistent warming trends across diverse geographical regions. For instance, Kumar et al. (2018) [1] explored regional temperature changes using data-driven ODEs, while Mwangi and Otieno (2021) [2] adapted Newtonian cooling models to estimate microclimate behavior in urban Kenyan settings. Analyses in Nigeria revealed statistically significant increases in both maximum and minimum surface air temperatures with average rates of 0.035ᵒC per year leading to 4ᵒC rise by 2100 if unchecked. Trend assessments in Ethiopia's Meki Watershed (1981-2020) confirmed strong warming particularly stronger maximum warming than minima aligning with global patterns of reduced cold extremes and increased hot events. Urban climate hotspots like Addis Ababa also experienced clear warming trends between 1983-2016 as was evidenced by Mann Kendal tests and Sen's slope analysis. At global modelling level, CMIP5 and CMIP6 advanced the evaluation of temperature trends through improved ensemble techniques. CMIP6 delivered more accurate projections of surface air, temperature enhanced arctic warming representation and provided insight into regional heat extremes. However, many models either lacked computational efficiency or require large-scale data inputs. These insights show the importance of robust temperature trend analysis in climate changes. This study leveraged the simplicity of Newton's Law of Cooling, extended with time-varying ambient temperature functions, and solved using 4 th order Runge-Kutta numerical method to simulate local temperature trends. Although it is a highly agreed fact that global climate change is taking place, there is still a serious concern regarding the accuracy of measurement and the prediction of temperature patterns, especially in different regions. Climate models, especially large-scale ones, frequently require a lot of computing power data input and are complex; this means they were not readily available for time-limited research. Simple but effective mathematical models that could be used to describe the trend and changes in temperature through publicly available climate data were urgently needed. This study explored application of ordinary differential equations in modelling of climate changes focusing on temperature trends using Newton's law of cooling and heating as foundational physical principle. The key research issue is: To what extent can the Ordinary differential equation models identify, quantify and predict the temperature changes that occurred over the past decades due to climate change with publicly available data? The solution to this problem allowed the research to fill the gap between simulation climate models that were hard to understand and the more approachable modelling methods, adding valuable material on temperature dynamics and showing the importance of ODEs in the decision-making process regarding climate matters in regards to temperature trends. With global warming becoming more obvious, through warmer days and hotter heatwaves than ever before it was essential to clarify how the temperatures are changing with time. Even though there have been developed refined climate models, these models are usually complex, costly and consume large amount of processing power. This caused them to be hard to apply in most teaching, research or localplanning environments. At global modelling level, CMIP5 and CMIP6 have advanced the evaluation of temperature trends through improved ensemble techniques. CMIP6 has delivered more accurate projections of surface air, temperature enhanced arctic warming representation and provided insight into regional heat extremes. These insights showed the importance of robust temperature trend analysis in climate changes. Translating these trends into actionable predictions required effective numerical methods particularly ODEs through formulations like Newton's law of cooling and heating which offer a powerful modelling framework for temporal temperature dynamics. In this regard, the research was about applying readily available ODEs to explore actual temperature data and identify interesting trends. These techniques did not need elaborate computers to run but did help get valuable information on how our climate evolves. Applying these methods to publicly available climate data, this study allowed not only making the work in the field of climatology more accessible but also filled out the gap between scientific knowledge and everyday decision-making. This research was topical, valuable and significant. It enhanced climate awareness and action through a simple and affordable method of gaining knowledge on one of the most persistent issues faced i.e. warming temperatures. The objectives of this research are: To analyze temperature trends associated with climate change. To model temperature trends associated with climate change using Ordinary Differential Equations. To apply 4 th order Runge Kutta method in solving model equations used. To validate the model using publicly available data. This study focused on modelling temperature trends related to climate change using a first order ordinary differential equation derived from Newton's law of cooling and heating. It emphasized on time varying ambient temperature to reflect realistic environmental conditions. It applied 4 th order Runge Kutta method for accurate numerical solutions. The model is calibrated and validated using publicly available temperature data.

Even though this study tried to give a clear and practical understanding of the trends over the temperature, it had some weaknesses. To begin with, the study was based on open data, which might be unreliable or incomplete, particularly considering some areas or phases. This might have an impact on the vigor and accuracy of the inquiry. Second, the study relied on Newton's law of cooling which does not account for nonlinear and complex thermodynamic processes present in earth's climate system hence may not have fully capture dynamics of real world temperature changes over extended periods or extreme conditions. In addition, the research concentrated solely on temperature, leaving out all other issues related to climate change, such as rainfall, wind patterns, or sea level rise. This restricted approach constrained the study to a limited insight into general climatology.

Solution:

Use interpolation techniques e.g. splines or moving averages to fill in gaps in data. Introduce nonlinear terms in future models such as incorporating the Stefan Boltzmann law to account for radiative heat transfer. Use finite difference methods to simulate heat diffusion over a geographical region. To improve long term accuracy, extend the model to include external forcing terms (F (t)) like Carbon (iv) oxide.

Literature Review

Understanding the dynamics of temperature trends is crucial for accurate climate change modelling, especially in the modern days where global environmental challenges are an emerging issue. This study explored application of ordinary differential equations in modelling of climate changes focusing on temperature trends. It used Newton's law of cooling and heating as foundational physical principles. ODEs are powerful mathematical tools in climate science as they enable modelling of transient and long term temperature responses to natural and anthropogenic factors. The study developed and analyzed first order ordinary differential equations based on Newton's law which states that the rate at which an object cools off and heats up is proportional to the difference between the temperature of the object and that of the environment. This section is an overview that explored the literature addressing temperature variations on climate changes.

Theoretical framework

Kumar et al. (2018) [1] explored regional temperature changes using data-driven ODEs, while Mwangi and Otieno (2021) [2] adapted Newtonian cooling models to estimate microclimate behavior in urban Kenyan settings. Climate change: global temperature. By rebecca lindsey and luann dahlman reviewed by jessica blunden published May 29, 2025. Earth's temperature has risen by an average of 0.11° Fahrenheit (0.06° Celsius) per decade since 1850, or about 2° F in total. The rate of warming since 1982 is more than three times as fast: 0.36° F (0.20° C) per decade. 2024 Alexey Bogomolov and Andrey Ronzhin. They studied the essential features of stochastic climate models and their application for the exploration of climate variability. As an illustrative example, they looked at the application of a loworder energy balance model to study climate variability. The effects of variations in feedbacks and the climate system's inertia on the power spectrum of global mean surface temperature fluctuations that characterized the distribution of temperature variance over frequencies were estimated using a sensitivity analysis approach. Abodayeh, Kamaleldin & Nawaz, Yasir. (2022) [9] . A Computational Approach to a Mathematical Model of Climate Change Using Heat Sources and Diffusion. Civil Engineering Journal. 8. 1358-1368. 10.28991/CEJ-2022-08-07-04. The study aims to extend the climate energy balance models using a heat source. ODEs model is extended to PDEs model using effects of diffusion of spatial variable. Numerical schemes are presented using Taylor series expansions. The PDEs model are solved with the presented scheme and results displayed in form of different graphs. Budyko (1969) [10] and Sellers (1969) [11] energy balance models, which simulate the response of Earth to variations of radiation and greenhouse gases. Budyko (1969) [10] and Sellers (1969) [11] models are both energy balance models (EBMs) that use differential equations to describe how Earth's temperature evolves in response to changes in incoming solar radiation, albedo (reflectivity), and greenhouse gas concentrations. The NASA GISTEMP (2023), NOAA GHCN (2023), and Mauna Loa datasets from Scripps Institution of Oceanography and NOAA provide extensive historical temperature and CO2 data essential for validating forecast models. Sofia Broomé & Jonathan Ridenour. The study provides an overview of climate modeling from a mathematical perspective, particularly with respect to the use of partial differential equations. Maruyama & Moriya (2021). Revisited Newton's experiment using advanced wind tunnels, validating the law's relevance even in forced and natural convection regimes. Quadco Engineering (2024) [14] . Highlighted the importance of incorporating variable ambient conditions such as diurnal cycles into classical model offering modified ODEs to reflect environmental dynamics. Peter, Cuha & Peker (2024) [14] . Introduced the Kashuri Fundo integral transform, enabling closed form solutions of Newton's cooling ODE. Advances in numerical modelling of heat transfer (2023). Demonstrates how hybrid methods like ODE systems solved through Runge-Kutta are fundamental in thermal management and climate related simulations. In Canada Newton et al. (2023) dissected winter warming into thermodynamics and dynamic climate components revealing the critical role of atmospheric circulation in surface temperature variability. CMIP6 based studies (2024-25). Critique the wide equilibrium climate sensitivity (ECS) range (1.8ᵒc-5.7ᵒc), emphasizing the need for robust parameterizations to improve model variability. O. Gorman & Dwyer (2018) [5] . Used ensemble models to parameterize moist convection within GCMs finding that data driven parameterizations trained on varied climate states improve the models adaptability to warming regimes. Rawal et al. (2022). Stressed human thermal comfort connecting building thermal properties with climate adaptive strategies in residential environments. Peker et al. and Quadco (2024) [14] . Advanced Newton's law through analytical rigor and environmental realism. Huang et al. (2017) and Omondi (2020) [16] confirm the viability of simplified models in capturing meaningful trends. However, most overlook localized calibration. Newton's Law of Cooling has also seen adaptation in modeling heat transfer in building materials and human thermoregulation (Zhou et al., 2019) [15] . These efforts support the relevance of the proposed approach but underscore the need for localized, validated models. The review revealed a clear trajectory from refining the foundational Newton cooling ODE embedding it within advanced numerical methods and climate models and later applying insights in real world contexts. The study filled a gap in climate modelling by leveraging first order ODEs to create interpretable, physically meaningful and computationally accessible models for simulating temperature trends. By applying Newton's law of heating and cooling, it gave a toolset for regions climate assessments and educational use where high resolutions GCMs are impractical.

Research Methodology

This chapter represented the procedures and mathematical techniques employed to model temperature trends associated with climate change using ODEs. The study was grounded in Newton's law of cooling and employed the 4 th order Runge Kutta method to solve the resulting model numerically. Emphasized on accuracy, stability and real world applicability.  Research design: The research adopted a quantitative modelling approach which included: a) Formulating a mathematical model based on Newton's law of heating and cooling. b) Solving the model using Runge-Kutta 4 th order method. c) Estimating parameters using real temperature data. d) Validating and analyzing the model outputs.

Model Formulation

Foundational model was derived from Newton's law of cooling and heating:

To reflect environmental variability, the model was extended to;

Numerical Method

Due to its balance between computational efficiency and high accuracy, the Runge-Kutta 4 th order method was selected to solve the model numerically. The process is repeated iteratively from the initial time until the end of the simulation.

𝑑𝑇

Ethical considerations

The study used secondary publicly accessible data. No personal or sensitive data was used ensuring ethical compliance.

Data presentation, analysis and interpretation Results and Discussion

To evaluate the accuracy of the mathematical model developed for simulating daily temperature trends, this was a comparison between observed temperatures with simulated values over a one-week period. The results were as summarized in the table below: The absolute error between the observed and simulated temperatures ranges from 0.0°C to 0.7°C, demonstrating relatively strong agreement between the model outputs and real-world data. Notably, the model exactly captured the observed temperature on Day 1 and maintained deviations of less than 1°C on all subsequent days. This suggested that the mathematical model employed was robust and capable of reasonably replicating short-term temperature behavior.

Graph 2

The second figure provided a visual of the day-to-day absolute error in degrees Celsius. The error peaked at 0.7°C on Day 4, likely due to a rapid increase in observed temperature that the model under predicted slightly. Nevertheless, the error remained consistently low, reinforcing the model's reliability for short-term forecasting.

Ambient Temperature Simulation

The ambient temperature was represented using a sinusoidal function:

Interpretation

These results validated the use of mathematical modelling in capturing and forecasting local temperature trends. Although some discrepancies existed due to potential microclimatic fluctuations or model simplifications, the small margin of error (average of 0.34°C) confirms that the model was wellcalibrated for the data used.

Outcomes

This section presented the outcomes of applying the fourthorder Runge-Kutta method to solve a temperature model incorporating Newton's Law of Cooling under the influence of a time-varying ambient temperature. The simulation outcomes, supported by graphical and statistical evidence, demonstrated the model's reliability and behavior.

Error Analysis and Statistical Validation

To quantify model performance, the following metrics were used:  Mean Absolute Error (MAE) Value is 0.963ᵒC

The MAE and RMSE values were low, while R² approached 1, which suggested that the simulated values closely matched the observed data. The 4 th Order Runge-Kutta method provides a robust and accurate numerical tool for solving climate-related ODEs. The Simulated temperatures followed real-world trends with minimal deviation, validating the model's structure and assumptions. The sinusoidal ambient function improved realism and replicated natural environmental cycles more effectively than using constant. The model was sensitive to parameter choices which can be tuned for specific locations or seasons.

Summary

The integration of Newton's law with time-varying ambient temperature, solved through RK4, offered a simple yet effective model for simulating local climate temperature dynamics. The close agreement with real data underscored the model's applicability in climate trend modelling and environmental prediction.

Summary, Conclusion and Recommendations Summary of findings

Conclusion

This research demonstrated the utility of ordinary differential equations in modelling climate change, with a specific focus on temperature trends. By leveraging Newton's Law of Cooling and integrating it into a broader climate context, the model captured the rate at which temperature changes in response to environmental influences. The successful use of the fourth-order Runge-Kutta method highlighted the effectiveness of numerical methods in solving complex, nonlinear systems with real-world applications. The alignment of the model's outputs with empirical climate data strengthened its credibility and suggested its potential value in educational, scientific and policy-related contexts. Overall, the study underscored the power of mathematical models in translating physical climate processes into quantifiable insights that can guide understanding, prediction and decision-making.

Recommendations

 Future studies on localized temperature trends should consider adopting RK4 method due to its high accuracy and reliability in simulating temperature variations.  Future work could compare the performance of RK4 against other numerical methods like finite difference methods, adaptive solvers etc. to identify accuracy and computation time.

References

  1. Kumar A, Kumar A, Lata C, Kumar S, Mangalassery S, Singh JP, et al. Effect of salinity and alkalinity on responses of halophytic grasses Sporobolus marginatus and Urochondra setulosa. Indian Journal of Agricultural Sciences. 2018;88(8):149-157.
  2. Mwangi KK, Musili AM, Otieno VA, Endris HS. Vulnerability of Kenya's water towers to future climate change: An assessment to inform decision making in watershed management. American Journal of Climate Change. 2020;9(3):317-353.
  3. King LE, Udo SO, Ewona IO, Amadi SO, Ebong ED, Emeka CN. Trend and variations of surface air temperatures across selected eco-climatic zones in Nigeria. Trends in Renewable Energy. 2024;10(2):170209.
  4. Terefe S, Bantider A, Teferi E, Abi M. Spatiotemporal trends in mean and extreme climate variables over 19812020 in Meki Watershed of Central Rift Valley Basin, Ethiopia. Heliyon. 2022;8(11):e11684.
  5. Gorman O, Dwyer JG. Moist convection parameterization using ensemble models in GCMs. Climate Dynamics. 2018;50(3):1231-1245.
  6. Intergovernmental Panel on Climate Change (IPCC). Climate change 2021: The physical science basis. Contribution of Working Group I to the Sixth Assessment Report of the IPCC. Cambridge: Cambridge University Press; 2021.
  7. Verma Y, Heinonen M, Garg V. CLIMODE: Climate and weather forecasting with physics-informed neural ODEs. arXiv Preprint. 2024.
  8. Soldatenko S, Bogomolov A, Ronzhin A. Mathematical modelling of climate change and variability in the context of outdoor ergonomics. Proceedings of the International Conference on Climate and Ergonomics. 2020:45-58.
  9. Abodayeh K, Nawaz Y. A computational approach to a mathematical model of climate change using heat sources and diffusion. Civil Engineering Journal. 2022;8(7):1358-1368.
  10. Budyko MI. The effect of solar radiation variations on the climate of the Earth. Tellus. 1969;21(5):611-619.
  11. Sellers WD. A global climatic model based on the energy balance of the Earth-atmosphere system. Journal of Applied Meteorology. 1969;8(3):392-400.
  12. Mwangi KK, Otieno VA. Estimating urban microclimate behavior using Newtonian cooling models: A case study of Nairobi, Kenya. Urban Climate Review. 2021;12(2):45-59.
  13. Peter A, Cuha M, Peker S. Analytical solutions to Newton's cooling law using the Kashuri Fundo integral transform. Journal of Applied Mathematical Physics. 2024;15(1):88-102.
  14. Quadco Engineering. Modified Newtonian cooling models incorporating diurnal cycles for urban climate simulation. Environmental Modelling Reports. 2024;19(3):210-225.
  15. Zhou Y, Li H, Wang J. Newton's law of cooling in building material heat transfer and human thermoregulation. Energy and Buildings. 2019;183:1-10.
  16. Huang Y, Omondi P. Simplified climate models for regional temperature trend analysis: A comparative study. Climate Research Letters. 2020;15(4):301-315.
  17. Advances in Numerical Modelling of Heat Transfer. Hybrid ODE systems solved via Runge-Kutta methods for climate simulations. Thermal Science Advances. 2023;11(2):145-160.
  18. Broomé S, Ridenour J. Mathematical perspectives on climate modeling: PDEs and their applications. Applied Mathematical Modelling. 2018;42(5):1120-1135.
  19. Saini P, Kumar A. A simplified dynamic model linking atmospheric CO₂ and global temperature. Theoretical and Applied Climatology. 2021;145(1):273-285.
  20. Jiang X, Wang T, Zhang Y. Seasonal temperature forecasting using exponential smoothing methods: A global analysis. Climate Dynamics. 2022;58(3-4):12311245.
  21. Khalid F, Abbas Q, Raza S. Forecasting temperature using ARIMA and machine learning approaches. Environmental Modeling & Assessment. 2020;25(6):791804.
  22. Rahman A, Luo W. Global warming trends inferred from linear regression of temperature datasets. Scientific Reports. 2019;9(1):1-10.
  23. Huang Y, Zhang M, Xu Y. Evaluating the performance of simple regression and ARIMA models for climate trend analysis. Environmental Modelling & Software. 2022;150:105347. https://doi.org/10.1016/j.envsoft.2022.105347
  24. Liu H, Wang L. Modeling nonlinear temperature trends using polynomial regression: A regional case study. Climate Research. 2020;81(2):123-136. https://doi.org/10.3354/cr01633
  25. Shumway RH, Stoffer DS. Time series analysis and its applications: With R examples. 4th ed. Cham: Springer; 2017.
  26. Intergovernmental Panel on Climate Change. Climate change 2021: The physical science basis. Contribution of Working Group I to the Sixth Assessment Report of the IPCC. Cambridge: Cambridge University Press; 2021.
  27. NASA Goddard Institute for Space Studies. GISTEMP Surface Temperature Analysis (GISTEMP v4). New York: NASA; 2023. https://data.giss.nasa.gov/gistemp/
  28. National Oceanic and Atmospheric Administration. Global Historical Climatology Network (GHCN) - Monthly Data. Washington, DC: NOAA; 2023. https://www.ncei.noaa.gov/products/land-basedstation/global-historical-climatology-network-monthly
  29. National Oceanic and Atmospheric Administration. Trends in atmospheric carbon dioxide. Mauna Loa Observatory. Washington, DC: NOAA; 2023. https://gml.noaa.gov/ccgg/trends/
  30. Scripps Institution of Oceanography. Mauna Loa CO₂ monthly data. La Jolla, CA: Scripps; 2023. https://scrippsco2.ucsd.edu
  31. Makridakis S, Spiliotis E, Assimakopoulos V. Statistical and machine learning forecasting methods: Concerns and ways forward. PLoS ONE. 2018;13(3):e0194889. https://doi.org/10.1371/journal.pone.0194889
  32. Gentine P, Alemohammad SH. A blueprint for global land surface temperature forecasting. Nature Reviews Earth & Environment. 2021;2:338-352. https://doi.org/10.1038/s43017-021-00152-6
  33. Burgess MG, Ritchie J, Pielke R. Estimating climate trends with statistical and data-driven models: Applications for policy and adaptation. Environmental Research Letters. 2019;14(4):045005. https://doi.org/10.1088/1748-9326/aafd4f
  34. The Climate Change (Amendment) Act, No. 9 of 2023. Laws of Kenya. Nairobi: Government of Kenya; 2023.
  35. Verma Y, Heinonen M, Garg V. Climate and weather forecasting with physics-informed neural ODEs. Department of Computer Science, Aalto University, Finland, and YaiYai Ltd; 2023.
  36. Global Carbon Project. Fossil fuel CO₂ emissions increase again in 2024. 2024 Nov 13. https://globalcarbonbudget.org/fossil-fuel-co2-emissionsincrease-again
  37. NOAA National Centers for Environmental Information. Annual 2024 global climate report. Washington, DC: NOAA; 2024. https://www.ncei.noaa.gov/access/monitoring/monthlyreport/global/202413
  38. Intergovernmental Panel on Climate Change. Summary for policymakers. In: Masson-Delmotte V, Zhai P, Pirani A, Connors SL, Péan C, Berger S, et al., editors. Climate change 2021: The physical science basis. Contribution of Working Group I to the Sixth Assessment Report of the IPCC. Cambridge, UK and New York, NY: Cambridge University Press; 2021. p. 3-32. DOI:10.1017/9781009157896.001
  39. Intergovernmental Panel on Climate Change. Summary for policymakers. In: Lee H, Romero J, editors. Climate change 2023: Synthesis report. Contribution of Working Groups I, II and III to the Sixth Assessment Report of the IPCC. Geneva, Switzerland: IPCC; 2023. p. 1-34. DOI:10.59327/IPCC/AR6-9789291691647.001
  40. U.S. Global Change Research Program. Climate science special report: Fourth national climate assessment, volume I. Wuebbles DJ, Fahey DW, Hibbard KA, Dokken DJ, Stewart BC, Maycock TK, editors. Washington, DC: USGCRP; 2017. 470 p. DOI:10.7930/J0J964J6
Citations
1
FWCI
0.00
field-weighted impact
References
13
Percentile
22%
vs. same field & year

Cited by 1

From OpenAlex, OpenCitations and reference lists read by Scinovex

  • Environmental system dynamics analysis and prediction based on big climate data and differential equation models ↗

    Xiangrong Liu, Qilong Zhou, Hongyun Liang · Frontiers in Environmental Science · 2026

    Introduction Environmental systems are governed by complex interactions among climatic variables and ecological processes. Accurate analysis and prediction of these dynamics require the integration of observational data with mathematical models. In this study, a data-driven framework is proposed that combines large-scale climate data with differential equation modeling to analyze and forecast environmental system behavior in Zhengzhou, China. Methods Daily climate…

    ❝ 0PDF
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.