Unit 3, lesson 26

Quadratic Formula and Discriminant

How to solve any quadratic equation with the quadratic formula, and how the discriminant tells you whether there are two, one or no real solutions before you solve.

  • Theory part 51
  • Practice part 52
  • Quadratics

Theory, part 51

Practice, part 52

Factoring is fast when it works, but an equation like x2−4x−1=0x^2 - 4x - 1 = 0 has no nice factors at all. Completing the square always works, and if you do it once with letters instead of numbers you get a formula that solves every quadratic equation. Even better, one small piece of that formula answers a question the SAT loves to ask without any solving, namely how many real solutions there are.

See also The Quadratic Formula and Real Solutions in Foundations for Calculus.

Key terms

Leading coefficient

Definition A quadratic equation in standard form is

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

where aa, bb and cc are real constants and a≠0a \ne 0. The number aa, the coefficient of the highest power of xx, is the leading coefficient. If a=0a = 0, the equation is linear, not quadratic, and nothing in this lesson applies to it.

In plain words Before using any quadratic rule, move everything to one side, order the terms by power, and read off aa, bb and cc with their signs.

Example The equation 5+2x=3x25 + 2x = 3x^2 becomes −3x2+2x+5=0-3x^2 + 2x + 5 = 0 after moving every term to the left side. So a=−3a = -3, b=2b = 2 and c=5c = 5. Multiplying through by −1-1 gives the equally valid 3x2−2x−5=03x^2 - 2x - 5 = 0, with a=3a = 3, b=−2b = -2 and c=−5c = -5, and the same solutions.

Quadratic formula

Definition If a≠0a \ne 0, the solutions of ax2+bx+c=0ax^2 + bx + c = 0 are

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

These are real numbers when b2−4ac≥0b^2 - 4ac \ge 0. When b2−4ac<0b^2 - 4ac < 0 the square root is not a real number, and the equation has no real solutions. The formula comes from completing the square in the general equation. The sign ±\pm stands for the two branches, one with ++ and one with −-. Learn the formula by heart rather than counting on looking it up during the test.

In plain words Plug in aa, bb and cc, and the formula hands you both solutions at once. Put each substituted number in parentheses, especially negative ones, before doing any arithmetic.

Example Solve 2x2−7x+3=02x^2 - 7x + 3 = 0. Here a=2a = 2, b=−7b = -7 and c=3c = 3.

x=−(−7)±(−7)2−4(2)(3)2(2)=7±254=7±54.\begin{aligned} x &= \frac{-(-7) \pm \sqrt{(-7)^2 - 4(2)(3)}}{2(2)} \\[0.4em] &= \frac{7 \pm \sqrt{25}}{4} = \frac{7 \pm 5}{4}. \end{aligned}

The plus branch gives x=3x = 3 and the minus branch gives x=12x = \frac{1}{2}. Both roots are rational because the coefficients are integers and 2525 is a perfect square, and indeed the left side factors as (2x−1)(x−3)(2x - 1)(x - 3).

Discriminant

Definition The discriminant of ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \ne 0 is the number

D=b2−4ac.D = b^2 - 4ac.

It decides how many real solutions the equation has.

DiscriminantReal solutionsGraph of y=ax2+bx+cy = ax^2 + bx + c
D>0D > 0two distinctcrosses the xx-axis twice
D=0D = 0one repeatedtouches the xx-axis once
D<0D < 0nonemisses the xx-axis

When D<0D < 0 there are no real solutions, but there are still two complex solutions, so do not say the equation has no solutions of any kind. On the SAT variables are real unless a question says otherwise, so “no real solutions” is the right reading there.

In plain words The discriminant is the part under the square root. A positive number has two square roots, zero has one, and a negative number has no real square root.

Example For 3x2−5x+4=03x^2 - 5x + 4 = 0,

D=(−5)2−4(3)(4)=25−48=−23.\begin{aligned} D &= (-5)^2 - 4(3)(4) \\[0.4em] &= 25 - 48 = -23. \end{aligned}

Since D<0D < 0, the equation has no real solutions, and the parabola y=3x2−5x+4y = 3x^2 - 5x + 4 stays entirely above the xx-axis. You found that without solving anything.

Real root

Definition A real root (or real solution) of ax2+bx+c=0ax^2 + bx + c = 0 is a real number rr with ar2+br+c=0ar^2 + br + c = 0. Each real root rr is the xx-coordinate of an xx-intercept (r,0)(r, 0) of the graph of y=ax2+bx+cy = ax^2 + bx + c. When D>0D > 0 there are exactly two distinct real roots. If aa, bb and cc are integers and D≥0D \ge 0, the roots are rational exactly when DD is a perfect square such as 00, 11, 44 or 2525. Otherwise both roots are irrational.

In plain words A real root is an ordinary number that makes the equation true. On a graph it is where the parabola meets the xx-axis.

Example Solve x2−4x−1=0x^2 - 4x - 1 = 0. Here D=16+4=20D = 16 + 4 = 20, which is positive but not a perfect square.

x=4±202=4±252=2±5.\begin{aligned} x &= \frac{4 \pm \sqrt{20}}{2} = \frac{4 \pm 2\sqrt{5}}{2} \\[0.4em] &= 2 \pm \sqrt{5}. \end{aligned}

The two real roots are about 4.2364.236 and −0.236-0.236. In the Desmos graphing calculator you can type y=x2−4x−1y = x^2 - 4x - 1 and click the curve. Gray points appear at features such as the xx-intercepts, and clicking one shows its coordinates as decimals. On a multiple choice question, though, the answer is usually listed in the exact form 2±52 \pm \sqrt{5}.

Repeated root

Definition A quadratic equation has a repeated root (a double root) rr when it can be written as a(x−r)2=0a(x - r)^2 = 0 with a≠0a \ne 0. This happens exactly when D=0D = 0, and then the only solution is

x=−b2a.x = -\frac{b}{2a}.

The equation has one real solution, not two, even though the factor x−rx - r appears twice.

In plain words With a zero discriminant the ±\pm adds and subtracts nothing, so both branches land on the same number. The parabola just touches the xx-axis at its vertex.

Example For 4x2−12x+9=04x^2 - 12x + 9 = 0 the discriminant is 144−4(4)(9)=0144 - 4(4)(9) = 0. The repeated root is

x=122⋅4=32.x = \frac{12}{2 \cdot 4} = \frac{3}{2}.

The left side is (2x−3)2(2x - 3)^2, a perfect square, which confirms that 32\frac{3}{2} is the one and only solution.

Check yourself

  1. How many distinct real solutions does the equation 2x2+5x+4=02x^2 + 5x + 4 = 0 have? (A) Zero, (B) Exactly one, (C) Exactly two, (D) Infinitely many
Show the answer

Choice (A) is correct. The discriminant is

D=52−4(2)(4)=25−32=−7,D = 5^2 - 4(2)(4) = 25 - 32 = -7,

which is negative, so there are no real solutions. Choice (C) is what you get by computing 25+3225 + 32, which drops the minus sign in b2−4acb^2 - 4ac. Choice (B) mistakes a negative discriminant for a repeated root, but exactly one solution needs D=0D = 0, and a quadratic equation never has infinitely many solutions, which rules out (D).

  1. The solutions of x2−6x+4=0x^2 - 6x + 4 = 0 can be written as x=3±kx = 3 \pm \sqrt{k}, where kk is a constant. What is the value of kk?
Show the answer

The answer is 55. The quadratic formula gives

x=6±36−162=6±202.x = \frac{6 \pm \sqrt{36 - 16}}{2} = \frac{6 \pm \sqrt{20}}{2}.

Since 20=25\sqrt{20} = 2\sqrt{5}, this is 3±53 \pm \sqrt{5}. Entering 2020 is the trap, because the 22 in the denominator still has to divide the square root.

  1. Which equation has exactly one real solution? (A) x2−25=0x^2 - 25 = 0, (B) x2+25=0x^2 + 25 = 0, (C) x2−10x+25=0x^2 - 10x + 25 = 0, (D) x2−10x−25=0x^2 - 10x - 25 = 0
Show the answer

Choice (C) is correct. Its discriminant is 100−100=0100 - 100 = 0, and it equals (x−5)2=0(x - 5)^2 = 0 with the repeated root 55. Choice (A) has D=100D = 100 and two solutions, 55 and −5-5. Choice (B) has D=−100D = -100 and no real solutions. Choice (D) has D=100+100=200D = 100 + 100 = 200 and two irrational solutions.

How this lesson connects