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=1,  x2=2x_1 = 1, \; x_2 = 2

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

Monic form

x2−3x+2\displaystyle x^{2} - 3x + 2
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=1r_1 = 1 and r2=2r_2 = 2.

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

    x2−(1+2)x+1×2=x2−3x+2x^2 - \left(1 + 2\right)x + 1 \times 2 = x^{2} - 3x + 2
  2. Multiply by the leading coefficient

    The leading coefficient is a=3a = 3, so multiply every term of the monic form by it. Multiplying by a number never moves the roots.

    3(x2−3x+2)=3x2−9x+63\left(x^{2} - 3x + 2\right) = 3x^{2} - 9x + 6
  3. Result

    So a quadratic with roots 11 and 22 is 3x2−9x+6=03x^{2} - 9x + 6 = 0.

Worked examples