Overview

Quick Refresher:

Polynomial: a mathematical expression consisting of variables (also called indeterminates), coefficients, and constants, combined using addition, subtraction, and multiplication. e.g. 5x216x+75x^2 - 16x + 7

Roots: Any constant that when plugged into a polynomial results in a value of 0. The roots of x25x+6x^2 - 5x + 6 are 22 and 33.

Vieta's formulas provide quick ways to find the sum of the products of some combination of the roots of a polynomial. Rather than strenuously finding roots of a polynomial, vieta's formulas (commonly referred to as vieta's) help us find the sum, pairwise sum, product, etc. of the roots of a polynomial without knowing a single root!

Key Ideas

Suppose you are tasked with finding the sum of the roots of a nasty quadratic like:

26238x237293x+2791926238x^2 - 37293x + 27919

Obviously, finding the roots here is simply not feasible (don't even try it!). However, with vieta's, all we need to know is some of the coefficients.

Consider the quadratic ax2+bx+c=0ax^2+bx+c=0 with roots r,sr,s: r+s=bar+s=-\frac{b}{a}, rs=cars=\frac{c}{a}.

All this denotes is that to find the sum of the roots of a quadratic, we need the xx coefficient, bb and the x2x^2 coefficient, aa, and evaluate ba\frac{-b}{a}. So in our case, the answer would be 37293/2623837293/26238

General Form

More generally, Vieta's formulas can be utilized for polynomials of any positive integral degree.

Consider a degree nn polynomial with leading coefficient ana_n and roots r1,r2,,rnr_1, r_2, \dots, r_n:

anxn+an1xn1++a1x+a0=0a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0 = 0

Vieta's formulas tell us:

r1+r2++rn=an1anr_1 + r_2 + \cdots + r_n = -\dfrac{a_{n-1}}{a_n}

i<jrirj=an2an\displaystyle\sum_{i < j} r_i r_j = \dfrac{a_{n-2}}{a_n}

i<j<krirjrk=an3an\displaystyle\sum_{i < j < k} r_i r_j r_k = -\dfrac{a_{n-3}}{a_n}

\vdots

r1r2rn=(1)na0anr_1 r_2 \cdots r_n = (-1)^n \dfrac{a_0}{a_n}

In general, the sum of all products of kk roots taken at a time equals (1)kankan(-1)^k \dfrac{a_{n-k}}{a_n}.

Notice the alternating sign: each successive formula picks up an extra factor of 1-1. This comes directly from expanding (xr1)(xr2)(xrn)(x - r_1)(x - r_2)\cdots(x - r_n) and matching coefficients.

Usecases

Many problems in math contests involve finding some sum or product of the roots of a polynomial. Also, higher powers of those roots are also involved. For instance, you may be tasked to find r2+s2r^2 + s^2 where r,sr, s are the roots of a quadratic. We will go through some common patterns alongside their derivations.

Throughout this section, let r,sr, s be roots of ax2+bx+c=0ax^2 + bx + c = 0, so r+s=bar + s = -\frac{b}{a} and rs=cars = \frac{c}{a}.

r2+s2r^2 + s^2

We use the identity (r+s)2=r2+2rs+s2(r+s)^2 = r^2 + 2rs + s^2, so:

r2+s2=(r+s)22rs=b2a22ca=b22aca2r^2 + s^2 = (r+s)^2 - 2rs = \dfrac{b^2}{a^2} - \dfrac{2c}{a} = \dfrac{b^2 - 2ac}{a^2}

r3+s3r^3 + s^3

We use the factorization r3+s3=(r+s)(r2rs+s2)=(r+s)((r2+s2)rs)r^3 + s^3 = (r+s)(r^2 - rs + s^2) = (r+s)((r^2+s^2) - rs). Substituting:

r3+s3=(r+s)((r+s)23rs)=ba(b2a23ca)=b(b23ac)a3r^3 + s^3 = (r+s)\left((r+s)^2 - 3rs\right) = \dfrac{-b}{a}\left(\dfrac{b^2}{a^2} - \dfrac{3c}{a}\right) = \dfrac{-b(b^2 - 3ac)}{a^3}

rsr - s

We use (rs)2=(r+s)24rs(r-s)^2 = (r+s)^2 - 4rs:

rs=±(r+s)24rs=±b24acar - s = \pm\sqrt{(r+s)^2 - 4rs} = \pm\dfrac{\sqrt{b^2 - 4ac}}{a}

Notice this is just ±\pm the discriminant over aa, which makes sense.

Newton's Sums (General Power Sums)

For higher powers, Newton's sums give a systematic approach. Define Pk=rk+skP_k = r^k + s^k. Then:

P1=r+sP_1 = r + s

Pk=(r+s)Pk1rsPk2P_k = (r+s) \cdot P_{k-1} - rs \cdot P_{k-2} for k2k \geq 2

So each power sum is expressible purely in terms of the previous two and Vieta's quantities. For example:

P4=(r+s)P3rsP2P_4 = (r+s) \cdot P_3 - rs \cdot P_2

This recurrence generalizes to degree nn polynomials: PkP_k satisfies a recurrence whose coefficients are exactly (up to sign) the coefficients of the polynomial.

1r+1s\frac{1}{r} + \frac{1}{s}

1r+1s=r+srs=b/ac/a=bc\dfrac{1}{r} + \dfrac{1}{s} = \dfrac{r + s}{rs} = \dfrac{-b/a}{c/a} = \dfrac{-b}{c}

More generally, 1rk+1sk=Pk(rs)k\frac{1}{r^k} + \frac{1}{s^k} = \frac{P_k}{(rs)^k}, so reciprocal power sums reduce to ordinary power sums.

Reciprocal Roots via Polynomial Manipulation

Rather than applying formulas, we can directly construct the polynomial whose roots are 1r\frac{1}{r} and 1s\frac{1}{s} by reversing the order of coefficients. If ax2+bx+c=0ax^2 + bx + c = 0 has roots r,sr, s, then substituting x1xx \to \frac{1}{x} and multiplying through by x2x^2:

a1x2+b1x+c=0    cx2+bx+a=0a \cdot \frac{1}{x^2} + b \cdot \frac{1}{x} + c = 0 \implies cx^2 + bx + a = 0

So the polynomial with roots 1r,1s\frac{1}{r}, \frac{1}{s} is just the original polynomial with coefficients reversed. Vieta's applied to this new polynomial immediately gives 1r+1s=bc\frac{1}{r} + \frac{1}{s} = -\frac{b}{c} and 1rs=ac\frac{1}{rs} = \frac{a}{c}, consistent with what we found above.

Shifted Roots via Polynomial Manipulation

Suppose we want the polynomial whose roots are r+kr + k and s+ks + k for some constant kk. Substituting xxkx \to x - k into the original polynomial gives a new polynomial whose roots are exactly r+kr + k and s+ks + k:

a(xk)2+b(xk)+c=0a(x-k)^2 + b(x-k) + c = 0

Expanding: ax2+(b2ak)x+(ak2bk+c)=0ax^2 + (b - 2ak)x + (ak^2 - bk + c) = 0

Applying Vieta's to this shifted polynomial:

(r+k)+(s+k)=(b2ak)a=ba+2k=(r+s)+2k(r+k) + (s+k) = \dfrac{-(b-2ak)}{a} = -\dfrac{b}{a} + 2k = (r+s) + 2k

(r+k)(s+k)=ak2bk+ca=rs+k(r+s)+k2(r+k)(s+k) = \dfrac{ak^2 - bk + c}{a} = rs + k(r+s) + k^2

This technique generalizes: to find Vieta's quantities for any transformation of the roots, substitute xf1(x)x \to f^{-1}(x) into the original polynomial and read off the new coefficients.

Example Problem

The harmonic mean of a collection of numbers is the reciprocal of the arithmetic mean of the reciprocals of the numbers in the collection. For example, the harmonic mean of 4,4,4, 4, and 55 is

113(14+14+15)=307\frac{1}{\frac{1}{3}\left(\frac{1}{4}+\frac{1}{4}+\frac{1}{5}\right)}=\frac{30}{7}

What is the harmonic mean of all the real roots of the 40504050th degree polynomial

k=12025(kx24x3)=(x24x3)(2x24x3)(3x24x3)(2025x24x3)?\prod_{k=1}^{2025} (kx^2-4x-3)=(x^2-4x-3)(2x^2-4x-3)(3x^2-4x-3)\cdots(2025x^2-4x-3)?

This problem seems scary but the key is to break it down. The reciprocal of the harmonic mean we can ignore for now, we can simply compute the arithmetic mean of the reciprocal of the roots of the given expression. This will involve knowing the sum of the reciprocal of the roots and the number of roots. As stated above, the sum of the reciprocal of roots can be easily found by flipping the coefficients of the polynomial. But how? We don't even have a simple polynomial!

The key here is to realize that we don't care about the entire polynomial. Since we only want the sum of the reciprocal of the roots, we care about the coefficient of the xx term in the expression as when we flip coefficients, that coefficient will be the coefficient of the 2nd largest degree term which we need to find the sum of the reciprocals (this is derived from Vieta's). So, it remains to find the xx coefficient of the expression.

To get an xx, you must have 20242024 constant terms and one 'xx' term. There are (20251)\binom{2025}{1} = 2025 ways this can happen (as we need one xx term and we have a total of 20252025). So, the coefficient will be 2025432024-2025\cdot4\cdot3^{2024}. The quantity is negative as all xx terms have a negative sign attached, so getting one xx term will give a negative factor. Also, note that to find the sum of the reciprocal of the roots, we also need the coefficient of the largest degree term in the reversed polynomial, i.e, the constant term in the non-reversed/original polynomial. This is simply 32025-3^{2025}. Hence, the sum of the reciprocal of the roots = (202543202432025)=81003=2700-\left(\dfrac{-2025 \cdot4\cdot 3^{2024}}{-3^{2025}}\right) = \dfrac{-8100}{3} = -2700

Since we wanted the arithmetic mean of the sum of reciprocal of roots, we need to divide by the number of roots (recall arithmetic mean = sum of all values divided by the number of values) which is 22025=40502\cdot2025 = 4050 (2025 quadratic each with 22 roots).

Dividing the above result by 40504050 and taking the reciprocal of that we get: 127004050=32\dfrac{1}{\frac{-2700}{4050}} = \boxed{-\dfrac{3}{2}}

Practice Problems

StatusSourceProblem NameDifficultyTags
AIMEMedium
Show TagsAlgebra, Quadratic, Substitution
AMC 12BMedium
Show TagsAlgebra, Polynomials, Vieta's Formulas
AMC 10AEasy
Show TagsAlgebra, Quadratic, Vieta's Formulas
AMC 12BMedium
AMC 10AEasy
Show TagsAbsolute Value, Algebra, Equations
AMC 12BEasy
Show TagsAlgebra, Quadratic, Vieta's Formulas
AMC 12BMedium

Module Progress:

Join the AoPS Community!

Stuck on a problem, or don't understand a module? Join the AoPS community and get help from other math contest students.