You can often answer a question about a quadratic's roots without calculating the roots themselves. The discriminant tells you how many real roots exist; the coefficients also reveal their sum and product.
The discriminant controls the square root
For with the quadratic formula contains Define the discriminant
If the square root is positive, and the plus and minus branches give two distinct real roots. If both branches give the same real root, If the square root is not real, so there are no real roots. With complex numbers allowed, there are two nonreal conjugate roots.
Graphically, the corresponding parabola crosses the x-axis twice, touches it once, or misses it. A zero discriminant means one distinct root of multiplicity two; it does not mean the root itself must be zero.
Example: find a parameter for one solution
For to have exactly one real solution, require
Thus and The equation becomes with root 3. For there are two real roots; for there are none. The parameter vertically shifts the parabola while its axis stays fixed.
Always check that the leading coefficient remains nonzero in a parameter problem. If a can become zero, that special case is linear and must be analyzed separately rather than inserted into a quadratic rule.
Root sums and products come from expansion
If and are the roots, write the quadratic as Expanding gives
Matching coefficients with yields
The minus sign in the sum is easy to overlook. These identities remain valid for complex roots, although the discriminant determines whether those roots are real.
Example: calculate a root expression efficiently
The roots of are and . Their sum is and product is To find expand the square of their sum:
There is no need to solve the equation first. To find combine the fractions to get This second expression requires both roots to be nonzero, which is ensured here by their nonzero product.
Build an equation from its roots
Roots 4 and have sum 2 and product A monic quadratic with those roots is or directly Multiplying the entire equation by any nonzero constant leaves its roots unchanged.
For real roots, a negative product means opposite signs. A positive product means the roots have the same sign; then their sum tells you which sign. However, do not infer real roots from the sum and product alone. Verify before interpreting signs of real roots.
For integer coefficients, a positive perfect-square discriminant yields rational roots. A positive nonsquare discriminant yields irrational roots. This follows directly from the square-root term in the formula.
Try it yourself
Without solving determine the number of real roots, their sum, and their product. Are both roots positive or negative?
Answer: so there are two distinct real roots. Their sum is and their product is They have the same sign, and the negative sum shows that both are negative.
What to remember
Use the discriminant for the number and type of roots. Use and for their sum and product, and derive more complicated symmetric expressions from those two quantities.