English

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

Numerical Analysis 2022-12-15 v1 Numerical Analysis

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. 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 10610^6 times fewer function evaluations. Even in high frequency regimes, our implementation is on average 10 times faster than other specialized solvers.

Keywords

Cite

@article{arxiv.2212.06924,
  title  = {An adaptive spectral method for oscillatory second-order linear ODEs with frequency-independent cost},
  author = {Fruzsina J. Agocs and Alex H. Barnett},
  journal= {arXiv preprint arXiv:2212.06924},
  year   = {2022}
}

Comments

25 pages, 5 figures, 2 tables. Submitted to SINUM. Code available at https://github.com/fruzsinaagocs/riccati

R2 v1 2026-06-28T07:33:17.148Z