Here is a nice invariant from classical geometry that I’d never heard of before today.

The action of on restricts to an action on ; this is all that a Möbius transformation really is. Now is four-dimensional, but there’s a one-dimensional subspace corresponding to scaling which stabilizes each point of the projective line, so we may as well quotient this out and get a -action.

In fact, this is the projective automorphism group of , hence the name **P**GL; its elements are called *projectivities*.

group is three-dimensional, so we would expect that with our free degrees of freedom we could send any three points to any three other points, and indeed we can: the action is 3-transitive. On the other hand, the dimension of implies that it can’t possibly be 4-transitive.

What this says is that, up to projectivities, any three or fewer points on the complex projective line look like any other set of the same cardinality, but there are sets of four or more points which are essentially “different.” In particular, given a set of *n > 3* points in , we ought to be able to find an invariant which determines whether a projectivity takes one set to the other.

Let’s consider the case *n = 4*. Obviously we’ve got some latitude in determining this invariant up to a constant, so let’s just decree that . Consequently, for any element , we have

.

Expanding the expression,

.

So all we need to do is, given a system of equations

figure out how to solve for *x* as a rational function of *p*, *q*, *r*, and *s*. This isn’t too bad — note first that , or , so

Now we just need to express *d/c* in terms of *p*, *q*, and *r.* Inspired by the previous expression, it’s not hard to determine that we can write *d/c = (q-s)/(p-q)*, so altogether we get

Actually, as the negative reciprocal would provide just as good an invariant, let’s redefine R slightly to get all the variables in a nice, alphabetical order:

This function is the classical “cross-ratio” of the four points *p*, *q*, *r*, and *s*. As we can see from the formula, it’s a ratio of ratios of distances between points.

Of course the point of the preceding is to provide one justification for why we should expect such an invariant to exist, and how we could determine it. In fact, the cross-ratio and its significance to projective geometry was known already to Pappus of Alexandria around AD 300.

you left out some (): d(s-p)/c(r-s)