Generator

The dot product as a shadow

A generator in the algebra library, called 30 times across 7 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

projection 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.

At its defaults

The dot product as a shadow. Two vectors and the shadow the first casts on the second. The shadow is 2.425 long and b is 4.123, so the dot product is 10.000.

show: "gram"

One subtraction clears a direction. Gram–Schmidt on two planar vectors, in 3 panels: the pair as given, the shadow of the second on the first, and the perpendicular pair that is left when the shadow is removed.

show: "qr"

The table Gram–Schmidt fills in, and the half it leaves empty. A 3-by-3 table of the coefficients writing each original vector in the orthonormal basis built from it. Everything above the diagonal is zero, which is the triangular shape the construction forces.

show: "orthloss"

Two orders for one subtraction, and only one of them survives. The worst inner product between two vectors that Gram–Schmidt has just made perpendicular, against the conditioning of the input, for the classical and the modified orders of the same subtractions.

show: "legendre"

The powers of x, straightened. The first 4 polynomials Gram–Schmidt returns when it is given 1, x, x², … and the inner product is an integral over [−1, 1]. They are the Legendre polynomials, which nobody was aiming at.

show: "signs"

The sign of a dot product is the side the shadow falls on. One vector held fixed and another swung through five angles. The dot product is positive while the shadow points along b, zero at a right angle, and negative beyond it.

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

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

Algebra

One subtraction clears a direction

A basis is a set of directions to measure along, and most bases are awkward because the directions get in each other's way. Removing one shadow at a time turns any basis into one where every coordinate is a shadow and nothing interferes.

Algebra

Symmetry forces a right angle

A matrix equal to its own reflection across the diagonal always has real stretches and always has perpendicular directions to stretch along. Neither is true of matrices in general, and both follow from one line of algebra.

Algebra

The dot product is a shadow

Multiply the matching coordinates and add them up. That rule explains nothing, and it hides the fact that the answer is a length — how far one arrow reaches along another, times how long that other one is.

Algebra

The nearest point of a flat thing

More equations than unknowns almost never have a solution. Asking instead for the point of a plane nearest to where the answer should have been turns an unanswerable question into a shadow, and the shadow is what a line of best fit is.

Algebra

The square that cannot be negative

Cauchy–Schwarz is the load-bearing inequality of the whole subject and is nearly always asserted. It is one line away from a fact nobody would argue with, and the line is a parabola with no room to cross the axis.

Algebra

What a map throws away

A linear map redraws the grid, and the determinant measures how much it stretches area. When that measurement comes out zero the map has flattened the plane onto a line — and the question worth asking is not how much was lost but how much survived, because the two always add to what there was.

Analysis

Where the coefficients come from

The recipe for a square wave has a four over pi in front and a one over three on the second term, and the first rung of this ladder used them without saying where they came from. They come from multiplying by one harmonic and taking the area.

The whole library · What the figures prove