Quadratic Relations and Functions