James Stirling

1692 – 1770 · The Venetian Mathematician

The Jacobite exile who mastered the art of approximation, gave us tools to tame the factorial, and built bridges between discrete and continuous mathematics.

Stirling's Approximation Stirling Numbers Methodus Differentialis Interpolation Theory
01

Early Life

Born in 1692 in Garden, Stirlingshire, Scotland, into a family with deep Jacobite (Stuart loyalist) sympathies. His father, Archibald Stirling, was a supporter of the exiled Stuart dynasty.

Stirling entered Balliol College, Oxford around 1710, likely on a scholarship arranged for promising Jacobite Scots. He showed exceptional mathematical talent, coming to the attention of Newton's circle.

However, his Jacobite connections proved dangerous. After the failed 1715 rising, Stirling's political associations made his position at Oxford untenable. By 1717, he had left England for Venice, where he would spend nearly a decade in exile.

In Venice, Stirling studied at the University of Padua and continued his mathematical research, publishing his first major work while abroad.

Jacobite Family

The Stirlings of Garden were committed Jacobites. James's political identity shaped his entire early career, forcing him into exile and away from the British mathematical establishment.

Oxford Years

At Oxford, Stirling absorbed the Newtonian mathematical tradition. His talent was recognized by John Keill and other Newtonians, who supported his early work.

Venetian Exile

Venice was a haven for Jacobite exiles. Stirling's years there gave him access to Italian mathematical traditions and a quiet environment for deep research.

02

From Exile to Industry

Stirling's career took an unusual arc. While in Venice (c.1717–1725), he published Lineae Tertii Ordinis Neutonianae (1717), extending Newton's classification of cubic curves. This work earned him Newton's personal admiration.

Returning to London around 1725, Stirling entered the mathematical circle around Newton, de Moivre, and Maclaurin. He was elected FRS in 1726 and corresponded extensively with the leading mathematicians of the day.

His masterwork, Methodus Differentialis (1730), was a landmark treatise on interpolation, series summation, and numerical methods. It contained the famous factorial approximation and the Stirling numbers.

In 1735, Stirling made an unexpected career change, becoming manager of the Leadhills silver mine in Scotland. He spent the remaining 35 years of his life as an industrial manager, largely abandoning mathematics. He died on 5 December 1770, aged 78.

Key Works

Lineae Tertii Ordinis (1717), Methodus Differentialis (1730)

Newton Connection

Newton was impressed enough by Stirling's cubic curves work to recommend him for the Royal Society. Their correspondence reveals mutual respect.

The Mine Manager

At Leadhills, Stirling applied his mathematical skills to surveying, drainage, and industrial optimization — an early example of applied mathematics in industry.

Correspondence

Stirling's letters with Euler, Maclaurin, and de Moivre reveal a mathematician of the first rank who was deeply engaged with the major problems of his era.

03

Historical Context

Stirling's life was shaped by Jacobite politics, the Newton-Leibniz divide, and the early industrial revolution.

Jacobite Cause

The Jacobite movement sought to restore the Catholic Stuart dynasty to the British throne. Stirling's family allegiance forced him into exile and ultimately led him away from academic mathematics entirely.

Newton's Twilight

Stirling arrived in London's mathematical scene just as Newton was in his final years (d. 1727). He was among the last generation to interact personally with Newton.

Euler's Rise

Stirling corresponded with the young Euler, who was transforming Continental mathematics. Their exchange of letters on series and interpolation was mutually productive.

Industrial Revolution

Stirling's move to the Leadhills mine in 1735 placed him at the intersection of mathematics and the early industrial revolution. Scotland's mineral wealth demanded technical expertise.

Age of Interpolation

The 18th century demanded methods for computing values of functions from tables. Navigation, astronomy, and commerce all required interpolation — Stirling's specialty.

Scottish Mathematics

Stirling, along with Maclaurin, represented the remarkable flowering of Scottish mathematics in the early 18th century, despite political upheaval and limited institutional support.

04

Stirling's Approximation

Taming the Factorial

The factorial function n! = 1 × 2 × 3 × … × n grows extraordinarily fast. Stirling's approximation provides a remarkably accurate continuous approximation:

n! ≈ √(2πn) · (n/e)n

The history of this formula involves both de Moivre and Stirling. De Moivre first derived the form n! ≈ C · nn+1/2 · e−n in 1733 but could not determine the constant C. Stirling then showed that C = √(2π), completing the formula.

The relative error is remarkably small: only about 0.8% for n=10 and decreasing as 1/(12n) for large n. A refined version includes correction terms:

n! ≈ √(2πn)(n/e)n(1 + 1/12n + 1/288n² + …)

Stirling's Approximation vs Actual n! n n! 1 2 3 5 7 10 Actual n! Stirling approx. Bars nearly identical — error < 1% for n ≥ 10
05

Why Stirling's Approximation Matters

The Power of Approximation

The factorial function grows so fast that exact computation quickly becomes impractical. 100! has 158 digits. 1000! has 2568 digits. Stirling's formula makes these computable.

Taking logarithms gives an even more useful form:

ln(n!) ≈ n ln(n) − n + ½ ln(2πn)

This log-Stirling formula is ubiquitous in statistical mechanics, information theory, and combinatorics. It transforms multiplicative problems into additive ones.

The approximation connects to the gamma function Γ(n+1) = n!, extending the factorial to non-integer values and enabling continuous analysis of discrete quantities.

Statistical Mechanics

Boltzmann's entropy formula S = k ln(W) requires computing logarithms of combinatorial quantities. Stirling's approximation makes the entire field of statistical mechanics tractable.

Information Theory

Shannon's entropy, channel capacity, and source coding theorems all use Stirling's approximation to evaluate binomial coefficients in the limit of large block lengths.

Asymptotic Analysis

Stirling's formula is the prototype of asymptotic approximation — the art of finding simpler expressions that become arbitrarily accurate in a limiting regime.

The Constant √(2π)

Stirling's determination that C = √(2π) was a tour de force of 18th-century analysis, connecting the factorial to the circle through the Wallis product.

06

Stirling Numbers

Two Kinds of Counting

Stirling numbers of the first kind s(n,k) count the number of permutations of n elements with exactly k cycles. They appear when expanding the falling factorial:

x(x−1)(x−2)…(x−n+1) = Σ s(n,k) xk

Stirling numbers of the second kind S(n,k) count the number of ways to partition n elements into exactly k non-empty subsets:

xn = Σ S(n,k) x(x−1)…(x−k+1)

Together, they form a pair of inverse triangular arrays — the matrices [s(n,k)] and [S(n,k)] are inverses of each other. They translate between ordinary powers and falling factorials.

Stirling Numbers (2nd kind) S(n,k) = partitions of n into k subsets 1 n=0 0 1 n=1 0 1 1 n=2 0 1 3 1 n=3 0 1 7 6 1 n=4 0 1 15 25 10 1 n=5 k=1 k=2 k=3 k=4 Recurrence: S(n,k) = k·S(n−1,k) + S(n−1,k−1) Analogous to Pascal's triangle for binomial coefficients
07

The Two Stirling Triangles

First Kind: Cycles

The unsigned Stirling numbers of the first kind |s(n,k)| count permutations of {1,...,n} with exactly k cycles. For example, |s(4,2)| = 11 because there are 11 permutations of 4 elements with exactly 2 cycles. They connect to the harmonic numbers: |s(n,1)| = (n−1)!.

Second Kind: Partitions

S(n,k) counts set partitions. S(4,2) = 7 because {1,2,3,4} can be split into 2 non-empty subsets in 7 ways. The Bell numbers B(n) = Σ S(n,k) count all partitions. These appear throughout combinatorics and algebra.

Change of Basis

Stirling numbers convert between the two natural bases for polynomials: ordinary powers {1, x, x², ...} and falling factorials {1, x, x(x−1), x(x−1)(x−2), ...}. This is fundamental to the calculus of finite differences.

Modern Applications

Stirling numbers appear in the analysis of algorithms (hashing, sorting), in algebraic topology (simplicial complexes), in quantum field theory (Feynman diagrams), and in the study of random permutations in probability.

08

Methodus Differentialis

The Art of Interpolation

Stirling's Methodus Differentialis, sive Tractatus de Summatione et Interpolatione Serierum Infinitarum (1730) — "The Differential Method, or a Treatise on the Summation and Interpolation of Infinite Series" — was his masterwork.

The book systematically developed:

  • Stirling's interpolation formula using central differences (more accurate than Newton's forward-difference formula)
  • Methods for accelerating convergence of slowly converging series
  • The Stirling-de Moivre approximation for n!
  • Techniques for numerical integration and summation
  • The Stirling numbers as tools for converting between different representations

Central Differences

While Newton used forward differences, Stirling showed that central differences δf = f(x+h/2) − f(x−h/2) give more symmetric and often more accurate interpolation formulas.

Series Acceleration

Stirling developed methods to speed up the convergence of series like Σ1/n², enabling computation of constants like π²/6 to high precision.

Euler Correspondence

Stirling's correspondence with Euler (1730s) was mutually enriching. Stirling communicated results on series summation; Euler responded with the Euler-Maclaurin formula.

Practical Impact

The interpolation methods in Methodus Differentialis were used by astronomers and navigators for over a century to compute intermediate values from tables.

09

Stirling's Method

Stirling combined algebraic ingenuity with computational pragmatism, always seeking formulas that could be applied to real calculations.

Tabulate

Compute function values at equally spaced points

Difference

Form the table of central differences

Interpolate

Apply Stirling's formula for intermediate values

Sum/Integrate

Use summation methods for series and integrals

Computational Mindset

Stirling was a computational mathematician avant la lettre. His methods were designed for practical calculation, optimizing accuracy while minimizing the number of operations. His interpolation formula uses fewer table entries than Newton's for comparable accuracy.

Asymptotic Thinking

Stirling was one of the first to think systematically about asymptotic behavior — what happens as n becomes large. His factorial approximation is the paradigmatic example of an asymptotic expansion, a concept that would not be formalized until Poincaré in the 1880s.

10

Intellectual Network

James Stirling Isaac Newton Patron, cubic curves Leonhard Euler Correspondent on series Abraham de Moivre Co-creator of n! formula Colin Maclaurin Scottish colleague Brook Taylor Finite differences pioneer Gabriel Cramer Algebraic curves exchange
11

Controversies & Questions

Who Deserves the Name?

The factorial approximation is called "Stirling's approximation" despite de Moivre doing most of the work. De Moivre derived the entire formula except for the constant √(2π). Stirling determined the constant — important, but arguably the smaller contribution. Yet history gave Stirling the credit.

The Venetian Mystery

Stirling's years in Venice (c.1717–1725) remain poorly documented. What was he doing there? Some sources suggest he had access to trade secrets about glass-making or navigation that he was not meant to learn, and that he was asked to leave.

Abandoning Mathematics

Stirling's decision to become a mine manager in 1735 — at the height of his mathematical powers — puzzles historians. Was it financial necessity? Jacobite political constraints? Disillusionment? He produced almost no mathematics after this career change.

The Jacobite Shadow

Stirling's Jacobite connections may have prevented him from obtaining the academic positions his talent warranted. Like de Moivre, he was shut out of the university system — in Stirling's case by politics rather than nationality.

12

Enduring Legacy

What Survived

Despite abandoning mathematics at 43, Stirling left a legacy that pervades modern science and computation.

  • Stirling's Approximation: Used daily by physicists, statisticians, computer scientists, and engineers worldwide
  • Stirling Numbers: Fundamental to combinatorics, algebra, and the analysis of algorithms
  • Interpolation Theory: His central-difference formula remained standard in numerical analysis for over 200 years
  • Asymptotic Methods: He pioneered the asymptotic style of analysis later formalized by Laplace and Poincaré
  • Series Acceleration: His techniques for improving convergence anticipated modern methods like Richardson extrapolation

Named After Him

Stirling's approximation, Stirling numbers (1st and 2nd kind), Stirling's interpolation formula, Stirling's series, Stirling cycle numbers, Stirling permutation numbers.

A Road Not Taken

Had Stirling continued in mathematics after 1735, he might have rivaled Euler in contributions. His early work shows a mind of the highest order, but the mine consumed his remaining decades.

Methodus Differentialis

Ian Tweddle's 2003 translation and commentary finally made this masterwork accessible to modern readers, revealing the full depth of Stirling's achievements.

13

Modern Applications

Statistical Mechanics

Computing entropy S = k·ln(W) requires ln(N!) for astronomical N. Stirling's formula makes this tractable, enabling the derivation of Maxwell-Boltzmann, Fermi-Dirac, and Bose-Einstein distributions.

Algorithm Analysis

Stirling numbers count permutations by cycle type, essential for analyzing randomized algorithms, hash tables, and sorting networks. The expected number of cycles in a random permutation uses Stirling numbers of the first kind.

Machine Learning

Stirling's approximation appears in computing log-likelihoods of multinomial and Poisson models, in variational inference, and in the analysis of large language models' tokenization statistics.

Combinatorial Chemistry

Stirling numbers of the second kind count ways to partition molecular binding sites into groups, essential for modeling cooperative binding and drug design.

Information Theory

Channel coding theorems and rate-distortion theory require evaluating binomial coefficients for large n. Stirling's formula converts these into tractable expressions involving entropy functions.

Quantum Computing

Stirling numbers appear in the representation theory of the symmetric group, which governs the behavior of identical quantum particles and underlies quantum error correction codes.

14

Life & Times

1692 Born 1710 Oxford 1717 Venice exile; Lineae 1725 Return to London 1726 FRS 1730 Methodus Differentialis 1735 Leadhills mine 1770 Died
1692 Born in Garden, StirlingshireInto a Jacobite family in central Scotland.
1710 Entered Balliol College, OxfordStudied mathematics; came to Newton's attention.
1717 Exile in Venice; Lineae Tertii Ordinis publishedExtended Newton's classification of cubic curves while living as a Jacobite exile.
1726 Elected Fellow of the Royal SocietyAfter returning to London; entered Newton's mathematical circle.
1730 Methodus Differentialis publishedMasterwork containing the factorial approximation, Stirling numbers, and interpolation methods.
1735 Became manager of Leadhills mineAbandoned mathematical research for industrial management; remained there until death.
1770 Death in EdinburghDied on 5 December, aged 78, having spent 35 years as a mine manager.
15

Further Reading

Primary Source

I. Tweddle, James Stirling's Methodus Differentialis: An Annotated Translation of Stirling's Text (Springer, 2003) — the definitive modern edition with extensive commentary. Essential for understanding Stirling's actual mathematics.

Biography

I. Tweddle, James Stirling: This About Series and Such Things (Scottish Academic Press, 1988) — the only full-length biography, reconstructing Stirling's life from fragmentary sources.

On Stirling Numbers

R. Graham, D. Knuth, O. Patashnik, Concrete Mathematics (2nd ed., 1994) — Chapter 6 provides an excellent modern treatment of Stirling numbers and their applications.

J. Riordan, An Introduction to Combinatorial Analysis (1958) — classic treatment of Stirling numbers in combinatorics.

Historical Context

N. Guicciardini, The Development of Newtonian Calculus in Britain (1989) — places Stirling in the broader context of British mathematics.

V. Katz, A History of Mathematics (3rd ed., 2009) — good coverage of Stirling's interpolation work.

"The summation and interpolation of series is of the utmost importance in all parts of mathematics and natural philosophy; for by its means we are enabled to express general laws in a finite form, and to compute the values of quantities which would otherwise be beyond our reach."

— James Stirling, preface to Methodus Differentialis, 1730

James Stirling (1692–1770)