I'm trying to investigate the convergence of the following:
$$ \int_{1}^{\infty} (1-cos(\dfrac{1}{x})) \,dx $$
Initially, its easy to see that the limit of $cos(\dfrac{1}{x})$ when $x\rightarrow \infty$ is $1$, therefor the the $(1-cos(\dfrac{1}{x}))$ goes to $0$ as $x\rightarrow \infty$, thus allowing me to deduce that the improper integral indeed converges.
Yet I'm trying to prove this using the comparative/dirichlet/absolute convergence methods.
I've tried playing around with trigonometric identities, substituting $1- cos(\dfrac{1}{x})$ with $2sin^2(\dfrac{1}{2x}))$ yet that didn't get me anywhere.
Any assistance would be indeed helpful.
On a different note- I'm having similar issues with $\int_{0}^{\infty}\dfrac{e^{2x}}{1+x^2}dx $, I've proved that $\int_{-\infty}^{1}\dfrac{e^{2x}}{1+x^2}dx $ converges but then our class lecturer decided that you cant use comparison tests with integrals in form of $\int_{-\infty}^{a}$ where $a\in \mathbb{R}$.
Thanks in advance!