A = (x - 1) (x2 - 2x + 1) + 4x(x + 1)(x - 1) - 3(1 - x)(x2 + x + 1)
= (x - 1) (x2 - 2x + 1) + 4x(x + 1)(x - 1) + 3(x - 1)(x2 + x + 1)
= (x - 1) [x2 - 2x + 1 + 3(x2 + x + 1) + 4x(x + 1)]
= (x - 1) (x2 - 2x + 1 +3x2 + 3x + 3 + 4x2 + 4x)
= (x - 1) (8x2 + 5x + 4)
Vậy A = (x - 1) (8x2 + 5x + 4)