Bridging the algebraic and analytic theory of the representation problem for quadratic polynomials