a) ĐKXĐ: \(x\ge0;x\ne1\)
P=\(\left(\frac{\sqrt{a}}{2}-\frac{1}{2\sqrt{a}}\right)^2.\left(\frac{\sqrt{a}}{\sqrt{a}+1}-\frac{\sqrt{a}+1}{\sqrt{a}-1}\right)\)
=\(\left(\frac{a-1}{2\sqrt{a}}\right)^2.\left(\frac{-1-3\sqrt{a}}{a-1}\right)\)
=\(\frac{\left(a-1\right)^2}{4a}.\frac{-1-3\sqrt{a}}{a-1}\)
=\(\frac{\left(a-1\right)\left(-1-3\sqrt{a}\right)}{4a}\)