Euler Hall — free maths guides

Solve a quadratic equation with the quadratic formula

Read a, b and c from standard form including their signs. The idea in plain words, a worked example, and a check with the answers shown — part of the free Algebra I guides.

Read the three numbers, then substitute

The quadratic formula solvesax2+bx+c=0ax^{2} + bx + c = 0:

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

Using it is three separate acts, and each one loses marks on its own:

  1. 1. Put the equation in standard form and write downaa,bb,cc with their signs.
  2. 2. Substitute carefully — especially−b-b, which flips the sign.
  3. 3. Simplify in the right order: discriminant first, then the root, then the division.

For2x2−5x−3=02x^{2} - 5x - 3 = 0:a=2a = 2,b=−5b = -5,c=−3c = -3. Then

x=5±25+244=5±74,x = \frac{5 \pm \sqrt{25 + 24}}{4} = \frac{5 \pm 7}{4},

sox=3x = 3 orx=−12x = -\frac{1}{2}.

Why the formula cannot go wrong

Every step of the formula is an algebraic identity derived from completing the square, so for anya≠0a \neq 0 the formula produces exactly the solutions of the equation. There is no case it misses and no case where it invents a solution.

That reliability is why it is the fallback in this module. Factoring is faster when the trinomial factors over the integers, and square roots are faster when a square is already isolated — but neither works all the time, and the formula does.

The formula's one real weakness is arithmetic: it has more operations per question than either alternative, and each operation is a chance to slip. That is a reason to substitute carefully, not a reason to distrust the method.

Worked example with a negative leading coefficient

Solve−x2+4x+5=0-x^{2} + 4x + 5 = 0.

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

Step 2. Compute the discriminant.b2−4ac=16−4(−1)(5)=16+20=36b^{2} - 4ac = 16 - 4(-1)(5) = 16 + 20 = 36.

Step 3. Substitute.x=−4±362(−1)=−4±6−2x = \dfrac{-4 \pm \sqrt{36}}{2(-1)} = \dfrac{-4 \pm 6}{-2}.

Step 4. Take both signs.2−2=−1\dfrac{2}{-2} = -1 and−10−2=5\dfrac{-10}{-2} = 5.

Step 5. Check.−(−1)+4(−1)+5-(-1) + 4(-1) + 5 is−1−4+5=0-1 - 4 + 5 = 0; and−25+20+5=0-25 + 20 + 5 = 0. Both correct.

Step 6. Notice the shortcut. Multiplying the equation by−1-1 first givesx2−4x−5=0x^{2} - 4x - 5 = 0 witha=1a = 1, which is easier to substitute. Dividing or multiplying an equation by a non-zero number never changes its solutions.

By the end you can
  • Read a, b and c from standard form including their signs
  • Compute the discriminant before substituting
  • Substitute into the formula and simplify in the right order
  • Keep an answer exact when the discriminant is not a perfect square
Check yourself

(a) Solvex2+2x−8=0x^{2} + 2x - 8 = 0 with the formula.

(b) Solve3x2−5x+1=03x^{2} - 5x + 1 = 0 and leave the answer exact.

(c) In4x2−x−3=04x^{2} - x - 3 = 0, what areaa,bb,cc and−b-b?

Answers

(a)a=1a = 1,b=2b = 2,c=−8c = -8: discriminant4+32=364 + 32 = 36, sox=−2±62x = \frac{-2 \pm 6}{2}, giving22 or−4-4.

(b) Discriminant25−12=1325 - 12 = 13, sox=5±136x = \frac{5 \pm \sqrt{13}}{6}.

(c)a=4a = 4,b=−1b = -1,c=−3c = -3, and−b=1-b = 1.

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