\(P=\frac{x+\sqrt{2}}{x\sqrt{x}-1}+\frac{\sqrt{x}+1}{x+\sqrt{x}+1}-\frac{1}{\sqrt{x}-1}\)
\(P=\frac{x+\sqrt{2}+\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)-x-\sqrt{x}-1}{x\sqrt{x}-1}\)
\(P=\frac{x+\sqrt{2}+x-1-x-\sqrt{x}-1}{x\sqrt{x}-1}=\frac{x-\sqrt{x}+\sqrt{2}-2}{x\sqrt{x}-1}\)