[tex]\frac{2(x^{2} +x-2)}{2(x^{2} -2x+1)}[/tex] (factor out GCF)
[tex]\frac{(x+2)(x-1)}{(x-2)(x+1)}[/tex] or [tex]\frac{(x^{2} +x-2)}{(x^{2} -2x+1)}[/tex] (I'm' not sure how far you're supposed to go. The first is factored, the second isn't. Nothing else cancels).