a) Ta có:
\(\left(x-1\right)\left(x^2+x+1\right)=x\left(x^2+x+1\right)-\left(x^2+x+1\right)=x^3+x^2+x-x^2-x-1=x^3-1\) (đpcm)
b) Ta có:
\(\left(x^3+x^2y+xy^2+y^3\right)\left(x-y\right)=x\left(x^3+x^2y+xy^2+y^3\right)-y\left(x^3+x^2y+xy^2+y^3\right)=x^4+x^3y+x^2y^2+xy^3-x^3y+x^2y^2+xy^3+y^4=x^4+y^4\)