ĐKXĐ: ...
\(P=\left(\frac{2x+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}-\frac{\sqrt{x}\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right)\left(\frac{\left(\sqrt{x}+1\right)\left(x-\sqrt{x}+1\right)}{\sqrt{x}+1}-\sqrt{x}\right)\)
\(=\left(\frac{2x+1-x+\sqrt{x}}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right)\left(x-2\sqrt{x}+1\right)\)
\(=\left(\frac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right)\left(\sqrt{x}-1\right)^2\)
\(=\frac{\left(\sqrt{x}-1\right)^2}{\sqrt{x}-1}=\sqrt{x}-1\)