Is there any way to derive Stirlings formula that only requires some undergraduate knowledge of calculus, real analysis and perhaps some identitets involving the gamma function, maybe Wallis product, and things along those lines? If not, and I know this is a rather vague question, what is the simplest but still sufficiently rigorous way of deriving it? I had a look at Stirling's formula: proof? but the comments seems quite messy. Wikipedia was not particularly helpful either since I have not learned about Laplace's method, Bernoulli numbers or the trapezoidal rule.
Is there a "simple" way of proving Stirlings formula?
-
1A short comment: In many of the applications of Stirling formula I have seen, Stirling was an overkill. Often the simple $$\lim_n \frac{n}{\sqrt[n]{n!}}=e$$ suffices, and this is an immediate consequence of Cezaro average. – 2017-01-02
-
3What form of Stirling do you need? N.S. gives the simplest above, and you can get even better without sacrificing a ton of simplicity... for example, if you drop the condition of needing to know the multiplicative constant ($\sqrt{2\pi}$) a proof is a lot easier – 2017-01-02
-
2an easy logarithmic version, following by summation by parts : $\ln m! = \sum_{n=1}^m \ln n = m \ln m+ \sum_{n=1}^{m-1} n (\ln n-\ln(n+1))=m \ln m-\sum_{n=1}^{m-1} n \int_n^{n+1}\frac{dt}{t}$ $ =m \ln m-\int_1^m \lfloor t \rfloor \frac{dt}{t} = m \ln m-(m-1)+\frac{\ln m}{2}+\int_1^m ( t-\lfloor t \rfloor-\frac{1}{2}) \frac{dt}{t}$ $= (m+\frac12) \ln m-m+\frac12+\mathcal{O}(1/m)$ – 2017-01-03
-
0Why is $\sqrt{2\pi}$ usually included if one can just use the version N.S. showed? I mean its just a constant. – 2017-01-03
-
0@David Because it is actually better. Us mathematicians strive for the best after we've covered the simple. – 2017-01-03
-
0@Simple Art What do you mean by better? Do you mean better as in it converging faster (which I don't care about) or better in some other way? – 2017-01-03
-
0@David Well, it is obvious that$$\lim_{x\to\infty}\frac{\sqrt{x^2+1}}{2x}=c$$So you could say that $\sqrt{x^2+1}\sim2x$ are asymptotic as $x\to\infty$, but why not mention that $1/2$ if you could? – 2017-01-03
-
0@Simple art Basically what I want is a formula that I can replace the gamma function with when I calculate limits. If the constant plays an important role in allowing me to do so then I want it included. Otherwise it's irrelevant (to me). – 2017-01-03
-
0[This anwser](http://math.stackexchange.com/a/109096/312) esentially relies on Wallis product. – 2017-01-03
-
0With your requirements on what you can and can't know, I don't think this question can be reasonably answered. For example, if you don't understand the trapezoidal rule, how are we supposed to know if you understand the far more complex FTOC? – 2017-01-03
-
0A fast way to prove Stirling's inequality is to provide tight bounds for $\psi'(m)$ by approximating $\sum_{n\geq m}\frac{1}{n^2}$ through creative telescoping and integrating twice. The coefficients involved by creative telescoping are closely related to Bernoulli numbers and this approach is almost equivalent to Szego's approach for proving Mathieu's inequality, very short and elementary. – 2017-01-03
2 Answers
You may find a "simple" or better well written proof in the book Real Analysis and Foundations from Steven G. Krantz (p. 277 and 278) which you may find. As far as I can see, he uses the Gamma function, l'Hopital's rule and the evaluation in polar coordinates of $$\int_{-\infty}^\infty e^{-s^2} ds$$
-
0The link does not work for me. – 2017-01-02
-
0@David Maybe it is better for you now. – 2017-01-02
-
0Thank you very much! I will look through it. – 2017-01-02
-
0@David You're welcome! – 2017-01-02
As an extremely simple derivation of bounds Stirling's approximation sets, notice that
$$\ln(n!)=\sum_{k=1}^n\ln(n)>\int_1^n\ln(x)\ dx=n\ln n-n+1$$
This inequality is simply a right Riemann sum of a monotonically increasing function. Similarly,
$$\frac12\ln(n)+\ln((n-1)!)=\frac12\left(\ln(n!)+\ln((n-1)!)\right)\\=\frac12\sum_{k=1}^n\ln(n)+\frac12\sum_{k=1}^{n-1}\ln(n)<\int_1^n\ln(x)\ dx=n\ln n-n+1$$
Which is the trapezoidal sum (average of left/right Riemann sums). From each of these, you easily get that
$$e\left(\frac ne\right)^n The lower bound may then be improved using $$n!=n(n-1)! Stronger results that follow this line of thought may be derived by the much better Euler-Maclaurin formula.
-
0Classy as always. I really like the bounds you got here for the amount of work required... did you come up with this proof on your own, or do you have a reference to where you first saw the proof? It is fantastic! Reminds me a lot of Dr. MV's proof [here](http://math.stackexchange.com/a/1868795/269764), but this one is actually simpler and more complete in that it not only yields the limit but provides bounds. This might be my new favorite proof. +1!! – 2017-01-03
-
0@BrevanEllefsen Oh really? I kind of did come up with this while trying to [derive a new form of the Gamma fucntion](http://math.stackexchange.com/questions/1958762/did-i-derive-a-new-form-of-the-gamma-function) when I noticed that $\ln(n!)$ is much easier to handle than $n!$ on its own due to log rules. – 2017-01-03
-
0@BrevanEllefsen Hm, yes, mine is definitely far simpler, but that's because I dropped all of the "error approximations" that Dr.MV kept using. :) But his was definitely not needed for that question. – 2017-01-03

