a: Ta có: \(P=\left(\dfrac{2}{\sqrt{x}-1}+\dfrac{\sqrt{x}}{\sqrt{x}+1}\right)\cdot\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(=\dfrac{2\sqrt{x}+2+x-\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\cdot\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(=\dfrac{\sqrt{x}}{x-1}\)
b: Thay \(x=3+2\sqrt{2}\) vào P, ta được:
\(P=\dfrac{\sqrt{2}+1}{3+2\sqrt{2}-1}=\dfrac{\sqrt{2}+1}{2\sqrt{2}+2}=\dfrac{1}{2}\)