$$\lim_{x \to 0^-} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = 1$$
More at x→0 from the left$$\lim_{x \to 0^+} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = 1$$
$$\lim_{x \to \infty} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = \left\langle 0, \infty\right\rangle$$
More at x→oo$$\lim_{x \to 1^-} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = 2 - \cos{\left(1 \right)}$$
More at x→1 from the left$$\lim_{x \to 1^+} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = 2 - \cos{\left(1 \right)}$$
More at x→1 from the right$$\lim_{x \to -\infty} \left(2 - \cos{\left(x \right)}\right)^{x^{2}} = \left\langle 0, \infty\right\rangle$$
More at x→-oo