Skip to main content
ExamExplained
NSW · Maths Extension 1
Maths Extension 1 study scene
§-Syllabus dot point
NSWMaths Extension 1Syllabus dot point

How do the coefficients of a polynomial relate to the sum and product of its roots?

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

A focused answer to the HSC Maths Extension 1 dot point on the relationships between roots and coefficients. Sum and product of roots, sum of roots taken in pairs, and applications to building polynomials from given root conditions, with worked examples.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

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+an1xn1++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=an1an,i<jαiαj=an2an,\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=an3an,α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)kankan(-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.

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 12+13+23=111\cdot 2 + 1\cdot 3 + 2\cdot 3 = 11, and the product 123=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 (x1)(x2)(x3)(x - 1)(x - 2)(x - 3). Taking the first two factors gives x23x+2x^2 - 3x + 2, and multiplying by (x3)(x - 3) gives x36x2+11x6x^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 3-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=(α+β+γ)22(αβ+αγ+βγ).\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 2021 HSC 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=(α)22pairsαβ\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 ad,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 xx1x \to x - 1 (or xx2x \to \frac{x}{2}, or x1xx \to \frac1x) into the original polynomial, or build the new symmetric functions from the old ones.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2023 HSC Q52 marksThe polynomial P(x)=x34x2+ax6P(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)=x34x2+ax6P(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.

2021 HSC Q113 marksThe polynomial P(x)=2x3x2+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(x312x2+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.

ExamExplained