Jump to content

Predictor–corrector method

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jeffareid (talk | contribs) at 21:27, 26 February 2010 (Euler Trapezoidal Example). 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 (gotten through 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 a Euler - trapezoidal predictor-corrector method.

In this example h = ,

First calculate an initial guess value via Euler:

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

...

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

  • Weisstein, Eric W. "Predictor-Corrector Methods". MathWorld.
  • Predictor-corrector methods for differential equations