An adaptive spectral method for oscillatory second-order linear ODEs with frequency-independent cost

Fruzsina J. Agocs, Alex H. Barnett
12/13/2022
math.NA

Official code: fruzsinaagocs/riccati (14 stars, Python, last commit 2025-05-21).

Abstract

We introduce an efficient numerical method for second order linear ODEs whose solution may vary between highly oscillatory and slowly changing over the solution interval. In oscillatory regions the solution is generated via a nonoscillatory phase function that obeys the nonlinear Riccati equation.

Show full abstract

We propose a defect-correction iteration that gives an asymptotic series for such a phase function; this is numerically approximated on a Chebyshev grid with a small number of nodes. For analytic coefficients we prove that each iteration, up to a certain maximum number, reduces the residual by a factor of order of the local frequency. The algorithm adapts both the step size and the choice of method, switching to a conventional spectral collocation method away from oscillatory regions. In numerical experiments we find that our proposal outperforms other state-of-the-art oscillatory solvers, most significantly at low-to-intermediate frequencies and at low tolerances, where it may use up to $10^6$ times fewer function evaluations. Even in high frequency regimes, our implementation is on average 10 times faster than other specialized solvers.

View on arXivView PDF

Code Implementations(1)

A package implementing the adaptive Riccati defect correction (ARDC) method for solving oscillatory second order linear ODEs.

143Python, TeXApr 4, 20221 years agoNOASSERTION

Similar Papers

Cite this paper

@article{agocs2022adaptive,
  title  = {An adaptive spectral method for oscillatory second-order linear ODEs with frequency-independent cost},
  author = {Fruzsina J. Agocs and Alex H. Barnett},
  year   = {2022},
  eprint = {2212.06924},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06924}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.06924.svg)](https://codeofpaper.com/paper/2212.06924)

Discussion