I need to find limit of $\lim_{n\to\infty}(\cos\frac{1}{n})^{n^{2}}$.
I tried going like this:
Let $x = \frac{1}{n}$,
$\lim_{n\to\infty}(\cos\frac{1}{n})^{n^{2}} = \lim_{x\to0^{+}}(\cos(x))^{1/x^2} = \lim_{x\to0^{+}}e^{\ln(\cos(x))^{1/x^2}}= \lim_{x\to0^{+}}e^{\frac{1}{x^2}\ln(\cos(x))}$
The answer is $1$, therefore I need to show that $\lim_{x\to0^{+}}e^{\frac{1}{x^2}\ln(\cos(x))}$ = $e^{0} = 1$
Meaning, I need to show that $\lim_{x\to0^{+}}\frac{1}{x^2}\ln(\cos(x)) = 0$.
I know that $\lim_{x\to0^{+}}\cos(x) = 1$, therefore, $\ln(1) =0$,
so I'm stuck at $\lim_{x\to0^{+}}e^{\frac{1}{0^+}0} = ? $
If I could say that $\frac{1}{0^+}0$ is $0$ that would solve it but I guess I can't.
Whats a better way to solve it?