Ta có: \(P=1:\left(\dfrac{x+2}{x\sqrt{x}-1}+\dfrac{\sqrt{x}+1}{x+\sqrt{x}+1}-\dfrac{\sqrt{x}+1}{x-1}\right)\)
\(=1:\left(\dfrac{x+2}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}+\dfrac{x-1}{\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)}\right)\)
\(=1:\dfrac{x+2+x-1-x-\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=1:\dfrac{x-\sqrt{x}}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\)
\(=\dfrac{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)}\)
\(=\dfrac{x+\sqrt{x}+1}{\sqrt{x}}\)