Rút gọn các biểu thức:
\(A=\left(x+3\right)\left(x^2-3x+9\right)-\left(54+x^3\right)\)
\(B=\left(2x+y\right)\left(4x^2-2xy+y^2\right)-\left(2x-y\right)\left(4x^2+2xy+y^2\right)\)
\(C=\left(2x+1\right)^2+\left(1-3x\right)^2+2\left(2x+1\right)\left(3x-1\right)\)
\(D=\left(x-2\right)\left(x^2+2x+4\right)-\left(x+1\right)^3+3\left(x-1\right)\left(x+1\right)\)
a)
\(A=\left(x+3\right)\left(x^2-3x+9\right)-\left(54+x^3\right)\)
\(=x^3-3x^2+9x+3x^2-9x+27-54-x^3\)
\(=-27\)
or
\(A=x^3+27-54-x^3=-27\)
b)
\(B=\left(2x+y\right)\left(4x^2-2xy+y^2\right)-\left(2x-y\right)\left(4x^2+2xy+y^2\right)\)
\(=8x^3+y^3-8x^3+y^3=2y^3\)
c)
\(C=\left(2x+1\right)^2+\left(1-3x\right)^2+2\left(2x+1\right)\left(3x-1\right)\)
\(=\left(2x+1+3x-1\right)^2=\left(5x\right)^2=25x^2\)
d)
\(D=\left(x-2\right)\left(x^2+2x+4\right)-\left(x+1\right)^3+3\left(x-1\right)\left(x+1\right)\)
\(=x^3-8-\left(x-1\right)^3+3\left(x-1\right)\left(x+1\right)\)
\(=6x^2-3x-10\)