Sum and Product of Roots - Theory
Suppose that the quadratic equation
has the roots and . Thus, by the factor theorem, and will be factors of the expression :
A factor of is required to equalize the coefficients on both sides. If we expand the right hand side, we have:
By comparing the coefficients on both sides, we obtain expressions for the sum and product of the roots and :
Given a quadratic equation, we can evaluate the sum and product of its roots using these expressions. Here are two examples (we will use and to denote the two roots):
We can also do the reverse: given the sum and product of the roots of a quadratic equation, we can obtain the equation. If the roots are and , we can write the equation as:
For example, suppose that a quadratic equation is such that and . This quadratic equation will be:
As another example, suppose that and for a quadratic equation. This equation will be: