a) \(A=3\left(x-1\right)^2-\left(x+1\right)^2+2\left(x-3\right)\left(x+3\right)-\left(2x+3\right)^2-\left(5-20x\right)\)
\(=\left(3x^2-6x+3\right)-\left(x^2+2x+1\right)+2\left(x^2-9\right)-\left(4x^2+12x+9\right)-5+20x\)
\(=-30\)
b) \(B=-x\left(x+2\right)^2+\left(2x+1\right)^2+\left(x+3\right)\left(x^2-3x+9\right)-1\)
\(=-x\left(x^2+4x+4\right)+\left(4x^2+4x+1\right)+\left(x^3-3x^2+9x+3x^2-9x+27\right)-1\)
\(=27\)
a: Ta có: \(A=3\left(x-1\right)^2-\left(x+1\right)^2+2\left(x-3\right)\left(x+3\right)-\left(2x+3\right)^2-\left(5-20x\right)\)
\(=3x^2-6x+3-x^2-2x-1+2x^2-18-4x^2-12x-9-5+20x\)
\(=-30\)
b: Ta có: \(B=-x\left(x+2\right)^2+\left(2x+1\right)^2+\left(x+3\right)\left(x^2-3x+9\right)-1\)
\(=-x^3-4x^2-4x+4x^2+4x+1+x^3+27-1\)
=27