In the book Real Analysis by Bass, it asks to evaluate the Lebesgue integral
$$ \lim_{n\to\infty} \int_{0}^{n} \bigg(1 - \frac{x}{n} \bigg)^{n} \log(2+\cos(x/n)) \ \mathrm{d}x $$
I assume I should use one of the convergence theorems.
Define the integrand as $f_n(x)$.
Is it possible to evaluate this even if $f_n(x)$ is not defined for all $x \in \mathbb{R}$ for some values of $n \in \mathbb{R}$? To be specific, $f_n(x)$ is defined for all $x\in\mathbb{R}$, and the integral as well, if $n \in \mathbb{N}$. Is this enough for the limit to be integrable? Another thing that confuses me is that the upper limit of the integral is $n$, should I define the sequence of functions $g_n = \int_{0}^{n} \left(1 - \frac{x}{n} \right)^{n} \log(2+\cos(x/n)) \, \mathrm{d}x$ for each positive integer $n$?
My edit:
What I mean is that the integrand is real-valued on $(0,n)$ but I don't know how to tackle cases where the integration interval varies with the limit.
$HINT$
$1_{[0,n]}\leq 1, \forall n \in \Bbb{N}$
Note that $|\log{(2+\cos{(x/n)})}| \leq \log{3}$
Also since $1-x \leq e^{-x}$ we have that $$(1-\frac{x}{n})^ \leq e^{-\frac{x}{n}}$$
So by m DCT you have the limit.