Predictor–corrector method
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 an 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. 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
- Backward differentiation formula
- Beeman's algorithm
- Heun's method
- Mehrotra predictor-corrector method
- Numerical continuation
External links
- Weisstein, Eric W. "Predictor-Corrector Methods". MathWorld.
- Predictor-corrector methods for differential equations