a: \(P=\dfrac{a+\sqrt{a}+1}{a+1}:\left(\dfrac{1}{\sqrt{a}-1}-\dfrac{2\sqrt{a}}{\left(a+1\right)\left(\sqrt{a}-1\right)}\right)\)
\(=\dfrac{a+\sqrt{a}+1}{a+1}:\dfrac{a+1-2\sqrt{a}}{\left(a+1\right)\left(\sqrt{a}-1\right)}\)
\(=\dfrac{a+\sqrt{a}+1}{\sqrt{a}-1}\)
b: Để P<1 thì P-1<0
\(\Leftrightarrow\dfrac{a+\sqrt{a}+1-\sqrt{a}+1}{\sqrt{a}-1}< 0\)
hay 0<a<1