In this post, we will develop the theory of homogeneous coordinates. We will use capital letters to denote lines and lowercase letters to denote points. When using homogeneous coordinates in two dimensions, we create a bijection between the set of points of a projective plane and the coordinates (x,y,z) where x+y+z=1 and a bijection between the set of lines of the projective plane and the coordinates [x,y,z] where x+y+z=1, such that a point p=(x,y,z) and a line L=[X,Y,Z] are incident if and only if their dot product p⋅L=xX+yY+zZ is equal to 0. Any multiples of these coordinates are equivalent to each other. Also, we are allowed to have the coordinates sum to 0 (since we can "multiply by infinity") as long as it's not (0,0,0) or [0,0,0]. Barycentric coordinates is a homogeneous coordinate system on the real projective plane. The coordinates which sum to 0 would form the line at infinity when using barycentric coordinates.
We see an immediate corrollary from the definition.
Corollary 1. The equation of a line X=[A,B,C] is Ax+By+Cz=0 where (x,y,z) is a point on the line.
This should be familiar if you have studied barycentric coordinates. Also, the bracket notation for a line isn't particularly common, so I would suggest against using it on an olympiad, but I will use it in this post to show the point line duality of projective geometry.
Now, let us find the coordinates for the line through two points. Let x=(x1,x2,x3) and y=(y1,y2,y3). We wish to find the line Z=[Z1,Z2,Z3] such that x⋅Z=y⋅Z=0. Then we have a system of equation
x1Z1+x2Z2+x3Z3=0y1Z1+x2Z2+x3Z3=0
We can represent the two equation as an equality between matrices and factor to get
[x1y1x2y2x3y3]Z1Z2Z3=0
The solution to this equation is
Z1=k⋅det[x2y2x3y3]Z2=k⋅det[x3y3x1y1]Z3=k⋅det[x1y1x2y2]
This gives us a somewhat nice result.
Theorem 1. The line through x=(x1,x2,x3) and y=(y1,y2,y3) is [x2y2x3y3,x3y3x1y1,x1y1x2y2]
We notice that we could solve the intersection of two lines the same way we did just right now.
Corollary 2. The intersection of X=[X1,X2,X3] and Y=[Y1,Y2,Y3] is (X2Y2X3Y3,X3Y3X1Y1,X1Y1X2Y2)
We can use similar techniques to easily find formulas for collinearity and concurrency.
Theorem 2. Three points x=(x1,x2,x3), y=(y1,y2,y3), z=(z1,z2,z3) are collinear if and only ifx1y1z1x2y2z2x3y3z3=0
Proof. Suppose the three points were collinear. Let A=[A1,A2,A3] be the line containing the three. Then we have that
x1A1+x2A2+x3A3=0y1A1+y2A2+y3A3=0z1A1+z2A2+z3A3=0
We express both sides as matrices.
x1y1z1x2y2z2x3y3z3A1A2A3=0
We easily see that it is necessary that
x1y1z1x2y2z2x3y3z3=0.
If not, then the matrix on the left side is invertible and our line is [0,0,0], which implies that there exists no such line. □
Exercise. Finish the proof by showing that the converse is true.
The proof for concurrency is literally the same, so we will omit it.
Corollary 3. Three lines X=[X1,X2,X3], Y=[Y1,Y2,Y3], Z=[Z1,Z2,Z3] are concurrent if and only if X1Y1Z1X2Y2Z2X3Y3Z3=0
Hopefully, you now understand the point-line duality of projective geometry, which, ultimately, can be used with barycentric coordinates.