# How do you write  P(x) = x^3 + 3x^2 − 4x in factored form?

$x \left(x + 4\right) \left(x - 1\right)$
${x}^{3} + 3 {x}^{2} - 4 x$
$x \left({x}^{2} + 3 x - 4\right)$
$x \left({x}^{2} + 4 x - x - 4\right)$
$x \left[x \left(x + 4\right) - 1 \left(x + 4\right)\right]$
$x \left(x + 4\right) \left(x - 1\right)$