Jump to content

Predictor–corrector method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Michael Hardy (talk | contribs) at 04:45, 17 November 2011 (Euler trapezoidal example: "align" in TeX). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In mathematics, particularly numerical analysis, a predictor–corrector method is an algorithm that proceeds in two steps. First, the prediction step calculates a rough approximation of the desired quantity. Second, the corrector step refines the initial approximation using another means.

Example

In approximating the solution to a first-order ordinary differential equation, suppose one knows the solution points and at times and . By fitting a cubic polynomial to the points and their derivatives (obtained from the differential equation), one can predict a point by extrapolating to a future time . Using the new value and its derivative there, along with the previous points and their derivatives, one can then better interpolate the derivative between and to get a better approximation . The interpolation and subsequent integration of the differential equation constitute the corrector step.

Euler trapezoidal example

Example of an Euler – trapezoidal predictor–corrector method.

In this example = ,

First calculate an initial guess value via Euler:

Next, improve the initial guess through iteration of the trapezoidal rule. This iteration process normally converges quickly.

This iteration process is repeated until some fixed value n or until the guesses converge to within some error tolerance e :

then use the final guess as the next step:

Note that the overall error is unrelated to convergence in the algorithm but instead to the step size and the core method, which in this example is a trapezoidal, (linear) approximation of the actual function. The step size h ( ) needs to be relatively small in order to get a good approximation. See also stiff equation.

See also

References

  • Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007). "Section 17.6. Multistep, Multivalue, and Predictor-Corrector Methods". Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. ISBN 978-0-521-88068-8.