Đặt \(P=\dfrac{x+2}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}+\dfrac{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}-\dfrac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{x+2+x-1-x-\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}=\dfrac{\sqrt{x}\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{\sqrt{x}}{x+\sqrt{x}+1}\)
\(P-\dfrac{1}{3}=\dfrac{\sqrt{x}}{x+\sqrt{x}+1}-\dfrac{1}{3}=-\dfrac{x-2\sqrt{x}+1}{x+\sqrt{x}+1}=-\dfrac{\left(\sqrt{x}-1\right)^2}{x+\sqrt{x}+1}\le0;\forall x\ge0\)
\(\Rightarrow P\le\dfrac{1}{3}\)
Dấu "=" xảy ra khi \(x=1\) ko thỏa mãn ĐKXĐ nên \(P< \dfrac{1}{3}\)