8.2. Stiff Systems of Differential Equations#
Although there are situations when a single differential equation is stiff, in real life problems, stiffness is mainly a phenomenon related to systems of differential equations. A stiff system of differential equation, similarly, has a transient solution as well as a slowly varying or steady-state solution.
Consider a general system of \(\,n\,\) ordinary differential equations of the form
given by
where \(\,\bf y\,\) and \(\,\bf g\,\) are vectors with \(\,n\,\) components and \(\,\bf \Lambda\,\) is the Jacobian matrix, J, of \(\,\bf f\,\) (i.e. \(\,{\bf f}_y(x_j,y_j)\,\) at some local point, or at some step, \(\,j\,\)). For example, for a system of three equations:
the associated Jacobian matrix is
Here, the eigenvalues \(\,\lambda_i\,\) of the Jacobian matrix play the part of \(\,\lambda\,\). The system of equations is stiff if there is an eigenvalue, \(\,\lambda_i\,\), of \(\mathbf{f}\), with a negative real part of a very large magnitude. In a system of equations there are several \(\,\lambda's\,\) with corresponding time constants,
In a system of equations the larger the magnitude difference between the eigenvalues of the corresponding Jacobian matrix, the higher is the degree of stiffness. The degree of stiffness can then be measured by calculating the stiffness ratio, \(\,S(x)\,\), given by
The higher the stiffness ratio the higher the degree of stiffness of the system.
Note
The above system is a linear system and the terms in the Jacobian, \(\dfrac{\partial \mathbf{f}}{\partial \mathbf{y}}\,\), and thus the corresponding eigenvalues are constant throughout the integration. For non-linear systems the terms in the Jacobian, \(\dfrac{\partial \mathbf{f}}{\partial \mathbf{y}}\,\), and thus the corresponding eigenvalues can be a function of some variables in the system and they are calculated locally as the integration proceeds.
Example 8.3
Consider the non-linear system
with initial conditions
This is an example from chemical reaction kinetics and \(y_3\) represents the concentration of a very reactive species which is an intermediate in the course of reaction and always stays small. \(y_1\) and \(y_2\) are monotonically decreasing and increasing respectively. \(y_3\) increases to a maximum and thereafter is monotonically decreasing. It can be shown that \(\,y_3<1.3\times10^{-5}\). The Jacobian of the system is given by
Since \(y_3\) is small, the last column has elements which are much larger than the remainder - the large magnitude differences between the columns is a characteristic of stiff systems. Note that at any time step \(j\), the calculated values of \(y_1\), \(y_2\), and \(y_3\) can be used for calculating the corresponding values of \(\lambda_1\), \(\lambda_2\), and \(\lambda_3\).
Example 8.4
Consider the differential equation system
The analytic solution is
where \(t\) is the independent variable.
Analytical Solution to Linear differential equation system
For a homogeneous (linear) system of differential equations, we can use the eigenvalues and eigenvectors of the system to obtains its analytical solution.
Supposing we have a linear system of differential equations given by
and assuming its solution can be expressed as
where \(\mathbf{A}\) is the matrix of the linear system, and \(\mathbf{v}\) is a vector. Differentiating Eq. (8.2), we can obtain
Substituting Eqs. (8.2) and (8.3) into Eq. (8.1), we can obtain
dividing \(e^{\lambda t}\) gives:
This means \(\lambda\) and \(\mathbf{v}\) are the eigenvalue and eigenvector of the system, respectively. Once we obtain the \(\lambda\) and \(\mathbf{v}\), we can obtain the analytical solution to the system (8.1) given by
where \(n\) is the size of the system, \(\alpha_i (i=1,2,\ldots,n)\) are coefficients need to be determined by using the initial condition.
Regarding Example 8.4, we have
its eigenvalues are
its eigenvectors are given by
Now the solution to the system can be expressed as
At \(t=0\), \(\mathbf{U}(0)=[1, 0]^{\mathrm{T}}\), so we obtain
Therefore the analytical solution is given by
The Jacobian \(\mathbf{J}\) of this system is:
The corresponding eigenvalues are \(\,\lambda_1 = -1\,\) and \(\,\lambda_2 = -1000\,\). Thus, the stiffness ratio is \(1000\) which is not too high; in practical problems a ratio of the order of \(10^{6\pm2}\) is not unusual. The stiffness phenomenon of this problem can also be observed from the analytical solution; both dependent variables contain both fast and slow components. Depending which numerical method is chosen for the solution of this system there will be restrictions on \(h\) even when the rapidly changing component is insignificant.
Note
Note that the above problem is a linear system and the terms of the Jacobian, \(\,\dfrac{\partial \mathbf{f}}{\partial \mathbf{y}}\,\), and thus the corresponding eigenvalues are constant throughout the integration!