Calculate limit using Maclaurin series $$\lim_{x \to 0}\frac{1-(\cos{x})^{\sin{x}}}{x^3}$$
So what I have tried is defining three functions, $f(x)=\cos{x}, g(x) = \sin{x}, h(x) = x^3$
What I did next was do Maclaurin expansion for three functions up until the third order:
$f(x) = 1 - \frac{x^2}{2} + o(x^3)$
$g(x) = x - \frac{x^3}{3} + o(x^3)$
$h(x) = x^3 + o(x^3)$
So when I plug in these values I get:
$$\lim_{x \to 0}\frac{1-(1-\frac{x^2}{2}+o(x^3))^{x-\frac{x^3}{3} + o(x^3)}}{x^3}$$
So after plugging in $x=0$ I get $\frac{0}{0}$ and when I try to apply L'Hôpital's rule I find myself in a situation where I need to calculate the derivative of the denominator several times (which would take too long). I'm positive that I'm correct until this point (I checked on wolframalpha, the result is 1/2).
Does anyone know how to proceed from here? Do I need to calculate the derivative of the denominator several times or is there a smarter way?

We can derive the limit using series expansion as follows:
\begin{align*}
\color{blue}{\lim_{x\to 0}}&\color{blue}{\frac{1-\left(\cos x\right)^{\sin x}}{x^3}}\\
&=\lim_{x\to 0}\frac{1-\exp\left((\sin x)\ln\left(\cos x\right)\right)}{x^3}\\
&=\lim_{x\to 0}\frac{1-\exp\left(\left(x-\frac{x^3}{6}+\mathcal{O}\left(x^4\right)\right)
\ln\left(1-\frac{x^2}{2}+\mathcal{O}\left(x^4\right)\right)\right)}{x^3}\\
&=\lim_{x\to 0}\frac{1-\exp\left(\left(x-\frac{x^3}{6}+\mathcal{O}\left(x^4\right)\right)
\left(-\frac{x^2}{2}+\mathcal{O}\left(x^4\right)\right)\right)}{x^3}\\
&=\lim_{x\to 0}\frac{1-\exp\left(-\frac{x^3}{2}+\mathcal{O}\left(x^4\right)\right)}{x^3}\\
&=\lim_{x\to 0}\frac{1-\left(1-\frac{x^3}{2}+\mathcal{O}\left(x^4\right)\right)}{x^3}\\
&\,\,\color{blue}{=\frac{1}{2}}
\end{align*}
