In
mathematics, a stiff equation is a
differential equation
In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, a ...
for which certain
numerical methods
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
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.
When integrating a differential equation numerically, one would expect the requisite step size to be relatively small in a region where the
solution curve
In mathematics, an integral curve is a parametric curve that represents a specific solution to an ordinary differential equation or system of equations.
Name
Integral curves are known by various other names, depending on the nature and interpreta ...
displays much variation and to be relatively large where the solution curve straightens out to approach a line with slope nearly zero. For some problems this is not the case. In order for a numerical method to give a reliable solution to the differential system sometimes the step size is required to be at an unacceptably small level in a region where the solution curve is very smooth. The phenomenon is known as ''stiffness''. In some cases there may be two different problems with the same solution, yet one is not stiff and the other is. The phenomenon cannot therefore be a property of the exact solution, since this is the same for both problems, and must be a property of the differential system itself. Such systems are thus known as ''stiff systems''.
Motivating example
Consider the
initial value problem
In multivariable calculus, an initial value problem (IVP) is an ordinary differential equation together with an initial condition which specifies the value of the unknown function at a given point in the domain. Modeling a system in physics or o ...
The exact solution (shown in cyan) is
We seek a
numerical solution that exhibits the same behavior.
The figure (right) illustrates the numerical issues for various numerical integrators applied on the equation.
One of the most prominent examples of the stiff
ordinary differential equation
In mathematics, an ordinary differential equation (ODE) is a differential equation whose unknown(s) consists of one (or more) function(s) of one variable and involves the derivatives of those functions. The term ''ordinary'' is used in contras ...
s (ODEs) is a system that describes the
chemical reaction
A chemical reaction is a process that leads to the chemical transformation of one set of chemical substances to another. Classically, chemical reactions encompass changes that only involve the positions of electrons in the forming and break ...
of Robertson:
If one treats this system on a short interval, for example,