TH1: \(x+y+z=0\)
\(\Rightarrow x+y=-z\)
\(y+z=-x\)
\(x+z=-y\)
\(\Rightarrow M=\dfrac{\left(x+y\right)\left(y+z\right)\left(x+z\right)}{8xyz}=\dfrac{-xyz}{8xyz}=\dfrac{-1}{8}\)
TH2: \(x+y+z\ne0\)
\(\Rightarrow2x+2y-z=3\)
\(\Rightarrow2x+2y=4z\)
\(\Rightarrow x+y=2z\)
\(x+z=2y\)
\(y+z=2x\)
\(\Rightarrow M=\dfrac{2z.2y.2x}{8xyz}=1\)
Vậy: \(M=\dfrac{-1}{8}\) hoặc \(1\)
Ta có \(\dfrac{2x+2y-z}{z}=\dfrac{2x+2z-y}{y}=\dfrac{2y+2z-x}{x}\)
Áp dụng tính chất dãy tỉ số bằng nhau
\(\Rightarrow\dfrac{2x+2y-z}{z}=\dfrac{2x+2z-y}{y}=\dfrac{2y+2z-x}{x}=\dfrac{3\left(x+y+z\right)}{x+y+z}=3\)
\(\Rightarrow\left\{{}\begin{matrix}\dfrac{2x+2y-z}{z}=3\\\dfrac{2x+2z-y}{y}=3\\\dfrac{2y+2z-x}{x}=3\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}2x+2y-z=3z\\2x+2z-y=3y\\2y+2z-x=3x\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}2x+2y=4z\\2x+2z=4y\\2y+2z=4x\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}x+y=2z\\x+z=2y\\y+z=2x\end{matrix}\right.\)
Ta có \(M=\dfrac{\left(x+y\right)\left(y+z\right)\left(x+z\right)}{8xyz}\)
\(\Rightarrow M=\dfrac{2x.2y.2z}{8xyz}=\dfrac{8xyz}{8xyz}=1\)
Vậy \(M=1\)