TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Viete's Formulas: Sum, Product, and Signs of Roots

Viete's Formulas: Sum, Product, and Signs of Roots

In the late 16th century, the French mathematician François Viète discovered a deep and elegant relationship between the coefficients of a polynomial and its roots.

Instead of laboriously computing roots through radicals, Viète's formulas allow you to find the sum and product of the roots instantly. They also let you determine whether roots are positive, negative, or of opposite signs, and evaluate complicated symmetric expressions without ever finding the roots themselves!


1. Concepts & Paper Visuals

Paper Derivation of Viète's Formulas

Consider a quadratic equation in standard form with a≠0a \neq 0:

ax2+bx+c=0ax^2 + bx + c = 0

Dividing both sides by the leading coefficient aa gives the monic form:

x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0

Now, suppose the equation has two real roots, x1x_1 and x2x_2. By the Factor Theorem, the polynomial must factor into:

(x−x1)(x−x2)=0(x - x_1)(x - x_2) = 0

Expand this product using the FOIL method on paper:

(x−x1)(x−x2)=x2−x2x−x1x+x1x2=x2−(x1+x2)x+x1x2=0\begin{aligned} (x - x_1)(x - x_2) &= x^2 - x_2 x - x_1 x + x_1 x_2 \\ &= x^2 - (x_1 + x_2)x + x_1 x_2 = 0 \end{aligned}

Now align the two equations term-by-term:

x2+(ba)x+(ca)=0x2−(x1+x2)x+(x1x2)=0\begin{array}{rccclll} x^2 &+& \left(\dfrac{b}{a}\right)x &+& \left(\dfrac{c}{a}\right) &=& 0 \\[8pt] x^2 &-& (x_1 + x_2)x &+& (x_1 x_2) &=& 0 \end{array}

Equating matching coefficients yields Viète's Formulas:

Sum:S=x1+x2=−baProduct:P=x1⋅x2=ca\begin{aligned} \text{\textbf{Sum:}} \quad S &= x_1 + x_2 = -\frac{b}{a} \\[6pt] \text{\textbf{Product:}} \quad P &= x_1 \cdot x_2 = \frac{c}{a} \end{aligned}

Condition for Existence: Viète's formulas hold for real roots if and only if the equation actually has real roots, which requires:

Δ=b2−4ac≥0\Delta = b^2 - 4ac \ge 0

Determining the Signs of Roots Without Solving

By inspecting the signs of the product P=caP = \frac{c}{a} and the sum S=−baS = -\frac{b}{a}, you can deduce the signs of the roots at a glance:

                      ┌──────────────────────┐
                      │   Product P = c/a    │
                      └──────────┬───────────┘
                                 │
         ┌───────────────────────┴───────────────────────┐
         │                                               │
         ▼                                               ▼
      P < 0                                           P > 0
Roots have OPPOSITE signs                       Roots have SAME sign
(x₁ < 0 < x₂)                                            │
                                         ┌───────────────┴───────────────┐
                                         │                               │
                                         ▼                               ▼
                                       S > 0                           S < 0
                                Both roots POSITIVE             Both roots NEGATIVE
                                  (0 < x₁ ≤ x₂)                   (x₁ ≤ x₂ < 0)
  1. If P<0P < 0 (cc and aa have opposite signs):
    • The roots have opposite signs (x1<0<x2x_1 < 0 < x_2).
    • Note: When ac<0ac < 0, Δ=b2−4ac=b2+4∣ac∣>0\Delta = b^2 - 4ac = b^2 + 4|ac| > 0 is automatically guaranteed! You do not even need to check Δ\Delta.
  2. If P>0P > 0 and S>0S > 0 (and Δ≥0\Delta \ge 0):
    • Both roots are strictly positive (0<x1≤x20 < x_1 \le x_2).
  3. If P>0P > 0 and S<0S < 0 (and Δ≥0\Delta \ge 0):
    • Both roots are strictly negative (x1≤x2<0x_1 \le x_2 < 0).

Special Mental Math Shortcuts

Before calculating Δ\Delta, check these two remarkable paper sum conditions:

  1. If a+b+c=0a + b + c = 0:
    • Substituting x=1x = 1 into ax2+bx+cax^2 + bx + c gives a(1)2+b(1)+c=a+b+c=0a(1)^2 + b(1) + c = a + b + c = 0.
    • Therefore, the roots are immediately:
      x1=1,x2=cax_1 = 1, \qquad x_2 = \frac{c}{a}
  2. If a−b+c=0a - b + c = 0:
    • Substituting x=−1x = -1 gives a(−1)2+b(−1)+c=a−b+c=0a(-1)^2 + b(-1) + c = a - b + c = 0.
    • Therefore, the roots are immediately:
      x1=−1,x2=−cax_1 = -1, \qquad x_2 = -\frac{c}{a}

2. Calculating Symmetric Expressions on Paper

A symmetric expression in x1x_1 and x2x_2 is one that remains unchanged if x1x_1 and x2x_2 are swapped. Using the fundamental identities, we can express any symmetric polynomial in terms of SS and PP:

Symmetric Expression Algebraic Identity in SS and PP
Sum of Squares x12+x22=(x1+x2)2−2x1x2=S2−2Px_1^2 + x_2^2 = (x_1 + x_2)^2 - 2x_1 x_2 = \mathbf{S^2 - 2P}
Sum of Reciprocals 1x1+1x2=x1+x2x1x2=SP\dfrac{1}{x_1} + \dfrac{1}{x_2} = \dfrac{x_1 + x_2}{x_1 x_2} = \mathbf{\dfrac{S}{P}}
Sum of Cubes x13+x23=(x1+x2)(x12−x1x2+x22)=S(S2−3P)x_1^3 + x_2^3 = (x_1 + x_2)(x_1^2 - x_1 x_2 + x_2^2) = \mathbf{S(S^2 - 3P)}
Difference Squared (x1−x2)2=(x1+x2)2−4x1x2=S2−4P=Δa2(x_1 - x_2)^2 = (x_1 + x_2)^2 - 4x_1 x_2 = \mathbf{S^2 - 4P} = \dfrac{\Delta}{a^2}

3. Step-by-Step Notebook Examples

Example 1: Mental Roots Using Coefficient Sums

Problem: Find the roots of 2025x2−2026x+1=02025x^2 - 2026x + 1 = 0 on paper.

  • Step 1: Check coefficient sum
    a=2025,b=−2026,c=1a = 2025, \quad b = -2026, \quad c = 1
    a+b+c=2025+(−2026)+1=0a + b + c = 2025 + (-2026) + 1 = 0
  • Step 2: Apply Viète's special shortcut Since a+b+c=0a + b + c = 0, x1=1x_1 = 1 is a root:
    x1=1x_1 = 1
    By Viète's product rule P=x1⋅x2=caP = x_1 \cdot x_2 = \frac{c}{a}:
    1⋅x2=12025  ⟹  x2=120251 \cdot x_2 = \frac{1}{2025} \implies x_2 = \frac{1}{2025}
  • Final Answer:
    x1=1,x2=12025x_1 = 1, \quad x_2 = \frac{1}{2025}
    (Notice: Using the quadratic formula with Δ=(−2026)2−4(2025)(1)\Delta = (-2026)^2 - 4(2025)(1) would have required massive manual arithmetic!)

Example 2: Determining Signs Without Finding Roots

Problem: Without solving the equation 3x2−17x+14=03x^2 - 17x + 14 = 0, determine the signs of its roots.

  • Step 1: Check existence (Δ≥0\Delta \ge 0)
    Δ=(−17)2−4(3)(14)=289−168=121>0\Delta = (-17)^2 - 4(3)(14) = 289 - 168 = 121 > 0
    Two distinct real roots exist.
  • Step 2: Compute Product PP
    P=ca=143>0P = \frac{c}{a} = \frac{14}{3} > 0
    Since P>0P > 0, both roots have the same sign.
  • Step 3: Compute Sum SS
    S=−ba=−−173=173>0S = -\frac{b}{a} = -\frac{-17}{3} = \frac{17}{3} > 0
    Since the sum is positive, both roots must be positive.
  • Final Answer: The equation has two strictly positive real roots (0<x1<x20 < x_1 < x_2).

Example 3: Evaluating Symmetric Expressions Without Solving

Problem: Let x1x_1 and x2x_2 be the roots of 2x2−6x−1=02x^2 - 6x - 1 = 0. Calculate the exact paper value of:

A=x12+x22andB=1x1+1x2A = x_1^2 + x_2^2 \qquad \text{and} \qquad B = \frac{1}{x_1} + \frac{1}{x_2}
  • Step 1: Verify existence of real roots
    Δ=(−6)2−4(2)(−1)=36+8=44>0\Delta = (-6)^2 - 4(2)(-1) = 36 + 8 = 44 > 0
  • Step 2: Calculate SS and PP using Viète's formulas
    S=x1+x2=−ba=−−62=3P=x1⋅x2=ca=−12=−12\begin{aligned} S &= x_1 + x_2 = -\frac{b}{a} = -\frac{-6}{2} = 3 \\ P &= x_1 \cdot x_2 = \frac{c}{a} = \frac{-1}{2} = -\frac{1}{2} \end{aligned}
  • Step 3: Calculate A=x12+x22A = x_1^2 + x_2^2
    A=S2−2P=(3)2−2(−12)=9−(−1)=9+1=10\begin{aligned} A &= S^2 - 2P \\ &= (3)^2 - 2\left(-\frac{1}{2}\right) \\ &= 9 - (-1) \\ &= 9 + 1 = 10 \end{aligned}
  • Step 4: Calculate B=1x1+1x2B = \frac{1}{x_1} + \frac{1}{x_2}
    B=SP=3−12=3⋅(−2)=−6B = \frac{S}{P} = \frac{3}{-\frac{1}{2}} = 3 \cdot (-2) = -6
  • Final Answer:
    x12+x22=10,1x1+1x2=−6x_1^2 + x_2^2 = 10, \qquad \frac{1}{x_1} + \frac{1}{x_2} = -6

4. Common Mistakes & Paper Traps

Trap 1: Missing the Negative Sign in SS

The most widespread mistake in school exams is writing:

x1+x2=ba[FATAL MISTAKE!]x_1 + x_2 = \frac{b}{a} \quad \text{\textbf{[FATAL MISTAKE!]}}

The formula has a strict minus sign:

S=−baS = -\frac{b}{a}

If b=−8b = -8 and a=2a = 2, then S=−−82=+4S = -\frac{-8}{2} = +4.

Trap 2: Applying Viète When Δ<0\Delta < 0

Consider the equation x2−2x+5=0x^2 - 2x + 5 = 0. A student might write:

S=2,P=5  ⟹  x12+x22=S2−2P=4−10=−6S = 2, \quad P = 5 \implies x_1^2 + x_2^2 = S^2 - 2P = 4 - 10 = -6

However, the sum of squares of real numbers cannot be negative! Why did this happen? Because Δ=(−2)2−4(1)(5)=4−20=−16<0\Delta = (-2)^2 - 4(1)(5) = 4 - 20 = -16 < 0. The roots x1,x2x_1, x_2 do not exist in R\mathbb{R}. Always check that Δ≥0\Delta \ge 0 before drawing conclusions about real numbers!

Trap 3: Confusing x12+x22x_1^2 + x_2^2 with (x1+x2)2(x_1 + x_2)^2

Remember that (x1+x2)2=x12+2x1x2+x22(x_1 + x_2)^2 = x_1^2 + 2x_1 x_2 + x_2^2. Therefore, to isolate the sum of squares, you must subtract the middle term:

x12+x22=(x1+x2)2−2x1x2=S2−2Px_1^2 + x_2^2 = (x_1 + x_2)^2 - 2x_1 x_2 = S^2 - 2P

5. Pencil & Paper Practice

Try these three problems on your paper notebook before reading the solutions below.

  1. Practice 1: Find the sum and product of the roots of 5x2−15x+7=05x^2 - 15x + 7 = 0.
  2. Practice 2: Without computing roots, determine the signs of the roots of 2x2+9x−5=02x^2 + 9x - 5 = 0.
  3. Practice 3: Given x2−4x+1=0x^2 - 4x + 1 = 0, calculate x13+x23x_1^3 + x_2^3.

Worked Solution to Practice 1

First, check Δ=(−15)2−4(5)(7)=225−140=85>0\Delta = (-15)^2 - 4(5)(7) = 225 - 140 = 85 > 0 (Real roots exist).

S=x1+x2=−ba=−−155=3S = x_1 + x_2 = -\frac{b}{a} = -\frac{-15}{5} = 3
P=x1⋅x2=ca=75P = x_1 \cdot x_2 = \frac{c}{a} = \frac{7}{5}

Answer: S=3,P=75S = 3, \quad P = \frac{7}{5}.


Worked Solution to Practice 2

a=2,c=−5  ⟹  P=ca=−52<0a = 2, \quad c = -5 \implies P = \frac{c}{a} = -\frac{5}{2} < 0

Because aa and cc have opposite signs (P<0P < 0), the equation is guaranteed to have real roots (Δ>0\Delta > 0). Because the product is negative, the two roots have opposite signs (x1<0<x2x_1 < 0 < x_2). Since S=−92<0S = -\frac{9}{2} < 0, the negative root has a larger absolute value than the positive root. Answer: Two roots of opposite signs (x1<0<x2x_1 < 0 < x_2), with ∣x1∣>x2|x_1| > x_2.


Worked Solution to Practice 3

For x2−4x+1=0x^2 - 4x + 1 = 0:

Δ=(−4)2−4(1)(1)=16−4=12>0\Delta = (-4)^2 - 4(1)(1) = 16 - 4 = 12 > 0
S=−−41=4,P=11=1S = -\frac{-4}{1} = 4, \qquad P = \frac{1}{1} = 1

Use the sum of cubes identity:

x13+x23=(x1+x2)(x12−x1x2+x22)=S⋅(S2−3P)=4⋅(42−3(1))=4⋅(16−3)=4⋅13=52\begin{aligned} x_1^3 + x_2^3 &= (x_1 + x_2)(x_1^2 - x_1 x_2 + x_2^2) \\ &= S \cdot (S^2 - 3P) \\ &= 4 \cdot (4^2 - 3(1)) \\ &= 4 \cdot (16 - 3) \\ &= 4 \cdot 13 = 52 \end{aligned}

Answer: x13+x23=52x_1^3 + x_2^3 = 52.


6. Summary

  • For ax2+bx+c=0ax^2 + bx + c = 0 with Δ≥0\Delta \ge 0:
    S=x1+x2=−ba,P=x1⋅x2=caS = x_1 + x_2 = -\frac{b}{a}, \qquad P = x_1 \cdot x_2 = \frac{c}{a}
  • Signs of roots:
    • P<0  ⟹  P < 0 \implies opposite signs.
    • P>0,S>0  ⟹  P > 0, S > 0 \implies both roots positive.
    • P>0,S<0  ⟹  P > 0, S < 0 \implies both roots negative.
  • Mental shortcuts:
    • If a+b+c=0  ⟹  x1=1,x2=caa + b + c = 0 \implies x_1 = 1, x_2 = \frac{c}{a}.
    • If a−b+c=0  ⟹  x1=−1,x2=−caa - b + c = 0 \implies x_1 = -1, x_2 = -\frac{c}{a}.
  • Symmetric values: x12+x22=S2−2Px_1^2 + x_2^2 = S^2 - 2P.

Test yourself

What are the roots of the equation 7x2−11x+4=07x^2 - 11x + 4 = 0 by inspecting the coefficient sum?

  1. x1=1x_1 = 1 and x2=47x_2 = \frac{4}{7}
  2. x1=−1x_1 = -1 and x2=−47x_2 = -\frac{4}{7}
  3. x1=1x_1 = 1 and x2=−47x_2 = -\frac{4}{7}
  4. x1=2x_1 = 2 and x2=27x_2 = \frac{2}{7}

If x1x_1 and x2x_2 are the roots of x2−5x+3=0x^2 - 5x + 3 = 0, what is the exact value of x12+x22x_1^2 + x_2^2?

  1. 2525
  2. 1919
  3. 3131
  4. 2222

Under what condition do the roots of ax2+bx+c=0ax^2 + bx + c = 0 have opposite signs?

  1. S>0S > 0
  2. P=ca<0P = \frac{c}{a} < 0
  3. b2−4ac=0b^2 - 4ac = 0
  4. S<0S < 0 and P>0P > 0