math.wiki
Algebra › Quadratics › The quadratic formula › Deriving the quadratic formula
Open on the map
Algebra 1 · A.REI.B.4A · N.CN.C.9

Deriving the quadratic formula

Completing the square takes the same steps on every quadratic. Can you do it once, for all of them at the same time?

Where you are 4 in The quadratic formula

Why this exists

Completing the square solves every quadratic equation, but it does so the long way, and the same long way each time. Move the constant across. Divide by the leading coefficient. Halve the coefficient of x, square it, add it to both sides. Write the left side as a square, take square roots, solve. Only the numbers change from one problem to the next.

When a calculation repeats with different numbers, the move in algebra is to do it once with letters standing for the numbers, the way you solve a formula for one of its variables. Run completing the square on

ax^2 + bx + c = 0

with a, b and c left as letters, and what comes out is one formula that holds the answer to every quadratic equation there is. You substitute three numbers and the work is already done.

Rules in words came long before the formula. Brahmagupta, in 628, described in words a rule that amounts to it for one arrangement of the equation, taking only the positive root. Al-Khwarizmi, around 820, solved quadratics by completing a square drawn as an actual picture, but he had no letters for the coefficients and did not use negative numbers, so he split quadratics into separate cases, each with its own rule. One line that covers every case needed algebra written in symbols, which grew up in the late sixteenth and seventeenth centuries.

Definition

For any numbers a, b and c with a \neq 0, the solutions of ax^2 + bx + c = 0 are

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

This is the quadratic formula. The \pm packs two answers into one line: one with +, one with -.

The number under the root, b^2 - 4ac, is called the discriminant. It decides what kind of answers there are, which is why it gets its own name.

Deriving the formula means getting it from completing the square, step by step, with every step allowed. That is the content of this page. A formula you have derived is one you can rebuild if you forget it, and one whose every piece you can explain: why there is a \pm, why a square root, why 2a underneath.

Intuition

Only one step of the derivation is new, and it is the one where the letters look worst. After dividing by a, the x terms are

x^2 + \frac{b}{a}x

This is the same shape as x^2 + 6x: a square with a strip along two sides and a corner missing. The coefficient of x is now the fraction \displaystyle \frac{b}{a}, so each strip is half of it, \displaystyle \frac{b}{2a}, wide, and the missing corner is a square of side \displaystyle \frac{b}{2a}.

x^2
\displaystyle \frac{b}{2a}x
\displaystyle \frac{b}{2a}x
\displaystyle \frac{b^2}{4a^2}
x
\displaystyle \frac{b}{2a}
x
\displaystyle \frac{b}{2a}
Figure 1After dividing by a, the expression is \displaystyle x^2 + \frac{b}{a}x. The missing corner is \displaystyle \left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}.

So the piece to add is \displaystyle \left(\frac{b}{2a}\right)^2 = \frac{b^2}{4a^2}. It is the same “half, squared” as always. The letters only make it look new.

The finished formula also has a shape worth seeing. Split it into two fractions:

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

The first part is one fixed number. The second is a distance, added once and subtracted once. So the two solutions sit the same distance either side of \displaystyle -\frac{b}{2a}, and on the graph of y = ax^2 + bx + c that middle point is where the axis of symmetry crosses the x-axis.

\displaystyle \frac{\sqrt{b^2-4ac}}{2a}
\displaystyle \frac{\sqrt{b^2-4ac}}{2a}
\displaystyle x = -\frac{b}{2a}
x
Figure 2The formula names a center, \displaystyle -\frac{b}{2a}, and a distance to go either way from it.

When the discriminant is 0, the distance is 0 and the two solutions become one: the parabola just touches the axis at its vertex. When the discriminant is negative there is no real distance to go, and the parabola misses the axis altogether.

Results

The quadratic formula. If a \neq 0, the solutions of ax^2 + bx + c = 0 are

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

The completed square. For every x, and any a \neq 0,

ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a}

The discriminant. With real a, b, c: if b^2 - 4ac > 0 there are two real solutions; if b^2 - 4ac = 0 there is one, \displaystyle x = -\frac{b}{2a}; if b^2 - 4ac < 0 there are no real solutions, and two complex ones.

Sum and product. If the two solutions are x_1 and x_2, then

x_1 + x_2 = -\frac{b}{a} \qquad\text{and}\qquad x_1 x_2 = \frac{c}{a}
Why it is true

Start from the general equation, with a \neq 0:

ax^2 + bx + c = 0

Move the constant. Completing the square works on the x terms alone, so subtract c from both sides:

ax^2 + bx = -c

Divide by a. Completing the square needs the coefficient of x^2 to be 1. Dividing both sides by a is allowed precisely because a \neq 0, and it keeps the same solutions, since multiplying by a undoes it:

x^2 + \frac{b}{a}x = -\frac{c}{a}

Add half the coefficient of x, squared, to both sides. Half of \displaystyle \frac{b}{a} is \displaystyle \frac{b}{2a}, and its square is \displaystyle \frac{b^2}{4a^2}:

x^2 + \frac{b}{a}x + \frac{b^2}{4a^2} = \frac{b^2}{4a^2} - \frac{c}{a}

Write the left side as a square. The number inside the brackets is the half, \displaystyle \frac{b}{2a}. On the right, put both fractions over 4a^2 by writing \displaystyle \frac{c}{a} = \frac{4ac}{4a^2}:

\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}

This line is the heart of the derivation. The left side is a square, so it is never negative when x is real. The right side has a positive denominator, 4a^2, so its sign is the sign of b^2 - 4ac. That is why the discriminant decides whether real solutions exist.

Take square roots, keeping both signs. By the square root property,

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

Now \displaystyle \sqrt{4a^2} = 2|a|, which is 2a when a is positive and -2a when a is negative. It does not matter which: dividing by -2a instead of 2a only swaps which solution goes with + and which with -, and the \pm lists both anyway. So

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

Subtract \displaystyle \frac{b}{2a} from both sides. The two fractions already share the denominator 2a:

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

Every step can be run backwards: add c back, multiply by a, subtract what was added, square. So no step created a false solution or lost a true one, and the formula gives exactly the solutions of the original equation.

The completed-square result is the same work done on the expression instead of the equation. An expression has no second side, so instead of dividing by a, factor it out of the x terms, then add and subtract \displaystyle \frac{b^2}{4a^2} inside the brackets, as in completing the square with a leading coefficient. Multiply out the right side to check it.

For the sum and product, add the two solutions: the square roots cancel, leaving \displaystyle \frac{-2b}{2a} = -\frac{b}{a}. Multiply them, using (p + q)(p - q) = p^2 - q^2:

\frac{(-b)^2 - \left(b^2 - 4ac\right)}{4a^2} = \frac{4ac}{4a^2} = \frac{c}{a}

Worked examples

Example 1

The same steps with numbers beside the letters

Solve 2x^2 + 3x - 5 = 0 by completing the square, then match each line to the derivation.

Solution

Move the constant and divide by a = 2:

\begin{aligned} 2x^2 + 3x &= 5 \\[4pt] x^2 + \frac{3}{2}x &= \frac{5}{2} \end{aligned}

Half of \displaystyle \frac{3}{2} is \displaystyle \frac{3}{4}, and its square is \displaystyle \frac{9}{16}. Write \displaystyle \frac{5}{2} as \displaystyle \frac{40}{16} to add:

\begin{aligned} \left(x + \frac{3}{4}\right)^2 &= \frac{40}{16} + \frac{9}{16} = \frac{49}{16} \\[4pt] x + \frac{3}{4} &= \pm\frac{7}{4} \end{aligned}

So \displaystyle x = -\frac{3}{4} + \frac{7}{4} = 1 or \displaystyle x = -\frac{3}{4} - \frac{7}{4} = -\frac{5}{2}.

Now read the derivation with a = 2, b = 3, c = -5. The half, \displaystyle \frac{b}{2a}, is \displaystyle \frac{3}{4}, as above. The right side, \displaystyle \frac{b^2 - 4ac}{4a^2}, is \displaystyle \frac{9 + 40}{16} = \frac{49}{16}, as above. And the formula gives the same pair in one line:

x = \frac{-3 \pm \sqrt{49}}{4} = \frac{-3 \pm 7}{4}

which is 1 or \displaystyle -\frac{5}{2}. Every number in the long working was a piece of the formula.

Example 2

Radical answers, and the sum and product as a check

Solve 3x^2 - 2x - 2 = 0.

Solution

Here a = 3, b = -2, c = -2. Take care with the signs: -b = 2, and -4ac = -4(3)(-2) = 24.

b^2 - 4ac = 4 + 24 = 28
x = \frac{2 \pm \sqrt{28}}{6} = \frac{2 \pm 2\sqrt{7}}{6} = \frac{1 \pm \sqrt{7}}{3}

since \displaystyle \sqrt{28} = \sqrt{4 \cdot 7} = 2\sqrt{7} and every term then shares the factor 2.

Check with the sum and product. The two solutions add to \displaystyle \frac{2}{3}, which is \displaystyle -\frac{b}{a} = \frac{2}{3}. They multiply to \displaystyle \frac{1 - 7}{9} = -\frac{2}{3}, which is \displaystyle \frac{c}{a}. Both agree, without substituting a radical back into the equation.

Example 3

A negative leading coefficient

Solve -x^2 + 6x - 7 = 0.

Solution

With a = -1, b = 6, c = -7, the discriminant is 36 - 4(-1)(-7) = 36 - 28 = 8, and \displaystyle \sqrt{8} = 2\sqrt{2}. The denominator 2a is -2:

x = \frac{-6 \pm 2\sqrt{2}}{-2} = 3 \mp \sqrt{2}

Dividing by a negative turned \pm into \mp, “minus or plus”. That is the same two numbers, \displaystyle 3 + \sqrt{2} and \displaystyle 3 - \sqrt{2}, listed in the other order, so \displaystyle x = 3 \pm \sqrt{2}.

This is the point in the derivation where \displaystyle \sqrt{4a^2} was 2|a| and not 2a. You could also multiply the equation by -1 first, getting x^2 - 6x + 7 = 0, and the formula gives \displaystyle \frac{6 \pm \sqrt{8}}{2} = 3 \pm \sqrt{2} again. Either way works, because the \pm does not care which sign the denominator has.

Example 4

A negative discriminant

Solve x^2 + 2x + 5 = 0.

Solution

a = 1, b = 2, c = 5, and

b^2 - 4ac = 4 - 20 = -16

The key line of the derivation reads \displaystyle (x + 1)^2 = \frac{-16}{4} = -4, and no real number squares to a negative. So there are no real solutions, and the graph of y = x^2 + 2x + 5 never meets the x-axis.

Over the complex numbers, \displaystyle \sqrt{-16} = 4i, and the formula still applies:

x = \frac{-2 \pm 4i}{2} = -1 \pm 2i

The derivation never assumed the answer would be real; only the last square root did. The two answers are a conjugate pair, which is what the \pm always produces when the root is imaginary.

Example 5

Deriving it again, without fractions

Derive the formula a second way: multiply ax^2 + bx + c = 0 by 4a before completing the square.

Solution

Multiplying both sides by 4a is allowed, and keeps the solutions, because 4a \neq 0:

4a^2x^2 + 4abx + 4ac = 0

Look at the first two terms. 4a^2x^2 = (2ax)^2, and 4abx = 2 \cdot (2ax) \cdot b. So they are the first two terms of (2ax + b)^2 = (2ax)^2 + 2(2ax)b + b^2, and the missing piece is b^2. Move 4ac across and add b^2 to both sides:

\begin{aligned} 4a^2x^2 + 4abx + b^2 &= b^2 - 4ac \\ (2ax + b)^2 &= b^2 - 4ac \\ 2ax + b &= \pm\sqrt{b^2 - 4ac} \\ x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \end{aligned}

Same formula, and no fraction appears until the very last line. The 4a was chosen for exactly that: it makes the leading term a perfect square, (2ax)^2, and makes the “half the middle, squared” come out as the whole number b^2.

Try it on the first example, 2x^2 + 3x - 5 = 0. Multiply by 4a = 8: 16x^2 + 24x - 40 = 0. Add b^2 = 9 after moving the 40: (4x + 3)^2 = 49. So 4x + 3 = \pm 7, and x = 1 or \displaystyle x = -\frac{5}{2}, as before.

Example 6

Solving for a letter

A ball is thrown so that its height after t seconds is h = -5t^2 + 20t + 2 meters. Find a formula for the time t at which it reaches height h, and use it to find the greatest height.

Solution

Treat h as a known number and t as the unknown. As a quadratic in t equal to zero,

-5t^2 + 20t + (2 - h) = 0

so a = -5, b = 20 and c = 2 - h. The letter h inside c is no obstacle: the derivation never needed c to be a plain number. The discriminant is

\begin{aligned} 20^2 - 4(-5)(2 - h) &= 400 + 20(2 - h) \\ &= 440 - 20h \end{aligned}

and \displaystyle \sqrt{440 - 20h} = \sqrt{4(110 - 5h)} = 2\sqrt{110 - 5h}. With 2a = -10,

t = \frac{-20 \pm 2\sqrt{110 - 5h}}{-10} = 2 \pm \frac{\sqrt{110 - 5h}}{5}

(the sign flip from the negative denominator is absorbed by the \pm, as in Example 3).

Check at the starting height, h = 2: \displaystyle \sqrt{100} = 10, so t = 2 \pm 2, which is 0 or 4. The ball leaves at height 2 and comes back down through it 4 seconds later.

For the greatest height, ask when there is a real time at all. That needs 110 - 5h \ge 0, so h \le 22. At h = 22 the discriminant is 0 and there is exactly one time, t = 2. So the ball rises to 22 meters, at t = 2, and never higher. Indeed -5(4) + 40 + 2 = 22. The discriminant answered a question about the largest value without any graph.

Boundaries

a must not be 0. The derivation divided by a, and the formula divides by 2a. With a = 0 the equation is bx + c = 0, which is linear and has at most one solution, \displaystyle x = -\frac{c}{b}. It is not a quadratic, and the formula does not apply to it.

The equation must equal zero first. a, b and c are read from ax^2 + bx + c = 0 and nothing else. In x(x + 3) = 1 the constant is not 0 and not 1: expand and move everything to one side, x^2 + 3x - 1 = 0, and c = -1.

Real answers need a discriminant that is not negative. The derivation is valid for every a, b, c with a \neq 0, but the last square root is a real number only when b^2 - 4ac \ge 0. Below zero the answers are complex. At zero the two answers coincide, since \pm 0 is one number.

There is a formula like this for degree three and four, and not beyond. Cubic and quartic equations also have formulas in square and cube roots, far longer ones. For degree five and higher, Paolo Ruffini (1799, with a gap) and Niels Abel (1824) showed that no formula built from the coefficients with arithmetic and roots alone solves every equation. Some particular equations of degree five still have such answers, x^5 = 2 for one; what fails is a single formula for all of them.

Where this goes next

With the formula derived, using the quadratic formula is a matter of reading off a, b and c and simplifying with care. Its part under the root becomes the discriminant, and its sign counts the solutions before you solve anything. When it is negative, the formula gives complex roots.

Knowing where the formula comes from also tells you when not to use it: choosing how to solve a quadratic weighs it against factoring and square roots.

The same derivation turns up outside quadratics. The ratio at the heart of the golden ratio is the positive solution of x^2 - x - 1 = 0, \displaystyle \frac{1 + \sqrt{5}}{2}. And the eigenvalues of a 2 \times 2 matrix are the two solutions of a quadratic, found with this formula.

Exercises

Complete the square, then match the formula

Solve by completing the square. Then solve again with the formula and check that the two agree.

  1. x^2 + 6x + 4 = 0
  2. 2x^2 - 4x - 3 = 0
  3. 3x^2 + 2x - 1 = 0

Follow the derivation with numbers

For each equation, find the two numbers the derivation calls \displaystyle \frac{b}{2a} and \displaystyle \frac{b^2 - 4ac}{4a^2}, write the line \displaystyle \left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2} with them, and solve from there.

  1. 2x^2 + 5x - 3 = 0
  2. 4x^2 - 4x - 7 = 0

Solve these by the fraction-free route of Example 5: multiply by 4a, add b^2, and write the left side as a square.

  1. 3x^2 + 4x - 2 = 0
  2. 5x^2 - 3x - 2 = 0

Derive a variant

  1. Complete the square on x^2 + bx + c = 0, where the leading coefficient is already 1, to get a formula for its solutions. Check that it is the general formula with a = 1.
  2. When the middle coefficient is even, write it as 2k. Complete the square on ax^2 + 2kx + c = 0 to get a formula with no 4 and no 2 in it, and use it to solve 3x^2 + 8x + 2 = 0.
  3. Multiply the top and the bottom of the formula by \displaystyle -b \mp \sqrt{b^2 - 4ac} to show that, when c \neq 0, the solutions can also be written \displaystyle x = \frac{2c}{-b \mp \sqrt{b^2 - 4ac}}. Check it on 2x^2 + 3x - 5 = 0.
  4. Al-Khwarizmi wrote every equation with positive terms only, such as “a square equals roots and a number”, x^2 = px + q with p > 0 and q > 0. Complete the square on this form as it stands to get a formula for x, and show that exactly one of its two solutions is positive.

Read the parts of the formula

  1. For 3x^2 - 5x + 4 = 0, write the line \displaystyle \left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2} with numbers, and use it to explain why there is no real solution.
  2. Without solving, find the sum and the product of the solutions of 2x^2 - 9x + 4 = 0. Then solve it to confirm.
  3. The solutions of x^2 + bx + c = 0 are \displaystyle 3 \pm \sqrt{2}. Read off the center and the distance in the formula, and use them to find b and c.
  4. Use the completed-square result to write 2x^2 + 12x + 7 in the form a(x - h)^2 + k.

Solve for a letter

  1. Solve x^2 - 2mx + m^2 - 1 = 0 for x. Why does the discriminant not depend on m?
  2. Solve y = x^2 - 6x + 5 for x in terms of y.
  3. A can with a base but no lid has radius r and height h, and its outside surface area is A = \pi r^2 + 2\pi rh. Solve for r in terms of A and h.

Reasoning

  1. The derivation divides by a. What goes wrong if a = 0, and what kind of equation is left?
  2. When a < 0, \displaystyle \sqrt{4a^2} is -2a, not 2a. Explain why the formula is still correct for a negative a.
  3. Check the formula the other way round: substitute \displaystyle x = \frac{-b + \sqrt{b^2 - 4ac}}{2a} into ax^2 + bx + c and show that the result is 0.
  4. Show that the average of the two solutions is \displaystyle -\frac{b}{2a}, and say what that point is on the graph of y = ax^2 + bx + c.
  5. Suppose a, b and c are whole numbers (positive, negative or zero, with a \neq 0) and b^2 - 4ac is a perfect square, such as 49. Explain why both solutions are then fractions, with no radical left in them.
Answers
  1. \displaystyle x = -3 \pm \sqrt{5}. Move the 4 and add 9: (x + 3)^2 = 5. The formula: \displaystyle \frac{-6 \pm \sqrt{36 - 16}}{2} = \frac{-6 \pm 2\sqrt{5}}{2}, the same.
  2. \displaystyle x = \frac{2 \pm \sqrt{10}}{2}. Divide by 2: \displaystyle x^2 - 2x = \frac{3}{2}; add 1: \displaystyle (x - 1)^2 = \frac{5}{2}, and \displaystyle \sqrt{\frac{5}{2}} = \frac{\sqrt{10}}{2}. The formula: \displaystyle \frac{4 \pm \sqrt{40}}{4} = \frac{4 \pm 2\sqrt{10}}{4}, the same.
  3. \displaystyle x = \frac{1}{3} or x = -1. Divide by 3: \displaystyle x^2 + \frac{2}{3}x = \frac{1}{3}; add \displaystyle \frac{1}{9}: \displaystyle \left(x + \frac{1}{3}\right)^2 = \frac{4}{9}. The formula: \displaystyle \frac{-2 \pm \sqrt{16}}{6} = \frac{-2 \pm 4}{6}.
  4. \displaystyle x = \frac{1}{2} or x = -3. Here \displaystyle \frac{b}{2a} = \frac{5}{4} and \displaystyle \frac{b^2 - 4ac}{4a^2} = \frac{25 + 24}{16} = \frac{49}{16}, so \displaystyle \left(x + \frac{5}{4}\right)^2 = \frac{49}{16} and \displaystyle x + \frac{5}{4} = \pm\frac{7}{4}.
  5. \displaystyle x = \frac{1}{2} \pm \sqrt{2}. Here \displaystyle \frac{b}{2a} = -\frac{1}{2} and \displaystyle \frac{b^2 - 4ac}{4a^2} = \frac{16 + 112}{64} = 2, so \displaystyle \left(x - \frac{1}{2}\right)^2 = 2.
  6. \displaystyle x = \frac{-2 \pm \sqrt{10}}{3}. Multiply by 12: 36x^2 + 48x - 24 = 0. Move the 24 and add b^2 = 16: (6x + 4)^2 = 40, so \displaystyle 6x + 4 = \pm 2\sqrt{10}.
  7. x = 1 or \displaystyle x = -\frac{2}{5}. Multiply by 20: 100x^2 - 60x - 40 = 0. Move the 40 and add b^2 = 9: (10x - 3)^2 = 49, so 10x - 3 = \pm 7.
  8. \displaystyle x = \frac{-b \pm \sqrt{b^2 - 4c}}{2}. Move c and add \displaystyle \frac{b^2}{4}: \displaystyle \left(x + \frac{b}{2}\right)^2 = \frac{b^2}{4} - c = \frac{b^2 - 4c}{4}, so \displaystyle x + \frac{b}{2} = \pm\frac{\sqrt{b^2 - 4c}}{2}. With a = 1 the general formula reads the same.
  9. \displaystyle x = \frac{-k \pm \sqrt{k^2 - ac}}{a}, and for 3x^2 + 8x + 2 = 0 (so k = 4), \displaystyle x = \frac{-4 \pm \sqrt{10}}{3}. Divide by a: \displaystyle x^2 + \frac{2k}{a}x = -\frac{c}{a}. Half the coefficient of x is \displaystyle \frac{k}{a}, so \displaystyle \left(x + \frac{k}{a}\right)^2 = \frac{k^2 - ac}{a^2}. For the example, k^2 - ac = 16 - 6 = 10.
  10. x = 1 or \displaystyle x = -\frac{5}{2}, as in Example 1. The top becomes (-b)^2 - \left(b^2 - 4ac\right) = 4ac, by (p + q)(p - q) = p^2 - q^2, so \displaystyle x = \frac{4ac}{2a\left(-b \mp \sqrt{b^2 - 4ac}\right)} = \frac{2c}{-b \mp \sqrt{b^2 - 4ac}}. The new bottom is 0 only if b^2 = b^2 - 4ac, that is only if c = 0. For the check, 2c = -10 and \displaystyle \sqrt{49} = 7: \displaystyle \frac{-10}{-3 - 7} = 1 and \displaystyle \frac{-10}{-3 + 7} = -\frac{5}{2}.
  11. \displaystyle x = \frac{p \pm \sqrt{p^2 + 4q}}{2}. Subtract px and add \displaystyle \frac{p^2}{4}: \displaystyle \left(x - \frac{p}{2}\right)^2 = \frac{p^2 + 4q}{4}. Since q > 0, \displaystyle \sqrt{p^2 + 4q} > \sqrt{p^2} = p, so the root with + is positive and the root with - is negative. Al-Khwarizmi’s rule gave only the positive one.
  12. \displaystyle \left(x - \frac{5}{6}\right)^2 = -\frac{23}{36}, so there is no real solution. Here \displaystyle \frac{b}{2a} = -\frac{5}{6} and \displaystyle \frac{b^2 - 4ac}{4a^2} = \frac{25 - 48}{36}. The left side is a square, never negative for real x, and the right side is negative.
  13. Sum \displaystyle \frac{9}{2}, product 2. These are \displaystyle -\frac{b}{a} and \displaystyle \frac{c}{a}. Solving: b^2 - 4ac = 81 - 32 = 49, so \displaystyle x = \frac{9 \pm 7}{4}, which is 4 or \displaystyle \frac{1}{2}; and \displaystyle 4 + \frac{1}{2} = \frac{9}{2}, \displaystyle 4 \cdot \frac{1}{2} = 2.
  14. b = -6 and c = 7. The center is \displaystyle -\frac{b}{2} = 3, so b = -6. The distance is \displaystyle \frac{\sqrt{b^2 - 4c}}{2} = \sqrt{2}, so b^2 - 4c = 8, that is 36 - 4c = 8. Check: x^2 - 6x + 7 = 0 has solutions \displaystyle \frac{6 \pm \sqrt{8}}{2} = 3 \pm \sqrt{2}.
  15. 2(x + 3)^2 - 11. Here \displaystyle \frac{b}{2a} = 3 and \displaystyle \frac{b^2 - 4ac}{4a} = \frac{144 - 56}{8} = 11.
  16. x = m + 1 or x = m - 1. With a = 1, b = -2m, c = m^2 - 1 the discriminant is 4m^2 - 4m^2 + 4 = 4, so \displaystyle x = \frac{2m \pm 2}{2}. It does not depend on m because the equation is already (x - m)^2 = 1: changing m slides both solutions along together without changing the distance between them.
  17. \displaystyle x = 3 \pm \sqrt{y + 4}. Write x^2 - 6x + (5 - y) = 0; then b^2 - 4ac = 36 - 20 + 4y = 4(y + 4), so \displaystyle x = \frac{6 \pm 2\sqrt{y + 4}}{2}.
  18. \displaystyle r = -h + \sqrt{h^2 + A/\pi}. As a quadratic in r: \pi r^2 + 2\pi h r - A = 0, so \displaystyle r = \frac{-2\pi h \pm \sqrt{4\pi^2 h^2 + 4\pi A}}{2\pi}, which simplifies to \displaystyle -h \pm \sqrt{h^2 + A/\pi}. The root with - is negative, and a radius cannot be.
  19. Dividing by 0 is not allowed, and the formula would have 0 underneath. With a = 0 the equation is bx + c = 0, a linear equation, solved as \displaystyle x = -\frac{c}{b} when b \neq 0.
  20. 2|a| and 2a differ only in sign. So using -2a in place of 2a gives \displaystyle \pm\frac{\sqrt{b^2 - 4ac}}{-2a}, which is the same two numbers as \displaystyle \pm\frac{\sqrt{b^2 - 4ac}}{2a}, with + and - swapped. The \pm lists both.
  21. Write \displaystyle s = \sqrt{b^2 - 4ac}, so s^2 = b^2 - 4ac. Then \displaystyle ax^2 = \frac{b^2 - 2bs + s^2}{4a}, \displaystyle bx = \frac{-2b^2 + 2bs}{4a} and \displaystyle c = \frac{4ac}{4a}. Adding over 4a, the bs terms cancel and the top is s^2 - b^2 + 4ac = 0. The same working with -s in place of s checks the other solution.
  22. The average is \displaystyle \frac{1}{2}(x_1 + x_2) = \frac{1}{2}\left(-\frac{b}{a}\right) = -\frac{b}{2a}, because the two square roots cancel when the solutions are added. On the graph it is where the axis of symmetry crosses the x-axis: the two x-intercepts are mirror images across it.
  23. If b^2 - 4ac = m^2 for a whole number m \ge 0, then \displaystyle \sqrt{b^2 - 4ac} = m, and the formula gives \displaystyle \frac{-b + m}{2a} and \displaystyle \frac{-b - m}{2a}. Each is a whole number over the whole number 2a, which is not 0, so a fraction.
kg1128 · updated 2026-09-23 · CC-BY-SA-4.0