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

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

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

    p∣−1q∣1⇒±pq∈{−1, 1}\begin{gathered} p \mid -1 \\ q \mid 1 \\ \Rightarrow \\ \pm\frac{p}{q} \in \left\{-1,\ 1\right\} \end{gathered}
  3. 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.

    x4−1=(x+1)(x3−x2+x−1)x^{4} - 1 = \left(x + 1\right)\left(x^{3} - x^{2} + x - 1\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−x2+x−1=(x−1)(x2+1)x^{3} - x^{2} + x - 1 = \left(x - 1\right)\left(x^{2} + 1\right)
  5. Quadratic formula

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

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

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

Worked examples