a) \(x^2y+xy^2+x^2z+xz^2+y^2z+yz^2+2xyz\)
\(=x^2y+xy^2+xyz+x^2z+xz^2+xyz+y^2z+yz^2\)
\(=xy\left(x+y+z\right)+xz\left(x+z+y\right)+yz\left(y+z\right)\)
\(=\left(x+y+z\right)\left(xy+xz\right)+yz\left(y+z\right)\)
\(=x\left(x+y+z\right)\left(y+z\right)+yz\left(y+z\right)\)
\(=\left(y+z\right)\left(x^2+xy+xz+yz\right)\)
\(=\left(y+z\right)\left[x\left(x+y\right)+z\left(x+y\right)\right]=\left(y+z\right)\left(x+y\right)\left(x+z\right)\)
b) \(x^2y+xy^2+x^2z+xz^2+y^2z+yz^2+3xyz\)
\(=\left(x^2y+xy^2+xyz\right)+\left(x^2z+xz^2+xyz\right)+\left(y^2z+yz^2+xyz\right)\)
\(=xy\left(x+y+z\right)+xz\left(x+z+y\right)+yz\left(y+z+x\right)\)
\(=\left(x+y+z\right)\left(xy+xz+yz\right)\)
P/s: Sai sót xin bỏ qua.