I am a highschool teacher and will teach integrals next term. Today I saw a video from blackpenredpen in which he computed the limit $\displaystyle \lim_{n \to +\infty}\left(\frac{n!}{n^n}\right)^{1/n}$ using the integral of $\ln x$:
$$\begin{align} \lim_{n \to +\infty}\left(\frac{n!}{n^n}\right)^{1/n} &= \lim_{n \to +\infty}e^{\frac1n \ln\left(\frac{n!}{n^n}\right)}\\ \end{align}$$
So we can consider the limit $\displaystyle \lim_{n \to +\infty} \frac1n \ln\left(\frac{n!}{n^n}\right)$. Note that this limit equals $$\lim_{n \to +\infty} \frac1n \left(\ln \left(\frac1n\right) + \ln \left(\frac2n\right) + \ldots + \ln \left(\frac nn\right)\right).$$ This is exactly the definition of $\displaystyle \int_0^1 \ln x dx = -1$, hence the initial limit equals $e^{-1} = \frac 1e$.
This technique is not present in the course notes I'm using and I would like to include this for some of my students who work faster through my notes.
Question: do you know any other limits which are easily solved using integrals (and are much harder to solve using more standard techniques)? Any suggestions are appreciated. If possible, post only the limit itself, so I can have a go at it myself :)
I am aware of this question but am looking for limits without summations in the problemstatement.