Đề của bạn bị sai, mình sửa lại đề ở dưới nhé!
\(\frac{a^2-\sqrt{a}}{a+\sqrt{a}+1}-\frac{a^2+\sqrt{a}}{a-\sqrt{a}+1}+a+1\)
\(=\frac{\left(a^2-\sqrt{a}\right)\left(a+\sqrt{a}+1\right)-\left(a^2+\sqrt{a}\right)\left(a+\sqrt{a}\right)\left(a+\sqrt{a}+1\right)}{\left(a+\sqrt{a}+1\right)\left(a-\sqrt{a}+1\right)}+a+1\)
\(=\frac{\left(a^2-\sqrt{a}\right)\left(a-\sqrt{a}+1\right)-\left(a^2+\sqrt{a}\right)\left(a+\sqrt{a}+1\right)+\left(a+1\right)\left(a+\sqrt{a}+1\right)\left(a-\sqrt{a}+1\right)}{\left(a+1\right)^2-\left(\sqrt{a}\right)^2}\)
\(=\frac{\left(a^2-\sqrt{a}\right)\left(a-\sqrt{a}+1\right)-\left(a^2+\sqrt{a}\right)\left(a+\sqrt{a}+1\right)\left(a+1\right)\left[\left(a+1\right)^2-a\right]}{\left(a-1\right)^2-a}\)
\(=\frac{a^3-a^2\sqrt{x}+a^2-a\sqrt{a}+a-\sqrt{a}-a^3-a^2\sqrt{a}-a^2-a\sqrt{a}-a-\sqrt{a}+\left(a+1\right)\left[\left(a+1\right)^2-a\right]}{a^2+2a+1-a}\)
\(=\frac{-2a^2\sqrt{a}-2a\sqrt{a}-2\sqrt{a}+\left(a+1\right)\left(a^2+2a+1-a\right)}{a^2+a+1}\)
\(=\frac{-2\sqrt{a}\left(a^2+a+1\right)+\left(a+1\right)\left(a^2+a+1\right)}{a^2+a+1}\)
\(=\frac{\left(a^2+a+1\right)\left[-2\sqrt{x}+\left(x+1\right)\right]}{a^2+a+1}\)
\(=x-1-2\sqrt{x}\)
\(=\left(\sqrt{x}-1\right)^2\)
(Chúc you học giỏi nhoa!)