a: ĐKXĐ: \(\left\{{}\begin{matrix}x\ge0\\x\ne4\end{matrix}\right.\)
Ta có: \(P=\dfrac{\sqrt{x}}{\sqrt{x}+2}+\dfrac{2}{\sqrt{x}-2}-\dfrac{4\sqrt{x}}{x-4}\)
\(=\dfrac{x-2\sqrt{x}+2\sqrt{x}+4-4\sqrt{x}}{\left(\sqrt{x}-2\right)\left(\sqrt{x}+2\right)}\)
\(=\dfrac{\sqrt{x}-2}{\sqrt{x}+2}\)