encyclopegia.org

Numerical stability

In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms.[src] The precise definition of stability depends on the context: one important context is numerical linear algebra, and another is algorithms for solving ordinary and partial differential equations by discrete approximation.[src] In numerical linear algebra, the principal concern is instabilities caused by proximity to singularities of various kinds, such as very small or nearly colliding eigenvalues.[src] On the other hand, in numerical algorithms for differential equations the concern is the growth of round-off errors and/or small fluctuations in initial data which might cause a large deviation of final answer from the exact solution.[src] Some numerical algorithms may damp out the small fluctuations (errors) in the input data; others might magnify such errors.[src] Calculations that can be proven not to magnify approximation errors are called numerically stable.[src] One of the common tasks of numerical analysis is to try to select algorithms which are robust – that is to say, do not produce a wildly different result for a very small change in the input data.[src] An opposite phenomenon is instability.…[src]

In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms.[src] The precise definition of stability depends on the context: one important context is numerical linear algebra, and another is algorithms for solving ordinary and partial differential equations by discrete approximation.[src] In numerical linear algebra, the principal concern is instabilities caused by proximity to singularities of various kinds, such as very small or nearly colliding eigenvalues.[src] On the other hand, in numerical algorithms for differential equations the concern is the growth of round-off errors and/or small fluctuations in initial data which might cause a large deviation of final answer from the exact solution.[src] Some numerical algorithms may damp out the small fluctuations (errors) in the input data; others might magnify such errors.[src] Calculations that can be proven not to magnify approximation errors are called numerically stable.[src] One of the common tasks of numerical analysis is to try to select algorithms which are robust – that is to say, do not produce a wildly different result for a very small change in the input data.[src] An opposite phenomenon is instability.[src] Typically, an algorithm involves an approximative method, and in some cases one could prove that the algorithm would approach the right solution in some limit (when using actual real numbers, not floating point numbers).[src] Even in this case, there is no guarantee that it would converge to the correct solution, because the floating-point round-off or truncation errors can be magnified, instead of damped, causing the deviation from the exact solution to grow exponentially.[src] In many cases, it is more natural to consider the relative error \frac instead of the absolute error .[src] The algorithm is said to be backward stable if the backward error is small for all inputs  .[src] Of course, "small" is a relative term and its definition will depend on the context.[src] Often, we want the error to be of the same order as, or perhaps only a few orders of magnitude bigger than, the unit round-off.[src] The usual definition of numerical stability uses a more general concept, called mixed stability, which combines the forward error and the backward error.[src] An algorithm is stable in this sense if it solves a nearby problem approximately, i.e., if there exists a such that both is small and is small.[src] Hence, a backward stable algorithm is always stable.[src] An algorithm is forward stable if its forward error divided by the condition number of the problem is small.[src] This means that an algorithm is forward stable if it has a forward error of magnitude similar to some backward stable algorithm.[src] ==Example== Computing the square root of 2 (which is roughly 1.41421) is a well-posed problem.[src] Many algorithms solve this problem by starting with an initial approximation x 0 to \sqrt{2} , for instance x 0 = 1.4, and then computing improved guesses x 1 , x 2 , etc.[src] One such method is the famous Babylonian method, which is given by x k+1 = (x k + 2/x k )/2.[src] Another method, called "method X", is given by x k+1 = (x k 2 − 2) 2 + x k .[src] A few iterations of each scheme are calculated in table form below, with initial guesses x 0 = 1.4 and x 0 = 1.42.[src] Observe that the Babylonian method converges quickly regardless of the initial guess, whereas Method X converges extremely slowly with initial guess x 0 = 1.4 and diverges for initial guess x 0 = 1.42.[src] Hence, the Babylonian method is numerically stable, while Method X is numerically unstable.[src] Numerical stability is affected by the number of the significant digits the machine keeps.[src] If a machine is used that keeps only the four most significant decimal digits, a good example on loss of significance can be given by the two equivalent functions f(x)=x\left(\sqrt{x+1}-\sqrt{x}\right) and g(x)=\frac{x}{\sqrt{x+1}+\sqrt{x}}.[src] Comparing the results of f(500)=500 \left(\sqrt{501}-\sqrt{500} \right)=500 \left(22.38-22.36 \right)=500(0.02)=10 and \begin{alignat}{3}g(500)&=\frac{500}{\sqrt{501}+\sqrt{500}}\\ &=\frac{500}{22.38+22.36}\\ &=\frac{500}{44.74}=11.17 \end{alignat} by comparing the two results above, it is clear that loss of significance (caused here by catastrophic cancellation from subtracting approximations to the nearby numbers \sqrt{501} and \sqrt{500} , despite the subtraction being computed exactly) has a huge effect on the results, even though both functions are equivalent, as shown below \begin{alignat}{4} f(x)&=x \left(\sqrt{x+1}-\sqrt{x} \right)\\ &=x \left(\sqrt{x+1}-\sqrt{x} \right)\frac{\sqrt{x+1}+\sqrt{x}}{\sqrt{x+1}+\sqrt{x}}\\ &=x\frac{(\sqrt{x+1})^2-(\sqrt{x})^2}{\sqrt{x+1}+\sqrt{x}}\\ &=x\frac{x+1-x}{\sqrt{x+1}+\sqrt{x}} \\ &=x\frac{1}{\sqrt{x+1}+\sqrt{x}} \\ &=\frac {x}{\sqrt{x+1}+\sqrt{x}} \\ &=g(x) \end{alignat} The desired value, computed using infinite precision, is 11.174755...[src] ==Notes==[src]

38 sentences · 38 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Numerical stability." encyclopegia.org, 2026, https://encyclopegia.org/wiki/numerical-stability. Accessed 29 November 2026.

Chicago

"Numerical stability." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/numerical-stability.

APA

encyclopegia.org. (2026). Numerical stability. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/numerical-stability

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1353491555 · 0.5 · snapshot enwiki-001353491555

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.