Given a line
$g: 0 = I - sX_1 - X_2$
$I, s \in R$
I need to find $V$ for an arbitrary $I$ so that there exists a point $(X_1, X_2)$ where $g_I$ is tangent to the ellipse
$V: V = X_1^2A+X_1X_2B+X_2^2C+X_1D-X_2E+F$
$A, B, C, D, E, F \in R$
More intuitively I need to find one of the concentric ellipses shown here with a solid line, so that an arbitrary line shown here dashed touches the line g and where it does so.
I have tried:
with $ V' = V+I-F$, $D' = D+s$ and $E' = E+1$ it can be shown that from g and V follows
$\implies V' = X_1^2A+X_1X_2B+X_2^2C+X_1D'-X_2E'$
Which is also an ellipse. Wikipedia provides the determinant of that ellipse which is zero when there is exactly one solution$(X_1, X_2) \in R^2$. From that follows
$V = F - \frac{B(D+s)(E+1)+a(E+1)^2+C(D+s)^2}{B^2-4AC} - I$
For the example shown this is off by about two orders of magnitude, specifically because s is two orders of magnitude larger than anything else in the central term.