I am doing the derivative of
$$f(x) = \frac{x^2 -4x +3}{x^2-1}$$
So my result is the following
$$f'(x) = \frac{4x^2 -8x +4}{(x^2-1)^2}$$
I am sure the answer is correct, but in my solutions book and In Wolfram Alpha they simplify until
$$f'(x) = \frac{4}{(x+1)^2}$$
And I don't know why, which steps are they doing?