Definitions

In mathematics, a quadratic form is a homogeneous polynomial of degree two in a number of variables.

Quadratic forms are central objects in mathematics, occurring for instance in number theory, Riemannian geometry (as curvature), and Lie theory (via the Killing form).

They are also ubiquitous in physics and chemistry, as the energy of a system, particularly in relation to the L2 norm, which leads to the use of Hilbert spaces.

## Definition

Quadratic forms in one, two, and three variables are given by:

$F\left(x\right) = ax^2$
$F\left(x,y\right) = ax^2 + by^2 + cxy$
$F\left(x,y,z\right) = ax^2 + by^2 + cz^2 + dxy + exz + fyz$

Away from 2, quadratic forms are equivalent to symmetric bilinear forms (by the polarization identities), but at 2 they are different concepts; this distinction is particularly important for quadratic forms over the integers.

The term quadratic form is also often used to refer to a quadratic space, which is a pair (V,q) where V is a vector space over a field k, and q:Vk is a quadratic form on V. For example, the distance between two points in three-dimensional Euclidean space is found by taking the square root of a quadratic form involving six variables, the three coordinates of each of the two points.

A quadratic form in 2 variables is called a binary quadratic form, and these are extensively studied in number theory (particularly in the theory of modular forms), together with their associated quadratic fields.

Note that general quadratic functions and quadratic equations are not examples of quadratic forms, as they are not always homogeneous: quadratic functions are functions on affine space, while quadratic forms are "functions" on projective space (properly, sections of $mathcal\left\{O\right\}\left(2\right)$, the square of the twisting sheaf).

Any non-zero quadratic form in n variables defines an (n-2)-dimensional quadric in projective space. In this way one may visualize 3-dimensional quadratic forms as conic sections.

## Symmetric forms

When working over a ring where 2 is invertible (for instance, over a field of characteristic not equal to 2), a quadratic form is equivalent to a symmetric bilinear form, in this context often called simply a symmetric form. They are thus frequently confused, as in integral quadratic forms (below), or in higher Witt groups. However, they are distinct concepts, and the distinction is frequently important.

Intuitively, a symmetric form generalizes $xy$, while a quadratic form generalizes $x^2$, and one can pass between these via the polarization identities.

Given a quadratic form $Q$, one obtains a symmetric form $B$, called the associated symmetric form or associated bilinear form, via:

$B\left(u,v\right) = Q\left(u+v\right) - Q\left(u\right) - Q\left(v\right)$
This corresponds to:
$2xy = \left(x+y\right)^2 - x^2 - y^2$

Conversely, given a bilinear form $B$ (which need not be symmetric), one obtains a quadratic form via:

$Q\left(u\right) = B\left(u,u\right)$
This corresponds to:
$x^2 = xcdot x$

If one composes these two operations, one gets multiplication by 2 (if one starts with either a quadratic form or a symmetric bilinear form); thus if 2 is invertible, these operations are invertible (the polarization identities); by analogy with

$xy = frac\left\{1\right\}\left\{2\right\}left\left(\left(x+y\right)^2 - x^2 - y^2right\right)$
one takes
$B\left(u,v\right) = frac\left\{1\right\}\left\{2\right\}left\left(Q\left(u+v\right) - Q\left(u\right) - Q\left(v\right)right\right)$
which gives a 1-1 correspondence between quadratic forms on V and symmetric forms on V.

But if 2 is not invertible, symmetric forms and quadratic forms are different: some quadratic forms cannot be written in the form $B\left(u,u\right)$, for example, over the integers, $Q\left(u\right)=x^2+xy+y^2$, or more simply $Q\left(u\right)=xy$.

### Details

Let us describe this equivalence in the 2 dimensional case. Any 2 dimensional quadratic form may be written as

$F\left(x,y\right) = ax^2 + bxy + cy^2$.

Let us write v = (x,y) for any vector in the vector space. The quadratic form F can be expressed in terms of matrices if we let M be the 2×2 matrix:

$M=$
begin{bmatrix}
`   a   & b/2  `
`   b/2 & c`
end{bmatrix}.

Then matrix multiplication gives us the following equality:

F(v)=vT·M·v

Where the superscript vT denotes the transpose of a matrix. Notice we have used that the characteristic is not 2, since we divided by 2 to define M. So we see the correspondence between 2 dimensional quadratic forms F and 2×2 symmetric matrices M, which correspond to symmetric forms.

This observation generalises quickly to forms in n variables and n×n symmetric matrices. For example, in the case of real-valued quadratic forms, the characteristic of the real numbers is 0, so real quadratic forms and real symmetric bilinear forms are the same objects, from different points of view.

If V is free of rank n we write the bilinear form B as a symmetric matrix B relative to some basis {ei} for V. The components of B are given by $B_\left\{ij\right\} = B\left(e_i,e_j\right)$. If 2 is invertible the quadratic form Q is then given by

$2 Q\left(u\right) = mathbf\left\{u\right\}^T mathbf\left\{Bu\right\} = sum_\left\{i,j=1\right\}^\left\{n\right\}B_\left\{ij\right\}u^i u^j$
where ui are the components of u in this basis.

## Abstract definition

Let V be a module over a commutative ring R; often R is a field, such as the real numbers, in which case V is a vector space.

A quadratic form is an element of the symmetric square of the dual space,

$mbox\left\{Sym\right\}^2left\left(V^*right\right) := V^* otimes V^* / langle votimes w - wotimes vrangle.$
This is precisely the coordinate-free formulation of "homogeneous degree 2 polynomial", as the symmetric algebra of $V^*$ corresponds to polynomials on $V$.

Bilinear forms are the full tensor product $V^* otimes V^*$, and symmetric forms are the subspace of symmetric tensors. Note that the space of quadratic forms is a quotient of the space of bilinear forms, while symmetric forms are a subspace.

In terms of matrices, (we take $V$ to be 2-dimensional):

• matrices $begin\left\{pmatrix\right\}a & bc & dend\left\{pmatrix\right\}$ correspond to bilinear forms
• the subspace of symmetric matrices $begin\left\{pmatrix\right\}a & bb & cend\left\{pmatrix\right\}$ correspond to symmetric forms
• the bilinear form $begin\left\{pmatrix\right\}a & bc & dend\left\{pmatrix\right\}$ yields the quadratic form $ax^2 + bxy+cyx + dy^2 = ax^2 + \left(b+c\right)xy + dy^2$, which is a quotient map with kernel $begin\left\{pmatrix\right\}0 & b-b & 0end\left\{pmatrix\right\}$.

One can likewise define quadratic forms corresponding to skew-symmetric forms, Hermitian forms, and skew-Hermitian forms; the general concept is ε-quadratic form.

### Away from 2

When 2 is invertible in the ring R, one can define a quadratic form in terms of its associated symmetric form in the following way.

A map $Qcolon V to R$ is called a quadratic form on V if

• Q(av) = a2 Q(v) for all $a in R$ and $v in V$, and
• B(u,v) = Q(u+v) − Q(u) − Q(v) is a bilinear form on V.

Here B is called the associated symmetric form; it is a symmetric bilinear form.

### Further definitions

Two elements u and v of V are called orthogonal if B(u, v)=0.

The kernel of the bilinear form B consists of the elements that are orthogonal to all elements of V, and the kernel of the quadratic form Q consists of all elements u of the kernel of B with Q(u)=0. If 2 is invertible then Q and its associated bilinear form B have the same kernel.

The bilinear form B is called non-singular if its kernel is 0, and the quadratic form Q is called non-singular if its kernel is 0.

The orthogonal group of a non-singular quadratic form Q is the group of automorphisms of V that preserve the quadratic form Q.

A quadratic form Q is called isotropic when there is a non-zero v in V such that $Q\left(v\right) = 0$. Otherwise it is called anisotropic. A vector or a subspace of a quadratic space may also be referred to as isotropic. If $Q\left(V\right) = 0$ then $Q$ is called totally singular.

## Properties

Some other properties of quadratic forms:

$Q\left(u+v\right) + Q\left(u-v\right) = 2Q\left(u\right) + 2Q\left(v\right)$

• The vectors u and v are orthogonal with respect to B if and only if

$Q\left(u+v\right) = Q\left(u\right) + Q\left(v\right)$

Quadratic forms over the ring of integers are called integral quadratic forms or integral lattices. They are important in number theory and topology.

An integral quadratic form is one with integer coefficients, such as $x^2 + xy + y^2$; equivalently, given a lattice $Lambda$ in a vector space $V$ (over a field with characteristic 0, such as $mathbf\left\{Q\right\}$ or $mathbf\left\{R\right\}$), a quadratic form $Q$ is integral with respect to $Lambda$ if and only if it is integer-valued on $Lambda$, meaning $Q\left(x,y\right) in mathbf\left\{Z\right\}$ if $x,y in Lambda$.

This is the current use of the term; in the past it was sometimes used differently, as detailed below.

### Historical use

Historically there was some confusion and controversy over whether the notion of integral quadratic form should mean:twos in: the quadratic form associated to a symmetric matrix with integer coefficientstwos out: a polynomial with integer coefficients (so the associated symmetric matrix may have half-integer coefficients off the diagonal) This debate was due to the confusion of quadratic forms (represented by polynomials) and symmetric bilinear forms (represented by matrices), and "twos out" is now the accepted convention; "twos in" is instead the theory of integral symmetric bilinear forms (integral symmetric matrices).

In "twos in", binary quadratic forms are of the form $ax^2+2bxy+cy^2$, represented by the symmetric matrix $begin\left\{pmatrix\right\}a & b b&cend\left\{pmatrix\right\}$; this is the convention Gauss uses in Disquisitiones Arithmeticae.

In "twos out", binary quadratic forms are of the form $ax^2+bxy+cy^2$, represented by the symmetric matrix $begin\left\{pmatrix\right\}a & b/2 b/2&cend\left\{pmatrix\right\}$.

Several points of view mean that twos out has been adopted as the standard convention. Those include:

• better understanding of the 2-adic theory of quadratic forms, the 'local' source of the difficulty;
• the lattice point of view, which was generally adopted by the experts in the arithmetic of quadratic forms during the 1950s;
• the actual needs for integral quadratic form theory in topology for intersection theory;
• the Lie group and algebraic group aspects.

A quadratic form representing all positive integers is sometimes called universal.

Lagrange's four-square theorem shows that $w^2+x^2+y^2+z^2$ is universal.

Recently, the 15 and 290 theorems have completely characterized universal integral quadratic forms: if all coefficients are integers, then it represents all positive integers if and only if it represents all integers up through 290; if it has an integral matrix, it represents all positive integers if and only if it represents all integers up through 15.

Assume $Q$ is a quadratic form defined on a real vector space.

• It is said to be positive definite (resp. negative definite) if $Q\left(v\right)>0$ (resp. $Q\left(v\right)<0$) for every vector $vne 0.$
• If we loosen the strict inequality to ≥ or ≤, the form $Q$ is said to be semidefinite.
• If $Q\left(v\right)<0$ for some $v$ and $Q\left(v\right)>0$ for some other $v$, $Q$ is said to be indefinite.

Let $A$ be the real symmetric matrix associated with $Q$ as described above, so for any column vector $v$ it holds that

$Q\left(v\right)=v^T Av.$

Then, $Q$ is positive (semi)definite, negative (semi)definite, indefinite, if and only if the matrix $A$ has the same properties (see positive-definite matrix). Ultimately, these properties can be characterized in terms of the eigenvalues of $A.$