•  
  •  
 

Publication Date

6-20-2024

Keywords

numerical solvers, numerical stability, nonautonomous model, logistic growth

Disciplines

Mathematics | Non-linear Dynamics | Numerical Analysis and Computation | Ordinary Differential Equations and Applied Dynamics | Physical Sciences and Mathematics | Science and Mathematics Education

Abstract

The user-friendly aspects of standardized, built-in numerical solvers in
computational software aid in the simulations of many problems solved using
differential equations. The tendency to trust output from built-in numerical
solvers may stem from their ease-of-use or the user’s unfamiliarity with the
inner workings of the numerical methods. Here, we show a case where the
most frequently used and trusted built-in numerical methods in Python’s
SciPy library produce incorrect, inconsistent, and even unstable approxima-
tions for a the non-autonomous logistic equation, which is used to model
biological phenomena across a variety of disciplines. Some of the most com-
monly used built-in numerical solvers, such as the lsoda, implicit backwards
difference, and Runge-Kutta methods employ a black-box framework and
produce vastly different approximations for the non-autonomous logistic
model with a periodically-varying growth rate changing signum. Meanwhile,
a simple, manually-programmed method can accurately capture the analyti-
cal solution for biologically reasonable parameters and consistently produce
reliable simulations across solutions with differing qualitative behavior. Con-
sistency and reliability of numerical methods are fundamental for simulating
non-autonomous differential equations and dynamical systems, particularly
when applications are physically or biologically informed. This provides an
opportunity for differential equations educators to show students an example
where output from a hand-coded solver may provide more value over the
available standardized, built-in solvers.

Creative Commons License

Creative Commons Attribution 4.0 License
This work is licensed under a Creative Commons Attribution 4.0 License.

Share

COinS
 
 

To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.