Numerical Methods / Linear systems, integrals and equations of motion
Numerical Integration and ODE Solvers
From Simpson’s rule to Gaussian quadrature and Runge–Kutta: squeezing more accuracy out of fewer function evaluations.
Contents 2 sections
By the end you can
- Compare the error orders of trapezoid, Simpson and Gauss rules
- Explain the idea behind Gaussian quadrature
- Describe the classical Runge–Kutta method
Helps to know: Numerical Integration & Error, Numerical Methods for ODEs
§1Choosing the points too
The trapezoid rule has error and Simpson’s rule . Gaussian quadrature chooses both the weights and the sample points, and with points integrates every polynomial of degree up to exactly.
For , Euler’s method has global error . The classical fourth-order Runge–Kutta method samples the slope four times per step for error : halving the step cuts the error sixteen-fold.
Preparing the instrument…
Check yourself
- Q1Two-point Gaussian quadrature is exact for polynomials up to degree…
- Q2Halving the step of a fourth-order method divides the error by about…