Factorize each of the following algebraic expressions:
x2 + 4 + 4x – 6x – 12 + 9
= x2 + 1 – 2x
= (x – 1)2