$\lim_{x\to\infty}\frac{1-\cos x}{1-\sin x}$

Solution 1:

L'Hopital's rule says, in this case, that if the limit$$\lim_{x\to\infty}\frac{1-\cos x}{1-\sin x}$$exists, then it is equal to$$\lim_{x\to\infty}\frac{x-\sin x}{x+\cos x}.$$You tried to apply this implication in the wrong direction, which is not valid.