a/ĐK: \(a\ge0;a\ne1\)
Ta có: P\(=\frac{a+3\sqrt{a}+2}{\left(\sqrt{a}+2\right)\left(\sqrt{a}-1\right)}:\left(\frac{1}{\sqrt{a}+1}+\frac{1}{\sqrt{a}-1}\right)=\frac{\left(\sqrt{a}+2\right)\left(\sqrt{a}+1\right)}{\left(\sqrt{a}+2\right)\left(\sqrt{a}-1\right)}:\frac{\sqrt{a}-1+\sqrt{a}+1}{\left(\sqrt{a}+1\right)\left(\sqrt{a}-1\right)}=\frac{\sqrt{a}+1}{\sqrt{a}-1}\times\frac{\left(\sqrt{a}+1\right)\left(\sqrt{a}-1\right)}{2\sqrt{a}}=\frac{\left(\sqrt{a}+1\right)^2}{2\sqrt{a}}\)