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. /Symmetric functions of the roots

Course 33.1·Lesson 2 of 3

Symmetric functions of the roots

An expression in the roots that does not change when you swap two roots is symmetric. Every symmetric polynomial in the roots can be written with e1e_1e1​, e2e_2e2​

Lesson 2 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 sums of squares, cubes and reciprocals of the roots through the coefficients;
  • find mixed sums such as ∑α2β\sum\alpha^2\beta∑α2β;
  • use Newton's sums for any power of the roots.

You cannot solve it, but you can still answer

The cubic x3−2x2−3x+5=0x^3 - 2x^2 - 3x + 5 = 0x3−2x2−3x+5=0 has three real roots. None of them is a nice number. Yet we can say at once that the sum of their squares is 101010. How? The sum of the squares does not change if two roots swap places. Such an expression is called symmetric.

A theorem says that every symmetric polynomial in the roots is a polynomial in e1e_1e1​, e2e_2e2​ and e3e_3e3​. So it can be found from the coefficients alone.

Two roots

With α+β=s\alpha + \beta = sα+β=s and αβ=p\alpha\beta = pαβ=p:

α2+β2=s2−2p,\displaystyle \alpha^2 + \beta^2 = s^2 - 2p,α2+β2=s2−2p,
α3+β3=s3−3ps,\displaystyle \alpha^3 + \beta^3 = s^3 - 3ps,α3+β3=s3−3ps,
(α−β)2=s2−4p.\displaystyle (\alpha - \beta)^2 = s^2 - 4p.(α−β)2=s2−4p.

Also 1α+1β=sp\dfrac{1}{\alpha} + \dfrac{1}{\beta} = \dfrac{s}{p}α1​+β1​=ps​, when p≠0p \ne 0p=0.

Three roots

Expand (α+β+γ)2(\alpha + \beta + \gamma)^2(α+β+γ)2. The square terms appear once and each pair twice. So

∑α2=e12−2e2.\displaystyle \sum\alpha^2 = e_1^2 - 2e_2.∑α2=e12​−2e2​.

For the reciprocals, put the fractions over αβγ\alpha\beta\gammaαβγ:

∑1α=e2e3.\displaystyle \sum\dfrac{1}{\alpha} = \dfrac{e_2}{e_3}.∑α1​=e3​e2​​.

The mixed sum ∑α2β\sum\alpha^2\beta∑α2β has six terms: α2β+α2γ+β2α+β2γ+γ2α+γ2β\alpha^2\beta + \alpha^2\gamma + \beta^2\alpha + \beta^2\gamma + \gamma^2\alpha + \gamma^2\betaα2β+α2γ+β2α+β2γ+γ2α+γ2β. Multiply e1e_1e1​ by e2e_2e2​. Each of the six terms appears once, and αβγ\alpha\beta\gammaαβγ appears three times. So

∑α2β=e1e2−3e3.\displaystyle \sum\alpha^2\beta = e_1e_2 - 3e_3.∑α2β=e1​e2​−3e3​.

Newton's sums

Write Sk=αk+βk+γkS_k = \alpha^k + \beta^k + \gamma^kSk​=αk+βk+γk for the power sums, with S0=3S_0 = 3S0​=3. Take the cubic x3+px2+qx+r=0x^3 + px^2 + qx + r = 0x3+px2+qx+r=0. Each root obeys it:

α3=−pα2−qα−r.\displaystyle \alpha^3 = -p\alpha^2 - q\alpha - r.α3=−pα2−qα−r.

Multiply by αk−3\alpha^{k-3}αk−3, do the same for β\betaβ and γ\gammaγ, and add:

Sk+pSk−1+qSk−2\displaystyle S_k + pS_{k-1} + qS_{k-2}Sk​+pSk−1​+qSk−2​
+rSk−3=0.\displaystyle \qquad + rS_{k-3} = 0.+rSk−3​=0.

This holds for k≥3k \ge 3k≥3. At the start, the first steps are S1+p=0S_1 + p = 0S1​+p=0 and S2+pS1+2q=0S_2 + pS_1 + 2q = 0S2​+pS1​+2q=0. The same idea works for any degree.

A row of boxes for the power sums S0 to S6 of the roots of a cubic. Three arrows run from the boxes S of k minus 3, S of k minus 2 and S of k minus 1 into the box S of k, labelled minus r, minus q and minus p: each power sum is built from the three before it.

A worked example

Take x3−2x2−3x+5=0x^3 - 2x^2 - 3x + 5 = 0x3−2x2−3x+5=0, so p=−2p = -2p=−2, q=−3q = -3q=−3 and r=5r = 5r=5.

  1. First. S1=−p=2S_1 = -p = 2S1​=−p=2.
  2. Second. S2=−pS1−2q=4+6=10S_2 = -pS_1 - 2q = 4 + 6 = 10S2​=−pS1​−2q=4+6=10.
  3. Third. S3=−pS2−qS1−3r=20+6−15=11S_3 = -pS_2 - qS_1 - 3r = 20 + 6 - 15 = 11S3​=−pS2​−qS1​−3r=20+6−15=11.
  4. Fourth. S4=−pS3−qS2−rS1=22+30−10=42S_4 = -pS_3 - qS_2 - rS_1 = 22 + 30 - 10 = 42S4​=−pS3​−qS2​−rS1​=22+30−10=42.

Check. S2=e12−2e2=4−2(−3)=10S_2 = e_1^2 - 2e_2 = 4 - 2(-3) = 10S2​=e12​−2e2​=4−2(−3)=10. The two ways agree.

Practise with new numbers

Try it in Python

The program finds the power sums of the roots by Newton's sums. Then it finds the roots with numpy and adds their powers directly.

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

1. Change the cubic to x^3 - x - 1, that is p, q, r = 0, -1, -1. Are all the power sums whole numbers? Why must they be?

2. Two roots of this new cubic are complex. Does the program still work?

Common mistakes

  • The square of the sum. ∑α2\sum\alpha^2∑α2 is not (∑α)2\left(\sum\alpha\right)^2(∑α)2.
  • Too few terms. ∑α2β\sum\alpha^2\beta∑α2β has six terms, not three.
  • The first Newton step. S2+pS1+2q=0S_2 + pS_1 + 2q = 0S2​+pS1​+2q=0 has 2q2q2q, not qS0qS_0qS0​.
  • A zero root. ∑1α\sum\dfrac{1}{\alpha}∑α1​ makes no sense when e3=0e_3 = 0e3​=0.

Remember these

  • ∑α2=e12−2e2\sum\alpha^2 = e_1^2 - 2e_2∑α2=e12​−2e2​ and ∑1α=e2e3\sum\dfrac{1}{\alpha} = \dfrac{e_2}{e_3}∑α1​=e3​e2​​.
  • ∑α2β=e1e2−3e3\sum\alpha^2\beta = e_1e_2 - 3e_3∑α2β=e1​e2​−3e3​.
  • Newton: Sk+pSk−1+qSk−2+rSk−3=0S_k + pS_{k-1} + qS_{k-2} + rS_{k-3} = 0Sk​+pSk−1​+qSk−2​+rSk−3​=0.

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 x2−5x+3=0x^2 - 5x + 3 = 0x2−5x+3=0 are α\alphaα and β\betaβ. Find α2+β2\alpha^2 + \beta^2α2+β2 and (α−β)2(\alpha - \beta)^2(α−β)2.
  1. The roots of x3−4x2+2x+6=0x^3 - 4x^2 + 2x + 6 = 0x3−4x2+2x+6=0 are α\alphaα, β\betaβ and γ\gammaγ. Find ∑1α\sum\dfrac{1}{\alpha}∑α1​.
  1. For the same cubic, find ∑α2\sum\alpha^2∑α2.
  1. The roots of x3−3x+1=0x^3 - 3x + 1 = 0x3−3x+1=0 have S1=0S_1 = 0S1​=0 and S2=6S_2 = 6S2​=6. Find S3S_3S3​.
  1. A student writes ∑α2β=e1e2−e3\sum\alpha^2\beta = e_1e_2 - e_3∑α2β=e1​e2​−e3​. Find the mistake.

References

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

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 (4)

The cubic x³ - x - 1 = 0 has one real root, about 1.32, and two complex roots…Hard · High School (11–12) · by StemPy Lab
Let α, β, γ be numbers with α + β + γ = 0…Advanced · High School (11–12) · by StemPy Lab
A model of a machine part gives two numbers, α and β, as the solutions of 3x² - 5x - 4 = 0…Hard · High School (11–12) · by StemPy Lab
Next: lesson 3Conditions on the roots
← Vieta's Formulas and Symmetric Functions
← Roots and coefficientsConditions on the roots →

Discussion (0)

Log in to join the discussion.

Loading…

and
e3e_3e3​
, so it can be found from the coefficients without solving. The sums of powers follow Newton's sums, a short rule that gives each power sum from the earlier ones.
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.

The roots of x³ - 4x² + x + 5 = 0 are α, β and γ…
Advanced · High School (11–12) · by StemPy Lab

Python Labs (1)

Newton's sums for any polynomialPython Lab · by StemPy Lab