When tryig to fit $f(x,y) = a+bx+cy+dxy$ to the values of four points, we will have to invert following matrix. (Let us assume that $x_i,y_i$ are chosen suitably such that it is regular.) We could obviously solve this with any method (LU etc), but does the special structure of this matrix maybe allow for a compact representation of its inverse?
I thought there might be a way because this matrix looks similar to a Vandermonde matrix (but it is obviously not the same), which do sometimes have inverses that are particularly easy to compute.
$$M=\begin{bmatrix} 1 & x_1 & y_1 & x_1 y_1\\ 1 & x_2 & y_2 & x_2 y_2\\ 1 & x_3 & y_3 & x_3 y_3\\ 1 & x_4 & y_4 & x_4 y_4\end{bmatrix}$$
Given four distinct points $(x_1,y_1),(x_2,y_2),(x_3,y_3),(x_4,y_4)$, we can exhibit the cases for which the matrix $M$ is invertible, and hence for which all the bilinear interpolation problems are uniquely solvable, by evaluating the determinant of $M$ as a quartic polynomial in the $x_i,y_i$.
It will simplify our work, and help to provide a geometric interpretation of the result, if we begin with a change of variable translating the first of these points to the origin:
$$ u = x - x_1 $$ $$ v = y - y_1 $$
Supposing that with the same function values at points $(u_i,v_i) = (x_i-x_1,y_i-y_1)$ as in the corresponding original points, a bilinear interpolant exists:
$$ g(u,v) = \hat a + \hat b u + \hat c v + \hat d uv $$
Then the solution to the original problem will be:
$$ \begin{align*} f(x,y) &= \hat a + \hat b (x-x_1) + \hat c (y-y_1) + \hat d (x-x_1)(y-y_1) \\ &= (\hat a - \hat b x_1 - \hat c y_1 + \hat d x_1 y_1) + (\hat b - \hat dy_1)x \\ &\; \; \; + (\hat c - \hat dx_1)y + \hat d xy \end{align*} $$
It follows that this solution would uniquely determine the desired bilinear interpolant $f(x,y)$ at the original points:
$$ \begin{pmatrix} a \\ b \\ c \\ d \end{pmatrix} = \begin{pmatrix} 1 & -x_1 & -y_1 & x_1y_1 \\ 0 & 1 & 0 & -y_1 \\ 0 & 0 & 1 & -x_1 \\ 0 & 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} \hat a \\ \hat b \\ \hat c \\ \hat d \end{pmatrix} $$
In that sense we can assume without loss of generality that $(x_1,y_1) = (0,0)$, and we proceed to find the determinant of $M$ in this slightly special case:
$$ \begin{align*} \det M &= \left| \begin{array}{cccc} 1 & 0 & 0 & 0 \\ 1 & x_2 & y_2 & x_2 y_2 \\ 1 & x_3 & y_3 & x_3 y_3 \\ 1 & x_4 & y_4 & x_4 y_4 \end{array} \right| \\ &= \left| \begin{array}{ccc} x_2 & y_2 & x_2 y_2 \\ x_3 & y_3 & x_3 y_3 \\ x_4 & y_4 & x_4 y_4 \end{array} \right| \\ &= x_2x_4y_3(y_4-y_2) + x_3x_4y_2(y_3-y_4) + x_2x_3y_4(y_2-y_3) \end{align*} $$
With this expression we can identify some geometric conditions on the four points for which the matrix has zero determinant and is thus not invertible. One such case is for all four points to be collinear. For example, $(0,0),(1,1),(2,2),(3,3)$. Proof: If all four points are collinear, then the first two columns of the $3\times 3$ determinant above are linearly dependent.
Another case is for two points to have the same $x$-coordinate while the other two points share the same $y$-coordinate. For example, $(0,0),(0,1)$ and $(2,1),(2,2)$. Proof: Suppose WLOG that the two points with equal $x$-coordinates are $x_1=x_2=0$ as previously argued. Then $y_3=y_4$ and all the summands in our expression for $|M|$ vanish.
So we can give a formula for the $4\times 4$ inverse exactly when determinant of $M$ is not zero. Putting the expression for the determinant back in its more general form, not assuming $(x_1,y_1)=(0,0)$, makes it look a bit more similar to the Vandermonde matrix determinant:
$$ \begin{align*} \det M &= (x_2-x_1)(x_4-x_1)(y_3-y_1)(y_4-y_2) \\ &\; \; \; + (x_3-x_1)(x_4-x_1)(y_2-y_1)(y_3-y_4) \\ &\; \; \; + (x_2-x_1)(x_3-x_1)(y_4-y_1)(y_2-y_3) \end{align*} $$