I'm calculating the limit for the following equation, and would like some feedback on my solution. The answer is $-2$ although, I cannot seem to derive this whilst using l'hopitals rule.
$\lim_{x \to 0}\frac{x-\tan(x)}{x-\sin(x)}$
my working out:
$$\lim_{x \to 0}\frac{\frac{d}{dx}(x-\tan(x))}{\frac{d}{dx}(x-\sin(x))}=\frac{1-\sec^2(x)}{1-\cos(x)} = \frac{\tan^2(x)(1+\cos(x))}{1-\cos^2(x)}=0$$