Lời giải:
ĐKXĐ: $x\geq 0; x\neq 1$
\(P=\frac{x+\sqrt{x}-(x+2)}{\sqrt{x}+1}:\left[\frac{\sqrt{x}(\sqrt{x}-1)}{(\sqrt{x}+1)(\sqrt{x}-1)}+\frac{\sqrt{x}-4}{(\sqrt{x}-1)(\sqrt{x}+1)}\right]\)
\(=\frac{\sqrt{x}-2}{\sqrt{x}+1}:\frac{x-\sqrt{x}+\sqrt{x}-4}{(\sqrt{x}-1)(\sqrt{x}+1)}\)
\(=\frac{\sqrt{x}-2}{\sqrt{x}+1}:\frac{x-4}{(\sqrt{x}-1)(\sqrt{x}+1)}=\frac{\sqrt{x}-2}{\sqrt{x}+1}.\frac{(\sqrt{x}-1)(\sqrt{x}+1)}{(\sqrt{x}-2)(\sqrt{x}+2)}\)
\(=\frac{\sqrt{x}-1}{\sqrt{x}+2}=1-\frac{3}{\sqrt{x}+2}\)
Với mọi $x\geq 0; x\neq 1$ thì $\sqrt{x}+2\geq 2$
$\Rightarrow \frac{3}{\sqrt{x}+2}\leq \frac{3}{2}$
$\Rightarrow P=1-\frac{3}{\sqrt{x}+2}\geq 1-\frac{3}{2}=\frac{-1}{2}$
Vậy $P_{\min}=\frac{-1}{2}$ khi $x=0$