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