Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 37 · Quadratic Equations

Solving Quadratic Equations by Factoring

Learn what a quadratic equation is and solve it by factoring with the zero product property, including standard form, word problems and a code check.

A quadratic equation is an equation that can be written as ax² + bx + c = 0, where a, b and c are numbers and a ≠ 0. This is called standard form. The solutions are called the roots (or zeros) of the equation.

Quadratic equations describe a ball in flight, the area of a garden and the profit of a shop. In this lesson you will solve them with the factoring skills from the last chapter.

The zero product property

If two numbers multiply to give zero, at least one of them must be zero. In symbols:

Text
If A · B = 0, then A = 0 or B = 0.

This only works with zero on one side. If (x − 2)(x − 3) = 6, you cannot say x − 2 = 6; many pairs of numbers multiply to 6.

Example 1. Solve (x − 2)(x + 5) = 0.

  • x − 2 = 0 gives x = 2.
  • x + 5 = 0 gives x = −5.

The solutions are x = 2 and x = −5. Check: (2 − 2)(2 + 5) = 0 · 7 = 0 and (−5 − 2)(−5 + 5) = −7 · 0 = 0.

The method

  1. Move everything to one side so the other side is 0 (standard form).
  2. Factor completely.
  3. Set each factor equal to zero.
  4. Solve each small equation.
  5. Check in the original equation.

Example 2. Solve x² + 4x = 12.

  1. Standard form: x² + 4x − 12 = 0.
  2. Factor: numbers with product −12 and sum 4 are 6 and −2, so (x + 6)(x − 2) = 0.
  3. x = −6 or x = 2.

Example 3. Solve 3x² = 12x.

  1. Standard form: 3x² − 12x = 0.
  2. Factor out the GCF: 3x(x − 4) = 0.
  3. 3x = 0 gives x = 0; x − 4 = 0 gives x = 4.

Do not divide both sides of 3x² = 12x by x. That throws away the solution x = 0. Factor instead.

Example 4. Solve x² − 49 = 0. This is a difference of squares: (x + 7)(x − 7) = 0, so x = ±7.

Example 5. Solve x² + 6x + 9 = 0. Factor: (x + 3)² = 0, so x = −3 only. It is called a double root, because the factor appears twice.

Python Solve by the zero product property

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A word problem

A rectangular garden is 3 meters longer than it is wide, and its area is 40 square meters. Find its dimensions.

Let the width be w meters. Then the length is w + 3, and the area is w(w + 3) = 40.

  1. Standard form: w² + 3w − 40 = 0.
  2. Factor: product −40, sum 3, so 8 and −5: (w + 8)(w − 5) = 0.
  3. w = −8 or w = 5.

A width cannot be negative, so w = 5 m and the length is 8 m. Check: 5 · 8 = 40.

Always ask whether each solution makes sense in the story. Rejecting an answer that does not fit is part of the solution.

Python See the roots on a graph

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Solve (x + 1)(x − 7) = 0.

    Set each factor to zero: x + 1 = 0 gives x = −1, and x − 7 = 0 gives x = 7.
  2. 2. What is the first step in solving x² + 2x = 15 by factoring?

    The zero product property needs 0 on one side, so write x² + 2x − 15 = 0.
  3. 3. Solve x² − 8x + 15 = 0.

    (x − 3)(x − 5) = 0 gives x = 3 or x = 5.
  4. 4. Solve 5x² = 20x.

    5x² − 20x = 5x(x − 4) = 0. Dividing by x would lose the solution x = 0.

Summary

  • A quadratic equation has standard form ax² + bx + c = 0.
  • Zero product property: if A · B = 0 then A = 0 or B = 0.
  • Move everything to one side, factor completely, set each factor to zero, check.
  • Never divide by a variable; factor out a GCF instead.
  • Reject solutions that do not make sense in a word problem.

Next: Square Roots and Completing the Square