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=12,  x2=3x_1 = \frac{1}{2}, \; x_2 = 3

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

Monic form

x2−72x+32\displaystyle x^{2} - \frac{7}{2}x + \frac{3}{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=12r_1 = \frac{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−(12+3)x+(12)×3=x2−72x+32x^2 - \left(\frac{1}{2} + 3\right)x + \left(\frac{1}{2}\right) \times 3 = x^{2} - \frac{7}{2}x + \frac{3}{2}
  2. Clear the fractions

    Multiply every term by 2, the least common denominator, so that every coefficient is a whole number. The roots stay the same.

    2(x2−72x+32)=2x2−7x+32\left(x^{2} - \frac{7}{2}x + \frac{3}{2}\right) = 2x^{2} - 7x + 3
  3. Result

    So a quadratic with roots 12\frac{1}{2} and 33 is 2x2−7x+3=02x^{2} - 7x + 3 = 0.

Worked examples