MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Expanding double brackets — FOIL method

U2 — Algebra Advancing › U2.1 — Expanding and FactorisingLecture 1 of 5~1570 words

A shortcut that does not work

Here is a calculation that many students get wrong, and not only students:

The tempting answer is to multiply the first parts and the last parts: and , so . It looks neat. It is wrong.

You can prove that it is wrong in ten seconds. Put a number in place of , say . Then . But . The two are not equal, so they are not the same expression. Something is missing, and this lecture finds it.

Every term meets every term

You already know how to expand a single bracket: . The 3 multiplies everything inside the bracket. Two brackets work the same way. Treat the whole first bracket as one number that multiplies the second bracket:

Now each part is a single bracket:

There are four products, not two. Each term in the first bracket multiplies each term in the second. The two in the middle, and , are like terms, so they collect:

Check with : . It matches . The tempting answer missed the middle terms, the 80.

A picture of the four products

Why must there be four? Think of as the area of a rectangle with height and width . Split each side into its two parts, and the rectangle splits into four pieces.

x² 5x 3x 15 x 5 x 3 width x + 5 height x + 3
The rectangle with sides x + 3 and x + 5 splits into four pieces: x², 5x, 3x and 15. The tempting answer x² + 15 keeps only two corners and forgets the two strips.

The whole area is the sum of the four pieces: . The answer keeps the top-left square and the bottom-right corner and throws away the two strips. That is it. That is the whole idea. Expanding two brackets means adding up every piece of the rectangle: each term times each term.

You have done this before without the name. In the lectures on surds, you expanded brackets such as in exactly this way: four products, then collect.

FOIL: a checklist, not a reason

Many books use the word FOIL to make sure none of the four products is forgotten:

FOIL is useful, but it is only a checklist. The reason is the rectangle: every term meets every term. Some teachers draw arcs joining the pairs, and some use a grid. They are all the same idea. Hold on to the reason, because FOIL stops working when a bracket has three terms, and the rectangle never does. The next lecture uses exactly that.

Signs travel with their terms

A minus sign belongs to the term after it. In , the second term is , not 1. Every product that uses it carries the minus sign.

Try the grid below. Choose the numbers in , including negative ones, and watch the four pieces.

Explore — the four products of two brackets

Move b and d. Watch the four pieces of the grid, the expansion, and the number check with x = 10. Look for the rule behind the middle term and the last term.

Four expansions, each with its grid of products and a check at x = 10:

BracketsFour productsExpanded
(x + 3)(x + 5)x², 5x, 3x, 15x² + 8x + 15
(x − 2)(x + 6)x², 6x, −2x, −12x² + 4x − 12
(x − 4)(x − 4)x², −4x, −4x, 16x² − 8x + 16
(x + 5)(x − 5)x², −5x, 5x, −25x² − 25

In every row, the middle term is (b + d)x and the last term is b × d. Check the first row with x = 10: 13 × 15 = 195 and 100 + 80 + 15 = 195.

Did you find the pattern? For , the middle term is always , and the last term is always . That is no accident: the two strips are and , and the corner is . And when and are opposites, such as 5 and −5, the middle terms cancel completely. You will use both facts again when you learn to factorise.

Stop and think

Is ever true?

Show the answer

For one value only. The correct expansion is , which equals only when , that is, when . An expansion must be true for every value of . That is why one number check, with a value such as , is enough to catch the mistake: a correct expansion passes every check, and a wrong one fails almost all of them. (Avoid checking with or , which can hide mistakes.)

Worked examples

Worked Example 1 — Two positive brackets

Expand .

Four products: , , , . Collect: .

Check with : and .

Worked Example 2 — A negative term and a coefficient

Expand .

Four products: , , , .

So . The minus sign stayed with the 1 in both products that used it.

Check with : and .

Worked Example 3 — The middle terms vanish

Expand .

Four products: , , , . The middle terms cancel: .

So .

Check with : and . This pattern, the same two terms with opposite signs between them, has its own lecture later in this topic. The surd conjugates followed the same pattern.

Worked Example 4 — A squared bracket

Expand .

A square means the bracket times itself: . Four products: , , , . The last one is .

So .

Check with : and .

Worked Example 5 — Brackets with surds

Expand and simplify .

Four products: , , , .

Collect: , and . So the answer is .

The method does not care whether the terms are letters, numbers or surds. Every term meets every term.

Now look for a mistake in someone else's work.

Spot the error — a sign that goes missing

A student expands . Exactly one line contains a mistake. Tap it.

A student's expansion of (2x − 3)(x + 4). Line 3 is wrong.

  • Line 1. First: 2x × x = 2x². Correct.
  • Line 2. Outer: 2x × 4 = 8x. Correct.
  • Line 3. Inner: 3 × x = 3x. Wrong: the term is −3, so the product is −3x.
  • Line 4. Last: −3 × 4 = −12. Correct.
  • Line 5. Collecting: 2x² + 8x + 3x − 12 = 2x² + 11x − 12. The collecting is done correctly, but it carries the mistake from line 3. The right answer is 2x² + 5x − 12.

Three classic mistakes

Trap 1 — First times first, last times last

is not . That uses two of the four products and forgets the two strips of the rectangle. Always write all four products before collecting.

Trap 2 — Losing a minus sign

In , the second term is , not 3. Every product that uses it carries the minus sign: and . If both terms are negative, the product is positive, as in .

Trap 3 — Squaring each term

is not . Write it as and expand: . A number check shows it: with , , but .

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Expand and simplify .

    Hint 1

    Write the four products. The second term of the second bracket is .

    Hint 2

    , , , .

    Full answer

    . Check with : and .

  2. Expand and simplify .

    Hint 1

    The first product is .

    Hint 2

    The middle products are and .

    Full answer

    . Check with : and .

  3. Expand . Then use your answer to work out without a calculator.

    Hint 1

    Write and expand.

    Hint 2

    when .

    Full answer

    . With : . So .

  4. A square garden has sides of metres. It is redesigned: one pair of sides is made 3 m longer, and the other pair 3 m shorter. Does the area get bigger, smaller, or stay the same? By how much? Does the answer depend on ?

    Hint 1

    The new area is . Expand it.

    Hint 2

    Compare your answer with the old area, .

    Full answer

    . The new area is always 9 m² smaller, whatever the size of the garden (as long as is more than 3). Check with : , and . In the picture, the new rectangle gains a 3 by strip and loses a 3 by strip, a difference of a 3 by 3 square.

The bigger idea

Expanding brackets is the distributive law, the same law that makes and makes long multiplication work. When you work out as , you are expanding . Algebra just lets the 10 be any number.

This unit is about reading algebra in both directions. Expanding turns a product of brackets into a sum of terms. The next lectures extend it to three brackets, and then run it backwards: given , find the two brackets it came from. The pattern you found in the explorer, middle term and last term , is the key that makes that possible.

Key concepts in this lesson