I have the following limit to solve.
$$\lim_{x \rightarrow 0}(1-\cos x)^{\tan x}$$
I am normally supposed to solve it without using l'Hôpital, but I failed to do so even with l'Hôpital. I don't see how I can solve it without applying l'Hôpital a couple of times, which doesn't seem practical, nor how to solve the question without applying it. Thanks for the help.
Note that
$$\begin{align} \left(1-\cos(x)\right)^{\tan(x)}&=\left(2\sin^2(x/2)\right)^{\tan(x)}\\\\ &=2^{\tan(x)}\,\left(\sin(x/2)\right)^{2\tan(x)}\\\\ &=2^{\tan(x)}\,\left(\left(\sin(x/2)\right)^{\sin(x/2)}\right)^{2\tan(x)/\sin(x/2)}\\\\ &=2^{\tan(x)}\,\left(\left(\sin(x/2)\right)^{\sin(x/2)}\right)^{4\cos(x/2)/\cos(x)}\\\\ \end{align}$$
Now, since $\lim_{x\to 0}2^{\tan(x)}=1$, $\lim_{x\to 0}4\cos(x/2)/\cos(x)=4$, and $\lim_{x\to 0}x^x=1$, then $\lim_{x\to 0}(\sin(x/2))^{\sin(x/2)}=1$, and the limit of interest is $1$.