The Distance Function from a Real Algebraic Variety
Giorgio Ottaviani, Luca Sodomaco
TL;DR
This work defines the Euclidean Distance polynomial EDpoly_{X,u}(t^2) for real varieties X in a Euclidean space with a quadratic form q, encapsulating the squared distance to X via its roots. It establishes a duality with the projective dual X^∨, namely EDpoly_{X,u}(t^2) = EDpoly_{X^∨,u}(q(u)−t^2), and analyzes how transversality to the isotropic quadric Q enforces a monic leading term and a structured lowest term. By leveraging conormal and Chern-Mather theory, the ED degree is expressed in terms of dual varieties and polar/Chern-Mather classes, with explicit formulas for hypersurfaces and matrix varieties. The paper provides concrete formulas and factorization patterns for essential cases, including the case of rank-constrained matrices and key hypersurface scenarios, linking distance geometry to dual geometry and offset hypersurfaces. These results offer deep geometric insight and concrete computational tools for distance problems in algebraic geometry and related applications.
Abstract
For any (real) algebraic variety $X$ in a Euclidean space $V$ endowed with a nondegenerate quadratic form $q$, we introduce a polynomial $\mathrm{EDpoly}_{X,u}(t^2)$ which, for any $u\in V$, has among its roots the distance from $u$ to $X$. The degree of $\mathrm{EDpoly}_{X,u}$ is the {\em Euclidean Distance degree} of $X$. We prove a duality property when $X$ is a projective variety, namely $\mathrm{EDpoly}_{X,u}(t^2)=\mathrm{EDpoly}_{X^\vee,u}(q(u)-t^2)$ where $X^\vee$ is the dual variety of $X$. When $X$ is transversal to the isotropic quadric $Q$, we prove that the ED polynomial of $X$ is monic and the zero locus of its lower term is $X\cup(X^\vee\cap Q)^\vee$.
