Skip to content
Gioi Toan
Start learning
A parabola on coordinate axes with a smiling ball rolling along it

Notes on Lesson 3: Vieta's theorem (Maths 9 Canh Dieu, Chapter VII)

Lesson summary

Explanation: add the two roots −b+Δ2a+−b−Δ2a=−2b2a=−ba\frac{-b + \sqrt{\Delta}}{2a} + \frac{-b - \sqrt{\Delta}}{2a} = \frac{-2b}{2a} = -\frac{b}{a}; multiply the two roots (−b)2−Δ4a2=b2−b2+4ac4a2=ca\frac{(-b)^2 - \Delta}{4a^2} = \frac{b^2 - b^2 + 4ac}{4a^2} = \frac{c}{a}.

If ac<0ac < 0 then Δ=b2−4ac>0\Delta = b^2 - 4ac > 0, the equation always has two distinct roots.

The two roots look like "something plus a square root" and "something minus a square root".

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Giải thích định lí Viète, vận dụng để tính nhẩm nghiệm, tìm hai số biết tổng và tích

Some quadratic equations can be solved by inspection in a few seconds, without computing Δ\Delta. The secret is Vieta's theorem: the sum and product of the two roots can be read straight from the coefficients. This lesson helps you explain the theorem, use it for solving quadratic equations by inspection, and find two numbers when you know their sum and product.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Vieta's theorem

Vieta's theorem: If x1x_1, x2x_2 are two roots of the equation ax2+bx+c=0ax^2 + bx + c = 0 (a≠0)(a \ne 0) then

  • x1+x2=−bax_1 + x_2 = -\frac{b}{a}; x1x2=cax_1 x_2 = \frac{c}{a}
  • Explanation: add the two roots −b+Δ2a+−b−Δ2a=−2b2a=−ba\frac{-b + \sqrt{\Delta}}{2a} + \frac{-b - \sqrt{\Delta}}{2a} = \frac{-2b}{2a} = -\frac{b}{a}; multiply the two roots (−b)2−Δ4a2=b2−b2+4ac4a2=ca\frac{(-b)^2 - \Delta}{4a^2} = \frac{b^2 - b^2 + 4ac}{4a^2} = \frac{c}{a}.
  • The theorem is used only when the equation has solutions (Δ≥0\Delta \ge 0); for a double root, take x1=x2x_1 = x_2.
  • Example: 2x2+11x+7=02x^2 + 11x + 7 = 0 has Δ=121−56=65>0\Delta = 121 - 56 = 65 > 0, so x1+x2=−112x_1 + x_2 = -\frac{11}{2}, x1x2=72x_1 x_2 = \frac{7}{2}.

In plain words: The two roots look like "something plus a square root" and "something minus a square root". Added together, the two square roots cancel out; multiplied together, they give the difference of two squares, and the square root disappears too. So the sum and product depend only on aa, bb, cc, without solving the equation. It is like paying for two dishes at a restaurant: you do not know the price of each dish, but knowing the total and their product is enough to work out a lot.

Phrase by phrase
two roots
The equation must have solutions, including a double root, for this to apply.Example: x2+x+1=0x^2 + x + 1 = 0 has Δ<0\Delta < 0, so Vieta's theorem cannot be used.
has solutions
Condition Δ≥0\Delta \ge 0 (or Δ′≥0\Delta' \ge 0).Example: x2−4x+4=0x^2 - 4x + 4 = 0: Δ=0\Delta = 0, it has a double root.
−ba-\frac{b}{a}
Sum of roots, remember the minus sign.Example: x2−5x+6=0x^2 - 5x + 6 = 0: the sum is 55.
ca\frac{c}{a}
Product of roots, no extra minus sign.Example: x2−5x+6=0x^2 - 5x + 6 = 0: the product is 66.

Remarks and solving quadratic equations by inspection

Consider the equation ax2+bx+c=0ax^2 + bx + c = 0 (a≠0)(a \ne 0):

  • If ac<0ac < 0 then Δ=b2−4ac>0\Delta = b^2 - 4ac > 0, the equation always has two distinct roots. For example x2+3572x−3573=0x^2 + 3572x - 3573 = 0 has aa and cc with opposite signs.
  • If a+b+c=0a + b + c = 0 then the equation has one solution x1=1x_1 = 1, the other solution is x2=cax_2 = \frac{c}{a}.
  • If a−b+c=0a - b + c = 0 then the equation has one solution x1=−1x_1 = -1, the other solution is x2=−cax_2 = -\frac{c}{a}.
  • Example: x2−6x+5=0x^2 - 6x + 5 = 0 has 1−6+5=01 - 6 + 5 = 0, solutions 1 and 5; 5x2+14x+9=05x^2 + 14x + 9 = 0 has 5−14+9=05 - 14 + 9 = 0, solutions −1-1 and −95-\frac{9}{5}.
Dấu hiệuNghiệm thứ nhấtNghiệm thứ hai
a + b + c = 0x₁ = 1x₂ = c/a
a − b + c = 0x₁ = −1x₂ = −c/a
Bảng nhẩm nghiệm: nếu a + b + c = 0 thì hai nghiệm là 1 và c/a; nếu a − b + c = 0 thì hai nghiệm là −1 và −c/a

In plain words: When ac<0ac < 0 then −4ac-4ac is a positive number, adding b2≥0b^2 \ge 0 certainly gives a positive number, so there is no need to compute Δ\Delta. Substitute x=1x = 1 into the left-hand side and you get exactly a+b+ca + b + c; this sum equals 0, which means 1 is a solution. Once you have one solution, take the product ca\frac{c}{a} and divide by it to get the other solution. It is like two friends putting in 30 thousand dong together: if you know one friend's share is 12, the other's share is 18.

Phrase by phrase
always has two distinct roots
It is certain there are two distinct roots, no need to compute Δ\Delta.Example: 2x2+7x−1=02x^2 + 7x - 1 = 0 has ac=−2<0ac = -2 < 0.
opposite signs
One number is positive, one is negative, so the product is negative.Example: a=1a = 1, c=−3573c = -3573 then ac<0ac < 0.
a+b+c=0a + b + c = 0
The sum of the three coefficients is 0, in that case x=1x = 1 is a solution.Example: 3x2−5x+2=03x^2 - 5x + 2 = 0: solutions 1 and 23\frac{2}{3}.
a−b+c=0a - b + c = 0
In that case x=−1x = -1 is a solution.Example: x2+4x+3=0x^2 + 4x + 3 = 0: solutions −1-1 and −3-3.

TipWhen you meet a new equation, first add a+b+ca + b + c and a−b+ca - b + c mentally. If it equals 0, there is a root right away, no need to calculate Δ\Delta.

Finding two numbers given their sum and product

If two numbers have sum equal to SS and product equal to PP, then those two numbers are the two solutions of the quadratic equation x2−Sx+P=0x^2 - Sx + P = 0.

  • Condition for such two numbers to exist: S2−4P≥0S^2 - 4P \ge 0.
  • Example: two numbers with sum 9 and product 20 are the solutions of x2−9x+20=0x^2 - 9x + 20 = 0; Δ=81−80=1\Delta = 81 - 80 = 1, so the two numbers are 4 and 5.

In plain words: Call the two numbers uu and vv. Then (x−u)(x−v)=x2−(u+v)x+uv=x2−Sx+P(x - u)(x - v) = x^2 - (u + v)x + uv = x^2 - Sx + P, so uu and vv are exactly the two solutions of this equation. The condition S2−4P≥0S^2 - 4P \ge 0 is exactly the Δ≥0\Delta \ge 0 of that equation. It is like the riddle Dad often asks: "Two numbers add up to 7 and multiply to 12, what are they?" Set up x2−7x+12=0x^2 - 7x + 12 = 0 and you get 3 and 4. But a riddle with sum 3 and product 5 has no answer, because 9−20<09 - 20 < 0.

Phrase by phrase
sum equal to SS
Adding the two numbers gives SS.Example: 4 and 5 have sum 9.
product equal to PP
Multiplying the two numbers gives PP.Example: 4 and 5 have product 20.
x2−Sx+P=0x^2 - Sx + P = 0
The equation has two solutions, which are the two numbers to find; before SS there is a minus sign.Example: Sum 7, product 12: x2−7x+12=0x^2 - 7x + 12 = 0.
Condition
The two numbers exist only when S2−4P≥0S^2 - 4P \ge 0.Example: Sum 2, product 5: 4−20<04 - 20 < 0, none exist.

TipOnce you have found the two numbers, add and multiply them to check again.

Worked examples

Example 1

Without solving the equation, show that 3x2−5x−4=03x^2 - 5x - 4 = 0 has two distinct roots and compute their sum and product.

Show the solution to example 1

Step 1: a=3a = 3, b=−5b = -5, c=−4c = -4. We have ac=−12<0ac = -12 < 0, so the equation has two distinct roots x1x_1, x2x_2.
Why: You must be sure the equation has solutions before using Vieta's theorem. Here aa, cc have opposite signs, so there is no need to compute Δ\Delta.
Step 2: x1+x2=−ba=−−53=53x_1 + x_2 = -\frac{b}{a} = -\frac{-5}{3} = \frac{5}{3}.
Step 3: x1x2=ca=−43x_1 x_2 = \frac{c}{a} = -\frac{4}{3}.
Step 4: Check with Δ=25+48=73>0\Delta = 25 + 48 = 73 > 0, indeed there are two distinct roots.
Result: x1+x2=53x_1 + x_2 = \frac{5}{3}, x1x2=−43x_1 x_2 = -\frac{4}{3}.

Example 2

Given the equation x2−5x+3=0x^2 - 5x + 3 = 0. Without solving the equation, compute x1+x2x_1 + x_2, x1x2x_1 x_2, then compute x12+x22x_1^2 + x_2^2 and 1x1+1x2\frac{1}{x_1} + \frac{1}{x_2}.

Show the solution to example 2

Step 1: Δ=25−12=13>0\Delta = 25 - 12 = 13 > 0, the equation has two distinct roots.
Step 2: By Vieta's theorem: x1+x2=5x_1 + x_2 = 5, x1x2=3x_1 x_2 = 3.
Why: b=−5b = -5 so −ba=5-\frac{b}{a} = 5, positive. It is easy to mistake it for −5-5.
Step 3: x12+x22=(x1+x2)2−2x1x2=25−6=19x_1^2 + x_2^2 = (x_1 + x_2)^2 - 2x_1 x_2 = 25 - 6 = 19.
Step 4: 1x1+1x2=x1+x2x1x2=53\frac{1}{x_1} + \frac{1}{x_2} = \frac{x_1 + x_2}{x_1 x_2} = \frac{5}{3}.
Result: x1+x2=5x_1 + x_2 = 5; x1x2=3x_1 x_2 = 3; x12+x22=19x_1^2 + x_2^2 = 19; 1x1+1x2=53\frac{1}{x_1} + \frac{1}{x_2} = \frac{5}{3}.

TipIf the expression contains x12+x22x_1^2 + x_2^2, change it to (x1+x2)2−2x1x2(x_1 + x_2)^2 - 2x_1 x_2 and then substitute the sum and the product.

Example 3

Solving quadratic equations by inspection: a) x2−6x+5=0x^2 - 6x + 5 = 0; b) 5x2+14x+9=05x^2 + 14x + 9 = 0; c) 2x2−3x−5=02x^2 - 3x - 5 = 0.

Show the solution to example 3

Step 1: a) a+b+c=1−6+5=0a + b + c = 1 - 6 + 5 = 0, so x1=1x_1 = 1, x2=ca=5x_2 = \frac{c}{a} = 5.
Step 2: b) a+b+c=28≠0a + b + c = 28 \ne 0; try a−b+c=5−14+9=0a - b + c = 5 - 14 + 9 = 0, so x1=−1x_1 = -1, x2=−ca=−95x_2 = -\frac{c}{a} = -\frac{9}{5}.
Why: With a−b+ca - b + c the second solution is −ca-\frac{c}{a}, with a minus sign. Writing 95\frac{9}{5} is a sign error.
Step 3: c) a−b+c=2+3−5=0a - b + c = 2 + 3 - 5 = 0, so x1=−1x_1 = -1, x2=−−52=52x_2 = -\frac{-5}{2} = \frac{5}{2}.
Step 4: Check c): 2⋅254−3⋅52−5=12,5−7,5−5=02 \cdot \frac{25}{4} - 3 \cdot \frac{5}{2} - 5 = 12,5 - 7,5 - 5 = 0, correct.
Result: a) 1 and 5; b) −1-1 and −95-\frac{9}{5}; c) −1-1 and 52\frac{5}{2}.

Common mistakesSolving by inspection using a−b+c=0a - b + c = 0 but writing the second root as ca\frac{c}{a}, forgetting the minus sign.

Example 4

The equation x2+mx−6=0x^2 + mx - 6 = 0 has one solution x1=2x_1 = 2. Find the other solution and the value of mm.

Show the solution to example 4

Step 1: The equation has ac=−6<0ac = -6 < 0, so it always has two roots. By Vieta's theorem, x1x2=ca=−6x_1 x_2 = \frac{c}{a} = -6.
Step 2: 2⋅x2=−62 \cdot x_2 = -6, so x2=−3x_2 = -3.
Why: Use the product because the product does not contain mm. Using the sum right away still leaves the unknown mm, which cannot be calculated yet.
Step 3: The sum x1+x2=−m1x_1 + x_2 = -\frac{m}{1}, that is 2+(−3)=−m2 + (-3) = -m, so m=1m = 1.
Step 4: Check: x2+x−6=0x^2 + x - 6 = 0 with x=2x = 2: 4+2−6=04 + 2 - 6 = 0; with x=−3x = -3: 9−3−6=09 - 3 - 6 = 0, correct.
Result: The other root is −3-3, m=1m = 1.

Common mistakesUsing Vieta's theorem when the equation has no solution. Always check Δ≥0\Delta \ge 0 (or ac<0ac < 0) first.

Example 5

a) Find two numbers whose sum is 9 and whose product is 20.
b) Are there two numbers whose sum is 3 and whose product is 5?

Show the solution to example 5

Step 1: a) S=9S = 9, P=20P = 20. The two numbers are the roots of x2−9x+20=0x^2 - 9x + 20 = 0.
Why: The equation is x2−Sx+Px^2 - Sx + P, before SS there is a minus sign. Writing x2+9x+20=0x^2 + 9x + 20 = 0 would give two negative numbers −4-4, −5-5, whose sum is −9-9, which is wrong.
Step 2: Δ=(−9)2−4⋅20=1\Delta = (-9)^2 - 4 \cdot 20 = 1, Δ=1\sqrt{\Delta} = 1. The two roots are 9+12=5\frac{9 + 1}{2} = 5 and 9−12=4\frac{9 - 1}{2} = 4.
Step 3: b) S2−4P=9−20=−11<0S^2 - 4P = 9 - 20 = -11 < 0, the condition is not satisfied.
Result: a) The two numbers are 4 and 5; b) there are no such two numbers.

Common mistakesWriting the sum of roots as ba\frac{b}{a}, forgetting the minus sign: it should be x1+x2=−bax_1 + x_2 = -\frac{b}{a}.

Common mistakesForming the equation to find two numbers as x2+Sx+P=0x^2 + Sx + P = 0. It should be x2−Sx+P=0x^2 - Sx + P = 0.

Example 6

A rectangular garden has a perimeter of 34 m and an area of 60 m². Find the length and the width of the garden.

Show the solution to example 6

Step 1: Half the perimeter is 34:2=1734 : 2 = 17 m. So the length and the width have sum S=17S = 17 and product P=60P = 60.
Why: The perimeter is twice the sum of the length and the width, so you must halve it first. Taking S=34S = 34 would give a wrong result.
Step 2: The two sides are the roots of x2−17x+60=0x^2 - 17x + 60 = 0. Condition: 172−4⋅60=289−240=49≥017^2 - 4 \cdot 60 = 289 - 240 = 49 \ge 0.
Step 3: 49=7\sqrt{49} = 7, the two roots are 17+72=12\frac{17 + 7}{2} = 12 and 17−72=5\frac{17 - 7}{2} = 5.
Step 4: Check: 2(12+5)=342(12 + 5) = 34 and 12⋅5=6012 \cdot 5 = 60, correct.
Result: The length is 12 m, the width is 5 m.

Terms

Vieta's theorem
The relation between the sum and the product of the two roots and the coefficients of a quadratic equation in one variable.Example: x1+x2=−bax_1 + x_2 = -\frac{b}{a}, x1x2=cax_1 x_2 = \frac{c}{a}.
Sum of roots
The result of adding the two roots, equal to −ba-\frac{b}{a}.Example: x2−7x+10=0x^2 - 7x + 10 = 0: the sum is 7.
Product of roots
The result of multiplying the two roots, equal to ca\frac{c}{a}.Example: x2−7x+10=0x^2 - 7x + 10 = 0: the product is 10.
Solving quadratic equations by inspection
Finding the roots by mental calculation, without using the quadratic formula.Example: x2−3x+2=0x^2 - 3x + 2 = 0 has 1−3+2=01 - 3 + 2 = 0, roots 1 and 2.
Condition S2−4P≥0S^2 - 4P \ge 0
The condition for having two numbers with sum SS and product PP.Example: S=4S = 4, P=4P = 4: 16−16=016 - 16 = 0, the two numbers are 2 and 2.
Discriminant Δ\Delta
The number b2−4acb^2 - 4ac, you need Δ≥0\Delta \ge 0 to be able to use Vieta's theorem.Example: x2−5x+3=0x^2 - 5x + 3 = 0: Δ=13\Delta = 13.

Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 9.

Practice

Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.

Question 1 of 1Written answer · Applying

A rectangular plot of land has width xx (m), and its length is one and a half times its width. A flower garden is made in the centre of the plot with an area of 640 m², and a path 2 m wide is made around that flower garden. What is the perimeter of the plot in metres?

Do this question in your notebook and show every step. When you finish, press the button below to compare with the mark scheme.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice questions for you

Additional exercises

  • Tính tổng và tích hai nghiệm bằng định lí Viète mà không giải phương trình (Recall, Applying)
  • Nhẩm nghiệm nhanh khi tổng các hệ số bằng 0 hoặc hệ số xen kẽ (Understanding, Applying)
  • Tìm hai số khi biết tổng và tích (Understanding, Applying)
  • Xét dấu các nghiệm (cùng dấu, trái dấu, cùng dương) (Applying)
  • Tính giá trị biểu thức đối xứng của hai nghiệm (Applying)

Challenge yourself

  • Dạng khác (Applying, Understanding)

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in

Skills in this lesson

Tap a skill to see what to secure first, what comes next, and more practice.