The numerator can be factorized using the conjugate rule to give x2−1=x+1x−1 and then we see that the numerator and denominator have a common factor which we can eliminate
x−1x2−1=x−1x+1x−1=x+1