What is the limit of: $$\lim_{x~\to~ -1} \frac{x^{2n+1}+1}{x+1}$$
Thanks
Note: This solution is based on the original version of the problem, which had $x^{2n+1}$ not $x^{2n+1}+1$ in the numerator.
L'Hopital's rule doesn't apply here, as the numerator goes to $-1$ while the denominator goes to $0$. The fraction blows up. It is negative as $x\to -1+$ (from the right), and positive as $x\to -1-$ (from the left). Hence the one-sided limits are $-\infty$ and $+\infty$, respectively. The overall limit therefore does not exist.
On way to evaluate the limit is to write
$$\frac{x^{2n+1}+1}{x+1}=\sum_{k=0}^{2n}(-1)^{k}x^k\to 2n+1\,\,\text{as}\,\,x\to -1$$
A second way to evaluate the limit is to use L'Hospital's Rule. We have
$$\lim_{x\to -1}\frac{x^{2n+1}+1}{x+1}=\lim_{x\to -1}(2n+1)x^{2n}=2n+1$$
as expected!
Two ways to do this question: