Consider the sequence $g_n(x)=(1-\frac{x}{n})^n$ for $x\in[-1,1]$. Calculate the value $$\lim_{n\to\infty}\int_{-1}^1g_n(x)dx$$ by showing the existence of the limit with the aid of the Lebesgue's dominated convergence theorem (LDCT).
Attempt. For $n\in\Bbb N,x\in[-1,1]$, note that $|g_n(x)|=\left(1-\frac{x}{n}\right)^n\leq 2$ and the function $h(x)=2$ is integrable on $[-1,1]$. So, we may apply (LDCT) as follows: $$\lim_{n\to \infty}\int_{-1}^1g_n(x)dx=\int_{-1}^1\lim_{n\to \infty}g_n(x)dx=\int_{-1}^1 1dx=2.$$ I would be glad if someone could check my attempt. Thanks!
Hint. Note that the point-wise limit of sequence of functions $(g_n(x))_n$ is $g(x)=e^{-x}$ (it is not $1$). Hence, by following your approach, we may apply the Lebesgue's dominated convergence theorem (note that $|g_n(x)|$ is bounded by $e$) and $$\lim_{n\to \infty}\int_{-1}^1g_n(x)dx=\int_{-1}^1 e^{-x}dx.$$ What is the final result?