d: Ta có: \(4x\left(2x+3\right)-8x\left(x+4\right)\)
\(=8x^2+12x-8x^2-32x\)
=-20x
e: Ta có: \(2x\left(5x+2\right)+\left(2x-3\right)\left(3x-1\right)\)
\(=10x^2+4x+6x^2-2x-9x+3\)
\(=16x^2-7x+3\)
f: Ta có: \(x\left(x+2\right)^2-\left(x+1\right)^3+3\left(x-1\right)\left(x+1\right)\)
\(=x^3+4x^2+4x-x^3-3x^2-3x-1+3x^2-3\)
\(=4x^2+x-4\)