\(...=\dfrac{\left(\sqrt{x}-1\right)^2}{\left(\sqrt{x}+1\right)^2}=\dfrac{\left(\sqrt{x}-1\right)^4}{\left(\sqrt{x}+1\right)^2.\left(\sqrt{x}-1\right)^2}\)
\(=\dfrac{\left(\sqrt{x}-1\right)^4}{\left[\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)\right]^2}=\dfrac{\left(\sqrt{x}-1\right)^4}{\left(x-1\right)^2}\)