My task is to calculate the following: $$\lim_{x\to1}\dfrac{x^2-x}{x^2-1}$$
My attempt was to simplify
$$\dfrac{x^2-x}{x^2-1}$$
But this is where I am stuck. I tried polynomial division but I did not get a nice looking result.
However wolfram alpha showed me this solution (for $x$ not equal to $1$)
$$\dfrac{x^2-x}{x^2-1}=\dfrac{x}{x+1}$$
I'd like to know why this works and how the solution can be obtained.
you have $x^2-x=x\color{red}{(x-1)}$ and $x^2-1 = (x+1)\color{red}{(x-1)}$
$$\dfrac{x^2-x}{x^2-1} =\dfrac{x\color{red}{(x-1)}}{(x+1)\color{red}{(x-1)}}=\dfrac{x}{x+1}$$ $$\lim_{x\to1}\dfrac{x^2-x}{x^2-x} =\lim_{x\to1}\dfrac{x}{x+1}= \dfrac{1}{2}$$