Bài 1:
a: Ta có: \(A=\left(k-4\right)\left(k^2+4k+16\right)-\left(k^3+128\right)\)
\(=k^3-64-k^3-128\)
=-192
b: Ta có: \(B=\left(2m+3n\right)\left(4m^2-6mn+9n^2\right)-\left(3m-2n\right)\left(9m^2+6mn+4n^2\right)\)
\(=8m^3+27n^3-27m^3+8n^3\)
\(=-19m^3+35n^3\)
Bài 4:
a: Ta có: \(\left(x-1\right)^3+\left(2-x\right)\left(4+2x+x^2\right)+3x\left(x+2\right)=16\)
\(\Leftrightarrow x^3-3x^2+3x-1+8-x^3+3x^2+6x=16\)
\(\Leftrightarrow9x=9\)
hay x=1
b: ta có: \(\left(x+2\right)\left(x^2-2x+4\right)-x\left(x^2-2\right)=15\)
\(\Leftrightarrow x^3+8-x^3+2x=15\)
\(\Leftrightarrow2x=7\)
hay \(x=\dfrac{7}{2}\)