Skip to main content

Roots and coefficients of polynomials: Vieta's formulas for cubics and quartics

Syllabus dot point

“Use the relationships between roots and coefficients (Vieta's formulas) for polynomials of degree two, three and four”

HSCMaths Extension 1Functions (ME-F1, ME-F2)13 min read

Quick answer

Vieta's formulas relate the elementary symmetric functions of the roots to the coefficients of a polynomial: sum is minus the xn−1x^{n - 1} coefficient over the leading coefficient, sum-in-pairs is plus the xn−2x^{n - 2} coefficient over the leading coefficient, with the sign alternating each step until the product, which is (−1)n(-1)^n times the constant over the leading coefficient.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to relate the coefficients of a polynomial to the sums and products of its roots without solving for the roots themselves. This is Vieta's formulas. You should be able to deploy them for quadratics, cubics and quartics.

The answer

Vieta's formulas

For a polynomial of degree nn with leading coefficient ana_n and roots α1,α2,…,αn\alpha_1, \alpha_2, \dots, \alpha_n (counted with multiplicity),

P(x)=anxn+an−1xn−1+⋯+a1x+a0,P(x) = a_n x^n + a_{n - 1} x^{n - 1} + \dots + a_1 x + a_0,

the elementary symmetric functions of the roots are given by:

∑αi=−an−1an,∑i<jαiαj=an−2an,\sum \alpha_i = -\frac{a_{n - 1}}{a_n}, \qquad \sum_{i < j} \alpha_i \alpha_j = \frac{a_{n - 2}}{a_n},

∑i<j<kαiαjαk=−an−3an,∏αi=(−1)na0an.\sum_{i < j < k} \alpha_i \alpha_j \alpha_k = -\frac{a_{n - 3}}{a_n}, \qquad \prod \alpha_i = (-1)^n \frac{a_0}{a_n}.

The pattern: the kk-th elementary symmetric function equals (−1)kan−kan(-1)^k \frac{a_{n - k}}{a_n}. These are not arbitrary identities; they fall straight out of expanding the factored form an(x−α1)…(x−αn)a_n(x - \alpha_1)\dots(x - \alpha_n) and reading off coefficients, which the stage-by-stage figure below makes explicit. That is also why Vieta works without ever solving for the roots: the coefficients already encode the symmetric functions.

Key fact

For anxn+an−1xn−1+⋯+a0a_n x^n + a_{n-1}x^{n-1} + \dots + a_0 with roots counted with multiplicity, the elementary symmetric functions of the roots are the coefficients (divided by ana_n) with an alternating sign:

∑αi=−an−1an,∑i<jαiαj=+an−2an,∑i<j<kαiαjαk=−an−3an,…,∏αi=(−1)na0an.\sum \alpha_i = -\frac{a_{n-1}}{a_n}, \quad \sum_{i<j}\alpha_i\alpha_j = +\frac{a_{n-2}}{a_n}, \quad \sum_{i<j<k}\alpha_i\alpha_j\alpha_k = -\frac{a_{n-3}}{a_n}, \quad \dots, \quad \prod \alpha_i = (-1)^n\frac{a_0}{a_n}.

Two cautions that examiners exploit: divide by the leading coefficient ana_n first if the polynomial is not monic, and remember the sign alternates at every step (minus, plus, minus, ...).

Specialised formulas

Quadratic ax2+bx+ca x^2 + b x + c with roots α,β\alpha, \beta:

α+β=−ba,αβ=ca.\alpha + \beta = -\frac{b}{a}, \qquad \alpha \beta = \frac{c}{a}.

Cubic ax3+bx2+cx+da x^3 + b x^2 + c x + d with roots α,β,γ\alpha, \beta, \gamma:

α+β+γ=−ba,αβ+αγ+βγ=ca,αβγ=−da.\alpha + \beta + \gamma = -\frac{b}{a}, \qquad \alpha \beta + \alpha \gamma + \beta \gamma = \frac{c}{a}, \qquad \alpha \beta \gamma = -\frac{d}{a}.

Quartic ax4+bx3+cx2+dx+ea x^4 + b x^3 + c x^2 + d x + e with roots α,β,γ,δ\alpha, \beta, \gamma, \delta:

∑=−ba,∑pairs=ca,∑triples=−da,αβγδ=ea.\sum = -\frac{b}{a}, \qquad \sum_{\text{pairs}} = \frac{c}{a}, \qquad \sum_{\text{triples}} = -\frac{d}{a}, \qquad \alpha \beta \gamma \delta = \frac{e}{a}.

Constructing a polynomial from its roots

If the roots are α1,…,αn\alpha_1, \dots, \alpha_n, the monic polynomial with these roots is

P(x)=(x−α1)(x−α2)…(x−αn).P(x) = (x - \alpha_1)(x - \alpha_2) \dots (x - \alpha_n).

Expanding gives the coefficients directly from the symmetric functions.

Why the coefficients are the symmetric functions, stage by stage

To see exactly why Vieta's formulas hold, build a cubic from known roots and watch its coefficients appear. Take the roots 1,2,31, 2, 3.

Stage 1, form the symmetric functions of the roots. Compute the three elementary symmetric functions directly: the sum 1+2+3=61 + 2 + 3 = 6, the sum of products in pairs 1⋅2+1⋅3+2⋅3=111\cdot 2 + 1\cdot 3 + 2\cdot 3 = 11, and the product 1⋅2⋅3=61\cdot 2\cdot 3 = 6. These three numbers are what Vieta claims will show up in the coefficients.

Read the symmetric functions from the rootsA number line with the three roots one, two and three marked, and the three elementary symmetric functions computed beneath: the sum is six, the sum of products in pairs is eleven, and the product is six.Stage 1Take a cubic with roots 1, 2, 3. Form the symmetric functions of the roots.123sumα+β+γ = 6sum in pairsαβ+αγ+βγ = 11productαβγ = 61+2+3 = 6,   1·2+1·3+2·3 = 11,   1·2·3 = 6.

Stage 2, expand the factored form. Multiply out (x−1)(x−2)(x−3)(x - 1)(x - 2)(x - 3). Taking the first two factors gives x2−3x+2x^2 - 3x + 2, and multiplying by (x−3)(x - 3) gives x3−6x2+11x−6x^3 - 6x^2 + 11x - 6. This is the same cubic in standard form.

Expand the factored formExpanding the product x minus one times x minus two times x minus three. First two factors give x squared minus three x plus two, then multiplying by x minus three gives x cubed minus six x squared plus eleven x minus six.Stage 2(x - 1)(x - 2)(x - 3)= (x² - 3x + 2)(x - 3)= x³ - 6x² + 11x - 6Multiply the factors out to standard form.

Stage 3, match coefficients to the symmetric functions. Compare the expansion with x3+bx2+cx+dx^3 + bx^2 + cx + d. The x2x^2 coefficient is −6=−(sum)-6 = -(\text{sum}), the xx coefficient is 11=(sum in pairs)11 = (\text{sum in pairs}), and the constant is −6=−(product)-6 = -(\text{product}). The coefficients ARE the symmetric functions with the alternating sign, which is exactly Vieta's formulas for a monic cubic.

Match each coefficient to a symmetric functionThe expanded cubic x cubed minus six x squared plus eleven x minus six with arrows linking each coefficient to a symmetric function of the roots: minus six equals minus the sum, eleven equals the sum in pairs, and minus six equals minus the product.Stage 3x³-6x²+11x-6-(α+β+γ)= -6sum = 6αβ+αγ+βγ= 11pairs = 11-(αβγ)= -6product = 6Coefficients ARE the symmetric functions, with the sign alternating: -sum, +pairs, -product.

Useful identities involving symmetric functions

For roots α,β,γ\alpha, \beta, \gamma of a cubic,

α2+β2+γ2=(α+β+γ)2−2(αβ+αγ+βγ).\alpha^2 + \beta^2 + \gamma^2 = (\alpha + \beta + \gamma)^2 - 2(\alpha \beta + \alpha \gamma + \beta \gamma).

1α+1β+1γ=αβ+αγ+βγαβγ.\frac{1}{\alpha} + \frac{1}{\beta} + \frac{1}{\gamma} = \frac{\alpha \beta + \alpha \gamma + \beta \gamma}{\alpha \beta \gamma}.

These show up constantly in HSC problems.

How exam questions ask about roots and coefficients

The wordings cluster into a few recognisable tasks:

  • "The polynomial has roots α,β,γ\alpha, \beta, \gamma with [sum / product / a relation]. Find the unknown coefficient." Match the given symmetric function to the corresponding Vieta expression and solve. Divide by the leading coefficient first if the polynomial is not monic (see the HSC-style question above).
  • "Find α2+β2+γ2\alpha^2 + \beta^2 + \gamma^2 (or 1α+1β+1γ\frac1\alpha + \frac1\beta + \frac1\gamma, or α3+β3+γ3\alpha^3 + \beta^3 + \gamma^3)." These are symmetric in the roots, so rewrite them in terms of the elementary symmetric functions using identities such as α2+β2+γ2=(∑α)2−2∑pairsαβ\alpha^2 + \beta^2 + \gamma^2 = (\sum\alpha)^2 - 2\sum_{\text{pairs}}\alpha\beta, then substitute the Vieta values. Never solve for the roots.
  • "The roots are in arithmetic (or geometric) progression." Write the roots as a−d,a,a+da - d, a, a + d (arithmetic) or ar,a,ar\frac{a}{r}, a, ar (geometric); the middle-term structure makes the sum or product collapse neatly, pinning down aa first.
  • "One root is [given] / two roots are equal / the roots are α,−α,β\alpha, -\alpha, \beta." Substitute the root relationship into Vieta's three equations and solve the system.
  • "Find a polynomial whose roots are α+1,β+1,γ+1\alpha + 1, \beta + 1, \gamma + 1 (or 2α,2β,2γ2\alpha, 2\beta, 2\gamma, or 1α,…\frac1\alpha, \dots)." This is a transformation of roots: substitute x→x−1x \to x - 1 (or x→x2x \to \frac{x}{2}, or x→1xx \to \frac1x) into the original polynomial, or build the new symmetric functions from the old ones.
Worked example

Read off Vieta's formulas for a quadratic

For 2x2−5x+32x^2 - 5x + 3 with roots α,β\alpha, \beta, the formulas are α+β=−ba\alpha + \beta = -\frac{b}{a} and αβ=ca\alpha\beta = \frac{c}{a}, where a=2a = 2, b=−5b = -5, c=3c = 3.

α+β=−−52=52,αβ=32.\alpha + \beta = -\frac{-5}{2} = \frac{5}{2}, \qquad \alpha\beta = \frac{3}{2}.

Final answer: α+β=52\alpha + \beta = \dfrac{5}{2}, αβ=32\alpha\beta = \dfrac{3}{2}.


Use a missing x2x^2 term to constrain the sum of roots

For x3+px+q=0x^3 + px + q = 0 (no x2x^2 term), Vieta's formula for the sum gives α+β+γ=−01=0\alpha + \beta + \gamma = -\frac{0}{1} = 0. Given α=1\alpha = 1, we need 1+β+γ=01 + \beta + \gamma = 0, so β+γ=−1\beta + \gamma = -1.

(Note: the problem statement says β+γ=2\beta + \gamma = 2, but that contradicts the polynomial's zero x2x^2 coefficient. Using the correct value β+γ=−1\beta + \gamma = -1 and βγ=−3\beta\gamma = -3 instead.)

Use sum-in-pairs and product to find pp and qq:

Sum in pairs: α(β+γ)+βγ=1(−1)+(−3)=−4\alpha(\beta + \gamma) + \beta\gamma = 1(-1) + (-3) = -4. Vieta gives this equal to pp, so p=−4p = -4.

Product: αβγ=1⋅(−3)=−3\alpha\beta\gamma = 1 \cdot (-3) = -3. Vieta gives αβγ=−q\alpha\beta\gamma = -q, so q=3q = 3.

Final answer: p=−4p = -4, q=3q = 3.


Build a polynomial from its roots

The monic quartic with roots 1,2,3,41, 2, 3, 4 is:

(x−1)(x−2)(x−3)(x−4).(x - 1)(x - 2)(x - 3)(x - 4).

Multiply in pairs: (x−1)(x−2)=x2−3x+2(x - 1)(x - 2) = x^2 - 3x + 2 and (x−3)(x−4)=x2−7x+12(x - 3)(x - 4) = x^2 - 7x + 12.

Expand and verify with Vieta:

(x2−3x+2)(x2−7x+12)=x4−10x3+35x2−50x+24.(x^2 - 3x + 2)(x^2 - 7x + 12) = x^4 - 10x^3 + 35x^2 - 50x + 24.

Vieta check: sum of roots =1+2+3+4=10= 1 + 2 + 3 + 4 = 10, and the x3x^3 coefficient is −10-10. Sum in pairs =1⋅2+1⋅3+1⋅4+2⋅3+2⋅4+3⋅4=35= 1\cdot2 + 1\cdot3 + 1\cdot4 + 2\cdot3 + 2\cdot4 + 3\cdot4 = 35. Product =24= 24. All match.

Final answer: x4−10x3+35x2−50x+24x^4 - 10x^3 + 35x^2 - 50x + 24.


Find the sum of squares of the roots

For x3−3x2+4x−1x^3 - 3x^2 + 4x - 1 with roots α,β,γ\alpha, \beta, \gamma, read off:

α+β+γ=3,αβ+αγ+βγ=4.\alpha + \beta + \gamma = 3, \qquad \alpha\beta + \alpha\gamma + \beta\gamma = 4.

Apply the sum-of-squares identity:

The identity α2+β2+γ2=(α+β+γ)2−2(αβ+αγ+βγ)\alpha^2 + \beta^2 + \gamma^2 = (\alpha + \beta + \gamma)^2 - 2(\alpha\beta + \alpha\gamma + \beta\gamma) converts the known symmetric functions into the required quantity.

α2+β2+γ2=32−2(4)=9−8=1.\alpha^2 + \beta^2 + \gamma^2 = 3^2 - 2(4) = 9 - 8 = 1.

Final answer: α2+β2+γ2=1\alpha^2 + \beta^2 + \gamma^2 = 1.

Common traps
Forgetting the leading coefficient
For 2x3+bx2+cx+d2 x^3 + b x^2 + c x + d, the sum of roots is −b2-\frac{b}{2}, not −b-b. Always divide by ana_n.
Sign errors on the (−1)k(-1)^k alternation
Sum is negative of the next coefficient, sum-in-pairs is plus the one after, sum-in-triples is negative again. Track the signs carefully.
Confusing the third symmetric function with a sum
For a quartic, ∑triples\sum_{\text{triples}} adds four terms each a product of three roots, not the sum of every triple of three roots multiplied together.
Using Vieta where roots are not allowed to be repeated
Vieta's formulas count roots with multiplicity. A double root contributes twice to the sum.
Equating coefficient signs without checking
When comparing P(x)=x3+bx2+cx+dP(x) = x^3 + b x^2 + c x + d with sum-product information, always restate which Vieta gives which coefficient.
Exam technique

Vieta questions are quick marks if you set them up cleanly.

  • Make the polynomial monic first. For anxn+…a_n x^n + \dots, divide every coefficient by ana_n before reading off the symmetric functions, or your sum and product will be out by a factor.
  • Write down which Vieta gives which coefficient before substituting, for example "sum =−ba= -\frac{b}{a}, sum-in-pairs =ca= \frac{c}{a}, product =−da= -\frac{d}{a}". This catches the alternating-sign error.
  • For a non-symmetric target, do not find the roots. Convert sums of squares, reciprocals or cubes into the elementary symmetric functions with an identity, then substitute.
  • Use a progression substitution when the roots are evenly spaced or in ratio: a−d,a,a+da - d, a, a + d or ar,a,ar\frac{a}{r}, a, ar turns the conditions into easy equations.
  • Count roots with multiplicity. A repeated root contributes to every symmetric function as many times as its multiplicity.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style2 marks
The polynomial P(x)=x3−4x2+ax−6P(x) = x^3 - 4 x^2 + a x - 6 has roots α\alpha, β\beta and γ\gamma such that α+β+γ=4\alpha + \beta + \gamma = 4 and αβ+αγ+βγ=1\alpha \beta + \alpha \gamma + \beta \gamma = 1. Find the value of aa.
Show worked answer →

For a monic cubic x3+bx2+cx+dx^3 + b x^2 + c x + d with roots α,β,γ\alpha, \beta, \gamma:

  • α+β+γ=−b\alpha + \beta + \gamma = -b
  • αβ+αγ+βγ=c\alpha \beta + \alpha \gamma + \beta \gamma = c
  • αβγ=−d\alpha \beta \gamma = -d

Comparing P(x)=x3−4x2+ax−6P(x) = x^3 - 4 x^2 + a x - 6 with the standard form, b=−4b = -4, c=ac = a, d=−6d = -6.

The sum-in-pairs is cc, so a=1a = 1.

Markers reward the explicit statement of the roots-coefficients identities, the comparison of coefficients, and the answer.

HSC-style3 marks
The polynomial P(x)=2x3−x2+kx+4P(x) = 2 x^3 - x^2 + k x + 4 has roots that sum to 12\frac{1}{2}. Given that the product of the roots is −2-2, find the values of kk and the third symmetric function of the roots.
Show worked answer →

Rewrite as monic: P(x)=2(x3−12x2+k2x+2)P(x) = 2 \left( x^3 - \frac{1}{2} x^2 + \frac{k}{2} x + 2 \right).

Let the roots be α,β,γ\alpha, \beta, \gamma.

Sum: α+β+γ=12\alpha + \beta + \gamma = \frac{1}{2}. This matches the negative of the x2x^2 coefficient in the monic form, 12\frac{1}{2}. Consistent.

Product: αβγ=−2\alpha \beta \gamma = -2. From the monic form, αβγ=−2\alpha \beta \gamma = -2. Consistent.

Sum-in-pairs: αβ+αγ+βγ=k2\alpha \beta + \alpha \gamma + \beta \gamma = \frac{k}{2}. The third symmetric function is this value.

Without additional information kk cannot be pinned down from sum and product alone (those constrain two of the three symmetric functions). If, instead, a relation between roots is given, substitute and solve.

Markers reward correctly extracting Vieta from the non-monic polynomial (dividing through by the leading coefficient first), and identifying which symmetric function each Vieta expression gives.

Practise this

Sources & how we know this

ExamExplained