Let α,β be the roots of ax2+bx+c=0. Since a,α,β determine the polynomial up to the factor a,
ax2+bx+c=a(x−α)(x−β)=a(x2−(α+β)x+αβ).
Comparing coefficients of like powers on both sides gives Vieta's formula for a quadratic:
α+β=−ab,αβ=ac.
Turning this around: a quadratic equation whose roots are α and β is
x2−(sum of the roots)x+(product of the roots)=0.(1)
The indefinite article "a" quadratic equation (not "the") matters: if P(x)=0 has roots α,β, then cP(x)=0 (any nonzero constant c) is also a quadratic equation with exactly the same two roots. Formula (1) gives one particular (monic) representative.
Worked illustration (constructing directly from given roots). A quadratic equation with roots 3 and 4 is, by (1), x2−7x+12=0.
Worked illustration (transforming a known equation's roots — Example 3.1 style). If α,β are the roots of 17x2+43x−73=0, we get α+β=−1743 and αβ=−1773 without solving for α,β individually. To build a quadratic with roots α+2, β+2, we only need the sum and product of the new roots:
(α+2)+(β+2)=(α+β)+4=−1743+4=1725,(α+2)(β+2)=αβ+2(α+β)+4=−1773−1786+4=−1791.
By (1), x2−1725x−1791=0, i.e. 17x2−25x−91=0, has roots α+2,β+2. …