Theorem: $x$ is a real number with $x \neq 1.$ If $\frac {x^2+1}{x-1} =x$, then $x=-1$.
If we suppose that $x=-1$. Then $\frac {x^2+1}{x-1} = \frac {(-1)^2+1}{-1-1} = \frac {2}{-2} = -1 = x$
I would say that the prove is not correct in the second step when we have $(-1)^2$, but I am not completely sure.
I appreciate your answer!!!