# How do you factor x^3-2x^2+4x-8?

Mar 7, 2018

$\left(x - 2\right) \left(x - 2 i\right) \left(x + 2 i\right)$ or $\left(x - 2\right) \left({x}^{2} + 4\right)$

#### Explanation:

Because this is a third degree polynomial, we have 3 solutions. There's a cubic equation (just like the quadratic equation) but it's really hard so let's try and be smart about this!

We can use the rational root theorem, which states that any solution will be a factor of the ${x}^{0}$ coefficient divided by a factor of the highest power (here, ${x}^{3}$). That means that any rational solution will be a factor of 8 divided by a factor of 1. Since the only factor of 1 is 1, this makes our job a little easier.

We therefore should try out the following numbers to be roots:
$x = \pm 1 , \pm 2 , \pm 4 , \pm 8$.

By rational roots theorem, all rational roots are going to be in that list, which makes our job a lot easier.

At this point, we sort of have to plug and chug.

Let's try them in order:

x = -1
$- {1}^{3} - 2 {\left(- 1\right)}^{2} + 4 \left(- 1\right) - 8 = - 1 - 2 - 4 - 8 \ne q 0$

x = 1
${1}^{3} - 2 {\left(1\right)}^{2} + 4 \left(1\right) - 8 = 1 - 2 + 4 - 8 \ne q 0$

x = -2
$- {2}^{3} - 2 {\left(- 2\right)}^{2} + 4 \left(- 2\right) - 8 = - 8 - 8 - 8 - 8 \ne q 0$

x = 2
${2}^{3} - 2 {\left(2\right)}^{2} + 4 \left(2\right) - 8 = 8 - 8 + 8 - 8 = 0$

So $x = 2$ is a root! This means that the polynomial divides $x - 2$. We can now use "synthetic division" in order to factor the polynomial factors.

$\underline{2} | 1 \setminus \setminus \left(- 2\right) \setminus \setminus 4 \setminus \setminus \left(- 8\right)$
$\setminus \setminus \setminus \setminus \setminus \setminus \downarrow \setminus \setminus \setminus \setminus \underline{2} \setminus \setminus \setminus \setminus \underline{0} \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \underline{8}$
$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus 1 \setminus \setminus \setminus \setminus \setminus \setminus \setminus 0 \setminus \setminus \setminus \setminus \setminus 4 \setminus \setminus \setminus \setminus \setminus | \underline{0}$

i.e. the polynomial factors to
$\left(x - 2\right) \left({x}^{2} + 4\right)$

Depending on what you want, this may be the last step. However, if you understand complex numbers, you may want to go one more step. The second half of the polynomial has roots at $\pm 2 i$. Therefore, we could write the polynomial fully factored into its roots as
$\left(x - 2\right) \left(x - 2 i\right) \left(x + 2 i\right)$