\(P=\dfrac{x\sqrt{x}-1}{x-\sqrt{x}}-\dfrac{x\sqrt{x}+1}{x+\sqrt{x}}+\dfrac{x+1}{\sqrt{x}}\)
\(\Rightarrow P=\dfrac{x\sqrt{x}-1}{\sqrt{x}\left(\sqrt{x}-1\right)}-\dfrac{x\sqrt{x}+1}{\sqrt{x}\left(\sqrt{x}+1\right)}+\dfrac{\left(x+1\right)\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(\Rightarrow P=\dfrac{\left(x\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}-\dfrac{\left(x\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}{\sqrt{x}\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}+\dfrac{\left(x+1\right)\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(\Rightarrow P=\dfrac{x-\sqrt{x}+x\sqrt{x}-1}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}-\dfrac{x+\sqrt{x}-x\sqrt{x}-1}{\sqrt{x}\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}+\dfrac{\left(x+1\right)\left(x-1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(\Rightarrow P=\dfrac{x-\sqrt{x}+x\sqrt{x}-1-\left(x+\sqrt{x}-x\sqrt{x}-1\right)}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}+\dfrac{x^2-1}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(\Rightarrow P=\dfrac{x-\sqrt{x}+x\sqrt{x}-1-x-\sqrt{x}+x\sqrt{x}+1+x^2-1}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)
\(\Rightarrow P=\dfrac{x^2-2\sqrt{x}+2x\sqrt{x}-1}{\sqrt{x}\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\)