Divide xy to 3rd power -3xy to 2nd power +2x to 2nd power y by xy

Your description is unclear. If I have this right,

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

However, from the way you have it stated, it could be:

([xy]^3 - [3xy]^2 + [2x]^2y)/xy = (xy)^2 - 9xy + 4x