On the AIME you are rarely asked to find the roots of a polynomial. Instead you get a cubic or quartic with ugly roots and a question about some symmetric combination of them. Vieta's formulas, Newton's sums and a few evaluation tricks let you answer without ever solving the equation.
Vieta's formulas for any degree
If P(x)=anxn+an−1xn−1+⋯+a0 has roots r1,r2,…,rn (counted with multiplicity), then
P(x)=an(x−r1)(x−r2)⋯(x−rn).
Expanding the right side and matching coefficients gives the elementary symmetric sums:
and so on with alternating signs, ending with r1r2⋯rn=(−1)nana0.
For a monic cubic x3+bx2+cx+d with roots r,s,t this is the familiar
r+s+t=−b,rs+st+tr=c,rst=−d.
The real power comes from a theorem: every symmetric polynomial in the roots can be written in terms of e1,e2,…,en. So any symmetric expression is computable from the coefficients alone. Your job is to find the rewrite quickly.
Some rewrites to know cold (for three roots):
Expression
In terms of e1,e2,e3
r2+s2+t2
e12−2e2
r1+s1+t1
e3e2
(r+s)(s+t)(t+r)
e1e2−e3
r2s2+s2t2+t2r2
e22−2e1e3
r3+s3+t3
e13−3e1e2+3e3
For (r+s)(s+t)(t+r), notice r+s=e1−t, so the product is (e1−r)(e1−s)(e1−t). That is the polynomial (x−r)(x−s)(x−t) evaluated at x=e1, which leads to the next big idea.
Newton's sums
Let pk=r1k+r2k+⋯+rnk be the kth power sum. Each root satisfies the polynomial, so for a monic cubic x3−e1x2+e2x−e3 you have r3=e1r2−e2r+e3. Multiply by rk−3 and add over all three roots:
Newton's sums for a cubic
If r,s,t are the roots of x3−e1x2+e2x−e3 and pk=rk+sk+tk, then
p1=e1,p2=e1p1−2e2,p3=e1p2−e2p1+3e3,
and for k≥4,
pk=e1pk−1−e2pk−2+e3pk−3.
The first few formulas have the "extra" terms 2e2 and 3e3 because p0=3, not 1. From k=4 on it is a clean linear recursion, and the same idea works for any degree.
Common mistake
Watch the signs. Vieta's formulas alternate: for x3+bx2+cx+d, the root sum is −b and the product is −d. Before using Newton's sums, rewrite the polynomial as x3−e1x2+e2x−e3 and read off e1,e2,e3 with their signs. Also divide through by the leading coefficient first if the polynomial isn't monic.
Evaluating the polynomial
If P(x)=an(x−r1)⋯(x−rn), then plugging in a number c gives a product over the roots for free:
(c−r1)(c−r2)⋯(c−rn)=anP(c).
Two consequences show up constantly.
Products like ∏(ri2+1). Factor r2+1=(r−i)(r+i). Then ∏(ri−i)(ri+i) is P(i)P(−i) up to sign, and since P has real coefficients, P(−i)=P(i). So the product is ∣P(i)∣2 when P is monic.
Sums like ∑c−ri1. Take the logarithmic derivative of P(x)=an∏(x−ri):
P(x)P′(x)=x−r11+x−r21+⋯+x−rn1.
So ∑c−ri1=P(c)P′(c). (If you haven't seen derivatives: for a polynomial, P′(x) is found by the rule that xk becomes kxk−1.)
Tip
When a question mentions r+s, s+t, t+r (or "the sum of the other two roots"), replace r+s by e1−t. The expression usually becomes a function of a single root, and then an evaluation trick finishes it.
Worked examples
Worked example: Newton's sums
Let r,s,t be the roots of x3−4x2+2x−7=0. Find r3+s3+t3.
The roots of x3−14x2+kx−64=0 are three real numbers in geometric progression. Find k.
Write the roots as qm,m,mq. Their product is m3=64, so m=4 is a root. Plug it in: 64−224+4k−64=0, so k=56.
Check: the other two roots satisfy q4+4q=14−4=10, so q=2 and the roots are 2,4,8. Indeed 2⋅4+4⋅8+8⋅2=56.
Worked example: A product by evaluation
Let r,s,t be the roots of P(x)=x3−3x2+5x−1. Find (r2+4)(s2+4)(t2+4).
Since r2+4=(r−2i)(r+2i),
∏(r2+4)=∏(2i−r)⋅∏(−2i−r)=P(2i)P(−2i)=∣P(2i)∣2.
(Each product of three factors (c−r) equals P(c) because P is monic.) Compute P(2i)=−8i+12+10i−1=11+2i. So the answer is 112+22=125.
Worked example: The logarithmic derivative
Let r,s,t be the roots of P(x)=x3−2x2−5x+7. Find 3−r1+3−s1+3−t1.
The sum is P(3)P′(3). Here P(3)=27−18−15+7=1 and P′(x)=3x2−4x−5, so P′(3)=27−12−5=10. The answer is 10.
Without derivatives you could combine the fractions: the numerator is ∑(3−s)(3−t) and the denominator is P(3), and you would get the same 10 after more work.
Practice
Practice 1
Let a,b,c be the roots of x3−9x2+14x−3=0. Find a2+b2+c2.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
Let r,s,t be the roots of x3−5x2+3x−1=0. Find r3+s3+t3.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Let a,b,c be the roots of x3−12x2+44x−45=0. Find (a+b)(b+c)(c+a).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
The roots of x3−15x2+kx−105=0 are three real numbers in arithmetic progression. Find k.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Let r,s,t be the roots of P(x)=x3−2x2+9x−20. Find (r2+1)(s2+1)(t2+1).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Let r,s,t be the roots of x3−6x2+11x−5=0. Then
4−r1+4−s1+4−t1=nm,
where m and n are relatively prime positive integers. Find m+n.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Let a,b,c be the roots of x3−3x+1=0. Find a6+b6+c6.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
Let r,s,t be the roots of x3−6x2+3x+1=0. Then
r+s1+s+t1+t+r1=nm,
where m and n are relatively prime positive integers. Find m+n.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.