# $\lim_{x\to \infty}\frac{x+\cos x}{x - \cos x}$

Here $f(x) = x + \cos x$ and $g(x)= x- \cos x$

We can't apply L'Hopital's Rule since $\forall c > 0\quad \exists x_c \in (c, + \infty): g'(x) = 1 + \sin x = 0$.

But I don't know how to proceed.

My attempt:

Because $\cos x$ is bounded I was taking an arbitrary number $A >0$ that bounds $\cos x$ from above.

From there I have

$$\lim_{x\to \infty}\frac{x+\cos x}{x - \cos x} = \lim_{x\to \infty}\frac{x+A}{x - A} =1$$

But the answer is $0$. What am I doing wrong?

• The answer is obviously $1$, you can plot the function with Wolfram Alpha to have a numerical proof. Algebraically you can divide the numerator and the denominator by $x$ to make it obvious. wolframalpha.com/input/… Nov 9, 2016 at 12:13
• Divide top and bottom by $x$. Nov 9, 2016 at 12:14
• Why do you say "But the answer is 0" ? Nov 9, 2016 at 12:14
• "What am I doing wrong?" Nothing; you have the correct answer. $0$ is incorrect. Nov 9, 2016 at 12:23

$$\lim_{x\to \infty}\frac{x+\cos x}{x - \cos x} = \lim_{x\to \infty}\frac{1+\frac{\cos{x}}{x}}{1 - \frac{\cos{x}}{x}} = \frac{1+0}{1-0} = 1$$
For $x \gt 1$, you have $\dfrac{x+\cos x}{x - \cos x}=1 + \dfrac{2\cos x}{x - \cos x}$
Since $0 \le | \cos x | \le 1$ you have $-2 \le 2 \cos x \le 2$ and $x-\cos x \ge x-1$
meaning $1 - \dfrac{2}{x - 1} \le \dfrac{x+\cos x}{x - \cos x} \le 1 + \dfrac{2}{x - 1}$ and thus a limit of $1$ as $x$ increases without limit
$\frac{x+\cos x}{x - \cos x}=\frac{1+\frac{\cos x}{x}}{1 - \frac{\cos x}{x}} \to 1$ for $x \to \infty$, since $0 \le \frac{|\cos x|}{x}\le \frac{1}{x}$ for $x>0$