Here's the question: $$\lim_{x\to 0} \frac {x-\sin x}{x-\tan x}$$
I've used l'Hospitals to get $$\lim_{x\to 0} \frac {1-\cos x}{1-\sec^2x}$$ I then tried to use it again, resulting in $= \lim\limits_{x\to 0} \cfrac {\sin x}{1-\sec^2 x\cdot\tan^2 x}$ which gives me 0, but the wolfram alpha answer is $-1/2$. I've tried other things like dividing by x, but nothing I get leads me to believe I'm on the right path.
Yes, firt use the l'Hospital rule: $$\lim_{x\rightarrow 0}\frac{x-\sin x}{x-\tan x}=\lim_{x\rightarrow 0}\frac{1-\cos x}{1-\sec^2x} $$ Now, $\sec^2x=\frac{1}{\cos^2x}$, then $$\lim_{x\rightarrow 0}\frac{x-\sin x}{x-\tan x}=\lim_{x\rightarrow 0}\frac{1-\cos x}{1-\frac{1}{\cos^2x}}=\lim_{x\rightarrow 0}\frac{1-\cos x}{\frac{\cos^2x-1}{\cos^2x}} =\lim_{x\rightarrow 0}(1-\cos x)\frac{\cos^2x}{\cos^2x-1}=$$ $$=\lim_{x\rightarrow 0} (1-\cos x)\frac{\cos^2x}{-(1-\cos x)(1+\cos x)}= $$ $$=\lim_{x\rightarrow 0}-\frac{\cos^2x}{1+\cos x}=-\frac{1}{2}. $$