Ta có: M = xy(x+y) + yz(y+z) + xz (x+z) + 2xyz
= xy(x + y) + yz(y + z) + xyz + xz(x + z) + xyz
= xy(x + y) + yz(y + z + x) + xz(x + z + y)
= xy(x + y) + z(x + y + z)(x + y)
= (x + y)(xy + zx + zy + z2)
= (x + y)[x(y + z) + z(y + z)]
M = (x + y)(y + z)(z + x) (đpcm)