Ta có: \(VT=\left(x-y\right)\left(x^2+xy+y^2\right)-x^3+y=x^3-y^3-x^3+y\)
\(=-y^3+y=y-y^3=y\left(1-y^2\right)=VP\)
\(\Rightarrowđpcm\)
\(\left(x-y\right)\left(x^2+xy+y^2\right)-x^2+y\)
\(=x\left(x^2+xy+y^2\right)-y\left(x^2+xy+y^2\right)-x^2+y\)
\(=x^3+x^2y+xy^2-xy^2-xy^2-y^3-x^2+y\)
\(=x^3+x^2y-xy^2-y^3-x^2+y\)
biến đổi tiếp nhé