Unit 2, lesson 16

The Quadratic Formula and Real Solutions

How to read off the coefficients of a quadratic equation, apply the quadratic formula correctly, and use the discriminant to tell in advance whether there are two, one or no real solutions.

  • Theory part 31
  • Practice part 32
  • Radicals and Quadratics

Throw a ball upward and ask when it lands, or set a derivative equal to zero to find where a graph turns. Both questions often end in an equation like ax2+bx+c=0ax^2 + bx + c = 0. The quadratic formula solves every such equation, and before you do any arithmetic, one number inside it already tells you how many real answers to expect.

Key terms

Quadratic equation

Definition A quadratic equation in xx is an equation that can be written in the standard form

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

where aa, bb and cc are real numbers and a≠0a \ne 0. If a=0a = 0 the equation is bx+c=0bx + c = 0, which is linear, and the quadratic formula does not apply to it.

In plain words A quadratic equation has an x2x^2 term and no higher power. Before solving, move everything to one side so the other side is 00.

Example The equation 3x2=5x+23x^2 = 5x + 2 becomes 3x2−5x−2=03x^2 - 5x - 2 = 0 after subtracting 5x+25x + 2 from both sides. Its solutions turn out to be 22 and −13-\frac{1}{3}.

Coefficients

Definition In the standard form ax2+bx+c=0ax^2 + bx + c = 0, the number aa is the coefficient of x2x^2, bb is the coefficient of xx, and cc is the constant term. Each coefficient includes its sign, and a missing term has coefficient 00.

In plain words Read the three numbers from the standard form, signs and all. The order of the terms on the page does not matter, only which power of xx each number goes with.

Example The equation 2−x2+4x=02 - x^2 + 4x = 0 has a=−1a = -1, b=4b = 4 and c=2c = 2. The equation 5x2−7=05x^2 - 7 = 0 has a=5a = 5, b=0b = 0 and c=−7c = -7.

Quadratic formula

Definition Let aa, bb, cc be real with a≠0a \ne 0. If b2−4ac≥0b^2 - 4ac \ge 0, the real solutions of ax2+bx+c=0ax^2 + bx + c = 0 are exactly

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

The formula comes from completing the square. Dividing by aa and completing the square gives

(x+b2a)2=b2−4ac4a2,\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2},

and taking square roots of both sides, which is possible in the real numbers exactly when the right side is nonnegative, gives the formula. If b2−4ac<0b^2 - 4ac < 0 there is no real solution. See completing the square for that step.

In plain words Put the three coefficients into the formula and simplify. The whole top line, including −b-b, is divided by 2a2a.

Example Solve 2x2−3x−5=02x^2 - 3x - 5 = 0, where a=2a = 2, b=−3b = -3 and c=−5c = -5. Then b2−4ac=9+40=49b^2 - 4ac = 9 + 40 = 49, so

x=3±74,x=52 or x=−1.x = \frac{3 \pm 7}{4}, \qquad x = \frac{5}{2} \ \text{or} \ x = -1.

Check x=−1x = -1 in the original, 2+3−5=02 + 3 - 5 = 0.

Plus or minus

Definition The symbol ±\pm in the formula stands for two separate expressions, one with ++ and one with −-,

x1=−b+b2−4ac2a,x2=−b−b2−4ac2a.\begin{gathered} x_1 = \frac{-b + \sqrt{b^2 - 4ac}}{2a}, \\[0.4em] x_2 = \frac{-b - \sqrt{b^2 - 4ac}}{2a}. \end{gathered}

It comes from the fact that, for d>0d > 0, the equation u2=du^2 = d has the two solutions u=du = \sqrt{d} and u=−du = -\sqrt{d}. In each case the complete numerator is divided by 2a2a. Writing −b±b2−4ac2a-b \pm \frac{\sqrt{b^2 - 4ac}}{2a} is in general a different number and is wrong.

In plain words One formula, two answers. Do the calculation once with plus and once with minus.

Example For x2−4x+1=0x^2 - 4x + 1 = 0 we have b2−4ac=16−4=12b^2 - 4ac = 16 - 4 = 12 and 12=23\sqrt{12} = 2\sqrt{3}, so

x=4±232=2±3.x = \frac{4 \pm 2\sqrt{3}}{2} = 2 \pm \sqrt{3}.

Both terms of the numerator were divided by 22. The solutions are about 3.7323.732 and 0.2680.268.

Discriminant

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

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

If D>0D > 0 the equation has two distinct real solutions. If D=0D = 0 it has exactly one real solution, x=−b2ax = -\frac{b}{2a}. If D<0D < 0 it has no real solution.

In plain words The discriminant is the number under the square root. Its sign decides how many real answers there are, before you compute any of them.

Example The three equations below differ only in the constant term.

EquationDDReal solutions
x2+2x−3=0x^2 + 2x - 3 = 01616two, x=1x = 1 and x=−3x = -3
x2+2x+1=0x^2 + 2x + 1 = 000one, x=−1x = -1
x2+2x+5=0x^2 + 2x + 5 = 0−16-16none

On the graphs, the parabola y=x2+2x+cy = x^2 + 2x + c crosses the xx axis twice, touches it once, or stays above it.

Real solution

Definition A real solution of an equation is a real number that makes the equation true. When D<0D < 0, the right side of (x+b2a)2=D4a2\left(x + \frac{b}{2a}\right)^2 = \frac{D}{4a^2} is negative while the left side is a real square and so is nonnegative. No real xx can satisfy it, so the quadratic has no real solution. This course works over the real numbers, so in that case the answer is simply that there is no solution. The complex numbers, which this course does not use, are where such equations do have solutions.

In plain words A negative discriminant means you would need the square root of a negative number. No real number squares to a negative, so there is nothing to find on the number line.

Example For x2+x+1=0x^2 + x + 1 = 0 the discriminant is 1−4=−3<01 - 4 = -3 < 0. Completing the square confirms it,

x2+x+1=(x+12)2+34≥34,x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4} \ge \frac{3}{4},

so the left side is never 00 for real xx.

Repeated root

Definition When D=0D = 0, the quadratic factors as

ax2+bx+c=a(x+b2a)2,ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2,

so x=−b2ax = -\frac{b}{2a} is its only root. It is called a repeated root, or a double root, because the factor x+b2ax + \frac{b}{2a} appears twice. There is one distinct real solution, not two.

In plain words The two answers from plus and minus collapse into the same number, since you add and subtract zero. The parabola just touches the axis at its vertex.

Example For 4x2−12x+9=04x^2 - 12x + 9 = 0 the discriminant is 144−144=0144 - 144 = 0. The formula gives x=128=32x = \frac{12}{8} = \frac{3}{2}, and indeed 4x2−12x+9=(2x−3)24x^2 - 12x + 9 = (2x - 3)^2.

Check yourself

  1. Solve 3x2+2x−4=03x^2 + 2x - 4 = 0 exactly.
Show the answer

Here a=3a = 3, b=2b = 2, c=−4c = -4, so D=4+48=52D = 4 + 48 = 52 and 52=213\sqrt{52} = 2\sqrt{13}. Then

x=−2±2136=−1±133.x = \frac{-2 \pm 2\sqrt{13}}{6} = \frac{-1 \pm \sqrt{13}}{3}.

These are about 0.8690.869 and −1.535-1.535.

  1. Explain without solving why 2x2−4x+5=02x^2 - 4x + 5 = 0 has no real solution.
Show the answer

The discriminant is (−4)2−4⋅2⋅5=16−40=−24(-4)^2 - 4 \cdot 2 \cdot 5 = 16 - 40 = -24, which is negative. A real solution would require a real square root of −24-24, and none exists.

  1. For which real numbers kk does x2+kx+9=0x^2 + kx + 9 = 0 have a repeated root?
Show the answer

A repeated root needs D=k2−36=0D = k^2 - 36 = 0, so k=6k = 6 or k=−6k = -6. For k=6k = 6 the root is −3-3, since x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2, and for k=−6k = -6 it is 33.

How this lesson connects