Stirling's formula describes the extraordinary growth of a factorial with a remarkably compact expression:
This also means that
In “Stirling's Formula: A Better Approximation”, Bikash Chakraborty returns to an integral comparison from Walter Rudin's Principles of Mathematical Analysis. Rudin's exercise (Chapter 8, Problem 20) gives for integers . Chakraborty keeps the same basic idea, modifies the geometry, and sharpens both bounds to
In decimals,
The proof is highly pedagogical because it turns a factorial into a comparison of visible areas under .
What caught my attention was a small geometric choice on which the argument depends: the point at which the area comparison begins. Chakraborty begins at . If the construction begins later, the initial factors can be retained exactly while only the remaining tail is estimated.
The geometric core idea of Chakraborty’s argument
For completeness, let us try to understand Chakraborty's argument. Taking logarithms turns the product defining into the sum . If , then , so the graph is strictly concave. Every chord lies below the curve, while every tangent line lies above it. These facts give two complementary area comparisons.
On , the chord joining and lies below the curve. For the other direction, the tangent at the integer lies above the curve on the centred interval . Thus the tangent points are integers and the endpoints of their intervals are half-integers. A final half-width rectangle completes the cover up to .
Interactive 1 · Chakraborty's construction
The areas in the proof
5.33680 < 5.36426gap 0.02746
5.64236 < 5.68337gap 0.04101
At , the chord total undercounts by 0.02746, while the tangent cover overcounts by 0.04101. The two panels use different starting points, exactly as in the proof.
Chord trapezoids and the upper bound
For an integer , the chord has equation
The interval has width one, and the two vertical sides have heights and . Its area is therefore the trapezoid area
For Chakraborty's starting point , add these trapezoids for . Each intermediate logarithm occurs twice with coefficient one half, while the two endpoint logarithms occur once. Hence
Now . Substituting this and collecting the terms in gives
Tangent cells and the lower bound
The tangent to at the integer is
Chakraborty uses it on the unit cell centred at . Put . The constant part contributes , while the linear part has equal positive and negative areas and cancels:
This is the tangent-cell formula. The cells for cover the interval from to . To reach , add a final rectangle of width one half and height . Their combined area is
Because every tangent cell and the final rectangle lie above the logarithmic curve,
Evaluating the integral and rearranging gives
The two constants therefore record the same concave curve in two ways: the chord construction begins at , while the first centred tangent cell begins at .
Move the starting point
Fix integers . Keep the initial product untouched, and apply the geometric comparison only from onwards.
Interactive 2 · assemble the proof
Move the starting line
Gap 0.01727
Gap 0.02693
Chord construction
Tangent construction
Only the starting line moves. The factors before remain exact; the same local comparison is applied to the tail.
For , adding the chord trapezoids from to gives
Evaluating the integral and collecting logarithms yields . When , equality is immediate. Hence , and the upper constant at starting point is .
Add the centred tangent cells for and finish with a half-width rectangle of height . Their combined area lies strictly above the curve, so
Rearrangement gives .
A family of bounds
The two constructions combine into the following theorem.
At , this recovers Chakraborty's pair of constants. Moving the starting point one step, to , gives for every integer
or . This interval is about narrower than Chakraborty's interval over the same integer range. The non-strict upper sign matters: equality occurs at .
| Starting point | Uniform tail | Lower endpoint | Upper endpoint | Width |
|---|---|---|---|---|
| 2.439522535 | 2.612425837 | 0.172903302 | ||
| 2.465563424 | 2.576975589 | 0.111412165 | ||
| 2.483591120 | 2.548699488 | 0.065108369 | ||
| 2.495665416 | 2.527597120 | 0.031931705 | ||
| 2.501278769 | 2.517093475 | 0.015814706 |
When the integer becomes real
The Gamma function extends the factorial beyond the integers. Since , define, for real ,
At an integer , this is exactly . The lower endpoints of the starting-point construction also have the continuous companion
with and at every integer . The comparison is transparent because the Gamma factors cancel:
The inequality still has the same geometric meaning. In fact,
This is the excess of the final half-width rectangle of height above the logarithmic curve. Consequently for every real .
Interactive 3 · the continuous picture
Between the integers
Lower 2.487746388
Upper 2.541653013
Gap0.053906626
At , the ratio is 1.0216689. The shaded interval narrows towards .
The quotient tends to . The Gamma-function form of Stirling's formula gives , and so approaches the same limit. Here is a continuous companion to the geometric lower endpoints, not an independent computational estimate for Gamma: away from the integers, the original sum of logarithms no longer telescopes into a factorial.
Sources and further reading
- Bikash Chakraborty, “Stirling's Formula: A Better Approximation”, The College Mathematics Journal, published online 31 August 2026, DOI 10.1080/07468342.2026.2721230.
- Walter Rudin, Principles of Mathematical Analysis, 3rd ed., Chapter 8, Problem 20.
- NIST Digital Library of Mathematical Functions, §5.11, Asymptotic Expansions, for the Gamma-function form of Stirling's expansion.
The approximation itself did not change. The sharper bounds appeared when the same geometry was asked to begin somewhere else.