Examples
x2+4x+4x2+4x+4
Step 1
Rewrite 44 as 2222.
x2+4x+22x2+4x+22
Step 2
Check that the middle term is two times the product of the numbers being squared in the first term and third term.
4x=2⋅x⋅24x=2⋅x⋅2
Step 3
Rewrite the polynomial.
x2+2⋅x⋅2+22x2+2⋅x⋅2+22
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=2b=2.
(x+2)2(x+2)2