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). You get x2−7x+12. The 7 is 3+4 and the 12 is 3×4. Is that luck? No. Expand (x−α)(x−β):
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=0 has roots α and β, divide by a first. Then
α+β=−ab,
αβ=ac.
The cubic
Expand three factors:
(x−α)(x−β)(x−γ)
=x3−e1x2+e2x−e3,
where e1, e2 and e3 are the elementary symmetric functions of the roots:
e1=α+β+γ,
e2=αβ+βγ+γα,
e3=αβγ.
So for ax3+bx2+cx+d=0,
e1=−ab,e2=ac,
e3=−ad.
Notation. Many books, and A-Level Further Mathematics, write ∑α, ∑αβ and αβγ for e1, e2 and e3. IB writes the sum as −anan−1 and the product as 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=0 with roots α1,…,αn, let ek be the sum of all products of k different roots. Then
ek=(−1)kanan−k.
For a quartic x4+px3+qx2+rx+s, this gives e1=−p, e2=q, e3=−r and e4=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 2, −1 and 3, find the three numbers first.
Sum.e1=2−1+3=4.
Pairs.e2=−2−3+6=1.
Product.e3=−6.
Write it.x3−4x2+x+6=0. Check at x=2: 8−16+2+6=0.
One root helps find the rest
The cubic x3−6x2+11x−6=0 has the root 1. Let the others be β and γ. Then
1+β+γ=6,
1⋅βγ=6.
So β+γ=5 and βγ=6, and the other roots are 2 and 3. 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.
Common mistakes
The sign of the sum. For x3+bx2+… the sum of the roots is −b, not b.
The sign of the product. For a cubic the product is −ad. For a quadratic or a quartic it is +ad.
Forgetting to divide. Divide every coefficient by the leading one first.
A repeated root. The root 2 of (x−2)2(x+1) counts twice in every sum.
Remember these
e1=−ab, e2=ac, e3=−ad for a cubic.
In general ek=(−1)kanan−k.
Monic cubic with roots α,β,γ: x3−e1x2+e2x−e3.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The roots of 2x3−5x2+4x+6=0 are α, β and γ. Find ∑α, ∑αβ and αβγ.
Write the monic cubic with roots 1, −2 and 4.
One root of x3−9x2+26x−24=0 is 4. Find the other two without dividing.
A student says that the product of the roots of x4−3x2+5x−2=0 is 2. Is that right?
Without solving, find the sum of the roots of x4+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.
. 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.