Factor out of .

Factor out of .

Rewrite as .

Factor out of .

Factor out of .

Factor using the AC method.

Consider the form . Find a pair of integers whose product is and whose sum is . In this case, whose product is and whose sum is .

Write the factored form using these integers.

Remove unnecessary parentheses.

Factor -x^2+6x+7