Bài 1:
\(Q=\left(x+1\right)\left(x^2-x+1\right)-\left(x-1\right)\left(x^2+x+1\right)\)
\(Q=x^3+1-\left(x^3-1\right)=x^3+1-x^3+1=2\)
Vậy......................
Bài 2:
\(5x-\left(4-2x+x^2\right)\left(x+2\right)+x\left(x-1\right)\left(x+1\right)=0\)
\(\Rightarrow5x-\left(x^3+8\right)+x\left(x^2-1\right)=0\)
\(\Rightarrow5x-x^3-8+x^3-x=0\)
\(\Rightarrow4x=8\Rightarrow x=2\)
Chúc bạn học tốt!!!