MATH BOSS

All lessons

How do I factor a^2 - b^2?

Spot a square minus a square, and write the sum times the difference.

Grades 8 to 9 · Free. No sign-up. No ads. Nothing is collected.

Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Example

x2−25=

Answer: (x−5)(x+5)

Why do I need this?

You cut a square of side 5 out of a square of side x. How much area is left?

x2−25

The idea

The formulas also work backwards: spot a known form and write the parentheses.

x2−25=(x+5)(x−5)
25x−55x−55

Step by step

  1. A square missing a corner

    A big square with a small square cut out is a difference of squares.

    x2−25
    x2−52
    25x−55x−55

    Why? 25 is 5 squared, so it is a square too.

  2. Rearrange

    Cut the L shape and rearrange it into one rectangle.

    x(x−5)+5(x−5)
    =(x+5)(x−5)
    x5x−5
  3. Read the sides

    The rectangle is x plus 5 long and x minus 5 wide.

    x2−25=(x+5)(x−5)
  4. A perfect square

    If the pieces form a whole square, write parentheses squared.

    x2+6x+9=(x+3)2
    2×x×3=6x
    x²3x3x9x3x3

    Why? The middle term must be twice the product of the two sides.

More cases and examples

  1. Common factor first

    First take out a common factor, then look for a known shape.

    2x2−50=2(x2−25)
    =2(x+5)(x−5)
  2. A plus does not factor

    With a plus between two squares, you cannot factor.

    x2+25
    (x+5)2=x2+10x+25

    Why? Parentheses squared give a middle term, but here there is none.

The rule

Difference of squares

When to use it: Only when there is a minus between two squares.

a2−b2=(a+b)(a−b)
  • athe side of the big square
  • bthe side of the small square

Watch out: A sum of squares, with a plus, does not factor like this.

Common mistakes

  • Wrong
    x2−25=(x−5)2
    Right
    x2−25=(x+5)(x−5)

    Putting in 7 gives 24 on one side and 4 on the other.

  • Wrong
    x2+25=(x+5)2
    Right
    (x+5)2=x2+10x+25

    The middle term 10x is missing, so a plus does not factor.

  • Wrong
    4x2−9=(4x−3)(4x+3)
    Right
    4x2−9=(2x−3)(2x+3)

    The side of 4x squared is 2x, not 4x.

How to study this topic

  1. Read the idea first
  2. Then go through the steps, covering each result before you read it
  3. Then learn the rule
  4. Finally, check the common slips
Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Related lessons