Từ giả thiết ta có: \(\left(x+y-z\right)^2=4xy\)
\(\Rightarrow P=x+y+z+\frac{2}{\left(x+y-z\right)^2.z}=x+y+z+\frac{8}{4z\left(x+y-z\right)^2}\)
Am-Gm:\(\left(x+y-z\right)\left(x+y-z\right).4z\le\frac{1}{27}\left(2x+2y+2z\right)^3=\frac{8}{27}\left(x+y+z\right)^3\)
\(\Rightarrow P\ge x+y+z+\frac{27}{\left(x+y+z\right)^3}\)
\(=\frac{x+y+z}{3}+\frac{x+y+z}{3}+\frac{x+y+z}{3}+\frac{27}{\left(x+y+z\right)^3}\ge4\sqrt[4]{\frac{\left(x+y+z\right)^3.27}{27.\left(x+y+z\right)^3}}=4\)
Dấu = xảy ra khi \(\left\{{}\begin{matrix}x+y-z=4z\\x+y+z=3\\\left(x+y-z\right)^2=4xy\end{matrix}\right.\)\(\Rightarrow\left\{{}\begin{matrix}z=\frac{1}{2}\\x+y=\frac{5}{2}\\xy=1\end{matrix}\right.\)
\(\Rightarrow\left(x;y;z\right)=\left(\frac{1}{2};2;\frac{1}{2}\right)\) hoặc \(\left(2;\frac{1}{2};\frac{1}{2}\right)\). Nhưng vì đề bài cho đối xứng với cả 3 biến nên dấu = xảy ra tại hoán vị của \(\left(2;\frac{1}{2};\frac{1}{2}\right)\)
Vậy P min =4