ĐKXĐ:....
\(A=\left(\frac{\left(1-\sqrt{a}\right)\left(a+\sqrt{a}+1\right)}{1-\sqrt{a}}+\sqrt{a}\right)\left(\frac{1-\sqrt{a}}{\left(1-\sqrt{a}\right)\left(1+\sqrt{a}\right)}\right)^2\)
\(A=\left(a+2\sqrt{a}+1\right)\frac{1}{\left(1+\sqrt{a}\right)^2}=\frac{\left(\sqrt{a}+1\right)^2}{\left(\sqrt{a}+1\right)^2}=1\)
\(B=\frac{2}{\sqrt{ab}}:\left(\frac{\sqrt{b}-\sqrt{a}}{\sqrt{ab}}\right)^2-\frac{a+b}{\left(\sqrt{a}-\sqrt{b}\right)^2}\)
\(B=\frac{2}{\sqrt{ab}}.\frac{\sqrt{ab}^2}{\left(\sqrt{a}-\sqrt{b}\right)^2}-\frac{a+b}{\left(\sqrt{a}-\sqrt{b}\right)^2}=\frac{2\sqrt{ab}-a-b}{\left(\sqrt{a}-\sqrt{b}\right)^2}\)
\(B=\frac{-\left(\sqrt{a}-\sqrt{b}\right)^2}{\left(\sqrt{a}-\sqrt{b}\right)^2}=-1\)