Numerical Solutions of Ordinary Differential Equations in Electrical Circuits Using Euler, Heun, and Fourth-Order Runge-Kutta Methods

Numerical simulation plays a crucial role in predicting the transient behavior of electrical systems where analytical solutions are complex or unavailable. This study evaluates and compares the performance of three fundamental numerical methodologies—the first-order Euler method, the second-order Heun method, and the fourth-order Runge-Kutta (RK4) method—in solving ordinary differential equations (ODEs) that govern electrical circuits. A classic series Resistor-Inductor (RL) circuit driven by a constant voltage source was utilized as the benchmark physical model. The governing first-order linear ODE was simulated using MATLAB across all three numerical schemes. To comprehensively analyze performance, the numerical solutions were validated against the exact analytical solution under varying step sizes ( ). The computational results demonstrate that the RK4 method exhibits superior accuracy, with an absolute error magnitude down to the order of effectively overlapping with the exact analytical curve. Conversely, the Euler method shows significant truncation drift (error range) at equivalent step sizes, while the Heun method provides moderate balancing between mathematical complexity and accuracy (error range). Furthermore, stability boundaries were tested, revealing that larger step sizes severely compromise the stability of the Euler method, whereas the RK4 method maintains robust convergence. This comparative analysis provides practical insights into selecting optimal numerical solvers for circuit simulation software, demonstrating that higher-order methodologies like RK4 are indispensable when high fidelity and numerical stability are paramount in electrical engineering applications.

Authors

Institutions

Publication Details

Journal
INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER RESEARCH
Published
2026-11-26
DOI
https://doi.org/10.5281/zenodo.24579449
Primary Topic
Numerical Solvers for Ordinary Differential Equations
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Numerical Solutions of Ordinary Differential Equations in Electrical Circuits Using Euler, Heun, and Fourth-Order Runge-Kutta Methods

Suryo Widodo, Aprilia Dwi Handayani, Bambang Agus Sulistyono, Yuni Katminingsih et al.
INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER RESEARCH
Numerical Solvers for Ordinary Differential Equations
article

Numerical Solutions of Ordinary Differential Equations in Electrical Circuits Using Euler, Heun, and Fourth-Order Runge-Kutta Methods

Suryo Widodo, Aprilia Dwi Handayani, Bambang Agus Sulistyono, Yuni Katminingsih, Ika Santia
article en

Abstract

Numerical simulation plays a crucial role in predicting the transient behavior of electrical systems where analytical solutions are complex or unavailable. This study evaluates and compares the performance of three fundamental numerical methodologies—the first-order Euler method, the second-order Heun method, and the fourth-order Runge-Kutta (RK4) method—in solving ordinary differential equations (ODEs) that govern electrical circuits. A classic series Resistor-Inductor (RL) circuit driven by a constant voltage source was utilized as the benchmark physical model. The governing first-order linear ODE was simulated using MATLAB across all three numerical schemes. To comprehensively analyze performance, the numerical solutions were validated against the exact analytical solution under varying step sizes ( ). The computational results demonstrate that the RK4 method exhibits superior accuracy, with an absolute error magnitude down to the order of effectively overlapping with the exact analytical curve. Conversely, the Euler method shows significant truncation drift (error range) at equivalent step sizes, while the Heun method provides moderate balancing between mathematical complexity and accuracy (error range). Furthermore, stability boundaries were tested, revealing that larger step sizes severely compromise the stability of the Euler method, whereas the RK4 method maintains robust convergence. This comparative analysis provides practical insights into selecting optimal numerical solvers for circuit simulation software, demonstrating that higher-order methodologies like RK4 are indispensable when high fidelity and numerical stability are paramount in electrical engineering applications.

INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER RESEARCH
Universitas Nusantara PGRI Kediri (ID)
Numerical Solvers for Ordinary Differential Equations
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon