Table of mathematical symbols by introduction date

From formulasearchengine
Revision as of 22:49, 7 November 2013 by en>AnomieBOT (Dating maintenance tags: {{Citation needed}})
Jump to navigation Jump to search

Template:Multiple issues

Adaptive stepsize is a technique in numerical analysis used for many problems, but mainly for integration. It can be used for both normal integration (i.e. quadrature), or the process of solving an ordinary differential equation. This article focuses on the latter. For an explanation of adaptive stepsize in normal integration, see for example Romberg's method.

As usual, an initial value problem is stated:

y(t)=f(t,y(t)),y(a)=ya

Here, it is made clear that y and f can be vectors, as they will be when dealing with a system of coupled differential equations. In the rest of the article, this fact will be implicit.

Suppose we are interested in obtaining a solution at point t=b, given a function f(t,y), an initial time point, t=a, and an initial solution ya=y(a). Of course a numerical solution will generally have an error, so we assume yb+ϵ=y(b), where ϵ is the error.

For simplicity, the following example uses the simplest integration method, the Euler method. Note that the Euler method is almost exclusively useful for educational purposes; in practice, higher-order (Runge-Kutta) methods are used due to their superior convergence and stability properties.

Recall that the Euler method is derived from Taylor's theorem with the intermediate value theorem and the fact that y(t)=f(t,y):

y(t+h)=y(t)+hf(t,y(t))+h22f(η,y(η)),tηt+h

Which leads to the Euler method:

yn+1(0)=yn+hf(tn,yn)

And its local truncation error

τn+1(0)=ch2
yn+1(0)+τn+1(0)=y(t+h)

We mark this solution and its error with a (0). Since c is not known to us in the general case (it depends on the derivatives of f), in order to say something useful about the error, a second solution should be created, using a stepsize that is smaller. For example half the original stepsize. Note that we have to apply Euler's method twice now, meaning we get two times the local error (in the worst case). Our new, and presumably more accurate solution is marked with a (1).

yn+12=yn+h2f(tn,yn)
yn+1(1)=yn+12+h2f(tn+12,yn+12)
τn+1(1)=c(h2)2+c(h2)2=2c(h2)2=12ch2=12τn+1(0)
yn+1(1)+τn+1(1)=y(t+h)

Here, we assume error factor c is constant over the interval [t,t+h]. In reality its rate of change is proportional to y(3)(t). Subtracting solutions gives the error estimate:

yn+1(1)yn+1(0)=τn+1(1)

This local error estimate is third order accurate.

The local error estimate can be used to decide how stepsize h should be modified to achieve the desired accuracy. For example, if a local tolerance of tol is allowed, we could let h evolve like:

h0.9×h×tol|τn+1(1)|

The 0.9 is a safety factor to ensure success on the next try. This should, in principle give an error of about 0.9×tol in the next try. If |τn+1(1)|<tol, we consider the step successful, and the error estimate is used to improve the solution:

yn+1(2)=yn+1(1)+τn+1(1)

This solution is actually third order accurate in the local scope (second order in the global scope), but since there is no error estimate for it, this doesn't help in reducing the number of steps. This technique is called Richardson extrapolation.

Beginning with an initial stepsize of h=ba, this theory facilitates our controllable integration of the ODE from point a to b, using an optimal number of steps given a local error tolerance.

Similar methods can be developed for higher order methods, such as the Runge-Kutta 4th order method. Also, a global error tolerance can be achieved by scaling the local error to global scope. However, you might end up with a stepsize that is prohibitively small, especially using this Euler based method.

If you are interested in adaptive stepsize methods that use a so-called 'embedded' error estimate, see Fehlberg, Cash-Karp and Dormand-Prince. These methods are considered to be more computationally efficient, but have lower accuracy in their error estimates.

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

Further reading

  • William H. Press, Saul A. Teukolsky, William T. Vetterling, Brian P. Flannery, Numerical Recipes in C, Second Edition, CAMBRIDGE UNIVERSITY PRESS, 1992. ISBN 0-521-43108-5
  • Kendall E. Atkinson, Numerical Analysis, Second Edition, John Wiley & Sons, 1989. ISBN 0-471-62489-6
  • Silvana Ilie, Gustaf Söderlind, Robert Corless, "Adaptivity and computational complexity in the numerical solution of ODEs", J. Complexity, 24(3) (2008) 341-361.