<s>[INST] Calculating limit of function To find limit of $\lim_{x\to 0}\frac {\cos(\sin x) - \cos x}{x^4} $.
I differentiated it using L Hospital's rule. I got
$$\frac{-\sin(\sin x)\cos x + \sin x}{4x^3}\text{.}$$ I divided and multiplied by $\sin x$.
Since $\lim_{x\to 0}\frac{\sin x}{x} = 1$, thus I got
$\frac{1-\cos x}{4x^2}$.On applying standard limits, I get answer $\frac18$. But correct answer is $\frac16$. Please help. 
 [/INST] Without L'Hôpital
The expansions $\sin(x) = x - \frac{x^3}{6} + O(x^5)$ and $\cos(u) = 1 - \frac{u^2}{2} + \frac{u^4}{24} + O(u^6)$ combine joyfully to give
$$
\cos(\sin x) - \cos(x) = \left(1 - \frac{x^2}{2} + \frac{5x^4}{24}\right) - \left(1-\frac{x^2}{2} + \frac{x^4}{24}\right) + O(x^5)
$$
so finally,
$$
\lim_{x\to 0} \frac{\cos(\sin x) - \cos(x)}{x^4} = \frac{5}{24}-\frac{1}{24} = \frac{1}{6}.
$$
</s>