Access Restriction

Author Milne, W. E. ♦ Reynolds, R. R.
Source ACM Digital Library
Content type Text
Publisher Association for Computing Machinery (ACM)
File Format PDF
Copyright Year ©1959
Language English
Subject Domain (in DDC) Computer science, information & general works ♦ Data processing & computer science
Abstract In 1926 Milne [1] published a numerical method for the solution of ordinary differential equations. This method turns out to be unstable, as shown by Muhin [2], Hildebrand [3], Liniger [4], and others. Instability was not too serious in the day of desk calculators but is fatal in the modern era of high speed computers. The basic cause of the instability in this particular method is the use of Simpson's rule to perform the final integration. Simpson's rule integrates over two intervals, and under certain conditions can produce an error which alternates in sign from step to step and which increases in magnitude exponentially. It is the purpose of this paper to show that the occasional application of Newton's “three eighths” quadrature formula over three intervals can effectively damp out the unwanted oscillation without harm to the desired solution. Let the given differential equation be $\textit{dy}/\textit{dx}$ = ƒ(x, y), and let the step length for the independent variable $\textit{x}$ be denoted by $\textit{h}.$ The quantity $\textit{s}$ = $\textit{h}$ $∂ƒ/∂\textit{y}$ plays a basic role in the analysis, for it may be shown that when Simpson's rule is used an error $\textit{E}0$ at $\textit{x}$ = $\textit{x}0$ is propagated through subsequent steps according to the second order difference equation (1 - $\textit{s}\textit{n}+1/3)$ $\textit{E}\textit{n}+1$ - $(4\textit{sn}/3)$ $\textit{En}$ - (1 + $\textit{s}\textit{n}-1/3)$ $\textit{E}\textit{n}-1$ = 0. (See e.g., Hildebrand [3], p. 206, Milne [5], p. 68.)While in general $\textit{s}$ is a variable, the special case where $\textit{s}$ is constant not only permits a simple analysis but also serves to explain the behavior in other cases. Cf. Hildebrand [3], p. 202. Accordingly we treat $\textit{s}$ as a constant and assume that our differential equation is $\textit{dy}/\textit{dx}$ = $\textit{Gy},$ the general solution of which, after $\textit{n}$ steps, is $\textit{yn}$ = $\textit{Aens},$ where $\textit{A}$ is an arbitrary constant, $\textit{s}$ = $\textit{hG},$ and $\textit{x}$ = $\textit{nh}.$ When Simpson's rule is used, the corresponding difference equation is (1 - $\textit{s}/3)$ $\textit{y}\textit{n}+1$ - $(4\textit{s}/3)$ $\textit{yn}$ - (1 + $\textit{s}/3)$ $\textit{y}\textit{n}-1$ = 0, (1) with the general solution $\textit{yn}$ = $\textit{Ar}1\textit{n}$ + $\textit{Br}2\textit{n},$ (2) in which $\textit{r}1$ and $\textit{r}2$ are the roots of the quadratic equation (1 - $\textit{s}/3)$ $\textit{r}2$ - $(4\textit{s}/3)$ $\textit{r}$ - (1 + $\textit{s}/3)$ = 0. From this equation we obtain the derivative $\textit{dr}/\textit{ds}$ = $(\textit{r}2$ + $4\textit{r}$ + $1)2(12\textit{r}2$ + $12\textit{r}$ + 12)-1, which is never negative. Hence the roots $\textit{r}1$ = $[2\textit{s}/3$ + (1 + $\textit{s}2/3)1/2]$ (1 - $\textit{s}/3)-1,$ $\textit{r}2$ = $[2\textit{s}/3$ - (1 + $\textit{s}2/3)1/2]$ (1 - $\textit{s}/3)-1,$ are monotone increasing functions for all real values of $\textit{s},$ except for a discontinuity in $\textit{r}1$ at $\textit{s}$ = 3. Moreover, the roots $\textit{r}1$ and $\textit{r}2$ are analytic within a circle of radius 31/2 with center at the origin in the complex $\textit{s}$ plane. Through terms of degree five in $\textit{s}$ the power series for $\textit{r}1$ and $\textit{r}2$ are respectively $\textit{r}1$ = 1 + $\textit{s}$ + $\textit{s}2/2!$ + $\textit{s}3/3!$ + $\textit{s}4/4!$ + $\textit{s}5/72$ + ··· = $\textit{es}$ + $\textit{s}5/180$ + ··· , (3) and $\textit{r}2$ = -1 + $\textit{s}/3$ - $\textit{s}2/18$ - $\textit{s}3/54$ + $5\textit{s}4/648$ + $5\textit{s}5/1944$ + ··· (4) Obviously $\textit{r}1$ is the desired root and $\textit{r}2$ is the unwanted root that produces the oscillation. Quite apart from questions of stability the process of numerical integration with Simpson's rule requires that the quantity $\textit{s}/3$ must be numerically less than unity and in practical computation should be considerably less than unity. Cf. Milne [5], p. 67. We shall therefore assume that $|\textit{s}|$ lt 1. Table I shows to six decimal places the value of $\textit{r}1$ and $\textit{r}2$ for $\textit{s}$ ranging from -1 to +1 at steps of 0.1. It is evident that in this range $\textit{r}2$ is numerically less than one if $\textit{s}$ is positive, greater than one if $\textit{s}$ is negative. Thus the oscillating term increases exponentially with $\textit{n}$ if $\textit{G}$ is negative, decreases if $\textit{G}$ is positive. Now suppose that after $\textit{k}$ steps of the process we recompute $\textit{yk}$ from the values already found, using Newton's “three eighths rule”, to obtain $\textit{yk}*$ = $\textit{y}\textit{k}-3$ + $(3\textit{s}/8)(\textit{yk}$ + $3\textit{y}\textit{k}-1$ + $3\textit{y}\textit{k}-2$ + $\textit{y}\textit{k}-3).$ Then we replace the originally computed $\textit{yk}$ by the arithmetic mean $\textit{yk}$ = $(\textit{yk}$ + $\textit{yk}*)/2.$ (5) From (2) and (5) we find that $\textit{yk}$ = $\textit{Ar}\textit{k}-31\textit{K}(\textit{r}1)$ + $\textit{Br}\textit{k}-32\textit{K}(\textit{r}2),$ (6) in which $\textit{K}(\textit{r})$ is defined by the equation $\textit{K}(\textit{r})$ = $[\textit{r}3$ + 1 + $(3\textit{s}/8)$ $(\textit{r}$ + 1)3]/2. (7) This function $\textit{K}(\textit{r})$ is the key to the problem. For by means of the series for $\textit{r}1$ and $\textit{r}2$ it can be shown that $\textit{K}(\textit{r}1)$ = $\textit{r}13$ + $\textit{s}5/96$ + ··· (8) while $\textit{K}(\textit{r}2)$ = $\textit{s}/2$ - $\textit{s}2/4$ + ··· . Hence equation (3) becomes $\textit{yk}$ = $\textit{Ar}1\textit{k}$ + terms of degree 5 and higher + $\textit{Br}\textit{k}-32(\textit{s}/2)$ + terms of degree 2 and higher. (9) Comparing $\textit{yk}$ with $\textit{yk}$ we note that the desired solution is substantially unchanged, and agrees with the true solution $\textit{eks}$ through terms of degree 4 in $\textit{s},$ while the unwanted solution has been decreased roughly by a factor of magnitude $\textit{s}/2.Table$ I shows to six decimal places the values of $\textit{K}(\textit{r}1)$ and $\textit{K}(\textit{r}2)$ in the range from $\textit{s}$ = -1 to $\textit{s}$ = +1. It is seen that in this interval the absolute value of $\textit{K}(\textit{r}2)$ is always less than unity. Consider now the propagation of a single error starting at $\textit{n}$ = 0 and modified after every group of $\textit{k}$ steps by means of formula (5). Since $\textit{En}$ is a solution of equation (1), in the $\textit{m}th$ group of $\textit{k}$ steps the error $\textit{En}$ can be expressed by formula (2) in the form $\textit{En}$ = $\textit{amr}1\textit{j}$ + $\textit{bmr}2\textit{j},$ (10) provided $\textit{n}$ = $\textit{mk}$ + $\textit{j}$ and $\textit{j}$ < $\textit{k}.$ But if $\textit{j}$ = $\textit{k}$ the value of $\textit{En}$ can be expressed approximately as $\textit{En}$ = $\textit{amr}1\textit{k}$ + $\textit{bmr}\textit{k}-32\textit{K}(\textit{r}2).$ (11) To obtain this result one must replace $\textit{K}(\textit{r}1)$ by its approximate value $\textit{r}13,$ as shown in equation (8). Similarly in the $(\textit{m}$ + 1)th group of steps we may let $\textit{En}$ = $\textit{a}\textit{m}+1\textit{r}1\textit{j}$ + $\textit{b}\textit{m}+1\textit{r}2\textit{j},$ where $\textit{n}$ = $(\textit{m}$ + $1)\textit{k}$ + $\textit{j}$ and $\textit{j}$ < $\textit{k}.$ The coefficients $\textit{a}\textit{m}+1$ and $\textit{b}\textit{m}+1$ are connected to the coefficients $\textit{a}\textit{m}$ and $\textit{b}\textit{m}$ by the following equations, written in matrix form: $(\textit{r}-11$ $\textit{r}-12$ 1 $1)(\textit{a}\textit{m}+1$ $\textit{b}\textit{m}+1)$ = $(\textit{r}\textit{k}-11$ $\textit{r}\textit{k}-12$ $\textit{r}1\textit{k}$ $\textit{r}\textit{k}-32\textit{K}(\textit{r}2))(\textit{am}$ $\textit{bm}).$ One may verify the above statement by noting that both members of the first equation are equal to $\textit{E}\textit{mk}+\textit{k}-1$ and both members of the second equation are equal to $\textit{E}\textit{mk}+\textit{k}.$ Left-hand multiplication by the inverse of the matrix on the left leads to $(\textit{a}\textit{m}+1$ $\textit{b}\textit{m}+1)$ = $\textit{M}$ $(\textit{am}$ $\textit{bm})$ (12) in which $\textit{M}$ = (u v 0 $\textit{w}),$ where $\textit{u}$ = $\textit{r}1\textit{k},$ $\textit{v}$ = $\textit{r}2\textit{k}\textit{P},$ $\textit{w}$ = $\textit{r}2\textit{k}\textit{Q},$ and $\textit{P}$ = - $[\textit{r}1$ - $\textit{r}1\textit{K}(\textit{r}2)\textit{r}-32]$ $(\textit{r}1$ - $\textit{r}2)-1,$ $\textit{Q}$ = $[\textit{r}1$ - $\textit{r}2\textit{K}(\textit{r}2)\textit{r}32]$ $(\textit{r}1$ - $\textit{r}2)-1.$ The quantities $\textit{am}$ and $\textit{bm},$ and consequently (by equation (10)) the quantity $\textit{En}$ also, will approach zero as $\textit{m}$ becomes infinite provided both latent roots of $\textit{M},$ namely $\textit{u}$ and $\textit{w},$ are less than one in absolute value. For the case under consideration where $\textit{s}$ lies between -1 and 0 the value of $\textit{u}$ is always less than one, as we see from table I.It remains to examine the other latent root $\textit{w}$ = $\textit{r}2\textit{k}\textit{Q}.$ The quantity $\textit{Q}$ is a function of $\textit{s}$ alone and its values for $\textit{s}$ in the interval form -1 to 0 are shown in table II. If we define $\textit{q}$ by the equation $\textit{q}$ = - log $\textit{Q}/log(-\textit{r}2)$ (13) it can be shown that for $\textit{s}$ between -1 and 0 and for $\textit{k}$ an integer less than $\textit{q}$ the latent root $\textit{w}$ will be less than one in absolute value. Hence to assure that the propagated error $\textit{E}n$ will approach zero it is sufficient to choose a value of $\textit{k}$ which is less than $\textit{q}.$ For convenience of computers some values of $\textit{q}$ for $\textit{s}$ between -1 and 0 are supplied in table II. It may be noted that the foregoing analysis does not strictly apply if $\textit{k}$ is less than 3 since formula (6) on which the reasoning depends was derived with the tacit assumption that $\textit{k}$ is not less than 3. Nevertheless machine tests indicate that the convergence for $\textit{k}$ less than 3 is just about what might be expected on the basis of the above analysis. However, it is unwise for other reasons than stability to use values of $\textit{s}$ numerically greater than 0.8, so that the accuracy of table II in this range is unimportant.To illustrate the foregoing theory several computations were performed on the Alwac III-E at Oregon State College for the system $\textit{dy}/\textit{dx}$ = $-\textit{y},$ $\textit{y}(0)$ = 1. In this case $\textit{s}$ < 0, $|\textit{r}2|$ > 1, and Simpson's rule, if uncorrected, produces instability.Table III shows the difference $\textit{E}$ = $\textit{ens}$ - $\textit{yn}$ between the true solution $\textit{ens}$ and the computed solution $\textit{yn}$ after $\textit{n}$ steps of the computation. Six values of $\textit{k}$ are used in table III, $\textit{k}$ = ∞ (that is, no stabilization), $\textit{k}$ = 169, 39, 19, 5, and 3. Four values of $\textit{s}$ are used, namely $\textit{s}$ = -0.10, -0.07, -0.04, and -0.01. The number $\textit{n}$ of steps in the computations varies from 300 for larger values of $-\textit{s}$ to 2000 for the smallest. Not all computations were carried to the full number of steps shown at the left, hence some columns are partially blank. The number of decimal places is indicated for each division of the table. For example at $\textit{s}$ = -0.10, $\textit{k}$ = 169, and $\textit{n}$ = 300, the entry -31 means -0.000031, while for $\textit{s}$ = -0.04, $\textit{k}$ = 169, $\textit{n}$ = 500, the entry -6 means -0.00000006.From table II we obtain the integral parts of $\textit{q}$ corresponding to the given values of $\textit{s}$ and find that according to theory the solution should be stable for $\textit{s}$ = -0.10 if $\textit{k}$ < 21, for $\textit{s}$ = -0.07 if $\textit{k}$ < 30, for $\textit{s}$ = -0.04 if $\textit{k}$ < 52, and for $\textit{s}$ = -0.01 if $\textit{k}$ < 208. Hence in table III the three right-hand columns should be stable for all four values of $\textit{s},$ four right-hand columns should be stable for $\textit{s}$ = -0.04, and five right-hand columns for $\textit{s}$ = -0.01. The computations appear to conform to the theory, since the error is negligible in these cases. Occasional errors of one unit in the last place are to be explained by the accidents of roundoff, for if they were due to instability they would increase with $\textit{n}.$ (The error -2 for $\textit{k}$ = 169 at $\textit{n}$ = 2000 is unexplained, but apparently is not due to instability, as it persisted without increasing through many steps between 1800 and 2000.) The results shown in table III illustrate the normal situation occurring in practice, where if $\textit{h}$ is properly chosen and the machine operates correctly, the only source of error is roundoff.We note that of two consecutive values of $\textit{k}$ the odd value is likely to give somewhat better results. For if $\textit{k}$ is even no stabilization occurs at odd values of $\textit{n},$ and since Simpson's rule operates over two intervals the effect of stabilization only reaches the odd entries indirectly through the derivative $\textit{y}′.It$ is the intent of the authors to treat differential systems of higher order in a future paper.
ISSN 00045411
Age Range 18 to 22 years ♦ above 22 year
Educational Use Research
Education Level UG and PG
Learning Resource Type Article
Publisher Date 1959-04-01
Publisher Place New York
e-ISSN 1557735X
Journal Journal of the ACM (JACM)
Volume Number 6
Issue Number 2
Page Count 8
Starting Page 196
Ending Page 203

Open content in new tab

   Open content in new tab
Source: ACM Digital Library