Let $P$ and $Q$ be distinct points in $\mathbb{P}^n_K.$
I want to write down a a system of homogeneous linear equations which cut out the unique line through $P$ and $Q.$
Let $L_P$ and $L_Q$ be the distinct lines through the origin in $k^{n+1}$ corresponding to $P$ and $Q.$
So I want an $(n-1)\times(n+1)$ matrix $A$ with kernel exactly equal to the plane spanned by $L_P$ and $L_Q.$
Problem. I can't figure out how, in general, to write "an algorithm" for finding such a matrix.
Here's an example of what I mean...
Example. Let $P=(1:0:0:0)$ and $Q=(0:1:1:0)$ in $\mathbb{P}^3.$
Let $$A=\begin{bmatrix} a_1&a_2&a_3&a_4 \\ b_1&b_2&b_3&b_4 \end{bmatrix}$$
Requiring $A$ to vanish on the plane spanned lines $L_P$ and $L_Q$ yields linear equations: $$a_1=0, \\ b_1=0, \\ a_2+a_3=0, \\ b_2+b_3=0.$$ To ensure that this is exactly the kernel, the rows $A$ must be linearly independent.
In this small case, this boils down to requiring that $$(a_2,-a_2,a_4)\neq \lambda (b_2,-b_2,b_4) \; \; \; \; \forall \lambda \in K.$$ Now I can just try plugging in some values to find some that work...
However, there seems to be some redundancy still but maybe this is accounted for by being allowed to scale the equations??