Examples
x2+2x+1x2+2x+1
Step 1
Rewrite 11 as 1212.
x2+2x+12x2+2x+12
Step 2
Check that the middle term is two times the product of the numbers being squared in the first term and third term.
2x=2⋅x⋅12x=2⋅x⋅1
Step 3
Rewrite the polynomial.
x2+2⋅x⋅1+12x2+2⋅x⋅1+12
Step 4
Factor using the perfect square trinomial rule a2+2ab+b2=(a+b)2a2+2ab+b2=(a+b)2, where a=xa=x and b=1b=1.
(x+1)2(x+1)2