Answer
$x(x-1)(x-7)$
Work Step by Step
$ x^{3}-8x^{2}+7x\qquad$...factor out $x$.
$=x(x^{2}-8x+7)$
... Searching for two factors of $ac=7$ whose sum is $b=-8,$
we find$\qquad-1$ and $-7.$
Rewrite the middle term and factor in pairs:
$=x(x^{2}-x-7x+7)=$
$=x[x(x-1)-7(x-1)]$
=$x(x-1)(x-7)$