Quadratic Equation from Roots Calculator

Enter two roots and get the quadratic that has them.

A root, like 2 or 1/2.

The other root (it may be the same).

Leave empty to get the smallest whole-number form.

Try

Result

You enteredx1=2,  x2=3x_1 = 2, \; x_2 = 3

x2−5x+6\displaystyle x^{2} - 5x + 6

Monic form

x2−5x+6\displaystyle x^{2} - 5x + 6
Show the work
  1. Sum and product of the roots

    A monic quadratic (leading coefficient 1) with roots r1r_1 and r2r_2 has xx coefficient −(r1+r2)-(r_1 + r_2) and constant r1r2r_1 r_2. Here r1=2r_1 = 2 and r2=3r_2 = 3.

    Using x2−(r1+r2)x+r1r2x^2 - \left(r_1 + r_2\right)x + r_1 r_2

    x2−(2+3)x+2×3=x2−5x+6x^2 - \left(2 + 3\right)x + 2 \times 3 = x^{2} - 5x + 6
  2. Result

    So a quadratic with roots 22 and 33 is x2−5x+6=0x^{2} - 5x + 6 = 0.

Worked examples