I'm studying for an exam, but I have trouble with computing the following limit:
$$\lim_{x \to 0} \frac{\cos x - \sqrt{2 - e^{x^2}}}{\ln{(\cos x) + \frac{1}{2} x \sin x}} \cdot \frac{(x+2)^{2017}}{(x-2)^{2015}}$$
I tried directly plugging in a $0$, but that just results in $\frac{0}{0}$. Using L'Hospital's rule doesn't seem like it would help simplify this. Any help would be appreciated.