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

x2−3x−4\displaystyle x^{2} - 3x - 4

Monic form

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

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

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

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

Worked examples