Generator

Completing the square, as a square

A generator in the algebra library, called 21 times across 4 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

algebra-tiles is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

With nothing chosen

Completing the square, as a square. An x by x square with the strip split in half and laid along two sides, leaving a square hole of side 1.5. Filling the hole costs 2.25 and buys a perfect square.

The same picture, solved

The same picture, solved. The equation x² + 6x = 16 drawn as an L-shaped region of area 16. Completing it to a square of area 25 gives a side of 5.000, so x is 2.000.

(a + b)², as four tiles

(a + b)², as four tiles. A square of side 7 cut into an 5 by 5 square, a 2 by 2 square and two 5 by 2 rectangles — which is why the middle term is doubled.

A quadratic in the exponent, completed

A quadratic in the exponent, completed. Two panels sharing an x-axis. Above, the parabola −x² + 2x with its top at x = 1 marked. Below, e raised to that parabola: a bell centred at the same x = 1, with peak height e^1, beside the faint unmoved bell e^(−x²).

Every bell's area from one number

Every bell's area from one number. 5 curves of the form e^(−ax² + bx), moved and squeezed, with a table of their areas beside them. Each measured area matches √(π/a)·e^(b²/4a): the areas range from 1.772 to 4.818.

The bell's area squared, cut into rings

The bell's area squared, cut into rings. On the left a disc shaded darker towards its centre, standing for the surface e^(−x² − y²), cut into 12 concentric rings. On the right the curve 2πr·e^(−r²), the volume each ring contributes per unit width, with the area under it shaded; that area is π, and the bell's own area is its square root.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

The whole library · What the figures prove