{
  "id": "cross-ratio",
  "title": "Cross-Ratio",
  "lang": "en",
  "source_lang": "en",
  "summary": "The cross-ratio is a numerical invariant of four ordered points on a projective line, fundamental to projective geometry and complex analysis.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Cross ratio",
    "Anharmonic ratio",
    "Double ratio"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/cross-ratio/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/cross-ratio/",
      "json": "https://aiwiki.page/zh/cross-ratio.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The cross-ratio is a quantity associated with four ordered points on a line that remains unchanged under projective transformations. Unlike distances or ordinary ratios of lengths, it is preserved by perspective projection, making it a fundamental invariant of projective geometry. It also applies to four points on the extended complex plane, where it is preserved by Möbius transformations. Its value depends on the order of the points, so the convention used to define it must always be specified."
    },
    {
      "heading": "Definition",
      "text": "For four distinct finite coordinates \\(a,b,c,d\\), one common convention is\n\n\\[[a,b;c,d] = \\frac{(a-c)(b-d)}{(a-d)(b-c)}.\\]\n\nThe coordinates may be real numbers, complex numbers, or, more generally, elements of a field.\n\nOn a real affine line, this expression can be viewed as a ratio of two ratios of directed distances:\n\n\\[[a,b;c,d] = \\frac{(a-c)/(b-c)}{(a-d)/(b-d)}.\\]\n\nDirected distances, rather than unsigned lengths, are essential because the sign records information about the arrangement of the points.\n\nFor example,\n\n\\[[0,1;2,3] = \\frac{(-2)(-2)}{(-3)(-1)} = \\frac43.\\]\n\nDifferent authors use formulas that differ by a permutation of the arguments. These conventions are equivalent in their geometric content, but a numerical value or formula cannot be transferred between them without checking the ordering.\n\nPoints at infinity\n\nThe projective line adds a point at infinity to an affine line. When one argument is infinity, the formula is interpreted by cancellation or a limit. With the convention above,\n\n\\[[a,b;c,\\infty]=\\frac{a-c}{b-c},\\]\n\nand\n\n\\[[a,\\infty;c,d]=\\frac{a-c}{a-d}.\\]\n\nFor four pairwise distinct points, the cross-ratio is finite and is neither \\(0\\) nor \\(1\\). Coincident points can produce \\(0\\), \\(1\\), or infinity, but some coincidence patterns leave the expression undefined."
    },
    {
      "heading": "Homogeneous-coordinate formulation",
      "text": "A coordinate-independent definition uses homogeneous coordinates. Represent points \\(A,B,C,D\\) on the projective line by nonzero vectors \\(a,b,c,d\\) in a two-dimensional vector space, with each vector defined only up to multiplication by a nonzero scalar.\n\nWriting \\(\\det(u,v)\\) for the determinant of the matrix with columns \\(u,v\\), define\n\n\\[[A,B;C,D] = \\frac{\\det(a,c)\\det(b,d)} {\\det(a,d)\\det(b,c)}.\\]\n\nRescaling any representative vector multiplies the numerator and denominator by the same factor, so the value depends only on the projective points. Taking \\(a=(a_0,1)\\), and similarly for the other finite points, recovers the affine formula.\n\nThis formulation works over arbitrary fields and incorporates the point at infinity without separate limiting arguments."
    },
    {
      "heading": "Projective invariance",
      "text": "A projective transformation of a projective line has the coordinate form\n\n\\[T(z)=\\frac{\\alpha z+\\beta}{\\gamma z+\\delta}, \\qquad \\alpha\\delta-\\beta\\gamma\\ne0.\\]\n\nOver the complex numbers, such a map is called a Möbius transformation.\n\nThe central invariance property is\n\n\\[[T(a),T(b);T(c),T(d)] = [a,b;c,d].\\]\n\nFor finite expressions, this follows from\n\n\\[T(x)-T(y) = \\frac{(\\alpha\\delta-\\beta\\gamma)(x-y)} {(\\gamma x+\\delta)(\\gamma y+\\delta)}.\\]\n\nSubstitution into the cross-ratio causes all additional factors to cancel. The homogeneous-coordinate proof is more uniform: applying an invertible matrix multiplies every determinant by the determinant of that matrix, which again cancels.\n\nGeometrically, a perspective projection from one line to another preserves the cross-ratio wherever the projection defines a projectivity. Individual distances and ordinary ratios of distances generally change under such a projection.\n\nWhy four points are needed\n\nFor any two ordered triples of distinct points on a projective line, there is a unique projective transformation carrying the first triple to the second. Consequently, three points have no nontrivial numerical invariant under all projective transformations. A fourth point introduces one.\n\nFor fixed distinct \\(b,c,d\\), the transformation\n\n\\[T(z)=\\frac{(z-c)(b-d)}{(z-d)(b-c)}\\]\n\nsends\n\n\\[c\\mapsto0,\\qquad b\\mapsto1,\\qquad d\\mapsto\\infty,\\]\n\nand satisfies\n\n\\[T(a)=[a,b;c,d].\\]\n\nThe cross-ratio is therefore the coordinate of the remaining point after three reference points have been normalized.\n\nIt is also a complete invariant of ordered quadruples: two ordered quadruples of distinct points have the same cross-ratio if and only if a projective transformation maps one quadruple to the other in the specified order."
    },
    {
      "heading": "Reordering the points",
      "text": "Although four distinct points admit \\(24\\) orderings, their cross-ratios take at most six values. If\n\n\\[\\lambda=[a,b;c,d],\\]\n\nthese values are\n\n\\[\\lambda,\\qquad \\frac1\\lambda,\\qquad 1-\\lambda,\\qquad \\frac1{1-\\lambda},\\qquad \\frac{\\lambda}{\\lambda-1},\\qquad \\frac{\\lambda-1}{\\lambda}.\\]\n\nFor example,\n\n\\[[b,a;c,d]=\\frac1\\lambda, \\qquad [a,c;b,d]=1-\\lambda,\\]\n\nwhile exchanging the two pairs leaves the value unchanged:\n\n\\[[c,d;a,b]=\\lambda.\\]\n\nThe action of the symmetric group on the four arguments thus reduces to six transformations of the cross-ratio. The four permutations that preserve the expression identically form the Klein four-group.\n\nOver the real or complex numbers, the six values are usually distinct, but special configurations have fewer:\n\n- If \\(\\lambda\\in\\{-1,\\tfrac12,2\\}\\), only three distinct values occur.\n- If \\(\\lambda^2-\\lambda+1=0\\), only two distinct values occur over the complex numbers.\n\nThe corresponding configurations are called harmonic and equianharmonic, respectively. In fields of small positive characteristic, these distinctions can change."
    },
    {
      "heading": "Harmonic division and real ordering",
      "text": "Four ordered points form a harmonic range when\n\n\\[[a,b;c,d]=-1.\\]\n\nIn terms of directed ratios, this means that \\(C\\) and \\(D\\) divide the pair \\(A,B\\) in opposite ratios.\n\nFor instance,\n\n\\[[0,\\infty;1,-1]=-1.\\]\n\nMore generally, if \\(B=\\infty\\), the harmonic condition becomes\n\n\\[\\frac{a-c}{a-d}=-1,\\]\n\nso\n\n\\[a=\\frac{c+d}{2}.\\]\n\nThus an affine midpoint is a special case of a projective harmonic relation involving the point at infinity.\n\nHarmonic division is central to straightedge constructions and to the geometry of conic sections. Harmonic configurations can be constructed using only line intersections, without measuring lengths.\n\nFor four distinct points on the real projective line, a negative cross-ratio means that the pair \\(A,B\\) separates the pair \\(C,D\\) in the cyclic ordering of the projective line. The sign is therefore geometric information, not an incidental consequence of coordinates."
    },
    {
      "heading": "Complex analysis and circles",
      "text": "In complex analysis, the natural setting is the Riemann sphere\n\n\\[\\widehat{\\mathbb C}=\\mathbb C\\cup\\{\\infty\\}.\\]\n\nFour distinct points on the sphere lie on a common generalized circle if and only if their cross-ratio is real. A generalized circle means either an ordinary circle or a straight line together with the point at infinity.\n\nOne way to establish this criterion is to apply a Möbius transformation sending three of the points to \\(0,1,\\infty\\). Generalized circles are preserved by Möbius transformations, and the generalized circle through \\(0,1,\\infty\\) is the extended real line. The fourth point lies on that circle exactly when its normalized coordinate—the cross-ratio—is real.\n\nThis criterion connects a geometric incidence condition with an algebraic condition on complex coordinates. It is useful in studying circle configurations, conformal maps, and transformations of the sphere."
    },
    {
      "heading": "Applications",
      "text": "Perspective geometry and imaging\n\nIn ideal perspective imaging, four collinear scene points retain their cross-ratio in the image, provided the projection is nondegenerate. This allows projectively invariant comparisons between line configurations even though apparent lengths and spacing change.\n\nThe restriction to collinear points is important: four arbitrary points in a plane do not acquire a scalar cross-ratio simply by inserting their two-dimensional coordinates into the one-dimensional formula.\n\nHyperbolic and Hilbert geometry\n\nLogarithms of cross-ratios define distances in several geometric models. For example, in the Klein model of hyperbolic geometry with curvature normalized to \\(-1\\), let the line through interior points \\(x,y\\) meet the boundary at \\(a,b\\), in the order\n\n\\[a<x<y<b.\\]\n\nTheir hyperbolic distance is\n\n\\[d(x,y) = \\frac12\\log \\frac{(y-a)(b-x)}{(x-a)(b-y)} = \\frac12\\log [y,x;a,b].\\]\n\nThe same construction on suitable convex domains gives the Hilbert metric, often with the same factor of \\(\\tfrac12\\). Projective invariance of the cross-ratio explains why projective transformations carrying one such domain onto another preserve these distances.\n\nConfiguration spaces\n\nIn algebraic geometry, the cross-ratio parametrizes ordered configurations of four distinct points on a projective line, up to projective transformation. Over the complex numbers, the parameter space is\n\n\\[\\mathbb P^1(\\mathbb C)\\setminus\\{0,1,\\infty\\}.\\]\n\nThe three excluded values correspond to limiting degenerations in which marked points collide."
    },
    {
      "heading": "Limitations and computational considerations",
      "text": "A cross-ratio is an invariant of an ordered configuration, not generally of an unordered set of four points. For an unordered configuration, the collection of up to six permutation-related values must be considered.\n\nIts invariance also concerns projective transformations, not arbitrary mappings of a line or plane. A nonlinear change of coordinates generally does not preserve it.\n\nNumerically, direct evaluation can lose accuracy when coordinates are nearly equal or have widely different magnitudes. Homogeneous coordinates avoid the need to represent infinity by a large finite number, but they do not remove sensitivity associated with nearly coincident points. Such cases require attention to numerical stability and to the precision of the underlying point measurements."
    }
  ],
  "links": [
    "projective-geometry",
    "real-number",
    "complex-number",
    "field-mathematics",
    "limit",
    "homogeneous-coordinates",
    "vector-space",
    "determinant",
    "symmetric-group",
    "conic-section",
    "complex-analysis",
    "circle",
    "conformal-map",
    "non-euclidean-geometry",
    "algebraic-geometry",
    "numerical-stability"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}