Phân tích đa thức thành nhân tử: a) $x^3(2+x)^2-(x+2)^2+1-x^3$ b) $x(x-y)^2+y(x-y)^2-xy+x^2$