Ta có: \(P=\left(\dfrac{x-2\sqrt{x}+3}{x-2\sqrt{x}-3}-\dfrac{x}{x-3\sqrt{x}}\right):\dfrac{1-\sqrt{x}}{3-\sqrt{x}}\)
\(=\left(\dfrac{x\sqrt{x}-2x+3\sqrt{x}}{\sqrt{x}\left(\sqrt{x}-3\right)\left(\sqrt{x}+1\right)}-\dfrac{x\left(\sqrt{x}+1\right)}{\sqrt{x}\left(\sqrt{x}-3\right)\left(\sqrt{x}+1\right)}\right):\dfrac{\sqrt{x}-1}{\sqrt{x}-3}\)
\(=\dfrac{x\sqrt{x}-2x+3\sqrt{x}-x\sqrt{x}-x}{\sqrt{x}\left(\sqrt{x}-3\right)\left(\sqrt{x}+1\right)}\cdot\dfrac{\sqrt{x}-3}{\sqrt{x}-1}\)
\(=\dfrac{-3x+3\sqrt{x}}{\sqrt{x}\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{-3\sqrt{x}\left(\sqrt{x}-1\right)}{\sqrt{x}\left(\sqrt{x}+1\right)\left(\sqrt{x}-1\right)}\)
\(=\dfrac{-3}{\sqrt{x}+1}\)