• Open Access

Efficient method for solving highly oscillatory ordinary differential equations with applications to physical systems

F. J. Agocs, W. J. Handley, A. N. Lasenby, and M. P. Hobson
Phys. Rev. Research 2, 013030 – Published 9 January 2020

Abstract

We present a numerical routine (oscode) with a C++ and Python interface for the efficient solution of one-dimensional, second-order, ordinary differential equations with rapidly oscillating solutions. The method is based on a Runge-Kutta-like stepping procedure that makes use of the Wentzel-Kramers-Brillouin approximation to skip regions of integration where the characteristic frequency varies slowly. In regions where this is not the case, the method is able to switch to a made-to-measure Runge-Kutta integrator that minimizes the total number of function evaluations. We demonstrate the effectiveness of the method with example solutions of the Airy equation and an equation exhibiting a burst of oscillations, discussing the error properties of the method in detail. We then show the method applied to physical systems. First, the one-dimensional, time-independent Schrödinger equation is solved as part of a shooting method to search for the energy eigenvalues for a potential with quartic anharmonicity. Then, the method is used to solve the Mukhanov-Sasaki equation describing the evolution of cosmological perturbations, and the primordial power spectrum of the perturbations is computed in different cosmological scenarios. We compare the performance of our solver in calculating a primordial power spectrum of scalar perturbations to that of bingo, an efficient code specifically designed for such applications, and find that our method performs better.

  • Figure
  • Figure
  • Figure
  • Figure
  • Figure
  • Figure
  • Figure
8 More
  • Received 5 June 2019

DOI:https://doi.org/10.1103/PhysRevResearch.2.013030

Published by the American Physical Society under the terms of the Creative Commons Attribution 4.0 International license. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI.

Published by the American Physical Society

Physics Subject Headings (PhySH)

Interdisciplinary PhysicsParticles & FieldsQuantum Information, Science & TechnologyGravitation, Cosmology & AstrophysicsGeneral Physics

Authors & Affiliations

F. J. Agocs1,2,*, W. J. Handley1,2,†, A. N. Lasenby1,2,‡, and M. P. Hobson1,§

  • 1Astrophysics Group, Cavendish Laboratory, J. J. Thomson Avenue, Cambridge CB3 0HE, United Kingdom
  • 2Kavli Institute for Cosmology, Madingley Road, Cambridge CB3 0HA, United Kingdom

  • *fa325@cam.ac.uk
  • wh260@cam.ac.uk
  • a.n.lasenby@mrao.cam.ac.uk
  • §mph@mrao.cam.ac.uk

Article Text

Click to Expand

References

Click to Expand
Issue

Vol. 2, Iss. 1 — January - March 2020

Subject Areas
Reuse & Permissions
Author publication services for translation and copyediting assistance advertisement

Authorization Required


×
×

Images

×

Sign up to receive regular email alerts from Physical Review Research

Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

×

Log In

Cancel
×

Search


Article Lookup

Paste a citation or DOI

Enter a citation
×