Evaluating $\lim_{x \to 0} \frac{(1 + \sin x + \sin^2 x)^{1/x} - (1 + \sin x)^{1/x}}{x}$ I did this:
$$\begin{align}
\lim_{x \to 0} \frac{(1 + \sin x + \sin^2 x)^{1/x} - (1 + \sin x)^{1/x}}{x} &\sim \lim_{x \to 0} \frac{(1 + x + x^2)^{1/x} - (1 + x)^{1/x}}{x} = \\
&= \lim_{x \to 0} \left [ (1+x)^{1/x} \frac{\left ( \frac{1 + x + x^2}{1 + x} \right )^{1/x} - 1}{x} \right ] =\\
&= \lim_{x \to 0} (1+x)^{1/x} \cdot \lim_{x \to 0} \frac{\left ( 1 + \frac{x^2}{1 + x} \right )^{1/x} - 1}{x} =\\
&= e \cdot \lim_{x \to 0} \frac{e^{\frac{1}{x} \cdot \ln \left ( 1 + \frac{x^2}{1+x} \right )} - 1}{x} \sim \\
&\sim e \cdot \lim_{x \to 0} \frac{e^{\frac{x}{1 + x}} - 1}{x} \sim \\
&\sim e \cdot \lim_{x \to 0} \frac{1}{1 + x} = e
\end{align}$$
Is it right? If it is, how to evaluate the limit faster? It was pretty long the way I did it.

I think that, in the same spirit as you show in the post, we could do a little faster considering the development of $$1+\sin (x)+a \sin ^2(x)=1+x+a x^2+O\left(x^3\right)$$ Then going to logarithms, series, followed by exponentiation of series and series again $$f(a)=\Big(1+\sin (x)+a \sin ^2(x)\Big)^{1/x}=e+\left(e a-\frac{e}{2}\right) x+O\left(x^2\right)$$ Then, the numerator is just $$f(1)-f(0) \approx e x-ex^2$$ from which the result follows.
