ĐKXĐ: \(\left\{{}\begin{matrix}x>0\\x\ne1\end{matrix}\right.\)
\(P=\left(\sqrt{x}-\dfrac{1}{\sqrt{x}}\right)\cdot\left(\dfrac{\sqrt{x}-1}{x-1}+\dfrac{x+\sqrt{x}+1}{x\sqrt{x}-1}\right)\)
\(=\dfrac{x-1}{\sqrt{x}}\cdot\left(\dfrac{\sqrt{x}-1}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}+\dfrac{x+\sqrt{x}+1}{\left(\sqrt{x}-1\right)\left(x+\sqrt{x}+1\right)}\right)\)
\(=\dfrac{x-1}{\sqrt{x}}\left(\dfrac{1}{\sqrt{x}+1}+\dfrac{1}{\sqrt{x}-1}\right)\)
\(=\dfrac{x-1}{\sqrt{x}}\cdot\dfrac{\sqrt{x}-1+\sqrt{x}+1}{x-1}\)
\(=\dfrac{2\sqrt{x}}{\sqrt{x}}=2\)