Background
I seem to be having issues recognizing valid bounding functions when applying the Lebesgue Dominated convergence theorem. Here are two examples I did that I do not think are justified.
Example 1: Show that $$\lim_{n\to\infty} \int_0^\infty ne^{-nx}\sin(1/x) \ dx$$ exists and determine its value.
Solution: Let $u=nx$. Then we may rewrite the integral as $$\int_0^\infty e^{-u}\sin\left(\frac{n}{u}\right) \ du.$$ Note that $$\bigg\lvert e^{-u}\sin\left(\frac{n}{u}\right)\bigg\rvert\leq e^{-u},$$ and since $e^{-u}$ is integrable, the LDCT applies. The limit is then $0$.
Example 2: Let $g:\mathbb{R} \rightarrow \mathbb{R}$ be integrable and let $f:\mathbb{R} \rightarrow \mathbb{R}$ be bounded, measurable, and continuous at $1$. prove that $$\lim_{n\to\infty}\int_{-n}^nf\left(1+\frac{x}{n^2}\right)g(x) \ dx$$ exists and determine its value.
Solution: $f$ is bounded so for all $x$,$|f|\leq K$ for some $k \in \mathbb{R}$. Thus $$\bigg\lvert f\left(1+\frac{x}{n^2}\right)g(x) \chi_{[-n,n]}\bigg\rvert\leq k|g(x)|.$$ Since $k|g(x)|$ is integrable, we again have by the LDCT that the integral converges. The limiting value is $\int_\mathbb{R}f(1)g(x) \ dx.$
My Question
I am not really looking for the solution to these problems. Rather I wish to know how I am applying the LDCT wrong in both of these (I am fairly sure that I am applying it wrong).
The second one seems fine to me.
For the first, you simply hid the dependency on $n$.
That is, it's fine to set $u = nx$ inside the limit; for you get that for every fixed $n$, your integrand is bounded by $e^{-u}$. But anyway your $u$ depends on $n$; so what you've shown is that the $n$-th integrand can be bound by a function that depends on $n$, and this is not what the LDCT requires.