Artificial Neural Network Solution of Ordinary Differential Equations using BFGS Optimization: Activation Function Comparison

Authors

  • Siti Nurzahirah Mohd Ramli Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia
  • Mohd Rashid Admon Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia
  • Mohamad Shahiir Saidin Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia
  • Ali Ahmadian Decision Lab, Mediterranea University of Reggio Calabria, Reggio Calabria, Italy
  • Noorehan Yaacob Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia
  • Mohd Ariff Admon Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia

Keywords:

Artifial neural network, ordinary differential equations, Runge-Kutta method, Euler’s Method, Broyden-Fletcher-Goldfarb-Shanno

Abstract

Ordinary Differential Equations (ODEs) are fundamental tools in science and engineering. Existing numerical methods such as Euler’s method and Runge-Kutta require discretization and repeated computations. This study develops Artificial Neural Network (ANN) with the Broyden-Fletcher-Goldfarb-Shanno (BFGS) optimization for solving ODEs. Second aim is to perform numerical simulations using ANN with BFGS using hyperbolic tangent function and sigmoid to solve ODEs and compares the efficiency and accuracy of ANN with existing numerical methods. the neural network created a trial solution to satisfy the initial conditions and is trained using the BFGS optimization that updates weights by approximating the inverse Hessian. After training, the ANN with BFGS solutions were compared with existing numerical results obtained from Euler’s method and RK4 method. The findings show that the ANN with BFGS method give accuracy better than Euler and similar with RK4 methods. The hyperbolic tangent activation function generally shows better approximation accuracy than sigmoid.

Author Biographies

Mohd Rashid Admon, Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia

m.rashid@utm.my

Mohamad Shahiir Saidin, Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia

shahiir@utm.my

Ali Ahmadian, Decision Lab, Mediterranea University of Reggio Calabria, Reggio Calabria, Italy

ali.ahmadian@decisionslab.eu

Noorehan Yaacob, Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia

noorehan@utm.my

Mohd Ariff Admon, Department of Mathematical Sciences, Faculty of Science, Universiti Teknologi Malaysia, 81310 Skudai, Johor, Malaysia

ariffadmon@utm.my

Downloads

Published

2026-07-06

Issue

Section

Articles