MathLabs

Geometry

Projective geometry

Geometry of points at infinity and perspective, where parallel lines meet on a horizon line.

IntuitionWhere Do Parallel Lines Meet?

Stand between two long straight railroad tracks and look down the line: the two rails, which never actually meet, appear to converge at a single point on the horizon. A painter uses exactly this trick, drawing parallel edges of a building so they meet at a vanishing point. Projective geometry takes this appearance seriously: it adds one "point at infinity" to each direction, so that every pair of lines, even parallel ones, meets in exactly one point. This single extra idea unifies perspective drawing, camera geometry and some of the oldest theorems about points, lines and conics.

Interactive network graph of points and lines illustrating an incidence structure
The Fano projective plane PG(2,2)\mathrm{PG}(2,2): 77 points and 77 lines (including the inscribed circle as the seventh line), with 33 points on every line and 33 lines through every point.

UndergraduateHomogeneous Coordinates on the Projective Plane

Definition: The real projective plane

A point of the real projective plane RP2\mathbb{RP}^2 is an equivalence class of nonzero triples (X,Y,Z)(X, Y, Z), written [X:Y:Z][X:Y:Z], where two triples represent the same point exactly when one is a nonzero scalar multiple of the other.

[X:Y:Z]∼[λX:λY:λZ],λ≠0[X : Y : Z] \sim [\lambda X : \lambda Y : \lambda Z], \qquad \lambda \neq 0

The ordinary (affine) plane embeds into RP2\mathbb{RP}^2 by sending (x,y)(x, y) to [x:y:1][x : y : 1]. Points with Z=0Z = 0 do not come from any ordinary point; they form the line at infinity and correspond to directions, one point at infinity for every family of parallel lines.

(x,y)↦[x:y:1](x, y) \mapsto [x : y : 1]

Definition: Point–line duality

A line in RP2\mathbb{RP}^2 is the set of points [X:Y:Z][X:Y:Z] satisfying a linear equation aX+bY+cZ=0aX + bY + cZ = 0 for fixed coefficients [a:b:c][a:b:c] (also defined only up to scale). Because a point [X:Y:Z][X:Y:Z] lies on a line [a:b:c][a:b:c] exactly when aX+bY+cZ=0aX+bY+cZ=0, an equation completely symmetric in the two triples, every true statement about points and lines has a dual statement obtained by swapping the words "point" and "line" and "lie on" with "pass through".

aX+bY+cZ=0aX + bY + cZ = 0
Point–line duality in the projective plane
Statement about pointsDual statement about lines
Two distinct points determine a unique lineTwo distinct lines determine a unique point (their intersection)
Three points are collinearThree lines are concurrent
A point [X:Y:Z][X:Y:Z] lies on a line [a:b:c][a:b:c]A line [a:b:c][a:b:c] passes through a point [X:Y:Z][X:Y:Z]

AdvancedCross-Ratio and the Classical Configuration Theorems

Definition: Cross-ratio

For four distinct collinear points A,B,C,DA, B, C, D, the cross-ratio (A,B;C,D)(A,B;C,D) is the ratio of the two signed division ratios in which CC and DD split the segment ABAB. It is the fundamental numerical invariant of projective geometry: unlike distances or ordinary ratios, it survives perspective drawing.

(A,B;C,D)=CA‾CB‾/DA‾DB‾(A,B;C,D) = \dfrac{\overline{CA}}{\overline{CB}} \Big/ \dfrac{\overline{DA}}{\overline{DB}}

AdvancedKey Theorems

If a projective transformation φ\varphi of RP2\mathbb{RP}^2 maps four collinear points A,B,C,DA, B, C, D to A′,B′,C′,D′A', B', C', D' on the image line, then the cross-ratios agree: (A,B;C,D)=(A′,B′;C′,D′)(A,B;C,D) = (A',B';C',D').

Why is it true?

A projective transformation is represented by an invertible linear map on homogeneous coordinates, and the cross-ratio is built only from coefficients expressing two of the points as linear combinations of the other two; since a linear map preserves linear combinations exactly, it cannot change those coefficients, so the cross-ratio survives.

Proof

Represent the four collinear points by homogeneous coordinate vectors A,B,C,D∈R3A, B, C, D \in \mathbb{R}^3 lying in a common 2-dimensional subspace, and represent φ\varphi by an invertible 3×33\times 3 matrix MM, so that φ\varphi applied to a point with vector PP has homogeneous coordinates MPMP.

Because A,B,C,DA, B, C, D are collinear, representatives can be chosen so that C=λ1A+μ1BC = \lambda_1 A + \mu_1 B and D=λ2A+μ2BD = \lambda_2 A + \mu_2 B for scalars λ1,μ1,λ2,μ2\lambda_1, \mu_1, \lambda_2, \mu_2; the cross-ratio (A,B;C,D)(A,B;C,D) is defined purely in terms of these four scalars, specifically as μ1/λ1μ2/λ2\dfrac{\mu_1/\lambda_1}{\mu_2/\lambda_2}.

Applying the linear map MM gives MC=λ1(MA)+μ1(MB)MC = \lambda_1(MA) + \mu_1(MB) and MD=λ2(MA)+μ2(MB)MD = \lambda_2(MA) + \mu_2(MB), because matrix multiplication distributes over linear combinations; so the very same scalars λ1,μ1,λ2,μ2\lambda_1, \mu_1, \lambda_2, \mu_2 express φ(C)\varphi(C) and φ(D)\varphi(D) in terms of φ(A)\varphi(A) and φ(B)\varphi(B).

Since the cross-ratio depends only on these scalars and they are unchanged by MM, we conclude (φ(A),φ(B);φ(C),φ(D))=(A,B;C,D)(\varphi(A),\varphi(B);\varphi(C),\varphi(D)) = (A,B;C,D), which is exactly the claimed invariance.

Let triangles ABCABC and A′B′C′A'B'C' be such that lines AA′AA', BB′BB', CC′CC' meet at a common point OO (the triangles are in perspective from a point). Then the three points P=BC∩B′C′P = BC \cap B'C', Q=CA∩C′A′Q = CA \cap C'A', R=AB∩A′B′R = AB \cap A'B' are collinear (the triangles are in perspective from a line).

Why is it true?

Working purely inside the flat plane, the claim looks delicate because it mixes many different lines. Lifting the picture into three-dimensional space turns every incidence into an intersection of planes, and two distinct planes always meet in a line, which forces the three points onto one common line.

Proof

Regard the two triangles as lying in a plane π\pi inside R3\mathbb{R}^3, and construct, above π\pi, a spatial configuration: a point O^\widehat{O} not in π\pi, and two triangles A^B^C^\widehat{A}\widehat{B}\widehat{C} and A′^B′^C′^\widehat{A'}\widehat{B'}\widehat{C'} in two different planes through space, positioned so that lines A^A′^\widehat{A}\widehat{A'}, B^B′^\widehat{B}\widehat{B'}, C^C′^\widehat{C}\widehat{C'} all pass through O^\widehat{O}, and so that projecting this spatial picture back onto π\pi recovers the original triangles ABCABC and A′B′C′A'B'C' in perspective from OO.

In this spatial picture, the line B^C^\widehat{B}\widehat{C} and the line B′^C′^\widehat{B'}\widehat{C'} both lie in the plane spanned by O^,B^,C^\widehat{O}, \widehat{B}, \widehat{C} (since B′^\widehat{B'} and C′^\widehat{C'} lie on lines through O^\widehat{O} and B^,C^\widehat{B}, \widehat{C} respectively), so these two lines meet at a point P^\widehat{P}; similarly Q^\widehat{Q} and R^\widehat{R} exist in space as the analogous intersections for sides CACA and ABAB.

The three points P^,Q^,R^\widehat{P}, \widehat{Q}, \widehat{R} all lie in the plane containing triangle A^B^C^\widehat{A}\widehat{B}\widehat{C}, since each is built from a pair of its sides, and simultaneously in the plane containing A′^B′^C′^\widehat{A'}\widehat{B'}\widehat{C'}. Hence P^,Q^,R^\widehat{P}, \widehat{Q}, \widehat{R} lie on the line where these two planes intersect, because any two distinct planes in space meet in exactly one line.

Projecting this spatial configuration back down onto the plane π\pi sends P^,Q^,R^\widehat{P}, \widehat{Q}, \widehat{R} to P,Q,RP, Q, R and preserves collinearity, since a projection from a point sends any line to a line. Therefore P,Q,RP, Q, R are collinear in π\pi, which is exactly Desargues' theorem.

UndergraduatePractical Applications and Worked Examples

Projective geometry underlies computer vision and photogrammetry (recovering 3D scene structure from 2D photographs uses the projective camera model and homogeneous coordinates), computer graphics (the perspective projection matrix in every 3D rendering pipeline is a projective transformation), and coding theory (finite projective planes give projective Reed–Muller error-correcting codes used in data storage and network transmission).

Example: Recovering a Vanishing Point

Two parallel rail tracks are photographed by a pinhole camera. In the photograph, one rail passes through pixel points (0,390)(0, 390) and (300,420)(300, 420), and the other rail passes through pixel points (0,480)(0, 480) and (300,465)(300, 465). Model each rail as a projective line via homogeneous coordinates and find the vanishing point where the two image lines meet.

Solution

Write each pixel as a homogeneous point [x:y:1][x:y:1]. The cross product of two points on a line gives the line's homogeneous coordinates [a:b:c][a:b:c]; for the first rail, [0:390:1]×[300:420:1]=[−30:300:−117000]∼[1:−10:3900][0:390:1]\times[300:420:1] = [-30:300:-117000] \sim [1:-10:3900], so the first rail is the line X−10Y+3900=0X - 10Y + 3900 = 0.

Repeating the same cross product for the second rail's points [0:480:1][0:480:1] and [300:465:1][300:465:1] gives [15:300:−144000]∼[1:20:−9600][15:300:-144000] \sim [1:20:-9600], i.e. the line X+20Y−9600=0X + 20Y - 9600 = 0.

The vanishing point is where the two lines meet: subtracting the two equations eliminates XX, giving 30Y−13500=030Y - 13500 = 0, so Y=450Y = 450; substituting back gives X=10(450)−3900=600X = 10(450) - 3900 = 600.

So the vanishing point sits at pixel (600,450)(600, 450): the point where the two rails, which never meet in the real world, appear to converge in the photograph, exactly as projective geometry predicts for parallel lines meeting on the line at infinity, mapped by the camera's perspective to a finite point in the image.

Example: Cross-Ratio on a Number Line

On a number line, points A,B,C,DA, B, C, D have signed coordinates 0,1,3,60, 1, 3, 6 respectively. Compute the cross-ratio (A,B;C,D)(A,B;C,D).

Solution

Using the definition (A,B;C,D)=CA‾CB‾/DA‾DB‾(A,B;C,D)=\dfrac{\overline{CA}}{\overline{CB}} \Big/ \dfrac{\overline{DA}}{\overline{DB}}, first compute the signed lengths: CA‾=0−3=−3\overline{CA} = 0-3=-3, CB‾=1−3=−2\overline{CB}=1-3=-2, DA‾=0−6=−6\overline{DA}=0-6=-6, DB‾=1−6=−5\overline{DB}=1-6=-5.

Form the two ratios: CA‾CB‾=−3−2=32\dfrac{\overline{CA}}{\overline{CB}} = \dfrac{-3}{-2} = \dfrac{3}{2} and DA‾DB‾=−6−5=65\dfrac{\overline{DA}}{\overline{DB}} = \dfrac{-6}{-5} = \dfrac{6}{5}.

Divide the first ratio by the second: (A,B;C,D)=3/26/5=32⋅56=1512=54(A,B;C,D) = \dfrac{3/2}{6/5} = \dfrac{3}{2}\cdot\dfrac{5}{6} = \dfrac{15}{12} = \dfrac{5}{4}.

So (A,B;C,D)=54(A,B;C,D) = \dfrac{5}{4}; because cross-ratio is a projective invariant, any projective transformation applied to A,B,C,DA, B, C, D produces four new points whose cross-ratio is still exactly 54\dfrac{5}{4}, by the invariance theorem proved above.

Which of the following homogeneous triples represents the same projective point as [2:−4:6][2 : -4 : 6]?

A line in the projective plane has homogeneous equation 2X−Y+4Z=02X - Y + 4Z = 0. Which affine point (with Z=1Z=1) lies on this line?

In the real projective plane, what is the dual statement of "three points are collinear"?

In photogrammetry, two edges of a building that are parallel in reality appear in a photograph as line segments that, when extended, intersect at a single pixel. What projective concept explains this intersection?

References

  1. H. S. M. Coxeter (1974). Projective Geometry
  2. Jürgen Richter-Gebert (2011). Perspectives on Projective Geometry: A Guided Tour Through Real and Complex Geometry
  3. Wikipedia contributors (2026). Pascal's theorem — Wikipedia
  4. Wikipedia contributors (2026). Lam's problem — Wikipedia