Euler Hall — free maths guides

Use the discriminant to count a quadratic's real solutions and say whether they are rational

Compute b squared minus 4ac from any quadratic in standard form. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

The part under the root

The quadratic formula's radical holdsb2−4acb^{2} - 4ac. That expression is called the discriminant, and its sign decides everything about how many real solutions exist — before you compute a single root.

| discriminant | real solutions | what it looks like | |---|---|---| |b2−4ac>0b^{2} - 4ac > 0 | two distinct | the parabola crosses the axis twice | |b2−4ac=0b^{2} - 4ac = 0 | one repeated | the parabola touches the axis at its vertex | |b2−4ac<0b^{2} - 4ac < 0 | none | the parabola never reaches the axis |

Forx2−5x+6=0x^{2} - 5x + 6 = 0:25−24=125 - 24 = 1, positive, so two solutions. Indeed22 and33.

Forx2−4x+4=0x^{2} - 4x + 4 = 0:16−16=016 - 16 = 0, so one repeated solution —x=2x = 2, twice.

Why the sign is all that matters

The formula is−b±b2−4ac2a\frac{-b \pm \sqrt{b^{2}-4ac}}{2a}. Everything except the radical is arithmetic that always produces a real number. So the only question is whether the radical is real and how many values it gives.

Ifb2−4ac>0b^{2} - 4ac > 0, the root is a positive real number and±\pm produces two different values. If it is00, the root is zero and both signs collapse to the same value, so one solution. If it is negative, no real number squares to it, so no real solution exists.

The discriminant also says whether the solutions are rational: if the discriminant is a perfect square, its square root is an integer and the whole formula becomes a ratio of integers.

Worked example, counting and classifying

Decide how many real solutions2x2−4x+5=02x^{2} - 4x + 5 = 0 has, and whether any are rational.

Step 1. Read the coefficients.a=2a = 2,b=−4b = -4,c=5c = 5.

Step 2. Compute the discriminant.b2−4ac=16−40=−24b^{2} - 4ac = 16 - 40 = -24.

Step 3. Read the sign. Negative.

Step 4. Conclude. No real solutions, so the question of rational roots does not arise.

Step 5. Check with a picture. The vertex is atx=1x = 1, wherey=2−4+5=3y = 2 - 4 + 5 = 3. The parabola opens upward from a minimum of33, so it never touches the axis. The count agrees with the picture.

By the end you can
  • Compute b squared minus 4ac from any quadratic in standard form
  • Count the real solutions from the discriminant's sign
  • Decide whether the solutions are rational from whether the discriminant is a perfect square
  • Find the constant that makes a quadratic have exactly one solution
Check yourself

(a) How many real solutions doesx2−2x−8=0x^{2} - 2x - 8 = 0 have?

(b) How many does3x2+2x+7=03x^{2} + 2x + 7 = 0 have?

(c) For which values ofcc doesx2+4x+c=0x^{2} + 4x + c = 0 have exactly one solution?

Answers

(a)4+32=36>04 + 32 = 36 > 0, so two. They are44 and−2-2, both rational.

(b)4−84=−80<04 - 84 = -80 < 0, so none.

(c) One solution needs16−4c=016 - 4c = 0, soc=4c = 4. Then the equation is(x+2)2=0(x+2)^{2} = 0.

Work out where to start — free, no accountAnswer six real questions — free, no account