Predictor–corrector Method
   HOME

TheInfoList



OR:

In
numerical analysis Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of ...
, predictor–corrector methods belong to a class of
algorithm In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s designed to integrate ordinary differential equationsto find an unknown function that satisfies a given differential equation. All such algorithms proceed in two steps: # The initial, "prediction" step, starts from a function fitted to the function-values and derivative-values at a preceding set of points to extrapolate ("anticipate") this function's value at a subsequent, new point. # The next, "corrector" step refines the initial approximation by using the ''predicted'' value of the function and ''another method'' to interpolate that unknown function's value at the same subsequent point.


Predictor–corrector methods for solving ODEs

When considering the numerical solution of ordinary differential equations (ODEs), a predictor–corrector method typically uses an
explicit method Explicit and implicit methods are approaches used in numerical analysis for obtaining numerical approximations to the solutions of time-dependent ordinary and partial differential equations, as is required in computer simulations of physical pro ...
for the predictor step and an implicit method for the corrector step.


Example: Euler method with the trapezoidal rule

A simple predictor–corrector method (known as
Heun's method In mathematics and computational science, Heun's method may refer to the improved or modified Euler's method (that is, the explicit trapezoidal rule), or a similar two-stage Runge–Kutta method. It is named after Karl Heun and is a numerical pr ...
) can be constructed from the
Euler method In mathematics and computational science, the Euler method (also called the forward Euler method) is a first-order numerical analysis, numerical procedure for solving ordinary differential equations (ODEs) with a given Initial value problem, in ...
(an explicit method) and the
trapezoidal rule In calculus, the trapezoidal rule (or trapezium rule in British English) is a technique for numerical integration, i.e., approximating the definite integral: \int_a^b f(x) \, dx. The trapezoidal rule works by approximating the region under the ...
(an implicit method). Consider the differential equation : y' = f(t,y), \quad y(t_0) = y_0, and denote the step size by h. First, the predictor step: starting from the current value y_i, calculate an initial guess value \tilde_ via the Euler method, : \tilde_ = y_i + h f(t_i,y_i). Next, the corrector step: improve the initial guess using trapezoidal rule, : y_ = y_i + \tfrac12 h \bigl( f(t_i, y_i) + f(t_,\tilde_) \bigr). That value is used as the next step.


PEC mode and PECE mode

There are different variants of a predictor–corrector method, depending on how often the corrector method is applied. The Predict–Evaluate–Correct–Evaluate (PECE) mode refers to the variant in the above example: : \begin \tilde_ &= y_i + h f(t_i,y_i), \\ y_ &= y_i + \tfrac12 h \bigl( f(t_i, y_i) + f(t_,\tilde_) \bigr). \end It is also possible to evaluate the function ''f'' only once per step by using the method in Predict–Evaluate–Correct (PEC) mode: : \begin \tilde_ &= y_i + h f(t_i,\tilde_i), \\ y_ &= y_i + \tfrac12 h \bigl( f(t_i, \tilde_i) + f(t_,\tilde_) \bigr). \end Additionally, the corrector step can be repeated in the hope that this achieves an even better approximation to the true solution. If the corrector method is run twice, this yields the PECECE mode: : \begin \tilde_ &= y_i + h f(t_i,y_i), \\ \hat_ &= y_i + \tfrac12 h \bigl( f(t_i, y_i) + f(t_,\tilde_) \bigr), \\ y_ &= y_i + \tfrac12 h \bigl( f(t_i, y_i) + f(t_,\hat_) \bigr). \end The PECEC mode has one fewer function evaluation than PECECE mode. More generally, if the corrector is run ''k'' times, the method is in P(EC)''k'' or P(EC)''k''E mode. If the corrector method is iterated until it converges, this could be called PE(CE).


See also

*
Backward differentiation formula The backward differentiation formula (BDF) is a family of implicit methods for the numerical integration of ordinary differential equations. They are linear multistep methods that, for a given function and time, approximate the derivative of that ...
* Beeman's algorithm *
Heun's method In mathematics and computational science, Heun's method may refer to the improved or modified Euler's method (that is, the explicit trapezoidal rule), or a similar two-stage Runge–Kutta method. It is named after Karl Heun and is a numerical pr ...
* Mehrotra predictor–corrector method * Numerical continuation


Notes


References

* . *


External links

*
Predictor–corrector methods
for differential equations {{DEFAULTSORT:Predictor-corrector method Algorithms Numerical analysis