Answer
$(x-4)(x+1)$
Work Step by Step
$(x+2)^{2}-7(x+2)+6$
Let $x+2$ be equal to $u$:
If $x+2=u$, then $(x+2)^{2}=u^{2}$.
Rewrite this expression using the new variable $u$:
$u^{2}-7u+6=...$
Factor this expression:
$...=(u-6)(u-1)=...$
Substitute $u$ back to $x+2$ and simplify:
$...=(x+2-6)(x+2-1)=(x-4)(x+1)$