what you have to do is first multiply both sides by (x-1) to get rid of the denominator on the right, so you get:
(2x-5)=((x-1)((x-1))/(x+1)
next you want to get rid of the denominator on the left, so you multiply both sides by (x+1) which is:
(2x-5)(x+1)=(x-1)(x-1)
next just distribute everything:
2x^2-3x-5=x^2-2x+1