Factoring Calculator

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

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

Try

Result

You entered−x2+4-x^{2} + 4

−(x−2)(x+2)\displaystyle -\left(x - 2\right)\left(x + 2\right)

Expanded form

−x2+4\displaystyle -x^{2} + 4

Degree

2\displaystyle 2

Number of terms

2\displaystyle 2
Show the work
  1. Greatest common factor

    Find the largest number and the highest power of xx that divide every term. Divide each term by it and write what is left in a bracket, so that multiplying back gives the original.

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

    Let P(x)P(x) be the polynomial left after the common factor. 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)=22−4=0\begin{aligned} P(2) &= 2^{2} - 4 \\ &= 0 \end{aligned}
  3. Factor theorem

    Let P(x)P(x) be the polynomial left after the common factor. 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)=(−2)2−4=0\begin{aligned} P(-2) &= \left(-2\right)^{2} - 4 \\ &= 0 \end{aligned}
  4. Polynomial division

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

  5. Every factor is linear

    Nothing is left after dividing, so the polynomial is a product of linear factors (and a number).

  6. Result

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

Worked examples