Equation Solver Calculator

Solve an equation and see which method was used and why.

Linear, quadratic, absolute value or polynomial (up to degree 6) in one letter.

Try

Result

You enteredx2−5x+6=0x^{2} - 5x + 6 = 0

x=2,  x=3\displaystyle x = 2, \; x = 3
Show the work
  1. Kind of equation

    This is a quadratic equation: the highest power of xx is 2. That decides which method is used.

  2. Move everything to one side

    Subtract the right side from both sides so that the equation has the form polynomial =0= 0, the form every method below needs.

    x2−5x+6=0x^{2} - 5x + 6 = 0
  3. Discriminant

    Read aa, bb and cc from the equation. The discriminant DD decides whether the roots are real: here a=1a = 1, b=−5b = -5 and c=6c = 6.

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

    Because D>0D > 0 there are two real roots, one for each sign of ±\pm.

    Using x=−b±D2ax = \frac{-b \pm \sqrt{D}}{2a}

    x=2x=3\begin{gathered} x = 2 \\ x = 3 \end{gathered}
  5. Result

    So the solutions are x=2x = 2 and x=3x = 3.

Worked examples