Preprint
Article

This version is not peer-reviewed.

Solving Inhomogeneous Constant Coefficients Ordinary Differential Equations Using Artificial Neural Networks

Submitted:

02 April 2026

Posted:

03 April 2026

You are already at the latest version

Abstract
Ordinary differential equations are fundamental tools for modeling dynamic systems in science, engineering, and applied mathematics. Solving these equations accurately and efficiently is crucial, particularly in cases where analytical solutions are challenging or impossible to obtain. This paper presents a method for solving inhomogeneous linear ordinary differential equations using an artificial neural network. The network is composed of a single input layer with one neuron, one hidden layer with three neurons, and a single output layer with one neuron. A multiple regression model is employed to determine the weights from the input layer to the hidden layer, while radial basis functions are used to compute the weights from the hidden layer to the output layer. The bias values are chosen within the range of -1 to 1 to optimize learning behavior. A trial solution is constructed as a sum of two parts. One part satisfies the initial condition, and the other part is the output of the network to approximate the function. The neural network is trained to minimize the mean squared error of the residuals obtained by doing the substitution of the trial solution into the given ordinary differential equation. The methodology is tested on first-order and second-order ordinary differential equations to evaluate its accuracy, stability and how its capability can be generalized. The results show that the method can approximate the exact solutions of these ordinary differential equations with high accuracy.
Keywords: 
;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated