I'm working through some apparently tricky limits (for a basic fellow like me), and I'm not sure how to treat the following situation: $$\displaystyle\lim_{x\to0} (\cos x)^{\frac{1}{x^2}}$$ How does one deal with powers which include $x$ when evaluating limits? I'm not after an exact evaluation of the limit. I'm just interested in how to go about it so that I can reach the answer Wolfram spits out as $$\frac{1}{\sqrt{e}}$$
Thanks for your patience and time, all.