a: \(=\left(\dfrac{3x+3\sqrt{x}-3+\sqrt{x}+2+\sqrt{x}-1-2x-2\sqrt{x}+4}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\right)\cdot\dfrac{x-1}{1}\)
\(=\dfrac{x+3\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+2\right)}\cdot\dfrac{x-1}{1}\)
\(=\left(\sqrt{x}+1\right)^2\)
b: Để 2/A là số tự nhiên thì \(\left(\sqrt{x}+1\right)^2=1\) hoặc (căn x+1)^2=2
=>\(x\in\left\{0;\sqrt{2}-1\right\}\)