Let's first combine the top two fractions in the numerator.
\(\frac{x(x+1)-x(x-1)}{x^2-1}=\frac{x^2+x-x^2+x}{x^2-1}=\frac{2x}{x^2-1}\)
This is what our fraction looks like now:
\(\frac{\frac{2x}{x^2-1}}{\frac{x}{x^2-1}}\)
We can multiply top and bottom by \(x^2-1\), which cancels to \(\frac{2x}{x}=2\)