Comparison of the Accuracy of Euler’s and Heun’s Methods in Solving First-Order Ordinary Differential Equations

Authors

  • Eman Ismail Alnahaisi College of Applied Administrative and Financial Sciences - Tripoli, Libya

Keywords:

Forward Euler method, Heun’s method, ordinary differential equations, initial value problems, absolute error, convergence order

Abstract

This study compares the accuracy of the forward Euler and Heun methods for solving initial value problems involving first-order ordinary differential equations. It also examines the effect of step size on numerical error and estimates the convergence order of each method. Both methods were applied to three test problems with known analytical solutions, comprising a homogeneous linear equation, a nonhomogeneous linear equation, and a nonlinear equation. The computations were performed on the interval [0,1] using four step sizes of 0.2, 0.1, 0.05, and 0.025. Accuracy was assessed using the maximum absolute error over the grid points, and convergence orders were estimated from the error ratios obtained by successive step halving. Heun’s method yielded a smaller maximum absolute error than forward Euler in all twelve comparisons, and the error decreased for both methods at each step halving. For the final halving, the estimated convergence orders ranged from 1.0154 to 1.0314 for forward Euler and from 2.0273 to 2.0552 for Heun’s method. Within the scope of the test problems, Heun’s method provided more accurate approximations, and the observed error behavior was consistent with the theoretical convergence orders of the two methods.

References

Carreira, B. L., & Brandi, A. C. (2016). Métodos de Euler aperfeiçoado e modificado para solução de equações diferenciais ordinárias. C.Q.D. – Revista Eletrônica Paulista de Matemática, 7, 4–11.

Citra, D. Y., Glorya, E. B., Helmina, K., Ambarwati, L., & Wiraningsih, E. D. (2024). Perbandingan nilai galat pada model penyakit tuberkulosis menggunakan metode Euler dan Heun di DKI Jakarta. Jurnal Matematika dan Terapan, 6(2), 48–58.

Kværnø, A., & Massing, A. (2020). Numerical solution of ordinary differential equations [Lecture notes]. Norwegian University of Science and Technology.

Mendonça, P. T. V., Lima, D. Z. S. de, Barros, G. G. de, Menezes, M. S. da S., & Mezzomo, I. (2018). Comparativo dos métodos de Euler e Heun na resolução de equações diferenciais de primeira ordem. Proceeding Series of the Brazilian Society of Computational and Applied Mathematics, 6(1), Article 010070.

Mulyono. (2016). Kajian sejumlah metode untuk mencari solusi numerik persamaan diferensial. In Prosiding Konferensi Nasional Penelitian Matematika dan Pembelajarannya (KNPMP I) (pp. 971–980). Universitas Muhammadiyah Surakarta.

Rohmah, N. A., & Fauzi, M. N. (2025). Comparative analysis of influenza model solutions using Euler, Heun, and RK4 methods. Jurnal Matematika Sains dan Teknologi, 26(1), 18–34.

Existence and uniqueness of solutions for a nonlinear differential equation with one-parameter nonlocal condition: A numerical study via MATLAB . (2026). Albahit Journal of Applied Sciences, 5(2), 132-144. https://doi.org/10.65419/albahit.v5i2.142

Downloads

Published

2026-11-12

How to Cite

Eman Ismail Alnahaisi. (2026). Comparison of the Accuracy of Euler’s and Heun’s Methods in Solving First-Order Ordinary Differential Equations. Journal of Libyan Academy Bani Walid, 2(6), 37–54. Retrieved from https://journals.labjournal.ly/index.php/Jlabw/article/view/738

Issue

Section

Applied Sciences