Quadratic Formula Calculator

Enter the coefficients and see the exact roots of the quadratic.

The coefficient of x², not 0.

The coefficient of x.

The constant term.

Try

Result

You entered2x2+−4x+1=02x^2 + -4x + 1 = 0

x=1−(1/2)√2,x=1+(1/2)√2\displaystyle x = 1 - (1/2)√2, x = 1 + (1/2)√2

Discriminant

8\displaystyle 8

Nature of roots

Two real roots\displaystyle \text{Two real roots}

Vertex

(1,−1)\displaystyle \left(1, -1\right)

Axis of symmetry

x=1\displaystyle x = 1

Decimal roots

x=0.292893,x=1.707107\displaystyle x = 0.292893, x = 1.707107
Show the work
  1. Coefficients of the quadratic

    Compare the equation with ax2+bx+c=0ax^2 + bx + c = 0 to read off the coefficients: a=2a = 2, b=−4b = -4 and c=1c = 1.

  2. Discriminant

    The discriminant DD is the part under the square root in the quadratic formula. Its sign decides whether the roots are real or complex, so it is worked out first.

    D=b2−4ac=(−4)2−4×2×1=16−8=8\begin{aligned} D &= b^2 - 4ac \\ &= \left(-4\right)^2 - 4 \times 2 \times 1 \\ &= 16 - 8 \\ &= 8 \end{aligned}
  3. Quadratic formula

    Because D>0D > 0 there are two real roots, one from the plus sign and one from the minus sign. Put −b-b, DD and 2a2a into the formula.

    x=−b±b2−4ac2a=4±84\begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\ &= \frac{4 \pm \sqrt{8}}{4} \end{aligned}
  4. Simplify the square root

    Pull the largest perfect square out of the root so that the roots stay exact.

    8=22\sqrt{8} = 2\sqrt{2}
  5. Split the fraction

    Divide both parts of the numerator by 2a2a, so the real part and the part with the root are shown separately.

    x=4±224=1±22\begin{aligned} x &= \frac{4 \pm 2\sqrt{2}}{4} \\ &= 1 \pm \frac{\sqrt{2}}{2} \end{aligned}
  6. Result

    So the solutions are x=1±22x = 1 \pm \frac{\sqrt{2}}{2}.

Worked examples