1D

Solving quadratic equations

Three ways to solve a quadratic equation (factoring, completing the square and the quadratic formula), how many solutions to expect, and how to choose the quickest method.

There are three methods. Factoring is quickest but only works when the numbers are kind. Completing the square always works. The quadratic formula is completing the square done once in general, so you never have to do it again.

Method 1: factoring

This rests on one fact: if two numbers multiply to zero, at least one of them is zero. So get everything on one side, with zero on the other, and factor.

Example 1●

Solve $2x^2 + 5x = 12$.

$2x^2 + 5x - 12 = 0$
The right side must be zero before the zero-product idea works.
$(2x - 3)(x + 4) = 0$
ac = −24. The numbers 8 and −3 add to 5.
$x = \tfrac32$ or $x = -4$
Either bracket can be zero.

Method 2: completing the square

From 1B, $(x + 5)^2 = x^2 + 10x + 25$. The constant $25$ is half of $10$, squared. So to turn $x^2 + bx$ into a perfect square, add $\left(\tfrac{b}{2}\right)^2$.

Example 2●●

Solve $x^2 - 6x - 2 = 0$ by completing the square. Give exact answers.

$x^2 - 6x = 2$
Move the constant across.
$x^2 - 6x + 9 = 11$
Half of −6 is −3, and (−3)² = 9. Add 9 to both sides to keep the equation balanced.
$(x - 3)^2 = 11$
$x - 3 = \pm\sqrt{11}$, so $x = 3 + \sqrt{11}$ or $x = 3 - \sqrt{11}$
Take the square root, and remember there are two: positive and negative.

If the coefficient of $x^2$ isn't $1$, divide the whole equation by it first. If you end with a square equal to a negative number, such as $(x + 1)^2 = -4$, there are no real solutions, because no square is negative.

Method 3: the quadratic formula

Quadratic formula
$$ax^2 + bx + c = 0 \quad\Longrightarrow\quad x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

Always work out $b^2 - 4ac$ on its own first. It is called the discriminant, and it tells you how many solutions there are before you go any further:

  • positive: two solutions
  • zero: one solution
  • negative: no real solutions
Example 3●●

Solve $3x^2 - 2x - 2 = 0$. Give exact answers, then answers correct to two decimal places.

$b^2 - 4ac = 4 + 24 = 28 = 4 \times 7$
a = 3, b = −2, c = −2. Careful with the signs: −4ac = −4 × 3 × (−2) = +24.
$x = \dfrac{2 \pm 2\sqrt7}{6} = \dfrac{1 \pm \sqrt7}{3}$
√28 = 2√7. Then every term has a common factor of 2 to cancel.
$x \approx 1.22$ or $x \approx -0.55$
Solutions are x-intercepts

The solutions of ax² + bx + c = 0 are where y = ax² + bx + c crosses the x-axis. It starts on Example 3.

Try this

Make the discriminant exactly $0$. What does the graph do? Now make it negative.

Which method should I use?

If the question…Use
factors easily (check $ac$ for a nice pair)Factoring
asks for exact answers and doesn't factorThe formula
says "complete the square", or you need the vertex of a parabolaCompleting the square
Flashcards
Quadratic formula
$x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
Completing the square on $x^2 + bx$
Add $\left(\tfrac b2\right)^2$.
$b^2 - 4ac lt 0$
No real solutions.
Practice
  1. Solve $2x^2 + 5x = 12$. Enter both solutions separated by &.

  2. Solve $x^2 = 5x$. Enter both solutions separated by &.

  3. What number completes the square in $x^2 + 8x + \dots$?

  4. Completing the square, $x^2 - 6x - 2 = 0$ becomes:

  5. Find the discriminant of $3x^2 - 2x - 2 = 0$.

  6. $x^2 + 2x + 5 = 0$ has:

  7. The exact solutions of $x^2 - 4x + 1 = 0$ are:

  8. Solve $3x^2 - 2x - 2 = 0$. Enter the positive solution correct to two decimal places.

  9. Exam style: $x^2 - 6x + k = 0$ has exactly one solution. Find $k$.

Formula sheet