The Equation of the Line Passing Through Two Distinct Points in the Real Projective Plane
Recall from the The Existence of a Unique Line Through Two Distinct Points In The Real Projective Plane page that if $\mathbf{p} = [p_1, p_2, p_3], \mathbf{q} = [q_1, q_2, q_3] \in \mathbb{P}^2 (\mathbb{R})$ then there exists a unique line $<a_1, a_2, a_3>$, $a_1, a_2, a_3$ not all zero, that passes through the points $\mathbf{p}$ and $\mathbf{q}$.
We will now see how to determine the equation of these lines. Suppose that $<a_1, a_2, a_3>$ is the unique line that passes through the distinct points $\mathbf{p}, \mathbf{q} \in \mathbb{P}^2(\mathbb{R})$. Then the line $<a_1, a_2, a_3>$ is the set of points $\mathbf{x} = [x_1, x_2, x_3] \in \mathbb{P}^2 (\mathbb{R})$ which satisfy:
(1)In particular, the points $\mathbf{p}, \mathbf{q}$ satisfy the equation above. Now consider the determinant equation:
(2)The equation above is the equation of a line. Notice that if we plug in the point $\mathbf{p}$ we get:
(3)Also, if we plug in the point $\mathbf{q}$ we get:
(4)Therefore the points $\mathbf{p}, \mathbf{q}$ lie on the line given by the determinant equation above. Since the line that passes through the points $\mathbf{p}$ and $\mathbf{q}$ is unique, we have that:
(5)Example 1
Find the equation of the line that passes through the points $[2, 1, 1], [4, 3, 1] \in \mathbb{P}^2(\mathbb{R})$.
Using the formula from above, we have that the line that passes through these points is:
(6)Therefore the equation of the line that passes through $[2, 1, 1]$ and $[4, 3, 1]$ is:
(7)We can verify that $[2, 1, 1]$ and $[4, 3, 1]$ are on the line $<-1, 1, 1>$ by verifying that $[2, 1, 1] \cdot <-1, 1, 1> = 0$ and $[4, 3, 1] \cdot <-1, 1, 1> = 0$ (where $\cdot$ represents the dot product). We have that:
(8)And also:
(9)