In short
If \alpha and \beta are the roots of ax^2 + bx + c = 0, then \alpha + \beta = -b/a and \alpha\beta = c/a. These are Vieta's formulas. They let you compute the sum and product of the roots — and from those, any symmetric expression in \alpha and \beta — directly from the coefficients, without ever finding the roots themselves.
Solve x^2 - 5x + 6 = 0. The roots are 2 and 3. Now notice two things about them:
The sum of the roots, 5, is exactly the coefficient of x with its sign flipped. The product of the roots, 6, is exactly the constant term. That is not a coincidence — it works because a = 1 here, so -b/a = 5 and c/a = 6.
Try another one: 2x^2 + 3x - 5 = 0, whose roots are 1 and -5/2. Check:
Again it works. The sum and product of the roots are encoded in the coefficients of the equation — hiding in plain sight, available without any solving at all.
This relationship holds for every quadratic equation, not just ones with nice roots. Even when the roots are irrational like 2 \pm \sqrt{3}, their sum and product come out as clean rational numbers that you can read directly from a, b, c. That is the surprise, and it is the subject of this article.
Why it works
The proof is five lines. Start from the fact that any quadratic with roots \alpha and \beta can be written as
Expand the left side:
Now compare this with the original form ax^2 + bx + c = 0. The coefficients of x must match, and the constant terms must match:
Solving for the sum and product:
That is the entire derivation. No quadratic formula needed, no completing the square — just expanding a product and matching coefficients.
The formal statement
Vieta's formulas for a quadratic
If \alpha and \beta are the two roots of ax^2 + bx + c = 0 (with a \neq 0), then:
Equivalently, in the monic form x^2 + px + q = 0 (where a = 1): the sum of the roots is -p and the product is q.
A note on when the roots are complex: Vieta's formulas work even then. If the discriminant is negative and the roots are \alpha = u + vi and \beta = u - vi, then \alpha + \beta = 2u = -b/a (a real number) and \alpha\beta = u^2 + v^2 = c/a (also real). The sum and product are always real when a, b, c are real, regardless of whether the roots themselves are.
Building equations from roots
Vieta's formulas work in reverse. If someone tells you the roots are \alpha and \beta, you can write the equation without expanding anything:
This is the monic quadratic (with a = 1) whose roots are \alpha and \beta. Multiply through by any non-zero constant a if you want a different leading coefficient.
For instance, to find a quadratic whose roots are 3 and -7:
- Sum = 3 + (-7) = -4
- Product = 3 \times (-7) = -21
The equation is x^2 - (-4)x + (-21) = 0, which simplifies to x^2 + 4x - 21 = 0.
Quick check: (x - 3)(x + 7) = x^2 + 7x - 3x - 21 = x^2 + 4x - 21. Correct.
This technique is especially useful when the roots are given in terms of other roots. A common JEE problem: "If \alpha and \beta are roots of x^2 + 5x + 3 = 0, find the equation whose roots are 1/\alpha and 1/\beta." You will see this solved in Example 2.
Symmetric functions of roots
The most powerful application of Vieta's formulas is computing symmetric functions of the roots — expressions that stay the same if you swap \alpha and \beta — without knowing the roots individually.
The sum \alpha + \beta and the product \alpha\beta are the two basic symmetric functions. Every other symmetric expression can be built from them. Here are the most commonly needed ones:
Each of these reduces to an expression involving only \alpha + \beta and \alpha\beta — which you already know from -b/a and c/a. No solving required.
An interactive Vieta's checker
Drag the point below to change b in x^2 + bx + 6 = 0. The readouts show -b/a (the sum of roots from Vieta's formula) and c/a = 6 (the product). Watch how the sum changes while the product stays fixed at 6 — the two roots slide along the parabola together, always multiplying to 6.
Two worked examples
Example 1: Find α² + β² for the roots of 2x² − 7x + 3 = 0
Step 1. Read off a, b, c.
Why: these go straight into Vieta's formulas. No need to actually find \alpha and \beta.
Step 2. Apply Vieta's formulas.
Why: the sum and product are all the machinery you need. Every symmetric expression in \alpha and \beta can be written in terms of these two numbers.
Step 3. Use the identity \alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta.
Why: this identity works because (\alpha + \beta)^2 = \alpha^2 + 2\alpha\beta + \beta^2. Subtracting 2\alpha\beta from both sides isolates \alpha^2 + \beta^2.
Step 4. Verify by solving. The roots are \alpha = 3 and \beta = 1/2 (factor as (2x - 1)(x - 3) = 0). Check: 9 + 1/4 = 37/4. Correct.
Result. \alpha^2 + \beta^2 = \dfrac{37}{4}.
The key insight: you computed \alpha^2 + \beta^2 using only the sum and product of the roots. You could have solved the equation first, but Vieta's approach is faster, cleaner, and works even when the roots are ugly irrational numbers.
Example 2: If α, β are roots of x² + 5x + 3 = 0, find the equation whose roots are 1/α and 1/β
Step 1. Get the sum and product of the original roots from Vieta's formulas.
Why: for a monic quadratic x^2 + px + q = 0, the sum is -p and the product is q. Here p = 5, q = 3.
Step 2. Compute the sum and product of the new roots 1/\alpha and 1/\beta.
Why: combining fractions over a common denominator gives the sum of reciprocals in terms of the original sum and product. This is the technique — express the new symmetric functions in terms of the old ones.
Step 3. Build the new equation using the formula x^2 - (\text{sum})x + (\text{product}) = 0.
Step 4. Clear fractions by multiplying through by 3.
Result. The equation whose roots are 1/\alpha and 1/\beta is 3x^2 + 5x + 1 = 0.
Notice a pattern: the new equation 3x^2 + 5x + 1 = 0 has the same coefficients as the original x^2 + 5x + 3 = 0, but reversed. That is not a coincidence — if \alpha is a root of ax^2 + bx + c = 0, then 1/\alpha is a root of cx^2 + bx + a = 0, which you get by writing the original coefficients in reverse order. The Vieta's approach recovers this structural fact naturally.
Forming equations from given conditions
A very common exam question: "Form a quadratic equation whose roots satisfy some condition." The recipe is always the same.
- Compute the sum of the new roots (call it S).
- Compute the product of the new roots (call it P).
- The equation is x^2 - Sx + P = 0 (or multiply by a constant to clear fractions).
Here is a table of standard transformations. If \alpha and \beta are roots of ax^2 + bx + c = 0, and you want the equation whose roots are:
| New roots | Sum (S) | Product (P) |
|---|---|---|
| \alpha^2, \beta^2 | (\alpha+\beta)^2 - 2\alpha\beta = b^2/a^2 - 2c/a | (\alpha\beta)^2 = c^2/a^2 |
| 1/\alpha, 1/\beta | (\alpha+\beta)/(\alpha\beta) = -b/c | 1/(\alpha\beta) = a/c |
| \alpha + k, \beta + k | (\alpha+\beta) + 2k = -b/a + 2k | \alpha\beta + k(\alpha+\beta) + k^2 |
| k\alpha, k\beta | k(\alpha+\beta) = -kb/a | k^2\alpha\beta = k^2c/a |
Each row comes from expressing the new sum and product in terms of the original \alpha + \beta and \alpha\beta, then substituting Vieta's values.
Applications beyond finding roots
Vieta's formulas show up in problems that look nothing like "solve a quadratic." Here are three patterns.
Checking answers. After you solve a quadratic, verify your answer by computing the sum and product of your roots and checking them against -b/a and c/a. If either check fails, you made an error. This is faster than substituting both roots back into the original equation.
Extracting symmetric information. If a problem asks for \alpha^2 + \beta^2, \alpha^3 + \beta^3, or \alpha/\beta + \beta/\alpha, you can compute the answer without solving the equation. Just express the desired quantity in terms of \alpha + \beta and \alpha\beta, then plug in -b/a and c/a.
Building equations from conditions. If you know the sum and product of the roots you want, you can write the equation directly. This is the reverse direction — from roots to equation — and Vieta's formulas are the bridge.
Common confusions
-
"The sum of roots is b/a." No, it is -b/a. The minus sign is easy to forget and it matters. The sign comes from the expansion of (x - \alpha)(x - \beta) = x^2 - (\alpha + \beta)x + \alpha\beta — notice the minus in front of the sum.
-
"Vieta's formulas only work when the roots are real." They work for complex roots too. If the roots are \alpha = p + qi and \beta = p - qi, then \alpha + \beta = 2p and \alpha\beta = p^2 + q^2, both real. The formulas are identities between the coefficients and the roots — they do not care whether the roots are real or complex.
-
"You can find each root from Vieta's formulas alone." You can find their sum and product, but not the individual roots (unless you also know the discriminant or some other asymmetric information). The sum and product determine the pair \{\alpha, \beta\} — the set of roots — but not which one is which.
-
"The product of roots is always c." Only when a = 1. In general, the product is c/a. Forgetting to divide by a is the most common error with Vieta's formulas.
-
"Vieta's formulas are a shortcut — the quadratic formula is more fundamental." They are equally fundamental. Vieta's formulas come from comparing the factored form a(x - \alpha)(x - \beta) with the standard form ax^2 + bx + c. No formula is needed — just expanding and matching. In fact, Vieta's formulas generalise to polynomials of any degree, where the quadratic formula does not.
Going deeper
If you came here for the sum and product of roots, Vieta's formulas, and how to use them to build equations and compute symmetric functions, you have all of it — you can stop here. What follows connects these ideas to higher-degree polynomials and a structural perspective.
Vieta's formulas for cubics and beyond
For a cubic ax^3 + bx^2 + cx + d = 0 with roots \alpha, \beta, \gamma:
The pattern: the k-th symmetric function of the roots equals (up to sign) the ratio of the (k+1)-th coefficient to the leading coefficient. The signs alternate: -, +, -, +, .... For a degree-n polynomial, there are n such formulas, one for each elementary symmetric polynomial.
This is the general form of Vieta's insight: the coefficients of a polynomial are (up to signs and normalisation) the elementary symmetric functions of its roots. Every coefficient is a summary statistic of the roots.
Newton's identities
The symmetric functions \alpha^k + \beta^k (power sums) can be computed recursively from the elementary symmetric functions using Newton's identities. For a quadratic with sum s = \alpha + \beta and product p = \alpha\beta:
where p_k = \alpha^k + \beta^k. This gives you \alpha^k + \beta^k for any k without finding the roots. For instance, p_3 = s \cdot p_2 - p \cdot p_1 = s(s^2 - 2p) - ps = s^3 - 3ps, recovering the identity \alpha^3 + \beta^3 = (\alpha + \beta)^3 - 3\alpha\beta(\alpha + \beta).
The relationship to the discriminant
Vieta's formulas and the discriminant are closely connected. The discriminant is
So \sqrt{D}/|a| = |\alpha - \beta| — the absolute difference of the roots. This is an asymmetric function (it changes sign if you swap \alpha and \beta), which is why the discriminant involves a square: D is symmetric, but \sqrt{D} is not. The discriminant is the bridge between the symmetric world (Vieta's formulas) and the asymmetric world (the individual roots).
Where this leads next
- Quadratic Equations — Advanced — equations reducible to quadratics, substitution methods, and parametric equations where Vieta's formulas are essential tools.
- Discriminant and Nature of Roots — the discriminant tells you the type of roots; Vieta's formulas tell you their sum and product. Together they give a complete picture.
- Quadratic Formula — the formula that gives you the individual roots when you need them, not just their aggregate properties.
- Polynomial Factorization — how Vieta's formulas connect to the general problem of factoring polynomials of any degree.
- Polynomials — Introduction — the broader theory of polynomials that Vieta's formulas sit inside.