Generator

Completing the square, as a square

A generator in the algebra library, called 31 times across 6 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.

Algebra

Completing the square, by completing a square

The step everybody is taught as an algebraic trick is a literal instruction about a literal square. There is a corner missing, its size is forced, and paying for it is the whole method.

Algebra

One number under every bell

The area under e^(−x²) has no formula in terms of the usual functions, and yet the area under e raised to any downward quadratic is known exactly. Completing the square in the exponent moves and squeezes every such curve into the same one, so a single number — √π — pays for all of them.

Algebra

Regression is a square completed halfway

A bell in two variables, sliced at a fixed x, is a bell in y — and completing the square in y alone says where it is centred: at ρx, on a line flatter than the ellipse's own axis. That gap is regression to the mean, and the same completion says it runs backwards in time just as well as forwards.

Algebra

The signs no completion can change

A quadratic in several variables can be completed square by square in many orders, and each order hands back different coefficients. What no order changes is how many come out positive and how many negative — and that count, read off a completion of A − tI, says how many eigenvalues lie below t without finding a single one.

Algebra

What the coefficients already know

Finding the roots of a polynomial is hard and often impossible in closed form. Reading off their sum, their product and how many of them are real is none of those things — those numbers are sitting in the coefficients, and no root-finding is required to get at them.

Algebra

Where two roots run into each other

Put every quadratic equation at a point of a plane, one coordinate per coefficient. Each possible root becomes a straight line there, every one of those lines touches the same parabola, and that parabola is the discriminant — the crease where the plane of roots is folded onto the plane of equations.

The whole library · What the figures prove