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