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−16=0x^{4} - 16 = 0

x=−2, x=2, x=−2i, x=2i\displaystyle x = -2,\ x = 2,\ x = -2i,\ x = 2i
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−16=0\begin{aligned} P\left(x\right) &= x^{4} - 16 \\ &= 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 10 candidates, and substituting each shows that 2 are roots.

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

    p∣−16q∣1⇒±pq∈{−16, −8, −4, −2, −1, 1, 2, 4, 8, 16}\begin{gathered} p \mid -16 \\ q \mid 1 \\ \Rightarrow \\ \pm\frac{p}{q} \in \left\{-16,\ -8,\ -4,\ -2,\ -1,\ 1,\ 2,\ 4,\ 8,\ 16\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−16=(x+2)(x3−2x2+4x−8)x^{4} - 16 = \left(x + 2\right)\left(x^{3} - 2x^{2} + 4x - 8\right)
  4. 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.

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

    What is left is the quadratic x2+4=0x^{2} + 4 = 0, with a=1a = 1, b=0b = 0, c=4c = 4 and discriminant b2−4ac=−16b^2 - 4ac = -16. The discriminant is negative, so the roots are complex. The roots are x=−2ix = -2i and x=2ix = 2i.

    x=−b±b2−4ac2a=−0±02−4⋅1⋅42⋅1=0±−162\begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\ &= \frac{-0 \pm \sqrt{0^2 - 4 \cdot 1 \cdot 4}}{2 \cdot 1} \\ &= \frac{0 \pm \sqrt{-16}}{2} \end{aligned}
  6. Result

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

Worked examples