Stirling's approximation
Encyclopedia : S : ST : STI : Stirling's approximation
In mathematics, Stirling's approximation (or Stirling's formula) is an approximation for large factorials. It is named in honour of James Stirling.
The formula is written as:
- :[\ln n! \approx n \ln n - n \,]
Formal definition
More formally, Stirling's approximation is- :[\lim_ \; \left(\frac\right)^ } = 1]
- (See limit, square root, π, e.)
- :[n! \sim \sqrt \; \left(\frac\right)^]
Derivation
The formula, together with precise estimates of its error, can be derived as follows. Instead of approximating n!, one considers the natural logarithm
- [\ln n! = \ln 1 + \ln 2 + \ldots + \ln n ]
- [\ln (n-1)! = n \ln n - n + 1 + \frac + \sum_^ \frac^k} \left( \frac} - 1 \right) + R ]
We can then take limits on both sides,
- [\lim_ \left( \ln n! - n \ln n + n - \frac \right) = 1 + \sum_^ \frac^k} + \lim_ R]
- [\ln n! = \left( n+\frac \right) \ln n - n + y + \sum_^ \frac^k}} + O \left( \frac \right)]
Just take the exponential on both sides, and choose any positive integer m, say 1. We get the formula with an unknown term ey.
- [n! = e^y \sqrt~ \right)}^n \left( 1 + O \left( \frac \right) \right)]
- [n! = \sqrt~ \right)}^n \left( 1 + O \left( \frac \right) \right)]
Speed of convergence and error estimates
More precisely,- [n! = \sqrt \; \left(\frac\right)^e^]
- [\frac < \lambda_n < \frac.]
- [ n!=\sqrt\left(\right)^n \left( 1 + + - - + \cdots \right) ]
The asymptotic expansion of the logarithm is also called Stirling's series:
- [ \ln n!=n\ln n - n + \ln(2\pi n) + - + - +\cdots ]
Stirling's formula for the Gamma function
Stirling's formula may also be applied to the Gamma function- [\Gamma(z+1) = \Pi(z) = z!]
- [\ln \Gamma (z) = (z-\frac12)\ln z -z + \frac} + 2 \int_0^\infty \frac} dt]
- [\ln \Gamma (z) = (z-\frac12)\ln z -z + \frac} + \sum_^\infty \frac}}]
A convergent version of Stirling's formula
Thomas Bayes showed, in a letter to John Canton published by the Royal Society in 1763, that Stirling's formula did not give a convergent series.[link]Obtaining a convergent version of Stirling's formula entails evaluating
- [\int_0^\infty \frac}\, dt= \ln\Gamma (z) - \left( z-\frac12 \right) \ln z +z - \frac12\ln(2\pi). ]
- [\int_0^\infty \frac} \, dt= \sum_^\infty \frac}]
- [ c_n = \frac \int_0^1 x^ \left( x-\frac12 \right) \, dx.]
- [\ln \Gamma (z) = \left( z-\frac12 \right) \ln z -z + \frac} ]
- ::[ + \frac + \frac + \frac + \frac + \cdots]
A version suitable for calculators
The approximation
- [\Gamma(z) \cong \sqrt } \left( \frac \sqrt \left[ + frac right] } \right)^,]
- [2 \ln \Gamma(z) \cong \ln(2 \pi) - \ln z + z \left(3 \ln z + \ln \left(\sinh \frac \left[ + frac right]\right) - 2 \right),]
History
The formula was first discovered by Abraham de Moivre in the form- [n!\sim []\cdot n^ e^]
References
- Abramowitz, M. and Stegun, I., Handbook of Mathematical Functions, http://www.math.hkbu.edu.hk/support/aands/toc.htm
- Paris, R. B., and Kaminsky, D., Asymptotics and the Mellin-Barnes Integrals, Cambridge University Press, 2001
- Whittaker, E. T., and Watson, G. N., A Course in Modern Analysis, fourth edition, Cambridge University Press, 1963. ISBN 0521588073
- Toth, V. T. Programmable Calculators: Calculators and the Gamma Function. http://www.rskey.org/gamma.htm, modified 2004
- , [Stirling's Approximation] at MathWorld.
- This article incorporates material from on PlanetMath, which is licensed under the [Text of the GNU Free Documentation LicenseGFDL].
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
