\(\text{ a) }\left(x-2\right)^3-x\left(x+1\right)\left(x-1\right)+6x\left(x-3\right)\\ =\left(x^3-6x^2+12x-8\right)-x\left(x^2-1\right)+6x^2-18x\\ =x^3-6x^2+12x-8-x^3+x+6x^2-18x\\ =\left(x^3-x^3\right)-\left(6x^2-6x^2\right)+\left(12x+x-18x\right)-8\\ =-5x-8\)
\(\text{b) }\left(x-2\right)\left(x^2-2x+4\right)\left(x+2\right)\left(x^2+2x+4\right)\\ =\left(x-2\right)\left(x^2+2x+2^2\right)\left(x+2\right)\left(x^2-2x+2^2\right)\\ =\left(x^3-2^3\right)\left(x^3+2^3\right)\\ =x^3\left(x^3+2^3\right)-2^3\left(x^3+2^3\right)\\ =x^6+8x^3-8x^3-2^6\\ =x^6-64\)