![]()
Since working with sums is easier than working with products, we take the logarithm base
of both sides,
![Rendered by QuickLaTeX.com \[\ln n!=\ln 1+ \ln 2+ \ln 3+\dots+\ln n=\sum\limits_{k=1}^n \ln k\]](https://www.adamponting.com/wp-content/ql-cache/quicklatex.com-72c43ef54bd59fbb7074abc57ddc1863_l3.png)
and try to find expressions for the lower and upper bounds, i.e.
![]()
getting a lower bound
can be integrated by parts, with
and the rest as
:


Checking this by differentiating:
![]()
Plug in
to find
:
![Rendered by QuickLaTeX.com \[\int\limits_1^1 \ln x \;\text{d}x=0=x\ln x-x+C=1\times0-1+C \qquad\to\qquad C=1\]](https://www.adamponting.com/wp-content/ql-cache/quicklatex.com-20ad66dcbef1e0e6264707ddf4be7d7f_l3.png)
![Rendered by QuickLaTeX.com \[\boxed{\int\limits_1^n \ln x \;\text{d}x=n\ln x-n+1}\]](https://www.adamponting.com/wp-content/ql-cache/quicklatex.com-fde4ef6b9915fa023d7e89e10f583cb8_l3.png)
trapezoid rule approximation

To approximate the area under the curve, add the area of the trapezoids. Since the curve is concave downwards, this will underestimate the area.
Each trapezoid has an area of the average of the sides, times the width (1). i.e. the area of the trapezoid between
and
is
. As all terms except the first and last occur twice in the sum, it comes to:
![]()
Since
, add
to both sides to get:
![]()
i.e.

Raise both sides to the power of
(anti-log):
![]()
getting an upper bound

references
Richard Hamming – Methods of Mathematics, ch.15