Bài 4:
a) \(A=\left(x+2\right)\left(x^2-2x+4\right)-x^3+2\)
\(A=x^3+2^3-x^3+2\)
\(A=8+2\)
\(A=10\)
b) \(B=\left(x-1\right)\left(x^2+x+1\right)-\left(x+1\right)\left(x^2-x+1\right)\)
\(B=x^3-1^3-\left(x^3+1^3\right)\)
\(B=x^3-1-x^3+1\)
\(B=-2\)
c) \(C=\left(2x-y\right)\left(4x^2+2xy+y^2\right)+\left(y-3x\right)\left(y^2+3xy+9x^2\right)\)
\(C=\left(2x\right)^3-y^3+y^3-\left(3x\right)^3\)
\(C=8x^3-27x^3\)
\(C=-19x^3\)
d) \(P=\left(2x-1\right)\left(4x^2+2x+1\right)+\left(x+1\right)\left(x^2-x+1\right)\)
\(P=\left(2x\right)^3-1^3+x^3+1^3\)
\(P=8x^3-1+x^3+1\)
\(P=9x^3\)