Factor x+x^2y+x^3y^2