Algebra › Section I · Quadratic equations and functions › Topic I.3

The quadratic formula and the discriminant

Completing the square works, but doing it fresh for every equation is tedious. Run the method once on the general quadratic with letters in it, and you never have to run it again - the result is a formula that solves every quadratic that ever was.

The formula

For any quadratic equation in standard form \(ax^2 + bx + c = 0\) with \(a \neq 0\), the solutions are

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

The formula is a complete solving machine: substitute the coefficients, simplify, and out come both solutions at once. It never fails, never needs friendly numbers, and never requires spotting a factorization that may not exist. Every other quadratic technique is a shortcut for special cases; this is the method of last resort that also happens to be the method of certainty.

Where it comes from

The formula is completing the square, executed once on \(ax^2 + bx + c = 0\) with letters instead of numbers. Isolate the variable terms, divide by \(a\), add \(\left(\frac{b}{2a}\right)^2\) to both sides to complete the square, factor the left side, and apply the square root property - the \(\pm\) from the property survives into the formula's numerator. This origin explains the formula's shape: the \(2a\) in the denominator is the division by \(a\), and the \(-b\) is the moved linear term. Knowing the derivation is knowing that the formula is not magic - it is a routine you could rebuild if you forgot the result.

The substitution routine

Step 1: write the equation in standard form - everything on one side, zero on the other; a formula applied to \(3x^2 = 5x - 2\) without rearranging will read off the wrong \(b\) and \(c\). Step 2: identify \(a\), \(b\), and \(c\) with their signs - \(c\) is negative whenever the constant sits on the left with a minus. Step 3: substitute inside parentheses and simplify, radical first, then the fraction. Step 4: check by substitution or by graphing intuition. The formula turns algebra into careful bookkeeping.

Worked example: a friendly outcome

Solve \(3x^2 + 5x - 2 = 0\). Here \(a = 3\), \(b = 5\), \(c = -2\), and the discriminant is \(b^2 - 4ac = 25 + 24 = 49\), a perfect square: \(x = \frac{-5 \pm 7}{6}\). The two candidates: \(x = \frac{2}{6} = \frac{1}{3}\) and \(x = \frac{-12}{6} = -2\). Checking \(x = \frac{1}{3}\): \(\frac{1}{3} + \frac{5}{3} - 2 = 0\). Checking \(x = -2\): \(12 - 10 - 2 = 0\). A perfect-square discriminant always means the roots are rational - this equation could also have been solved by factoring, \((3x - 1)(x + 2) = 0\), and the formula confirms the factoring.

Worked example: irrational roots

Solve \(x^2 + 8x + 10 = 0\). With \(a = 1\), \(b = 8\), \(c = 10\): \(x = \frac{-8 \pm \sqrt{64 - 40}}{2} = \frac{-8 \pm \sqrt{24}}{2}\). Simplify the radical - \(\sqrt{24} = 2\sqrt{6}\) - then reduce the fraction: \(x = \frac{-8 \pm 2\sqrt{6}}{2} = -4 \pm \sqrt{6}\). No factoring over the integers reaches these roots, which is exactly why the formula exists. Checking \(x = -4 + \sqrt{6}\) by squaring: \((\sqrt{6} - 4)^2 = 6 - 8\sqrt{6} + 16\), and adding \(8(\sqrt{6} - 4) + 10\) gives \(6 - 8\sqrt{6} + 16 + 8\sqrt{6} - 32 + 10 = 0\). Certified.

Worked example: a double root

Solve \(9x^2 + 12x + 4 = 0\). With \(a = 9\), \(b = 12\), \(c = 4\), the discriminant is \(144 - 4(9)(4) = 144 - 144 = 0\), so \(x = \frac{-12 \pm 0}{18} = -\frac{12}{18} = -\frac{2}{3}\) - one solution, not two. The plus and the minus agree because they differ by zero. The left side was a perfect square trinomial in disguise: \(9x^2 + 12x + 4 = (3x + 2)^2\), and a square that equals zero can only vanish at one point. Checking: \(9 \cdot \frac{4}{9} - 8 + 4 = 4 - 8 + 4 = 0\).

The discriminant

The expression under the formula's radical, \(D = b^2 - 4ac\), is called the discriminant, and it predicts the solution count before any solving. If \(D > 0\): two distinct real solutions - rational when \(D\) is a perfect square, irrational otherwise. If \(D = 0\): exactly one real solution, the double root. If \(D < 0\): no real solutions, but two complex ones - the negative radicand produces imaginary parts, which the complex-number topic makes precise. Computing \(D\) costs one substitution and answers the exam question "how many real roots?" with zero solving.

Worked example: predictions before solving

Predict, then solve only if worthwhile. For \(5x^2 - 3x - 1 = 0\): \(D = 9 + 20 = 29 > 0\), not a perfect square - two irrational real solutions. For \(2x^2 + 3x + 5 = 0\): \(D = 9 - 40 = -31 < 0\) - no real solutions, two complex ones; the formula would produce \(x = \frac{-3 \pm \sqrt{-31}}{4}\), and the negative under the radical is the complex-number signal. For \(x^2 - 10x + 25 = 0\): \(D = 100 - 100 = 0\) - exactly one solution, \(x = 5\), visible instantly since the left side is \((x - 5)^2\). Three equations, three fates, all read off a one-line computation.

Choosing a method

The toolkit now holds four solvers, and choosing well saves minutes. No \(x\)-term: the square root property, one line. Friendly integer factors: factoring with the zero-product property, fastest of all. Everything else: the quadratic formula. Completing the square is worth a fresh look when the vertex is also wanted, since the process manufactures vertex form as a byproduct. When in doubt, the formula - it is never wrong, only occasionally slow. And the discriminant check can be run first to decide whether factoring is even possible: a non-perfect-square positive \(D\) tells you not to bother hunting.

Common mistakes to avoid

First, substituting \(b\) without its minus sign: the numerator starts at \(-b\), so \(b = 5\) enters as \(-5\). Second, dropping the sign of \(c\): in \(x^2 + 8x + 10\) the \(c\) is \(+10\), but in \(3x^2 + 5x - 2\) it is \(-2\), and \(-4ac\) then turns positive. Third, forgetting the entire denominator \(2a\), not just 2. Fourth, skipping standard form: an equation presented as \(3x^2 = 5x - 2\) must move everything left first. Fifth, simplifying \(\frac{-8 \pm 2\sqrt{6}}{2}\) to \(-8 \pm \sqrt{6}\) - the division hits every term in the numerator, giving \(-4 \pm \sqrt{6}\). Sixth, reading \(D < 0\) as "no solutions": the solutions exist, they are complex.

Key takeaways

The quadratic formula \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\) solves every quadratic in standard form - it is completing the square run once on the general case. Standard form first, identify \(a\), \(b\), \(c\) with signs, substitute in parentheses, simplify the radical, reduce the fraction. The discriminant \(b^2 - 4ac\) predicts the outcome: positive means two real roots (rational when it is a perfect square), zero means one double root, negative means two complex roots. Factor when friendly, use the square root property when the \(x\)-term is absent, and use the formula whenever certainty matters.

Flashcards

Flashcard

Quadratic formula

x = (-b +/- root(b^2 - 4ac)) / 2a

Solves every quadratic.

Test your understanding

Question 1 of 5

Solve 3x^2 + 5x - 2 = 0 using the quadratic formula.

Question 2 of 5

What is the discriminant of x^2 + 8x + 10 = 0?

Question 3 of 5

How many real solutions does 2x^2 + 3x + 5 = 0 have?

Question 4 of 5

Solve 9x^2 + 12x + 4 = 0.

Question 5 of 5

Which equation has exactly one real solution?

← Previous topicNext topic →