Think of all the straight lines through a single point in ordinary space. There are infinitely many, pointing every way. Now treat each line as one point of a new space, so that nearby lines become nearby points. What shape is that space? Questions like this lead to one of the most useful objects in mathematics, the Grassmannian.

A space made of subspaces

The Grassmannian Gr(k,n) is the collection of all k-dimensional subspaces through the origin of n-dimensional space. Here k is the dimension of each slice and n the dimension of the space around it. When k=1 the slices are lines. When k=2 they are planes.

The simplest interesting case is Gr(1,3), the lines through the origin in three dimensions. Each line pierces a sphere centred on the origin at two opposite points, so a line is the same thing as a pair of opposite points on the sphere. Glue every point of a sphere to its opposite and you get the real projective plane, a closed surface that cannot be built in three dimensions without passing through itself. It is two-dimensional: two numbers, such as a latitude and a longitude, are enough to pick out a line.

In general the Grassmannian has dimension

dim⁡Gr(k,n)=k(n−k).

The reason is a count. A k-dimensional subspace can be described by k vectors that span it, each with n entries, so kn numbers in all. But many different sets of vectors span the same subspace: any rearrangement of them by an invertible k×k matrix, which has k2 entries, gives the same slice. Subtract, and kn−k2=k(n−k) numbers remain that truly matter.

A schoolteacher's algebra

The idea goes back to Hermann Grassmann, a mathematics teacher in Stettin, who in 1844 published Die lineale Ausdehnungslehre, a theory of extension. In it he built an algebra in which lines, planes and their higher relatives could be added and multiplied as freely as numbers. The book was so far ahead of its time, and so hard to read, that it was almost entirely ignored. Grassmann turned to linguistics and became better known in his lifetime for his work on Sanskrit.

His algebra gives the Grassmannian its natural coordinates. A plane in four dimensions, a point of Gr(2,4), is described by six numbers pij, the Plücker coordinates, named after Julius Plücker. Each is a 2×2 determinant taken from a pair of vectors that span the plane, and they are not independent: every plane obeys

p12p34−p13p24+p14p23=0.

From geometry to particle physics

Grassmannians run through modern geometry. Questions such as how many lines meet four given lines in space become questions about how regions of a Grassmannian intersect, and the answer, for lines in general position counted over the complex numbers, is two.

Physics found them too. In quantum mechanics a state is really a line rather than a single vector, because multiplying a wavefunctionWavefunctionThe mathematical object that describes a quantum system's state, from which the probabilities of every possible measurement outcome can be calculated. by a constant changes nothing measurable, and the space of such lines is a Grassmannian with k=1 over the complex numbers. More recently, in 2013, Nima Arkani-Hamed and Jaroslav Trnka described the amplituhedron, a geometric object built inside the positive Grassmannian, the part where all the Plücker coordinates are positive. In a particular theory closely related to the strong force, the amplituhedron encodes the scattering amplitudes of particle collisions, whose squares give their probabilities, directly, without summing the many terms a Feynman diagramFeynman diagramA picture made of lines and vertices that stands for one exact term in the calculation of how particles interact. calculation needs.

Learning with subspaces

Machine learning uses Grassmannians whenever the answer is a subspace rather than a vector. Principal component analysis, for instance, finds the k-dimensional subspace that best captures a cloud of data, which is a point of Gr(k,n). Images of one face under changing light, or frames of one video clip, often lie close to a low-dimensional subspace, so comparing them means comparing subspaces. The natural measure uses the principal angles θ1,…,θk between them:

d=θ12+θ22+⋯+θk2.

With that distance, algorithms can average subspaces, cluster them and track them as they drift. Grassmann's forgotten algebra has become an everyday tool.