The discriminant

AS · P1 · 12 min

The discriminant b2−4acb^2 - 4ac tells you how many real roots a quadratic equation has without solving it. That makes it the key tool for questions with an unknown constant: "find kk so that the line is a tangent", "find the set of values of mm for which the expression is always positive". These appear on almost every Paper 1, usually worth 3 to 5 marks, and the setting-up is where most marks are won or lost.

Where it comes from

The quadratic formula is

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Everything depends on the number under the square root.

  • If it is positive, the square root is a positive real number, and +x+\sqrt{\phantom{x}} and −x-\sqrt{\phantom{x}} give two different roots.
  • If it is zero, ±0\pm 0 makes no difference, and both roots equal −b2a-\dfrac{b}{2a}: a repeated root.
  • If it is negative, there is no real square root, so there are no real roots.
Definition

The discriminant of the quadratic ax2+bx+cax^2 + bx + c is b2−4acb^2 - 4ac. A repeated root (also called equal roots) is a root that occurs twice, as when the quadratic is a perfect square a(x−α)2a(x - \alpha)^2.

Key result
b2−4acb^2 - 4acRoots of ax2+bx+c=0ax^2 + bx + c = 0Graph of y=ax2+bx+cy = ax^2 + bx + c
>0> 0two distinct real rootscrosses the xx-axis twice
=0= 0one repeated real root, x=−b2ax = -\dfrac{b}{2a}touches the xx-axis at its vertex
<0< 0no real rootsdoes not meet the xx-axis

"Real roots" (with no other word) means b2−4ac≥0b^2 - 4ac \ge 0: either two distinct or one repeated.

y = (x - 2)^2 - 2 y = (x - 2)^2 y = (x - 2)^2 + 2

The three curves above differ only in their constant term. The lowest crosses the axis twice (discriminant positive), the middle one touches it (discriminant zero), and the highest misses it (discriminant negative).

Translating the wording

Exam questions rarely say "discriminant". They describe the situation, and you translate it.

The question saysWrite
two distinct real roots; meets in two distinct points; cutsb2−4ac>0b^2 - 4ac > 0
equal roots; a repeated root; is a tangent; touchesb2−4ac=0b^2 - 4ac = 0
no real roots; does not meet; does not intersectb2−4ac<0b^2 - 4ac < 0
real roots; meets (not "in two distinct points")b2−4ac≥0b^2 - 4ac \ge 0
ax2+bx+cax^2 + bx + c is positive for all xxa>0a > 0 and b2−4ac<0b^2 - 4ac < 0
ax2+bx+cax^2 + bx + c is negative for all xxa<0a < 0 and b2−4ac<0b^2 - 4ac < 0

The last two rows need the sign of aa as well. A quadratic with no real roots lies entirely on one side of the xx-axis, and aa decides which side.

Discriminant questions with an unknown constant
  1. Rearrange the equation to the form ax2+bx+c=0ax^2 + bx + c = 0. If the problem involves a line and a curve, substitute first to get a single quadratic.
  2. Identify aa, bb and cc, which may contain the unknown constant. Write them down.
  3. Write the correct condition: >0> 0, =0= 0, <0< 0 or ≥0\ge 0.
  4. Simplify into an equation or inequality in the constant.
  5. Solve it. An inequality in kk is itself usually a quadratic inequality: find the critical values and sketch.
  6. Check whether the coefficient of x2x^2 could be zero for some value of the constant. That case needs separate thought.
Counting roots

Determine the number of real roots of (a) 2x2−3x+5=02x^2 - 3x + 5 = 0 and (b) 4x2−12x+9=04x^2 - 12x + 9 = 0.

Solution

(a) a=2a = 2, b=−3b = -3, c=5c = 5: b2−4ac=9−40=−31<0b^2 - 4ac = 9 - 40 = -31 < 0. No real roots.

(b) a=4a = 4, b=−12b = -12, c=9c = 9: b2−4ac=144−144=0b^2 - 4ac = 144 - 144 = 0. One repeated root (in fact 4x2−12x+9=(2x−3)24x^2 - 12x + 9 = (2x - 3)^2, so the root is x=32x = \tfrac{3}{2}).

Finding a constant for a repeated root

The equation x2+kx+16=0x^2 + kx + 16 = 0 has a repeated root. Find the possible values of kk and, for each, the repeated root.

Solution

Repeated root means b2−4ac=0b^2 - 4ac = 0:

k2−4(1)(16)=0⇒k2=64⇒k=8 or k=−8k^2 - 4(1)(16) = 0 \quad\Rightarrow\quad k^2 = 64 \quad\Rightarrow\quad k = 8 \text{ or } k = -8

The repeated root is x=−b2a=−k2x = -\dfrac{b}{2a} = -\dfrac{k}{2}.

  • k=8k = 8: x2+8x+16=(x+4)2x^2 + 8x + 16 = (x + 4)^2, root x=−4x = -4.
  • k=−8k = -8: x2−8x+16=(x−4)2x^2 - 8x + 16 = (x - 4)^2, root x=4x = 4.

Both values of kk are needed; giving only k=8k = 8 loses a mark.

A set of values of k

Find the set of values of kk for which the equation x2+(k−3)x+4=0x^2 + (k - 3)x + 4 = 0 has two distinct real roots.

Solution

a=1a = 1, b=k−3b = k - 3, c=4c = 4. Two distinct real roots:

(k−3)2−16>0(k - 3)^2 - 16 > 0

Critical values: (k−3)2=16(k - 3)^2 = 16, so k−3=±4k - 3 = \pm 4, giving k=7k = 7 or k=−1k = -1.

The expression (k−3)2−16(k - 3)^2 - 16 is a ∪\cup-shaped quadratic in kk, positive outside its roots:

y = (x - 3)^2 - 16 (-1, 0) (7, 0)

(The horizontal axis here is kk.) So k<−1k < -1 or k>7k > 7.

When the coefficient of x squared contains k

Find the set of values of kk for which the equation kx2+2kx+3=0kx^2 + 2kx + 3 = 0 has no real roots.

Solution

Case k≠0k \neq 0. The equation is quadratic with a=ka = k, b=2kb = 2k, c=3c = 3. No real roots:

(2k)2−4(k)(3)<0⇒4k2−12k<0⇒4k(k−3)<0(2k)^2 - 4(k)(3) < 0 \quad\Rightarrow\quad 4k^2 - 12k < 0 \quad\Rightarrow\quad 4k(k - 3) < 0

The quadratic 4k(k−3)4k(k - 3) is negative between its roots, so 0<k<30 < k < 3.

Case k=0k = 0. The equation becomes 0x2+0x+3=00x^2 + 0x + 3 = 0, i.e. 3=03 = 0, which has no solutions at all. So k=0k = 0 also gives no real roots.

Combining: 0≤k<30 \le k < 3.

Most candidates write 0<k<30 < k < 3 and lose the final mark. Whenever aa contains the constant, test the value that makes a=0a = 0.

Showing roots are always real

Show that the equation px2+(p+2)x+1=0px^2 + (p + 2)x + 1 = 0, where pp is a non-zero constant, has two distinct real roots for every value of pp.

Solution

a=pa = p, b=p+2b = p + 2, c=1c = 1:

b2−4ac=(p+2)2−4p=p2+4p+4−4p=p2+4b^2 - 4ac = (p + 2)^2 - 4p = p^2 + 4p + 4 - 4p = p^2 + 4

Since p2≥0p^2 \ge 0, we have p2+4≥4>0p^2 + 4 \ge 4 > 0 for every pp. The discriminant is always positive, so there are always two distinct real roots.

For a "show that ... for all values" question, the discriminant usually simplifies to a completed square or a sum of squares plus a positive number. State clearly why it is positive.

A tangent to a curve

The line y=2x+ky = 2x + k is a tangent to the curve y=x2−4x+7y = x^2 - 4x + 7. Find the value of kk and the coordinates of the point of contact.

Solution

At points of intersection, x2−4x+7=2x+kx^2 - 4x + 7 = 2x + k, so

x2−6x+(7−k)=0x^2 - 6x + (7 - k) = 0

A tangent meets the curve at exactly one point, so the discriminant is zero:

(−6)2−4(1)(7−k)=0⇒36−28+4k=0⇒k=−2(-6)^2 - 4(1)(7 - k) = 0 \quad\Rightarrow\quad 36 - 28 + 4k = 0 \quad\Rightarrow\quad k = -2

Then x2−6x+9=0x^2 - 6x + 9 = 0, so (x−3)2=0(x - 3)^2 = 0 and x=3x = 3. Then y=2(3)−2=4y = 2(3) - 2 = 4. The point of contact is (3,4)(3, 4).

y = x^2 - 4x + 7 y = 2x - 2 (3, 4)
Negative for all x

Find the set of values of mm for which −2x2+mx−8<0-2x^2 + mx - 8 < 0 for all real xx.

Solution

Here a=−2<0a = -2 < 0, so the graph is ∩\cap-shaped. It is below the axis everywhere exactly when it has no real roots:

m2−4(−2)(−8)<0⇒m2−64<0⇒(m−8)(m+8)<0m^2 - 4(-2)(-8) < 0 \quad\Rightarrow\quad m^2 - 64 < 0 \quad\Rightarrow\quad (m - 8)(m + 8) < 0

So −8<m<8-8 < m < 8.

Watch out

k2<64k^2 < 64 does not mean k<8k < 8. It means −8<k<8-8 < k < 8. And k2>64k^2 > 64 means k<−8k < -8 or k>8k > 8. Always solve via the critical values and a sketch, never by "square rooting both sides" of an inequality.

Using the wrong condition. "Meets the curve" allows tangency, so it is ≥0\ge 0. "Meets at two distinct points" is >0> 0.

Not rearranging first. In x2+3x=kx−1x^2 + 3x = kx - 1, the coefficient bb is 3−k3 - k and cc is 11, not b=3b = 3, c=0c = 0.

Forgetting the case a=0a = 0. If the coefficient of x2x^2 contains kk, check separately what happens when it is zero.

Sign errors in −4ac-4ac. With a=−2a = -2 and c=−8c = -8, −4ac=−4(−2)(−8)=−64-4ac = -4(-2)(-8) = -64. Put every coefficient in brackets.

Exam tip
  • Write b2−4acb^2 - 4ac with the numbers substituted in brackets before simplifying. That line alone usually earns a method mark.
  • State the condition in words or symbols ("for a tangent, b2−4ac=0b^2 - 4ac = 0"). Examiners need to see that you know which condition applies.
  • For "set of values" answers, give the final answer as inequalities, for example k<−1k < -1 or k>7k > 7, or −8<m<8-8 < m < 8. Writing "−1>k>7-1 > k > 7" is wrong (it describes no numbers).
  • If a question asks for the point of contact of a tangent, find kk first, then solve the resulting perfect square.
Summary
  • Discriminant =b2−4ac= b^2 - 4ac: positive, two distinct roots; zero, a repeated root; negative, no real roots.
  • "Real roots" means ≥0\ge 0. "Tangent" or "touches" means =0= 0.
  • Always positive needs a>0a > 0 and b2−4ac<0b^2 - 4ac < 0; always negative needs a<0a < 0 and b2−4ac<0b^2 - 4ac < 0.
  • Rearrange to ax2+bx+c=0ax^2 + bx + c = 0 and identify aa, bb, cc before substituting.
  • An inequality in kk is solved with critical values and a sketch.
  • If aa depends on kk, test the value of kk that makes a=0a = 0.
  • "Show that roots are real for all kk": simplify the discriminant to something visibly positive, such as k2+4k^2 + 4.

Practice questions

Question
  1. Find the discriminant of 3x2−5x+43x^2 - 5x + 4 and hence state the number of real roots of 3x2−5x+4=03x^2 - 5x + 4 = 0.
  2. The equation x2−6x+c=0x^2 - 6x + c = 0 has a repeated root. Find cc and the root.
  3. Find the values of kk for which 4x2+kx+9=04x^2 + kx + 9 = 0 has equal roots.
  4. Find the set of values of kk for which x2+kx+k+3=0x^2 + kx + k + 3 = 0 has two distinct real roots.
  5. Find the set of values of pp for which 2x2+px+82x^2 + px + 8 is positive for all real xx.
  6. Show that x2+(k−2)x−k=0x^2 + (k - 2)x - k = 0 has two distinct real roots for all values of kk.
  7. Find the set of values of kk for which kx2−4x+k=0kx^2 - 4x + k = 0 has no real roots.
  8. The line y=mx+1y = mx + 1 is a tangent to the curve y=x2+2x+5y = x^2 + 2x + 5. Find the two possible values of mm and the corresponding points of contact.
  9. Find the set of values of kk for which (k−1)x2+2kx+(k+2)=0(k - 1)x^2 + 2kx + (k + 2) = 0 has two distinct real roots.
  10. Find the set of values of kk for which the curve y=kx2+kx+1y = kx^2 + kx + 1 lies entirely above the xx-axis.
Answers
  1. (−5)2−4(3)(4)=25−48=−23<0(-5)^2 - 4(3)(4) = 25 - 48 = -23 < 0, so there are no real roots.

  2. 36−4c=036 - 4c = 0, so c=9c = 9. Then x2−6x+9=(x−3)2=0x^2 - 6x + 9 = (x - 3)^2 = 0, root x=3x = 3.

  3. k2−4(4)(9)=0k^2 - 4(4)(9) = 0, so k2=144k^2 = 144 and k=±12k = \pm 12.

  4. k2−4(k+3)>0k^2 - 4(k + 3) > 0, i.e. k2−4k−12>0k^2 - 4k - 12 > 0, (k−6)(k+2)>0(k - 6)(k + 2) > 0. So k<−2k < -2 or k>6k > 6.

  5. a=2>0a = 2 > 0, so we need p2−64<0p^2 - 64 < 0: −8<p<8-8 < p < 8.

  6. b2−4ac=(k−2)2−4(1)(−k)=k2−4k+4+4k=k2+4b^2 - 4ac = (k - 2)^2 - 4(1)(-k) = k^2 - 4k + 4 + 4k = k^2 + 4. Since k2≥0k^2 \ge 0, this is at least 44, so always positive: two distinct real roots for every kk.

  7. For k≠0k \neq 0: 16−4k2<016 - 4k^2 < 0, so k2>4k^2 > 4, giving k<−2k < -2 or k>2k > 2. For k=0k = 0 the equation is −4x=0-4x = 0, which has the root x=0x = 0, so k=0k = 0 is excluded (and it is not in the set anyway). Answer: k<−2k < -2 or k>2k > 2.

  8. x2+2x+5=mx+1x^2 + 2x + 5 = mx + 1 gives x2+(2−m)x+4=0x^2 + (2 - m)x + 4 = 0. Tangent: (2−m)2−16=0(2 - m)^2 - 16 = 0, so 2−m=±42 - m = \pm 4, giving m=−2m = -2 or m=6m = 6.

    • m=6m = 6: x2−4x+4=0x^2 - 4x + 4 = 0, x=2x = 2, y=13y = 13. Point (2,13)(2, 13).
    • m=−2m = -2: x2+4x+4=0x^2 + 4x + 4 = 0, x=−2x = -2, y=5y = 5. Point (−2,5)(-2, 5).
  9. For the equation to be quadratic we need k≠1k \neq 1. Discriminant: (2k)2−4(k−1)(k+2)=4k2−4(k2+k−2)=8−4k(2k)^2 - 4(k - 1)(k + 2) = 4k^2 - 4\left(k^2 + k - 2\right) = 8 - 4k. Two distinct roots: 8−4k>08 - 4k > 0, so k<2k < 2. When k=1k = 1 the equation is 2x+3=02x + 3 = 0, which has only one root. Answer: k<2k < 2, k≠1k \neq 1.

  10. If k=0k = 0, y=1y = 1, which is above the axis, so k=0k = 0 works. If k≠0k \neq 0 we need k>0k > 0 and k2−4k<0k^2 - 4k < 0, i.e. k(k−4)<0k(k - 4) < 0, so 0<k<40 < k < 4. (k<0k < 0 gives a ∩\cap-shape, which must go below the axis.) Answer: 0≤k<40 \le k < 4.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action