I'm here wondering if this integral that our math teacher gave us (students) is even possible to evaluate? I just started to study real analysis so I find this very disturbing. Here you go, and if anyone has any idea I will be very grateful.
$$\lim_{n \rightarrow \infty} \int_n^\infty \frac{n^2 \arctan {\frac{1}{x}}}{x^2+n^2}\ dx$$
The change of variables $x\mapsto nx$ gives $$ \begin{align} \lim_{n\to\infty}\int_n^\infty\frac{n^2\arctan\left(\frac1x\right)}{x^2+n^2}\,\mathrm{d}x &=\lim_{n\to\infty}\int_1^\infty\frac{n\arctan\left(\frac1{nx}\right)}{x^2+1}\,\mathrm{d}x\tag1\\ &=\int_1^\infty\frac{\frac1x}{x^2+1}\,\mathrm{d}x\tag2\\ &=\int_1^\infty\left(\frac1x-\frac{x}{x^2+1}\right)\,\mathrm{d}x\tag3\\ &=\lim_{n\to\infty}\left(\int_1^n\frac1x\,\mathrm{d}x-\int_1^n\frac x{x^2+1}\,\mathrm{d}x\right)\tag4\\ &=\lim_{n\to\infty}\left(\log(n)-\frac12\log\left(\frac{n^2+1}2\right)\right)\tag5\\[3pt] &=\frac12\log(2)\tag6 \end{align} $$ Explanation:
$(1)$: substitute $x\mapsto nx$
$(2)$: $0\le\frac1x-n\arctan\left(\frac1{nx}\right)\le\frac1{3n^2x^3}$; therefore, $0\le(2)-(1)\le\frac1{12n^2}$
$(3)$: partial fractions
$(4)$: write the improper integral as a limit
$(5)$: evaluate the integrals
$(6)$: evaluate the limit