Factoring Calculator

Factor a polynomial over the rational numbers and see each step.

Use letters, brackets, + − × ÷ and whole powers.

Try

Result

You enteredx3−8x^{3} - 8

(x−2)(x2+2x+4)\displaystyle \left(x - 2\right)\left(x^{2} + 2x + 4\right)

Expanded form

x3−8\displaystyle x^{3} - 8

Degree

3\displaystyle 3

Number of terms

2\displaystyle 2
Show the work
  1. Factor theorem

    Let P(x)P(x) be the polynomial. Test the rational number r=2r = 2: since P(2)=0P(2) = 0, x−2x - 2 is a factor.

    Using P(r)=0  ⟹  (x−r)∣P(x)P(r) = 0 \implies \left(x - r\right) \mid P(x)

    P(2)=23−8=0\begin{aligned} P(2) &= 2^{3} - 8 \\ &= 0 \end{aligned}
  2. Polynomial division

    Divide the polynomial by each factor found (x−2x - 2). Each division has no remainder, because the factor theorem says it divides exactly.

  3. Discriminant

    What is left is x2+2x+4x^{2} + 2x + 4, with a=1a = 1, b=2b = 2 and c=4c = 4. A quadratic factorises over the rational numbers only when Δ\Delta is a perfect square; here it is negative, so this stays as one factor.

    Δ=b2−4ac=22−4⋅1⋅4=−12\begin{aligned} \Delta &= b^2 - 4ac \\ &= 2^2 - 4\cdot 1\cdot 4 \\ &= -12 \end{aligned}
  4. Result

    So x3−8=(x−2)(x2+2x+4)x^{3} - 8 = \left(x - 2\right)\left(x^{2} + 2x + 4\right).

Worked examples