Cho biểu thức : \(P=\left(\dfrac{\sqrt{x}+1}{\sqrt{2x}+1}+\dfrac{\sqrt{2x}+\sqrt{x}}{\sqrt{2x}-1}-1\right):\left(1+\dfrac{\sqrt{x}+1}{\sqrt{2x}+1}-\dfrac{\sqrt{2x}+\sqrt{x}}{\sqrt{2x}-1}\right)\)
a, Rút gọn P.
b, Tính giá trị của P khi \(x=\dfrac{1}{2}\left(3+2\sqrt{2}\right)\)