Factoring Calculator

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

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

Try

Result

You enteredx4−1x^{4} - 1

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

Expanded form

x4−1\displaystyle x^{4} - 1

Degree

4\displaystyle 4

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=1r = 1: since P(1)=0P(1) = 0, x−1x - 1 is a factor.

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

    P(1)=14−1=0\begin{aligned} P(1) &= 1^{4} - 1 \\ &= 0 \end{aligned}
  2. Factor theorem

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

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

    P(−1)=(−1)4−1=0\begin{aligned} P(-1) &= \left(-1\right)^{4} - 1 \\ &= 0 \end{aligned}
  3. Polynomial division

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

  4. Discriminant

    What is left is x2+1x^{2} + 1, with a=1a = 1, b=0b = 0 and c=1c = 1. 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=02−4⋅1⋅1=−4\begin{aligned} \Delta &= b^2 - 4ac \\ &= 0^2 - 4\cdot 1\cdot 1 \\ &= -4 \end{aligned}
  5. Result

    So x4−1=(x−1)(x+1)(x2+1)x^{4} - 1 = \left(x - 1\right)\left(x + 1\right)\left(x^{2} + 1\right).

Worked examples