Abstract
A spectral method is developed for the direct solution of linear ordinary differential equations with variable coefficients and general boundary conditions. The method leads to matrices that are almost banded, and a numerical solver is presented that takes ${\cal O}(m^2n)$ operations, where $m$ is the number of Chebyshev points needed to resolve the coefficients of the differential operator and $n$ is the number of Chebyshev coefficients needed to resolve the solution to the differential equation. We prove stability of the method by relating it to a diagonally preconditioned system that has a bounded condition number, in a suitable norm. For Dirichlet boundary conditions, this implies stability in the standard $2$-norm. An adaptive QR factorization is developed to efficiently solve the resulting linear system and automatically choose the optimal number of Chebyshev coefficients needed to represent the solution. The resulting algorithm can efficiently and reliably solve for solutions that require as many as a million unknowns.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.