In mathematics, a quadric, or quadric surface, is any D-dimensional hypersurface in (D + 1)-dimensional space defined as the locus of zeros of a quadratic polynomial. In coordinates x1, x2, ..., xD+1, the general quadric is defined by the algebraic equation

which may be compactly written in vector and matrix notation as:

where x = (x1, x2, ..., xD+1) is a row vector, xT is the transpose of x (a column vector), Q is a (D + 1) × (D + 1) matrix and P is a (D + 1)-dimensional row vector and R a scalar constant.