# How do you factor x^3-125?

Apr 11, 2016

$\left(x - 5\right) \left({x}^{2} + 5 x + 25\right)$

#### Explanation:

Remember the general factoring
$\textcolor{w h i t e}{\text{XXX}} {a}^{3} - {b}^{3} = \left(a - b\right) \left({a}^{2} + a b + {b}^{2}\right)$

Since
$\textcolor{w h i t e}{\text{XXX}} {x}^{3} - 125 = {x}^{3} - {5}^{3}$
it can be factored as
$\textcolor{w h i t e}{\text{XXX}} \left(x - 5\right) \left({x}^{2} + 5 x + 25\right)$