Factorize:

1 + 2x + x2

Given,


1 + 2x + x2 = x2 + 2x + 1


By using the formula (a + b)2 = a2 + 2ab + b2


We get,


= x2 + 2 × (x) × 1 + (1)2


= (x + 1)2


3