(x+2)(x^2-4x+4)
=x*(x^2-4x+4)+2*(x^2-4x+4)
=x*x^2-x*4x+x*4+2x^2-2*4x+2*4
=x^3-4x^2+4x+2x^2-8x+8
=x^3-2x^2-4x+8
-(-x)^2*(-2x^2y)+2x(x^6y^3-1)
=2x^4y+2x^7y^3-2
3(2x^2+5x-4)-2(3x^2-x+3)
=3*2x^2+3*5x-3*4-2*3x^2+2x-2*3
=6x^2+15x-12-6x^2+2x-6
=17x-18
(x+2)(x^2-4x+4)
=x*(x^2-4x+4)+2*(x^2-4x+4)
=x*x^2-x*4x+x*4+2x^2-2*4x+2*4
=x^3-4x^2+4x+2x^2-8x+8
=x^3-2x^2-4x+8
-(-x)^2*(-2x^2y)+2x(x^6y^3-1)
=2x^4y+2x^7y^3-2
3(2x^2+5x-4)-2(3x^2-x+3)
=3*2x^2+3*5x-3*4-2*3x^2+2x-2*3
=6x^2+15x-12-6x^2+2x-6
=17x-18