Bài 16:
a: Ta có: \(P=\left(\dfrac{\sqrt{a}+1}{\sqrt{ab}+1}+\dfrac{\sqrt{ab}+\sqrt{a}}{\sqrt{ab}-1}-1\right):\left(\dfrac{\sqrt{a}+1}{\sqrt{ab}+1}-\dfrac{\sqrt{ab}+\sqrt{a}}{\sqrt{ab}-1}+1\right)\)
\(=\dfrac{a\sqrt{b}-\sqrt{a}+\sqrt{ab}-1+ab+\sqrt{ab}+a\sqrt{b}+\sqrt{a}-ab+1}{\left(\sqrt{ab}+1\right)\left(\sqrt{ab}-1\right)}:\dfrac{a\sqrt{b}-\sqrt{a}+\sqrt{ab}-1-ab-\sqrt{ab}-a\sqrt{b}-\sqrt{a}+ab-1}{\left(\sqrt{ab}+1\right)\left(\sqrt{ab}-1\right)}\)
\(=\dfrac{2a\sqrt{b}+2\sqrt{ab}}{-2\sqrt{a}-2}\)
\(=\dfrac{2\sqrt{ab}\left(\sqrt{a}+1\right)}{-2\left(\sqrt{a}+1\right)}\)
\(=-\sqrt{ab}\)