a)
\(12xy-4x^2y+8xy^2\\ =4xy\cdot\left(3-x+2y\right)\)
b)
\(4x\cdot\left(x-2y\right)-8y\cdot\left(x-2y\right)\\ =4\cdot\left(x-2y\right)\cdot\left(x-2y\right)\\ =4\cdot\left(x-2y\right)^2\)
c)
\(25x^2\cdot\left(y-1\right)-5x^3\cdot\left(1-y\right)\\ =-25x^2\cdot\left(1-y\right)-5x^3\cdot\left(1-y\right)\\ =\left(1-y\right)\cdot\left(-25x^2-5x^3\right)\\ =5x^2\left(1-y\right)\cdot\left(-5-x\right)\)
d)
\(3x\cdot\left(a-x\right)+4a\cdot\left(a-x\right)\\ =\left(a-x\right)\cdot\left(3x+4a\right)\)
e)
\(x^3-3x^2+2\\ =x^3-x^2-2x^2+2\\ =x^2\cdot\left(x-1\right)-2\left(x^2-1\right)\\ =x^2\cdot\left(x-1\right)-2\cdot\left(x-1\right)\cdot\left(x+1\right)\\ =\left(x-1\right)\left[x^2-2\cdot\left(x+1\right)\right]\\ =\left(x-1\right)\cdot-\left(x^2+2x+1\right)\\ =\left(x-1\right)\cdot-\left(x+1\right)^2\)