Simplify the rational expression

(x^2+xy-2y^2)/(x^2+3xy+2y^2)

[ (x-y)(x+2y) ] / [(x+2y)(x+y) ]

= (x-y)/(x+y)