Problem: Compute the limit $$\lim_{x\to 0^{+}}(\cos x-1)e^{\cot x}$$ My solution: $$\lim_{x\to 0^{+}}(\cos x-1)e^{\cot x}=\lim_{x\to 0^{+}}\frac{\cos x-1}{x^2}x^2e^{\cot x}=-\frac 12\lim_{x\to 0^{+}}x^2e^{\cot x}$$ and then $$\lim_{x\to 0^{+}}x^2e^{\cot x}=\lim_{x\to 0^{+}}\left(x^2+x^2\cot x+\frac 12x^2\cot^2 x+\sum_{n=3}^{\infty}\frac{x^2\cot^n x}{n!}\right)$$ The first three terms have limit $0$ and $\lim_{x\to 0^{+}}x^2\cot^n x=\infty$ for $n\geq 3$, so the last limit is $+\infty$ and the limit we want is $-\infty$.
I'm looking for different solutions, perhaps using squeeze theorem or a different way to expand with Taylor series (L'Hopital's rule doesn't seem to work nicely here).