Factor -1 out of -a2-2a-1.
Factor -1 out of -a2.
Factor -1 out of -2a.
Rewrite -1 as -1(1).
Factor -1 out of -(a2)-(2a).
Factor -1 out of -(a2+2a)-1(1).
Factor using the perfect square rule.
Rewrite 1 as 12.
Check that the middle term is two times the product of the numbers being squared in the first term and third term.
Rewrite the polynomial.
Factor using the perfect square trinomial rule a2+2ab+b2=(a+b)2, where a=a and b=1.