HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Vieta's Formulas and Symmetric Functions
  1. 1Roots and coefficients
  2. 2Symmetric functions of the roots
  3. 3Conditions on the roots
  1. Mathematics
  2. /Vieta's Formulas and Symmetric Functions
  3. /Roots and coefficients

Course 33.1·Lesson 1 of 3

Roots and coefficients

Expand (x−α)(x−β)(x−γ)(x - \alpha)(x - \beta)(x - \gamma)(x−α)(x−β)(x−γ)

Lesson 1 of 3Show all lessonsHide
Vieta's Formulas and Symmetric Functions
  1. 1Roots and coefficients
  2. 2Symmetric functions of the roots
  3. 3Conditions on the roots

Try the code and the simulations beside the lesson.

What you will be able to do

  • write the sum, the sums of products and the product of the roots from the coefficients;
  • build a polynomial equation from its roots;
  • use one known fact about the roots to find all of them.

A pattern in a product

Multiply out (x−3)(x−4)(x - 3)(x - 4)(x−3)(x−4). You get x2−7x+12x^2 - 7x + 12x2−7x+12. The 777 is 3+43 + 43+4 and the 121212 is 3×43 \times 43×4. Is that luck? No. Expand (x−α)(x−β)(x - \alpha)(x - \beta)(x−α)(x−β):

x2−(α+β)x+αβ.\displaystyle x^2 - (\alpha + \beta)x + \alpha\beta.x2−(α+β)x+αβ.

So the coefficients of a quadratic hold the sum and the product of its roots. You met this for quadratics in the chapter on complex numbers and quadratic equations. These links are called Vieta's formulas, after the French mathematician François Viète.

The quadratic

If ax2+bx+c=0ax^2 + bx + c = 0ax2+bx+c=0 has roots α\alphaα and β\betaβ, divide by aaa first. Then

α+β=−ba,\displaystyle \alpha + \beta = -\dfrac{b}{a},α+β=−ab​,
αβ=ca.\displaystyle \alpha\beta = \dfrac{c}{a}.αβ=ac​.

The cubic

Expand three factors:

(x−α)(x−β)(x−γ)\displaystyle (x - \alpha)(x - \beta)(x - \gamma)(x−α)(x−β)(x−γ)
=x3−e1x2+e2x−e3,\displaystyle \quad = x^3 - e_1x^2 + e_2x - e_3,=x3−e1​x2+e2​x−e3​,

where e1e_1e1​, e2e_2e2​ and e3e_3e3​ are the elementary symmetric functions of the roots:

e1=α+β+γ,\displaystyle e_1 = \alpha + \beta + \gamma,e1​=α+β+γ,
e2=αβ+βγ+γα,\displaystyle e_2 = \alpha\beta + \beta\gamma + \gamma\alpha,e2​=αβ+βγ+γα,
e3=αβγ.\displaystyle e_3 = \alpha\beta\gamma.e3​=αβγ.

So for ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0ax3+bx2+cx+d=0,

e1=−ba,e2=ca,\displaystyle e_1 = -\dfrac{b}{a},\quad e_2 = \dfrac{c}{a},e1​=−ab​,e2​=ac​,
e3=−da.\displaystyle e_3 = -\dfrac{d}{a}.e3​=−ad​.

Notation. Many books, and A-Level Further Mathematics, write ∑α\sum\alpha∑α, ∑αβ\sum\alpha\beta∑αβ and αβγ\alpha\beta\gammaαβγ for e1e_1e1​, e2e_2e2​ and e3e_3e3​. IB writes the sum as −an−1an-\dfrac{a_{n-1}}{a_n}−an​an−1​​ and the product as (−1)na0an\dfrac{(-1)^n a_0}{a_n}an​(−1)na0​​. They all say the same thing.

The graph of a cubic crossing the x-axis at three points marked alpha, beta and gamma. Beside it, three lines say that the sum of the roots is minus b over a, the sum of the products in pairs is c over a, and the product is minus d over a.

Any degree

For anxn+an−1xn−1+⋯+a0=0a_nx^n + a_{n-1}x^{n-1} + \dots + a_0 = 0an​xn+an−1​xn−1+⋯+a0​=0 with roots α1,…,αn\alpha_1, \dots, \alpha_nα1​,…,αn​, let eke_kek​ be the sum of all products of kkk different roots. Then

ek=(−1)k an−kan.\displaystyle e_k = (-1)^k\,\dfrac{a_{n-k}}{a_n}.ek​=(−1)kan​an−k​​.

For a quartic x4+px3+qx2+rx+sx^4 + px^3 + qx^2 + rx + sx4+px3+qx2+rx+s, this gives e1=−pe_1 = -pe1​=−p, e2=qe_2 = qe2​=q, e3=−re_3 = -re3​=−r and e4=se_4 = se4​=s. The signs alternate, starting with a minus. Roots are counted with their multiplicity, and they may be complex. The formulas still hold.

Building an equation from its roots

To build a monic cubic with roots 222, −1-1−1 and 333, find the three numbers first.

  1. Sum. e1=2−1+3=4e_1 = 2 - 1 + 3 = 4e1​=2−1+3=4.
  2. Pairs. e2=−2−3+6=1e_2 = -2 - 3 + 6 = 1e2​=−2−3+6=1.
  3. Product. e3=−6e_3 = -6e3​=−6.
  4. Write it. x3−4x2+x+6=0x^3 - 4x^2 + x + 6 = 0x3−4x2+x+6=0. Check at x=2x = 2x=2: 8−16+2+6=08 - 16 + 2 + 6 = 08−16+2+6=0.

One root helps find the rest

The cubic x3−6x2+11x−6=0x^3 - 6x^2 + 11x - 6 = 0x3−6x2+11x−6=0 has the root 111. Let the others be β\betaβ and γ\gammaγ. Then

1+β+γ=6,\displaystyle 1 + \beta + \gamma = 6,1+β+γ=6,
1⋅βγ=6.\displaystyle 1 \cdot \beta\gamma = 6.1⋅βγ=6.

So β+γ=5\beta + \gamma = 5β+γ=5 and βγ=6\beta\gamma = 6βγ=6, and the other roots are 222 and 333. No long division was needed.

Practise with new numbers

Try it in Python

The program builds a polynomial from a list of roots, one factor at a time. Then it compares the coefficients with the sums of products of the roots.

Read it first. Then run it. Do the two lists agree?

1. Add a fourth root, -2, to the list. Which new number appears, and what is it?

2. Change one root to 0. Predict the last coefficient before you run it.

Common mistakes

  • The sign of the sum. For x3+bx2+…x^3 + bx^2 + \dotsx3+bx2+… the sum of the roots is −b-b−b, not bbb.
  • The sign of the product. For a cubic the product is −da-\dfrac{d}{a}−ad​. For a quadratic or a quartic it is +da+\dfrac{d}{a}+ad​.
  • Forgetting to divide. Divide every coefficient by the leading one first.
  • A repeated root. The root 222 of (x−2)2(x+1)(x - 2)^2(x + 1)(x−2)2(x+1) counts twice in every sum.

Remember these

  • e1=−bae_1 = -\dfrac{b}{a}e1​=−ab​, e2=cae_2 = \dfrac{c}{a}e2​=ac​, e3=−dae_3 = -\dfrac{d}{a}e3​=−ad​ for a cubic.
  • In general ek=(−1)kan−kane_k = (-1)^k\dfrac{a_{n-k}}{a_n}ek​=(−1)kan​an−k​​.
  • Monic cubic with roots α,β,γ\alpha, \beta, \gammaα,β,γ: x3−e1x2+e2x−e3x^3 - e_1x^2 + e_2x - e_3x3−e1​x2+e2​x−e3​.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. The roots of 2x3−5x2+4x+6=02x^3 - 5x^2 + 4x + 6 = 02x3−5x2+4x+6=0 are α\alphaα, β\betaβ and γ\gammaγ. Find ∑α\sum\alpha∑α, ∑αβ\sum\alpha\beta∑αβ and αβγ\alpha\beta\gammaαβγ.
  1. Write the monic cubic with roots 111, −2-2−2 and 444.
  1. One root of x3−9x2+26x−24=0x^3 - 9x^2 + 26x - 24 = 0x3−9x2+26x−24=0 is 444. Find the other two without dividing.
  1. A student says that the product of the roots of x4−3x2+5x−2=0x^4 - 3x^2 + 5x - 2 = 0x4−3x2+5x−2=0 is 222. Is that right?
  1. Without solving, find the sum of the roots of x4+2x3−x+7=0x^4 + 2x^3 - x + 7 = 0x4+2x3−x+7=0 and the sum of their products in pairs.

References

  • H. S. Hall and S. R. Knight, Higher Algebra, the chapter on the theory of equations.

Enroll free in Vieta's Formulas and Symmetric Functions

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

The equation 2x³ - 11x² + 17x - 6 = 0 has three real roots…Hard · High School (11–12) · by StemPy Lab
A closed box is a cuboid. The lengths of its three edges, in cm, are the roots of x³ - 12x² + 44x…Advanced · High School (11–12) · by StemPy Lab
The quartic x⁴ - 2x³ - 7x² + 8x + 12 = 0 has two roots whose sum is 0…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Symmetric functions of the roots
← Vieta's Formulas and Symmetric Functions
← PreviousSymmetric functions of the roots →

Discussion (0)

Log in to join the discussion.

Loading…

and compare it with
ax3+bx2+cx+dax^3 + bx^2 + cx + dax3+bx2+cx+d
. The sum of the roots is
−ba-\dfrac{b}{a}−ab​
, the sum of the products in pairs is
ca\dfrac{c}{a}ac​
and the product is
−da-\dfrac{d}{a}−ad​
. The same pattern of alternating signs holds for every degree. With it you can build an equation from its roots, and find the other roots when one is known.
about 25 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

From roots to coefficientsPython Lab · by StemPy Lab