Bài 1:
e: Ta có: \(x\left(y-x\right)^2-x^2+2xy-y^2\)
\(=x\left(x-y\right)^2-\left(x-y\right)^2\)
\(=\left(x-y\right)^2\cdot\left(x-1\right)\)
Bài 2:
a: Ta có: \(M=m^2\left(m+n\right)-n^2m-n^3\)
\(=m^2\left(m+n\right)-n^2\left(m+n\right)\)
\(=\left(m+n\right)^2\cdot\left(m-n\right)\)
\(=\left(-2017+2017\right)^2\cdot\left(-2017-2017\right)\)
=0