Category: Algebra Level: 201
(x + 3)(x + 2) = x2 + 5x + 6, (a + b)2 = a2 + 2ab + b2
A product of two sums is the area of a rectangle cut into four boxes. FOIL is a checklist for visiting each box once.
The top edge is x plus 3 and the left edge is x plus 2. Their product is the area of this rectangle.
area = (x + 3)(x + 2)
Slice where x ends on each side. Each box pairs one piece of the top with one piece of the left.
4 boxes = 2 pieces × 2 pieces
First, Outer, Inner, Last: each letter visits one box. Every box gets counted once, and none gets counted twice.
x · x, x · 2, 3 · x, 3 · 2
The two bar-shaped boxes are both x-terms, so they combine: 2x + 3x = 5x.
(x + 3)(x + 2) = x2 + 5x + 6
A square with side a + b splits the same way: one a² box, one b² box, and two a-by-b boxes.
(a + b)2 = a2 + ab + ab + b2
The classic slip writes (a + b)² as a² + b². The picture shows two whole rectangles that this slip throws away.
(a + b)2 ≠ a2 + b2
cd svg-generator python3 -m svgmath render binomial-area-model --out /tmp/binomial-area-model
Source: svgmath/diagrams/area_models.py