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

x2+4x+4\displaystyle x^{2} + 4x + 4

Monic form

x2+4x+4\displaystyle x^{2} + 4x + 4
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=−2r_2 = -2.

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

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

    So a quadratic with roots −2-2 and −2-2 is x2+4x+4=0x^{2} + 4x + 4 = 0.

Worked examples