a, \(3y\left(x^2-xy\right)-7x^2\left(y+xy\right)\)
\(=3x^2y-3xy^2-7x^2y-7x^3y\)
\(=-4x^2y-3xy^2-7x^3y\)
\(=y\left(-4x^2-3xy-7x^3\right)\)
b, \(4x^3yz-4xy^2z^2-\left(xyz+x^2y^2z^2\right)\left(a+1\right)\)
\(=4x^3yz-4xy^2z^2-xyza-x^2y^2z^2a-xyz-x^2y^2z^2\)
\(=xyz\left(4x^2-4yz-a-xyza-1-xyz\right)\)