Lemonmath
Tiếng Việt

Viète's theorem and its applications

Lesson 6.3 · 20 min read · Updated

François Viète (1540–1603) was a lawyer, a royal counsellor to King Henry III of France and later worked for King Henry IV. He decoded secret letters sent to King Philip II of Spain, so that Henry IV learnt of his enemy's military plans. In mathematics, he introduced the first systematic algebraic notation: vowels for the unknowns and consonants for the known numbers, which let him write general rules for every equation (MacTutor, University of St Andrews). The link between roots and coefficients that we study today bears his name.

Minh tells the class: "The equation x2−7x+12=0x^2-7x+12=0 has roots 33 and 44. I knew at once, without working out Δ\Delta, because 3+4=73+4=7 and 3⋅4=123\cdot4=12." Was Minh lucky, or is there a rule behind it? And if there is, what can that rule do for us?

Viète's theorem

Explore: the sum and product of the roots

We solve a few equations (with the quadratic formula) and work out the sum and product of the roots:

Equation Roots x1+x2x_1+x_2 x1x2x_1x_2
x2−5x+6=0x^2-5x+6=0 22; 33 55 66
2x2−7x+3=02x^2-7x+3=0 33; 12\frac12 72\frac72 32\frac32
x2+2x−8=0x^2+2x-8=0 22; −4-4 −2-2 −8-8

In the second row the sum is 72=−(−7)2\dfrac72=\dfrac{-(-7)}{2} and the product is 32\dfrac32: the sum is always −ba-\dfrac{b}{a} and the product is always ca\dfrac{c}{a}.

Why? When Δ≥0\Delta\geq0, add and multiply the two roots −b±Δ2a\dfrac{-b\pm\sqrt\Delta}{2a} (lesson quadratic equations); the square roots cancel:

x1+x2=−2b2a=−ba,x1x2=(−b)2−(Δ)24a2=b2−(b2−4ac)4a2=ca.x_1+x_2=\frac{-2b}{2a}=-\frac ba,\qquad x_1x_2=\frac{(-b)^2-(\sqrt\Delta)^2}{4a^2}=\frac{b^2-(b^2-4ac)}{4a^2}=\frac ca.

Going deeper. If x1x_1, x2x_2 are the roots, then (x−x1)(x−x2)=x2−(x1+x2)x+x1x2(x-x_1)(x-x_2)=x^2-(x_1+x_2)x+x_1x_2. Comparing this with x2+bax+cax^2+\dfrac bax+\dfrac ca (the equation divided by aa), we see that Viète's theorem is very natural. But the theorem only talks about roots that exist: always check that Δ≥0\Delta\geq0 (or that aa and cc have opposite signs) before using it.

From the sum SS and the product PP we can work out many "symmetric" expressions (swapping x1x_1 and x2x_2 does not change their value), for example x12+x22=(x1+x2)2−2x1x2=S2−2Px_1^2+x_2^2=(x_1+x_2)^2-2x_1x_2=S^2-2P.

Finding the roots mentally

Substituting x=1x=1 into ax2+bx+cax^2+bx+c gives a+b+ca+b+c; substituting x=−1x=-1 gives a−b+ca-b+c. Together with the product x1x2=cax_1x_2=\dfrac ca, we find the other root at once.

Part c) shows the power of this method: with the quadratic formula you would have to work out Δ=20272−4⋅2026=20252\Delta=2027^2-4\cdot2026=2025^2.

Finding two numbers from their sum and product

Viète's theorem also works backwards: if two numbers uu, vv have u+v=Su+v=S and uv=Puv=P, then (x−u)(x−v)=x2−Sx+P(x-u)(x-v)=x^2-Sx+P, so uu and vv are the roots of x2−Sx+P=0x^2-Sx+P=0.

12 m5 m60 m²ABCD
The garden 1212 m ×\times 55 m

The signs of the roots

Without solving, SS and PP tell us the signs of the two roots (when the equation has roots):

  • P<0P<0: the roots have opposite signs (then aa and cc have opposite signs, so the equation certainly has two roots);
  • Δ≥0\Delta\geq0, P>0P>0, S>0S>0: both roots are positive;
  • Δ≥0\Delta\geq0, P>0P>0, S<0S<0: both roots are negative.

The reason: a negative product means the numbers have different signs; a positive product means the same sign, and the sum shows which sign.

Connections. Viète's theorem follows directly from the quadratic formula and gives a new point of view: instead of finding each root, we work with the pair (S,P)(S, P). This point of view is used a lot in solving word problems by forming equations (rectangle problems), in factorising ax2+bx+c=a(x−x1)(x−x2)ax^2+bx+c=a(x-x_1)(x-x_2), and it is a standard question type in the grade 10 entrance exam.

Key terms

Summary

  • If Δ≥0\Delta\geq0: x1+x2=−bax_1+x_2=-\dfrac ba, x1x2=cax_1x_2=\dfrac ca.
  • a+b+c=0a+b+c=0: roots 11 and ca\dfrac ca; a−b+c=0a-b+c=0: roots −1-1 and −ca-\dfrac ca.
  • Two numbers with sum SS and product PP are the roots of x2−Sx+P=0x^2-Sx+P=0 (need S2−4P≥0S^2-4P\geq0).
  • x12+x22=S2−2Px_1^2+x_2^2=S^2-2P; 1x1+1x2=SP\dfrac1{x_1}+\dfrac1{x_2}=\dfrac SP.
  • P<0P<0: opposite signs; P>0P>0, S>0S>0: both positive; P>0P>0, S<0S<0: both negative (when Δ≥0\Delta\geq0).

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Without solving, find the sum and the product of the roots (if any) of each equation:

a) x2−6x+2=0x^2-6x+2=0.

b) 3x2+5x−4=03x^2+5x-4=0.

c) x2+x+1=0x^2+x+1=0.

What you need and how to start

What you need: Viète's theorem, used only when the equation has roots.

Steps:

  1. Check that Δ≥0\Delta\geq0 or that aa and cc have opposite signs.
  2. Work out −ba-\dfrac ba and ca\dfrac ca.
Show solution

a) We have Δ′=9−2=7>0\Delta'=9-2=7>0, so x1+x2=6x_1+x_2=6 and x1x2=2x_1x_2=2.

b) We have a=3a=3 and c=−4c=-4 of opposite signs, so the equation has two roots, with x1+x2=−53x_1+x_2=-\dfrac53 and x1x2=−43x_1x_2=-\dfrac43.

c) We have Δ=1−4=−3<0\Delta=1-4=-3<0, so the equation has no solutions.

So a) S=6S=6, P=2P=2; b) S=−53S=-\dfrac53, P=−43P=-\dfrac43; c) there are no roots.

Answer. a) 66 and 22; b) −53-\dfrac53 and −43-\dfrac43; c) the equation has no solutions.

Exercise 2

Find the roots of the following equations mentally:

a) 5x2−3x−2=05x^2-3x-2=0.

b) x2+9x+8=0x^2+9x+8=0.

c) 7x2+4x−3=07x^2+4x-3=0.

What you need and how to start

What you need: check a+b+ca+b+c or a−b+ca-b+c.

Steps:

  1. Work out a+b+ca+b+c; if it is not 00, work out a−b+ca-b+c.
  2. Write the other root ca\dfrac ca or −ca-\dfrac ca.
Show solution

a) We have 5−3−2=05-3-2=0, so x1=1x_1=1 and x2=−25x_2=-\dfrac25.

b) We have 1−9+8=01-9+8=0, so x1=−1x_1=-1 and x2=−8x_2=-8.

c) We have 7−4−3=07-4-3=0, so x1=−1x_1=-1 and x2=37x_2=\dfrac37.

So a) 11; −25-\dfrac25. b) −1-1; −8-8. c) −1-1; 37\dfrac37.

Answer. a) 11; −25-\dfrac25. b) −1-1; −8-8. c) −1-1; 37\dfrac37.

Exercise 3

The equation x2−4x+1=0x^2-4x+1=0 has the root x1=2+3x_1=2+\sqrt3. Find the other root. (Revise rationalising the denominator.)

What you need and how to start

What you need: x1+x2=4x_1+x_2=4 (or x1x2=1x_1x_2=1).

Steps:

  1. Work out x2=4−x1x_2=4-x_1.
  2. Check with the product: x2=12+3x_2=\dfrac1{2+\sqrt3}.
Show solution

By Viète's theorem, x1+x2=4x_1+x_2=4, so x2=4−(2+3)=2−3x_2=4-(2+\sqrt3)=2-\sqrt3. Check with the product: (2+3)(2−3)=4−3=1=ca(2+\sqrt3)(2-\sqrt3)=4-3=1=\dfrac ca.

So the other root is x2=2−3x_2=2-\sqrt3.

Answer. x2=2−3x_2=2-\sqrt3.

Exercise 4

Find the two numbers uu, vv in each case:

a) u+v=10u+v=10, uv=21uv=21.

b) u+v=−3u+v=-3, uv=−40uv=-40.

c) u+v=6u+v=6, uv=10uv=10.

What you need and how to start

What you need: uu, vv are the roots of x2−Sx+P=0x^2-Sx+P=0, which needs S2−4P≥0S^2-4P\geq0.

Steps:

  1. Form the equation x2−Sx+P=0x^2-Sx+P=0.
  2. Solve it (or show that it has no solutions).
Show solution

a) uu, vv are the roots of x2−10x+21=0x^2-10x+21=0. We have Δ′=25−21=4\Delta'=25-21=4, so x=5±2x=5\pm2, that is x=7x=7 or x=3x=3.

b) uu, vv are the roots of x2+3x−40=0x^2+3x-40=0. We have Δ=9+160=169\Delta=9+160=169, so x=−3±132x=\dfrac{-3\pm13}{2}, that is x=5x=5 or x=−8x=-8.

c) We have S2−4P=36−40=−4<0S^2-4P=36-40=-4<0, so there are no such numbers.

So a) {u,v}={7,3}\{u, v\}=\{7, 3\}; b) {u,v}={5,−8}\{u, v\}=\{5, -8\}; c) they do not exist.

Answer. a) 77 and 33; b) 55 and −8-8; c) none.

Exercise 5

Let x1x_1, x2x_2 be the roots of the equation x2−3x−5=0x^2-3x-5=0. Without solving the equation, find:

a) x12+x22x_1^2+x_2^2.

b) 1x1+1x2\dfrac1{x_1}+\dfrac1{x_2}.

c) x12x2+x1x22x_1^2x_2+x_1x_2^2.

What you need and how to start

What you need: S=x1+x2S=x_1+x_2, P=x1x2P=x_1x_2; write each expression in terms of SS and PP.

Steps:

  1. Check that the equation has two roots and find SS, PP.
  2. Use S2−2PS^2-2P, SP\dfrac SP and x1x2(x1+x2)=PSx_1x_2(x_1+x_2)=PS.
Show solution

We have a=1a=1 and c=−5c=-5 of opposite signs, so the equation has two roots, with S=3S=3 and P=−5P=-5. Hence

x12+x22=9+10=19,1x1+1x2=3−5=−35,x12x2+x1x22=PS=−15.x_1^2+x_2^2=9+10=19,\qquad \frac1{x_1}+\frac1{x_2}=\frac{3}{-5}=-\frac35,\qquad x_1^2x_2+x_1x_2^2=PS=-15.

So a) 1919; b) −35-\dfrac35; c) −15-15.

Answer. a) 1919; b) −35-\dfrac35; c) −15-15.

Exercise 6

Without solving, find the signs of the roots of each equation:

a) 2x2+5x−9=02x^2+5x-9=0.

b) x2−10x+7=0x^2-10x+7=0.

c) x2+8x+3=0x^2+8x+3=0.

What you need and how to start

What you need: P<0P<0: opposite signs; Δ≥0\Delta\geq0 and P>0P>0: both have the sign of SS.

Steps:

  1. Work out PP; if P>0P>0, check Δ′\Delta' and work out SS.
Show solution

a) We have P=−92<0P=-\dfrac92<0, so the roots have opposite signs.

b) We have Δ′=25−7=18>0\Delta'=25-7=18>0, P=7>0P=7>0 and S=10>0S=10>0, so both roots are positive.

c) We have Δ′=16−3=13>0\Delta'=16-3=13>0, P=3>0P=3>0 and S=−8<0S=-8<0, so both roots are negative.

So a) opposite signs; b) both positive; c) both negative.

Answer. a) Opposite signs; b) two positive roots; c) two negative roots.

Exercise 7

Suppose a rectangular outdoor sports court with spectator area has perimeter 120120 m and area 875875 m². Find the length and the width of the pitch.

What you need and how to start

What you need: the two sides have sum S=60S=60 and product P=875P=875.

Steps:

  1. Form the equation x2−60x+875=0x^2-60x+875=0.
  2. Solve it with the reduced discriminant.
Show solution

The two sides of the pitch are the roots of x2−60x+875=0x^2-60x+875=0. We have Δ′=900−875=25\Delta'=900-875=25, so x=30±5x=30\pm5, that is x=35x=35 or x=25x=25.

So the pitch is 3535 m long and 2525 m wide.

Answer. 3535 m and 2525 m.

Exercise 8

(1.5 marks) Consider the equation x2−5x+2=0x^2-5x+2=0.

a) Prove that the equation has two distinct roots x1x_1, x2x_2.

b) Without solving the equation, find x12+x22x_1^2+x_2^2.

c) Find the value of the expression A=x1x2+x2x1A=\dfrac{x_1}{x_2}+\dfrac{x_2}{x_1}.

What you need and how to start

What you need: Δ>0\Delta>0; x12+x22=S2−2Px_1^2+x_2^2=S^2-2P; over a common denominator A=x12+x22x1x2A=\dfrac{x_1^2+x_2^2}{x_1x_2}.

Steps:

  1. Work out Δ\Delta.
  2. Find SS, PP, then S2−2PS^2-2P.
  3. Use the result of part b) in part c).
Show solution

a) We have Δ=25−8=17>0\Delta=25-8=17>0, so the equation has two distinct roots.

b) By Viète's theorem, S=5S=5 and P=2P=2. Hence x12+x22=25−4=21x_1^2+x_2^2=25-4=21.

c) We have A=x12+x22x1x2=212A=\dfrac{x_1^2+x_2^2}{x_1x_2}=\dfrac{21}{2}.

So b) x12+x22=21x_1^2+x_2^2=21; c) A=212A=\dfrac{21}2.

Answer. a) Δ=17>0\Delta=17>0; b) 2121; c) 212\dfrac{21}{2}.

Exercise 9 Challenge

Let x1x_1, x2x_2 be the roots of the equation x2−6x+4=0x^2-6x+4=0. Prove that both roots are positive, then find x1+x2\sqrt{x_1}+\sqrt{x_2}.

What you need and how to start

What you need: the signs of the roots; (x1+x2)2=x1+x2+2x1x2(\sqrt{x_1}+\sqrt{x_2})^2=x_1+x_2+2\sqrt{x_1x_2}.

Steps:

  1. Work out Δ′\Delta', SS, PP.
  2. Square the required expression and use SS, PP.
  3. Take the square root, remembering that the expression is positive.
Show solution

We have Δ′=9−4=5>0\Delta'=9-4=5>0, S=6>0S=6>0 and P=4>0P=4>0, so both roots are positive. Let T=x1+x2>0T=\sqrt{x_1}+\sqrt{x_2}>0; then

T2=x1+x2+2x1x2=6+24=10.T^2=x_1+x_2+2\sqrt{x_1x_2}=6+2\sqrt4=10.

Since T>0T>0, T=10T=\sqrt{10}.

So x1+x2=10\sqrt{x_1}+\sqrt{x_2}=\sqrt{10}.

Answer. 10\sqrt{10}.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The sum of the roots of the equation 2x2−6x−5=02x^2-6x-5=0 is
Question 2. The product of the roots of the equation 3x2+7x−6=03x^2+7x-6=0 is
Question 3. The roots of the equation 4x2−9x+5=04x^2-9x+5=0 are
Question 4. Two numbers with sum 99 and product 2020 are the roots of the equation

Part II. True or false

Question 1. The equation x2−3x−10=0x^2-3x-10=0 has two roots x1x_1, x2x_2. Decide whether each statement is true or false.
a) The equation has two roots of opposite signs.
b) x1+x2=−3x_1+x_2=-3.
c) x1x2=−10x_1x_2=-10.
d) x12+x22=29x_1^2+x_2^2=29.

Part III. Short answer

Question 1. Let x1x_1, x2x_2 be the roots of the equation x2−7x+2=0x^2-7x+2=0. Find x12+x22x_1^2+x_2^2.

Question 2. Find mentally the larger root of the equation 2x2−11x+9=02x^2-11x+9=0 (give your answer as a decimal).

Show answers and explanations
  1. Part I, question 1: A. aa and cc have opposite signs, so there are two roots; S=−−62=3S=-\dfrac{-6}{2}=3. B has the wrong sign, C is the product, and D forgets to divide by aa.
  2. Part I, question 2: A. P=ca=−63=−2P=\dfrac ca=\dfrac{-6}{3}=-2. B has the wrong sign, C is the sum, and D forgets to divide by aa.
  3. Part I, question 3: A. a+b+c=4−9+5=0a+b+c=4-9+5=0, so x1=1x_1=1 and x2=ca=54x_2=\dfrac ca=\dfrac54. B uses the rule for a−b+c=0a-b+c=0 by mistake, C has the wrong sign of ca\dfrac ca, and D forgets to divide by aa.
  4. Part I, question 4: A. The equation is x2−Sx+P=0x^2-Sx+P=0 with S=9S=9, P=20P=20. B has the wrong sign of SS, C swaps SS and PP, and D has the wrong signs of both SS and PP.
  5. Part II, question 1: a) True; b) False; c) True; d) True. a) True: P=−10<0P=-10<0. b) False: S=3S=3. c) True. d) True: 9+20=299+20=29.
  6. Part III, question 1: 45. Δ=41>0\Delta=41>0, S=7S=7, P=2P=2, so x12+x22=49−4=45x_1^2+x_2^2=49-4=45.
  7. Part III, question 2: 4.5. a+b+c=2−11+9=0a+b+c=2-11+9=0, so the roots are 11 and 92=4.5\dfrac92=4.5.