a,
\(\left(x^2-2xy+y^2\right)\left(x-y\right)-\left(x-y\right)\left(x^2+xy+y^2\right)\)
\(=\left[\left(x^2-2xy+y^2\right)\left(x-y\right)\right]-\left[\left(x-y\right)\left(x^2+xy+y^2\right)\right]\)
\(=\left[\left(x-y\right)^2\left(x-y\right)\right]-\left(x-y\right)^3\)
\(=\left(x-y\right)^3-\left(x-y\right)^3\)
\(=0\)
\(a,\left(x^2-2xy+y^2\right)\left(x-y\right)-\left(x-y\right)\left(x^2+xy+y^2\right)\)
\(=\left(x-y\right)\left(x^2-2xy+y^2-x^2-xy-y^2\right)\)
\(=\left(x-y\right)\left(-3xy\right)\)