Tham khảo:https://hoc247.net/hoi-dap/toan-8/phan-tich-da-thuc-x-7-x-2-1-thanh-nhan-tu-faq417522.html
\(=x^7+x^6-x^6+x^5-x^5+x^4-x^4+x^3-x^3+x^2+x^2-x^2+x-x+1\\ =\left(x^7+x^6+x^5\right)-\left(x^6+x^5+x^4\right)+\left(x^4+x^3+x^2\right)-\left(x^3+x^2+x\right)+\left(x^2+x+1\right)\\ =\left(x^2+x+1\right)\left(x^5-x^4+x^2-x+1\right)\)
Lời giải:
$x^2+x-6=(x^2-2x)+(3x-6)=x(x-2)+3(x-2)=(x-2)(x+3)$