Lời giải:
Từ \(x+y+z=xyz\Rightarrow \frac{1}{xy}+\frac{1}{yz}+\frac{1}{xz}=1\)
Do đó:
\(M=\frac{1}{x^2}+\frac{1}{y^2}+\frac{1}{z^2}=\left(\frac{1}{x}+\frac{1}{y}+\frac{1}{z}\right)^2-2\left(\frac{1}{xy}+\frac{1}{yz}+\frac{1}{xz}\right)\)
\(\Leftrightarrow M=3^2-2=7\)
Vậy \(M=7\)