I'm trying to evaluate the following limit... $$\lim\limits_{x \to \infty} \frac{x-3}{\cos x+x}$$
My first thought was to use L'Hôpital's rule. The numerator obviously tends towards infinity, and so, I believe, does the denominator, because of the additive $x$ term. Applying the rule, then, we arrive at the following result: $$\lim\limits_{x \to \infty} \frac{1}{-\sin x+1}$$ It would therefore seem that the limit does not exist, since the denominator is an alternating trig function with periodic asymptotes. However, if we graph our original function, it's quite clear that the limit actually tends to 1. This can be shown be squeezing the function between $\frac{x-3}{-1+x}$ and $\frac{x-3}{1+x}$ respectively.
Why, then, does L'Hôpital's rule not seem to apply to this function? Is there some nuance or precondition for the rule that I'm missing?