Nonlinear equations and systems · Lesson 2

The discriminant and number of solutions

The discriminant is the part of the quadratic formula under the square root: b2−4acb^2 - 4ac, for ax2+bx+c=0ax^2 + bx + c = 0. Its sign tells you how many real solutions there are without solving.

Positive: two real solutions. Zero: exactly one real solution, because ±0\pm 0 gives the same value twice. Negative: no real solutions, because no real number squares to a negative.

On a graph, the solutions are the xx-intercepts of y=ax2+bx+cy = ax^2 + bx + c. Two solutions means the parabola crosses the xx-axis twice. One solution means its vertex sits exactly on the xx-axis. No real solutions means it never reaches the xx-axis.

Always get standard form first. In x2+25=10xx^2 + 25 = 10x, the 10x10x belongs on the left: x2−10x+25=0x^2 - 10x + 25 = 0, so b=−10b = -10 and the discriminant is 100−100=0100 - 100 = 0. Exactly one solution, x=5x = 5.

For *exactly one solution, what is kk?*, set the discriminant equal to 0 and solve for kk. For no real solutions, solve discriminant <0< 0. For two real solutions, solve discriminant >0> 0.

Sum and product. When ax2+bx+c=0ax^2 + bx + c = 0 has two solutions, their sum is −ba-\frac{b}{a} and their product is ca\frac{c}{a}. If a question asks only for the sum or product, use these and skip solving. For 2x2−7x+3=02x^2 - 7x + 3 = 0, the sum is 72\frac{7}{2} and the product is 32\frac{3}{2} (the solutions are 3 and 12\frac{1}{2}).

y = x^2 - 4x + c for c = 3, c = 4 and c = 6−112345−2−1123456780xy(1, 0)(3, 0)(2, 0)(2, 2)
y=x2−4x+cy = x^2 - 4x + c for c=3c = 3, c=4c = 4 and c=6c = 6 Three upward-opening parabolas, each with its lowest point at x = 2. The lowest one (c = 3) crosses the x-axis twice, at (1, 0) and (3, 0). The middle one (c = 4) touches the x-axis only at its vertex, (2, 0). The highest one (c = 6) has its vertex at (2, 2) and never reaches the x-axis.

Worked example Easy

x2+49=14xx^2 + 49 = 14x

How many distinct real solutions does the given equation have?

  1. Zero
  2. Exactly oneAnswer
  3. Exactly two
  4. Infinitely many

How to solve it

  1. Standard form first: subtract 14x14x from both sides, x2−14x+49=0x^2 - 14x + 49 = 0.
  2. a=1a = 1, b=−14b = -14, c=49c = 49. Discriminant: (−14)2−4(1)(49)=196−196=0(-14)^2 - 4(1)(49) = 196 - 196 = 0.
  3. A discriminant of 0 means exactly one real solution. Indeed x2−14x+49=(x−7)2x^2 - 14x + 49 = (x - 7)^2, so x=7x = 7.

Why each choice is right or wrong

  • A. Incorrect. This computes the discriminant before moving 14x14x, using b=0b = 0 and c=49c = 49: 0−196<00 - 196 < 0. Rewrite in standard form first, so b=−14b = -14.
  • B. Correct. In standard form, x2−14x+49=0x^2 - 14x + 49 = 0, and 196−196=0196 - 196 = 0. The equation is (x−7)2=0(x - 7)^2 = 0, with the single solution x=7x = 7.
  • C. Incorrect. This adds 4ac4ac instead of subtracting it: 196+196>0196 + 196 > 0. The discriminant is b2−4acb^2 - 4ac, which is 0 here.
  • D. Incorrect. A quadratic equation has at most two solutions. Infinitely many would need the two sides to be identical.

Worked example Medium

2x2−12x+k=02x^2 - 12x + k = 0

In the given equation, kk is a constant. The equation has exactly one real solution. What is the value of kk?

  1. −18-18
  2. 66
  3. 1818Answer
  4. 3636

How to solve it

  1. Exactly one solution means the discriminant is 0.
  2. a=2a = 2, b=−12b = -12, c=kc = k: (−12)2−4(2)(k)=144−8k(-12)^2 - 4(2)(k) = 144 - 8k.
  3. 144−8k=0144 - 8k = 0, so k=18k = 18.
  4. Check: 2x2−12x+18=2(x−3)22x^2 - 12x + 18 = 2(x - 3)^2, which is 0 only at x=3x = 3.

Why each choice is right or wrong

  • A. Incorrect. This adds 4ac4ac instead of subtracting it: 144+8k=0144 + 8k = 0. With k=−18k = -18, the discriminant is 144+144=288144 + 144 = 288, so there are two solutions.
  • B. Incorrect. This takes half of 12 and stops. Dividing by 2 gives x2−6x+k2=0x^2 - 6x + \frac{k}{2} = 0, a perfect square only when k2=9\frac{k}{2} = 9, the square of half of 6. With k=6k = 6, the discriminant is 144−48=96144 - 48 = 96, so there are two solutions.
  • C. Correct. Setting the discriminant to 0 gives 144−8k=0144 - 8k = 0, so k=18k = 18, and the equation becomes 2(x−3)2=02(x - 3)^2 = 0.
  • D. Incorrect. This leaves out a=2a = 2: 144−4k=0144 - 4k = 0 gives k=36k = 36. The discriminant is b2−4acb^2 - 4ac, and here a=2a = 2.

Worked example Hard

3x2−21x+5=03x^2 - 21x + 5 = 0

What is the sum of the solutions to the given equation?

  1. −7-7
  2. 53\frac{5}{3}
  3. 77Answer
  4. 2121

How to solve it

  1. Check that there are two solutions: (−21)2−4(3)(5)=441−60=381>0(-21)^2 - 4(3)(5) = 441 - 60 = 381 > 0.
  2. The sum of the solutions is −ba=−−213=7-\frac{b}{a} = -\frac{-21}{3} = 7.
  3. Solving with the formula would give 21±3816\frac{21 \pm \sqrt{381}}{6}. Adding them, the square roots cancel and leave 426=7\frac{42}{6} = 7, the same answer with much more work.

Why each choice is right or wrong

  • A. Incorrect. This uses ba\frac{b}{a} and forgets the negative sign: −213=−7\frac{-21}{3} = -7. The sum is −ba-\frac{b}{a}.
  • B. Incorrect. 53\frac{5}{3} is ca\frac{c}{a}, the product of the solutions, not the sum.
  • C. Correct. The sum of the solutions is −ba=213=7-\frac{b}{a} = \frac{21}{3} = 7, and the discriminant, 381, is positive, so there are two solutions to add.
  • D. Incorrect. 21 is −b-b without dividing by a=3a = 3. The sum is −ba=213=7-\frac{b}{a} = \frac{21}{3} = 7.

Trap Using the discriminant before standard form

bb and cc only mean something when every term is on one side and 0 is on the other. In x2+49=14xx^2 + 49 = 14x, bb is −14-14, not 0. Move everything to one side, then read aa, bb and cc with their signs.

Trap Mixing up one solution and no solution

Zero is the boundary. A discriminant of exactly 0 means one solution; a negative discriminant means none. In a no real solutions question, the value of kk that makes the discriminant 0 is often a choice, and it gives one solution, not zero.

Desmos When Desmos is faster

To count solutions, graph the equation with everything on one side, such as y=x2−14x+49y = x^2 - 14x + 49, and count the xx-intercepts. You can also graph each side as its own y=y = and count the crossings.

For a constant such as kk, type y=2x2−12x+ky = 2x^2 - 12x + k. Because kk isn't defined, Desmos offers to add a slider. Add it, click the slider's value and type each answer choice. Look for the choice that makes the vertex sit on the xx-axis (one solution) or lifts the parabola off it (none).

A vertex that sits just above or just below the axis can look like it touches. If the picture is close, compute b2−4acb^2 - 4ac by hand. For a sum or product question, −ba-\frac{b}{a} or ca\frac{c}{a} is faster than any graph.