Skip to content
Field Atlas

Atlas / Mathematics / The Computation Thread

Field · Emerged 1669 – 1963

Numerical Analysis

How can a finite machine, doing finitely many rounded operations, give answers we can trust?

5 chapters5 min read6 turning points1 open problem

Branched from
Calculus
Branched into
Continuous Optimisation + Monte Carlo Methods + Numerical Linear Algebra + Numerical Methods for PDEs
Figures
Isaac Newton, Joseph Raphson, Charles Babbage, Ada Lovelace, Carl Runge, James Wilkinson, William Kahan

In brief

Most equations cannot be solved by formula. The roots of a fifth-degree polynomial, the orbit of a comet pulled by several planets, the value of an integral with no neat antiderivative: all of them have to be computed as numbers, approximately. Numerical analysis is the mathematics of doing that well. It designs methods that approach the true answer quickly, and it proves how far the computed answer can be from the true one.

The methods are old. Newton found his method for roots in 1669, and tables of logarithms and planetary positions were computed by hand for centuries. What changed in the twentieth century was scale. Electronic computers do billions of operations, each rounded to a fixed number of digits, and nobody checks the intermediate results. James Wilkinson's analysis of rounding error in the 1960s and the IEEE 754 standard of 1985 made that kind of computing trustworthy. Failures such as the Patriot missile clock in 1991 showed what happens when the rounding is forgotten.

Key ideas

IterationEnters 1669 – 1690

Instead of solving an equation in one step, start from a guess and apply a rule that improves it, again and again. Newton's method replaces a curve by its tangent line and jumps to where the tangent crosses zero.

Order of convergenceEnters 1669 – 1690

How fast the error shrinks. Newton's method converges quadratically: near the answer, each new error is roughly the square of the old one, so the number of correct digits roughly doubles with every step.

InterpolationEnters 1901

Passing a polynomial through known values of a function, to estimate values in between. More points do not always help: with equally spaced points the polynomial can swing wildly near the ends.

Floating pointEnters 1985

The way computers store real numbers: a fixed number of significant binary digits and an exponent, like scientific notation in base 2. Almost every operation must round its result, and the relative size of that rounding is bounded by the machine epsilon.

Backward errorEnters 1960 – 1963

Instead of asking how wrong the computed answer is, ask how much the problem would have to change for the computed answer to be exactly right. If that change is tiny, the method is backward stable, and any remaining error is the problem's fault.

Draws on other domains

Chapter I

Computing by Hand

Calculus gave exact rules for rates and areas, but it rarely gave numbers directly. In a manuscript of 1669 Isaac Newton showed how to find a root of x3−2x−5=0x^3 - 2x - 5 = 0: guess 2, replace the curve by a straight line near the guess, see where that line crosses zero, and repeat. Joseph Raphson published a simpler general version in 1690. The idea of improving a guess by linear approximation, over and over, is still the most used tool for solving equations.

For two centuries most numbers came from people. Astronomers hired teams of computers, the original meaning of the word, to produce tables of logarithms, planetary positions and tides. They worked by rule, often by adding differences, and the tables carried their mistakes. Charles Babbage found so many errors that in 1822 he began building a Difference Engine to calculate and print tables by machine. His later Analytical Engine was a design for a general computer, and Ada Lovelace wrote in 1843 how it could be programmed. Neither machine was finished, and hand computation lasted into the 1950s.

Chapter II

Approximation and Its Surprises

The methods of this period rested on replacing a hard function by a polynomial. Newton and Lagrange gave formulas for the polynomial through given points, and from it came rules for integrating and differentiating tabulated data. Intuition said that more points would give a better fit. In 1901 Carl Runge showed that it can give a much worse one. For 1/(1+25x2)1/(1 + 25x^2) on [−1,1][-1, 1], polynomials through equally spaced points oscillate more and more wildly near the ends as the number of points grows. Placing the points more densely near the ends cures it.

Runge's example set the tone for the subject. A method can be exact in principle and useless in practice. Numerical analysis is as much about when methods fail as about the methods themselves.

Chapter III

The Machine Rounds

Electronic computers arrived in the 1940s and changed the problem. A computer stores each number with a fixed number of binary digits, so almost every operation rounds. A single rounding is tiny, but a large computation does millions of them unseen. Early estimates added up the worst possible error at each step and concluded that long computations would be meaningless. James Wilkinson showed a better way to look at it. The computed answer is usually the exact answer to a slightly perturbed problem. If the perturbation is as small as the rounding itself, the method is as good as the data allows. His book of 1963 made this backward error analysis the standard test of a method.

Arithmetic itself was still chaotic. Each manufacturer rounded in its own way, and some machines gave different answers to the same program. William Kahan led the design of a standard for floating point, adopted as IEEE 754 in 1985. It fixed the formats, required every basic operation to be rounded correctly, and defined what happens on overflow or division by zero.

Forgotten rounding can still kill. The Patriot missile battery at Dhahran counted time in tenths of a second in a 24-bit register. Chopped to that length, 0.1 is too small by about 9.5×10−89.5 \times 10^{-8}. After 100 hours, or 3.6 million ticks, the clock was off by 0.34 seconds, in which a Scud missile travels more than half a kilometre. On 25 February 1991 the battery failed to track an incoming Scud, and 28 soldiers died.

Chapter IV

A Closer Look: Newton's Method for √2

The number 2\sqrt{2} is the positive root of f(x)=x2−2f(x) = x^2 - 2. Newton's method replaces ff by its tangent line at the current guess xnx_n and takes the tangent's root as the next guess:

xn+1=xn−f(xn)f′(xn)=xn−xn2−22xn=12(xn+2xn).x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} = x_n - \frac{x_n^2 - 2}{2x_n} = \frac{1}{2}\left(x_n + \frac{2}{x_n}\right).

This is the old Babylonian rule: average the guess with 2 divided by the guess. Start at x0=1x_0 = 1:

StepGuessError
0110.410.41
13/2=1.53/2 = 1.50.0860.086
217/12=1.41666…17/12 = 1.41666\ldots0.00250.0025
3577/408=1.4142157…577/408 = 1.4142157\ldots2.1×10−62.1 \times 10^{-6}
4665857/470832=1.41421356237469…665857/470832 = 1.41421356237469\ldots1.6×10−121.6 \times 10^{-12}
51.41421356237309504880…1.41421356237309504880\ldots9.0×10−259.0 \times 10^{-25}

The exponent of the error roughly doubles at each step: 10−310^{-3}, 10−610^{-6}, 10−1210^{-12}, 10−2410^{-24}. This is quadratic convergence. Writing en=xn−2e_n = x_n - \sqrt{2}, the formula gives exactly

en+1=en22xn,e_{n+1} = \frac{e_n^2}{2x_n},

so each error is about the square of the one before, divided by 22≈2.82\sqrt{2} \approx 2.8. Five steps give 24 correct decimal places, more than double precision can store. A method that merely halved the error each step would need about 80 steps for the same accuracy.

The catch is the start. Quadratic convergence holds only close to the root. From a poor guess, Newton's method can wander, cycle or jump to a different root, and for polynomials of degree three and higher the regions of starting points that lead to each root have fractal boundaries. Arthur Cayley first asked about those regions in 1879, and his question is one of the roots of complex dynamics.

Chapter V

Trusting the Answer

By the 1960s numerical analysis had become a mathematical subject with its own journals and a central question: how much can a computed answer be trusted? Its answers split into branches. Solving large systems of linear equations became numerical linear algebra. Solving the equations of physics on grids became numerical methods for partial differential equations. Computing with random samples became Monte Carlo methods, and finding the lowest point of a function became continuous optimisation. All four rest on the same two questions Newton's method raised: how fast does the method converge, and how much does rounding cost along the way?

Applications

Where it is used

  • Astronomy↗ Physics · Classical Mechanics

    The return of Halley's comet

    In 1758 Alexis Clairaut, Joseph Lalande and Nicole-Reine Lepaute computed by hand, over several months, how Jupiter and Saturn would delay Halley's comet. They predicted its closest approach to the Sun to within about a month. It was an early triumph of numerical computation applied to Newton's mechanics.

    › Sources (1)
    • Grier, D. A. (2005). When Computers Were Human. Princeton University Press.
  • Computing

    Arithmetic in every chip

    Every phone, laptop and graphics card does its arithmetic by the IEEE 754 rules. The same program gives the same rounded answer on different machines, which is what lets scientific software be tested, shared and trusted.

    › Sources (1)
    • Goldberg, D. (1991). What every computer scientist should know about floating-point arithmetic. ACM Computing Surveys 23(1): 5–48.

Open problems

Where the map runs out

Open

Smale's mean value conjecture

Open as of 2026; proved with the constant 4 in place of 1, and improved only slightly since.

Let pp be a polynomial and zz a point where its derivative is not zero. Stephen Smale conjectured in 1981 that there is always a critical point cc, where p′(c)=0p'(c) = 0, with ∣p(z)−p(c)∣≤∣z−c∣⋅∣p′(z)∣|p(z) - p(c)| \le |z - c| \cdot |p'(z)|. In words, the slope from zz to some critical point is never much steeper than the slope at zz itself.

Why it is hard

The statement involves all the critical points of the polynomial at once, and their positions can be almost arbitrary. Smale proved the inequality with a factor of 4 on the right. Decades of work have shaved that constant down only a little, and the conjectured best constant, 1 or slightly less depending on the degree, is untouched.

What resolving it unlocks

Smale was studying how many steps Newton's method needs to find a root from an arbitrary start. The conjecture controls how far a Newton step can safely go, and a proof would sharpen the known bounds on the cost of root-finding.

› Sources (1)
  • Smale, S. (1981). The fundamental theorem of algebra and complexity theory. Bulletin of the American Mathematical Society 4(1): 1–36.

Further reading

  1. Grier, D. A. (2005). When Computers Were Human. Princeton University Press.

    A history of the people who computed tables by hand, from Halley's comet to the 1940s.

  2. Higham, N. J. (2002). Accuracy and Stability of Numerical Algorithms, 2nd edition. SIAM.

    The standard reference on rounding error, with historical notes throughout.

  3. Trefethen, L. N. (2013). Approximation Theory and Approximation Practice. SIAM.

    A short, readable modern treatment of interpolation, including Runge's example.