Quartic Equation Calculator

Enter a degree-4 polynomial to find all four of its roots.

Use one variable, brackets and whole powers, up to degree 6.

Try

Result

You enteredx4−5x2+4=0x^{4} - 5x^{2} + 4 = 0

x=−2, x=−1, x=1, x=2\displaystyle x = -2,\ x = -1,\ x = 1,\ x = 2

Factored form

(x−2)(x−1)(x+1)(x+2)\displaystyle \left(x - 2\right)\left(x - 1\right)\left(x + 1\right)\left(x + 2\right)
Show the work
  1. Roots of a polynomial

    A root of PP is a number that makes P(x)=0P(x) = 0. A polynomial of degree 4 has 4 roots when each is counted as often as it repeats, and complex roots come in pairs.

    P(x)=x4−5x2+4=0\begin{aligned} P\left(x\right) &= x^{4} - 5x^{2} + 4 \\ &= 0 \end{aligned}
  2. Rational root theorem

    If a polynomial with whole-number coefficients has a rational root pq\frac{p}{q} in lowest terms, then pp divides the constant term and qq divides the leading coefficient. Here that gives 6 candidates, and substituting each shows that 4 are roots.

    Using x=±pqx = \pm\frac{p}{q}

    p∣4q∣1⇒±pq∈{−4, −2, −1, 1, 2, 4}\begin{gathered} p \mid 4 \\ q \mid 1 \\ \Rightarrow \\ \pm\frac{p}{q} \in \left\{-4,\ -2,\ -1,\ 1,\ 2,\ 4\right\} \end{gathered}
  3. Synthetic division

    Because P(−2)=0P\left(-2\right) = 0, the expression x+2x + 2 is a factor. Dividing by it leaves a polynomial of lower degree.

    x4−5x2+4=(x+2)(x3−2x2−x+2)x^{4} - 5x^{2} + 4 = \left(x + 2\right)\left(x^{3} - 2x^{2} - x + 2\right)
  4. Synthetic division

    Because P(−1)=0P\left(-1\right) = 0, the expression x+1x + 1 is a factor. Dividing by it leaves a polynomial of lower degree.

    x3−2x2−x+2=(x+1)(x2−3x+2)x^{3} - 2x^{2} - x + 2 = \left(x + 1\right)\left(x^{2} - 3x + 2\right)
  5. Synthetic division

    Because P(1)=0P\left(1\right) = 0, the expression x−1x - 1 is a factor. Dividing by it leaves a polynomial of lower degree.

    x2−3x+2=(x−1)(x−2)x^{2} - 3x + 2 = \left(x - 1\right)\left(x - 2\right)
  6. Synthetic division

    Because P(2)=0P\left(2\right) = 0, the expression x−2x - 2 is a factor. Dividing by it leaves a polynomial of lower degree.

    x−2=(x−2)x - 2 = \left(x - 2\right)
  7. Result

    So the roots of PP are x=−2x = -2, x=−1x = -1, x=1x = 1, x=2x = 2.

Worked examples