\(a,P=\dfrac{3\left(x+2\sqrt{x}\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\left(dk:x\ge0,x\ne1\right)\)
\(=\dfrac{3\sqrt{x}\left(\sqrt{x}+2\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\\ =\dfrac{3\sqrt{x}}{\sqrt{x}-1}-\dfrac{\sqrt{x}+2}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\\ =\dfrac{3\sqrt{x}-\sqrt{x}-2}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\\ =\dfrac{2\sqrt{x}-2}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\\ =\dfrac{2\left(\sqrt{x}-1\right)}{\sqrt{x}-1}-\dfrac{\sqrt{x}+1}{\sqrt{x}+2}\\ =\dfrac{2\left(\sqrt{x}+2\right)-\left(\sqrt{x}+1\right)}{\sqrt{x}+2}\\ =\dfrac{2\sqrt{x}+4-\sqrt{x}-1}{\sqrt{x}+2}\\ =\dfrac{\sqrt{x}+3}{\sqrt{x}+2}\)
\(b,x=6-2\sqrt{5}=\left(\sqrt{5}-1\right)^2\)
\(\Rightarrow P=\dfrac{\sqrt{\left(\sqrt{5}-1\right)^2}+3}{\sqrt{\left(\sqrt{5}-1\right)^2}+2}=\dfrac{\left|\sqrt{5}-1\right|+3}{\left|\sqrt{5}-1\right|+2}=\dfrac{\sqrt{5}-1+3}{\sqrt{5}-1+2}=\dfrac{\sqrt{5}+2}{\sqrt{5}+1}\)