Stiff equation
From Wikipedia, the free encyclopedia
In mathematics, a stiff equation is a differential equation for which certain numerical methods for solving the equation are numerically unstable, unless the step size is taken to be extremely small. It has proven difficult to formulate a precise definition of stiffness, but the main idea is that the equation includes some terms that can lead to rapid variation in the solution.
Contents |
[edit] Motivating example
Consider the initial value problem
The exact solution is y(t) = e − 15t, and clearly y(t) → 0 as t → ∞. We want the numerical solutions to exhibit the same behaviour.
Figure 1 illustrates the numerical issues for various numerical integrators applied on the equation. First, Euler's method with a step size of h = 1 / 4 oscillates wildly and quickly exits the figure. Halving the step size and rerunning the integration with h = 1 / 8 the result is within the figure boundaries, but oscillates and by no means represents the qualitative solution.
The trapezoidal method, that is, the two-stage Adams–Moulton method, is given by
Applying this method instead of Euler's method gives a much better result. As the figure shows, the numerical results decrease monotonically to zero, just like the exact solution.
[edit] Characterization of stiffness
Certain types of problems can be characterized as stiff:
- problems of the form
-
- where k∈C and | k | is large.
- systems of the form
-
- where K is a square matrix having at least one eigenvalue l∈C and | l | is large.
- systems of the form
-
- with the Jacobian of f having at least one eigenvalue m∈C and | m | is large.
[edit] A-stability
The behaviour of numerical methods on stiff problems can be analyzed by applying these methods to the test equation y' = ky with k ∈ C. The solution of this equation is y(t) = ekt. This solution approaches zero as when Re k < 0. If the numerical method also exhibits this behaviour, then the method is said to be A-stable.[1] A-stable methods do not exhibit the instability problems as described in the motivating example.
[edit] Runge–Kutta methods
Runge–Kutta methods applied to the test equation y' = ky take the form yn + 1 = φ(hk)yn, and by induction, yn = φ(hk)ny0 (the function φ is called the stability function). Thus, the condition that yn → 0 as n → ∞ is equivalent to | φ(hk) | < 1. This motivates the definition of the region of absolute stability (sometimes referred to simply as stability region), which is the set {z ∈ C | | φ(z) | < 1 }. The method is A-stable if the region of absolute stability contains the set { z ∈ C | Re(z) < 0 }, that is, the left half plane.
[edit] Example: The Euler and trapezoidal methods
Consider both the Euler and trapezoidal methods above. The Euler method applied to the test equation y' = ky is
Hence, yn = (1 + hk)ny0 with φ(z) = 1 + z. The region of absolute stability for this method is thus { z ∈ C | |1+z| < 1 } which is the disk depicted on the right. The Euler method is not A-stable.
The motivating example had k = − 15. The value of z when taking step size h = 1 / 4 is z = − 3.75, which is outside the stability region. Indeed, the numerical results do not converge to zero. However, with step size h = 1 / 8, we have z = − 1.875 which is just inside the stability region and the numerical results converge to zero, albeit rather slowly.
The trapezoidal method
when applied to the test equation y' = ky, is
Solving for yn + 1 yields
Thus, the stability function is
and the region of absolute stability is
This region contains the left-half plane, so the trapezoidal method is A-stable. In fact, the stability region is identical to the left-half plane, and thus the numerical solution of y' = ky converges to zero if and only if the exact solution does. Nevertheless, the trapezoidal method does not have perfect stability: it does damp all decaying components, but rapidly decaying components are damped only very mildly, because as . This led to the concept of L-stability: a method is L-stable if it is A-stable and as . The trapezoidal method is not L-stable. The implicit Euler method is an example of an L-stable method.[2]
[edit] General theory
The stability function of a Runge–Kutta method with coefficients A and b is given by
where e denotes the vector with ones. This is a rational function (one polynomial divided by another).
Explicit Runge–Kutta methods have a strictly lower triangular coefficient matrix A and thus, their stability function is a polynomial. It follows that explicit Runge–Kutta methods cannot be A-stable.
The stability function of implicit Runge–Kutta methods is often analyzed using order stars. The order star for a method with stability function φ is defined to be the set {z ∈ C | | φ(z) | > ez }. A method is A-stable if and only if its stability function has no poles in the left-hand plane and its order star contains no purely imaginary numbers.[3]
[edit] Multistep methods
Linear multistep methods have the form
Applied to the test equation, they become
which can be simplified to
where z = hk. This is a linear recurrence relation. The method is A-stable if all solutions {yn} of the recurrence relation converge to zero when Re z < 0. The characteristic polynomial is
All solutions converge to zero for a given value of z if all solutions w of Φ(z,w) = 0 lie in the unit circle..
The region of absolute stability for a multistep method of the above form is then the set of all z ∈ C for which all w such that Φ(z,w) = 0 satisfy | w | < 1. Again, if this set contains the left-half plane, the multi-step method is said to be A-stable.
[edit] Example: The second-order Adams–Bashforth method
Let us determine the region of absolute stability for the two-step Adams–Bashforth method
The characteristic polynomial is
which has roots
thus the region of absolute stability is
This region is shown on the right. It does not include all the left half-plane (in fact it only includes the real axis between z = − 1 and z = 0) so the Adams–Bashforth method is not A-stable.
[edit] General theory
Explicit multistep methods can never be A-stable, just like explicit Runge–Kutta methods. Implicit multistep methods can only be A-stable if their order is at most 2. The latter result is known as the second Dahlquist barrier; it restricts the usefulness of linear multistep methods for stiff equations. An example of a second-order A-stable method is the trapezoidal rule mentioned above, which can also be considered as a linear multistep method.[4]
[edit] See also
[edit] Notes
- ^ This definition is due to Dahlquist (1963).
- ^ The definition of L-stability is due to Ehle (1969).
- ^ The definition is due to Wanner, Hairer & Nørsett (1978); see also Iserles & Nørsett (1991).
- ^ See Dahlquist (1963).
[edit] References
- Dahlquist, Germund (1963), “A special stability problem for linear multistep methods”, BIT 3: 27–43.
- Ehle, B. L. (1969), On Padé approximations to the exponential function and A-stable methods for the numerical solution of initial value problems, Report 2010, University of Waterloo.
- Hairer, Ernst & Wanner, Gerhard (1996), Solving ordinary differential equations II: Stiff and differential-algebraic problems (second ed.), Berlin: Springer Verlag, ISBN 978-3-540-60452-5.
- Iserles, Arieh & Nørsett, Syvert (1991), Order Stars, Chapman and Hall, ISBN 978-0-412-35260-7.
- Wanner, Gerhard; Hairer, Ernst & Nørsett, Syvert (1978), “Order stars and stability theory”, BIT 18: 475–489.