\(A=\left(\frac{a+\sqrt{a}}{\sqrt{a}+1}+1\right).\)\(\left(\frac{a-\sqrt{a}}{\sqrt{a}-1}-1\right)\)
\(=\left(\frac{\sqrt{a}\left(\sqrt{a}+1\right)}{\sqrt{a}+1}+1\right)\)\(\left(\frac{-\sqrt{a}\left(\sqrt{a}-1\right)}{\sqrt{a}-1}-1\right)\)
\(=\left(\sqrt{a}+1\right)\left(-\sqrt{a}-1\right)\)
\(=-\left(\sqrt{a}+1\right)\left(\sqrt{a}+1\right)=-\left(\sqrt{a}+1\right)^2\)
\(b,A=-a^2\Rightarrow-\left(\sqrt{a}+1\right)^2=a^2\)
\(\Leftrightarrow a=\sqrt{a}+1\Rightarrow a-\sqrt{a}-1=0\)
\(\Rightarrow4a-4\sqrt{a}-4=0\)
\(\Rightarrow4a-4\sqrt{a}+1-5=0\)
\(\Rightarrow\left(2\sqrt{a}-1\right)^2-\sqrt{5}^2=0\)
\(\Rightarrow\left(2\sqrt{a}-1+\sqrt{5}\right)\left(2\sqrt{a}-1-\sqrt{5}\right)=0\)
\(\Rightarrow\orbr{\begin{cases}2\sqrt{a}=1-\sqrt{5}\\2\sqrt{a}=1+\sqrt{5}\end{cases}}\)\(\Rightarrow\orbr{\begin{cases}\sqrt{a}=\frac{1-\sqrt{5}}{2}\\\sqrt{a}=\frac{1+\sqrt{5}}{2}\end{cases}}\)
\(\Rightarrow\orbr{\begin{cases}a=\frac{\left(1-\sqrt{5}\right)^2}{4}\left(tm\right)\\a=\frac{\left(1+\sqrt{5}\right)^2}{4}\left(tm\right)\end{cases}}\)