a) Ta có: \(P=\left(\frac{2+\sqrt{x}}{2-\sqrt{x}}+\frac{\sqrt{x}}{2+\sqrt{x}}-\frac{4x+2\sqrt{x}-4}{x-4}\right):\left(\frac{2}{2-\sqrt{x}}-\frac{\sqrt{x}-3}{\sqrt{x}+3}\right)\)
\(=\left(\frac{\left(2+\sqrt{x}\right)^2}{\left(2-\sqrt{x}\right)\left(2+\sqrt{x}\right)}+\frac{\sqrt{x}\left(2-\sqrt{x}\right)}{\left(2-\sqrt{x}\right)\left(2+\sqrt{x}\right)}+\frac{4x+2\sqrt{x}-4}{\left(2-\sqrt{x}\right)\left(2+\sqrt{x}\right)}\right):\left(\frac{-2}{\sqrt{x}-2}-\frac{\sqrt{x}-3}{\sqrt{x}+3}\right)\)
\(=\frac{4+4\sqrt{x}+x+2\sqrt{x}-x+4x+2\sqrt{x}-4}{\left(2-\sqrt{x}\right)\left(2+\sqrt{x}\right)}:\left(\frac{-2\left(\sqrt{x}+3\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+3\right)}-\frac{\left(\sqrt{x}-3\right)\left(\sqrt{x}-2\right)}{\left(\sqrt{x}+3\right)\left(\sqrt{x}-2\right)}\right)\)
\(=\frac{4x+8\sqrt{x}}{\left(2-\sqrt{x}\right)\left(2+\sqrt{x}\right)}:\frac{-2\sqrt{x}-6-\left(x-5\sqrt{x}+6\right)}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+3\right)}\)
\(=\frac{4\sqrt{x}\left(\sqrt{x}+2\right)}{\left(2-\sqrt{x}\right)\left(\sqrt{x}+2\right)}:\frac{-2\sqrt{x}-6-x+5\sqrt{x}-6}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+3\right)}\)
\(=\frac{-4\sqrt{x}}{\sqrt{x}-2}:\frac{-x+3\sqrt{x}-12}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+3\right)}\)
\(=\frac{-4\sqrt{x}}{\sqrt{x}-2}\cdot\frac{\left(\sqrt{x}-2\right)\left(\sqrt{x}+3\right)}{-x+3\sqrt{x}-12}\)
\(=\frac{-4\sqrt{x}\left(\sqrt{x}+3\right)}{-x+3\sqrt{x}-12}\)
\(=\frac{4x+12\sqrt{x}}{x-3\sqrt{x}+12}\)
b)
ĐKXĐ: \(\left\{{}\begin{matrix}x\ge0\\x\ne4\end{matrix}\right.\)
Để P=-1 thì \(\frac{4x+12\sqrt{x}}{x-3\sqrt{x}+12}=-1\)
\(\Leftrightarrow4x+12\sqrt{x}=-1\left(x-3\sqrt{x}+12\right)\)
\(\Leftrightarrow4x+12\sqrt{x}=-x+3\sqrt{x}-12\)
\(\Leftrightarrow4x+12\sqrt{x}+x-3\sqrt{x}+12=0\)
\(\Leftrightarrow5x+9\sqrt{x}+12=0\)(1)
Ta có: \(\forall x\) thỏa mãn ĐKXĐ ta luôn có: \(\left\{{}\begin{matrix}5x\ge0\\9\sqrt{x}\ge0\end{matrix}\right.\Leftrightarrow5x+9\sqrt{x}\ge0\Leftrightarrow5x+9\sqrt{x}+12>0\)(2)
Từ (1) và (2) suy ra không có giá trị nào của x để P=-1