\(\left(\dfrac{a\sqrt{a}-1}{a-\sqrt{a}}-\dfrac{a\sqrt{a}+1}{a+\sqrt{a}}\right):\dfrac{a+2}{a-2}\)
\(=\left(\dfrac{\left(\sqrt{a}-1\right)\left(a+\sqrt{a}+1\right)}{\sqrt{a}\left(\sqrt{a}-1\right)}-\dfrac{\left(\sqrt{a}+1\right)\left(a-\sqrt{a}+1\right)}{\sqrt{a}\left(\sqrt{a}+1\right)}\right):\dfrac{a+2}{a-2}\)
\(=\dfrac{a+\sqrt{a}+1-a+\sqrt{a}-1}{\sqrt{a}}\cdot\dfrac{a-2}{a+2}\)
\(=\dfrac{2\sqrt{a}}{\sqrt{a}}\cdot\dfrac{a-2}{a+2}=\dfrac{2\left(a-2\right)}{a+2}\)