For what values of $x$ does the following limit exist? $$\lim_{n\rightarrow\infty}\frac{x+x^n}{1+x^n}$$ Here, $n$ is a natural number.
What I have tried so far: The limit exists for $x=1$, since the function simplifies to a constant ($=1$). Further, the limit exists for $x>1$ and the limit equals one in this case. For $x \in (-1,1)$, the limit exists and is equal to $x$.
I am getting confused about the remaining cases ($x\leq-1$). Is the limit undefined for $x\le-1$?
For $|x|<1$ we get $$\lim_{n\to \infty}\frac{x+x^n}{1+x^n}=x$$ For $x=1$ we get $$\lim_{x\to \infty}\frac{x+x^n}{1+x^n}=1$$ For $x<-1$ we get $$\lim_{x\to\infty}\frac{1+x^n}{1+x^n}=1$$ And for $x=-1$ we get $$\lim_{x\to -1}\frac{-1+(-1)^n}{1+(-1)^n}$$ and the limit doesn't exist.