Category: Algebra Level: 201
x2 + 5x + 6 = (x + 2)(x + 3)
Factoring means arranging the tiles of a polynomial into one rectangle. The sides of that rectangle are the factors.
A big square is x by x, a bar is x by 1, and a small square is 1 by 1. The polynomial asks for one big square, 5 bars, and 6 small squares.
x2 + 5x + 6
Put x² in the corner. Split the 5 bars into 3 on the right and 2 below, because 2 + 3 = 5 and 2 × 3 = 6.
2 + 3 = 5, 2 · 3 = 6
The empty corner is 2 by 3, which holds exactly 6 small squares. No tile is left over and no gap remains, so the tiles make a rectangle.
2 × 3 = 6 ones
The top edge is x + 3 and the left edge is x + 2. Area equals length times width, so those two sides are the factors.
x2 + 5x + 6 = (x + 2)(x + 3)
cd svg-generator python3 -m svgmath render algebra-tiles --out /tmp/algebra-tiles
Source: svgmath/diagrams/area_models.py