# Symmetric bilinear form

In mathematics, a symmetric bilinear form on a vector space is a bilinear map from two copies of the vector space to the field of scalars such that the order of the two vectors does not affect the value of the map. In other words, it is a bilinear function $B$ that maps every pair $(u,v)$ of elements of the vector space $V$ to the underlying field such that $B(u,v)=B(v,u)$ for every $u$ and $v$ in $V$. They are also referred to more briefly as just symmetric forms when "bilinear" is understood.
Symmetric bilinear forms on finite-dimensional vector spaces precisely correspond to symmetric matrices given a basis for V. Among bilinear forms, the symmetric ones are important because they are the ones for which the vector space admits a particularly simple kind of basis known as an orthogonal basis (at least when the characteristic of the field is not 2).
Given a symmetric bilinear form B, the function q(x) = B(x, x) is the associated quadratic form on the vector space. Moreover, if the characteristic of the field is not 2, B is the unique symmetric bilinear form associated with q.

## Formal definition

Let V be a vector space of dimension n over a field K. A map $B:V\times V\rightarrow K$ is a symmetric bilinear form on the space if:
* $B(u,v)=B(v,u)\ \quad \forall u,v\in V$
* $B(u+v,w)=B(u,w)+B(v,w)\ \quad \forall u,v,w\in V$
* $B(\lambda v,w)=\lambda B(v,w)\ \quad \forall \lambda \in K,\forall v,w\in V$
The last two axioms only establish linearity in the first argument, but the first axiom (symmetry) then immediately implies linearity in the second argument as well.

## Examples

Let V = R$^n$, the n dimensional real vector space. Then the standard dot product is a symmetric bilinear form, B(x, y) = x ⋅ y. The matrix corresponding to this bilinear form (see below) on a standard basis is the identity matrix.
Let V be any vector space (including possibly infinite-dimensional), and assume T is a linear function from V to the field. Then the function defined by B(x, y) = T(x)T(y) is a symmetric bilinear form.
Let V be the vector space of continuous single-variable real functions. For $f,g\in V$ one can define $\textstyle B(f,g)=\int _{0}^{1}f(t)g(t)dt$. By the properties of definite integrals, this defines a symmetric bilinear form on V. This is an example of a symmetric bilinear form which is not associated to any symmetric matrix (since the vector space is infinite-dimensional).

## Matrix representation

Let $C=\{e_{1},\ldots ,e_{n}\}$ be a basis for V. Define the n × n matrix A by $A_{ij}=B(e_{i},e_{j})$. The matrix A is a symmetric matrix exactly due to symmetry of the bilinear form. If we let the n×1 matrix x represent the vector v with respect to this basis, and similarly let the n×1 matrix y represent the vector w, then $B(v,w)$ is given by :
    $x^{\mathsf {T}}Ay=y^{\mathsf {T}}Ax.$
Suppose C' is another basis for V, with : ${\begin{bmatrix}e'_{1}&\cdots &e'_{n}\end{bmatrix}}={\begin{bmatrix}e_{1}&\cdots &e_{n}\end{bmatrix}}S$ with S an invertible n×n matrix. Now the new matrix representation for the symmetric bilinear form is given by
    $A'=S^{\mathsf {T}}AS.$

## Orthogonality and singularity

Two vectors v and w are defined to be orthogonal with respect to the bilinear form B if B(v, w) = 0, which, for a symmetric bilinear form, is equivalent to B(w, v) = 0.
The radical of a bilinear form B is the set of vectors orthogonal with every vector in V. That this is a subspace of V follows from the linearity of B in each of its arguments. When working with a matrix representation A with respect to a certain basis, v, represented by x, is in the radical if and only if
    $Ax=0\Longleftrightarrow x^{\mathsf {T}}A=0.$
The matrix A is singular if and only if the radical is nontrivial.
If W is a subset of V, then its orthogonal complement W$^⊥$ is the set of all vectors in V that are orthogonal to every vector in W; it is a subspace of V. When B is non-degenerate, the radical of B is trivial and the dimension of W$^⊥$ is dim(W$^⊥$) = dim(V) − dim(W).

## Orthogonal basis

A basis $C=\{e_{1},\ldots ,e_{n}\}$ is orthogonal with respect to B if and only if :
    $B(e_{i},e_{j})=0\ \forall i\neq j.$
When the characteristic of the field is not two, V always has an orthogonal basis. This can be proven by induction.
A basis C is orthogonal if and only if the matrix representation A is a diagonal matrix.

### Signature and Sylvester's law of inertia

In a more general form, Sylvester's law of inertia says that, when working over an ordered field, the numbers of diagonal elements in the diagonalized form of a matrix that are positive, negative and zero respectively are independent of the chosen orthogonal basis. These three numbers form the signature of the bilinear form.

### Real case

When working in a space over the reals, one can go a bit a further. Let $C=\{e_{1},\ldots ,e_{n}\}$ be an orthogonal basis.
We define a new basis $C'=\{e'_{1},\ldots ,e'_{n}\}$
    $e'_{i}={\begin{cases}e_{i}&{\text{if }}B(e_{i},e_{i})=0\\{\frac {e_{i}}{\sqrt {B(e_{i},e_{i})}}}&{\text{if }}B(e_{i},e_{i})>0\\{\frac {e_{i}}{\sqrt {-B(e_{i},e_{i})}}}&{\text{if }}B(e_{i},e_{i})<0\end{cases}}$
Now, the new matrix representation A will be a diagonal matrix with only 0, 1 and −1 on the diagonal. Zeroes will appear if and only if the radical is nontrivial.

### Complex case

When working in a space over the complex numbers, one can go further as well and it is even easier. Let $C=\{e_{1},\ldots ,e_{n}\}$ be an orthogonal basis.
We define a new basis $C'=\{e'_{1},\ldots ,e'_{n}\}$ :
    $e'_{i}={\begin{cases}e_{i}&{\text{if }}\;B(e_{i},e_{i})=0\\e_{i}/{\sqrt {B(e_{i},e_{i})}}&{\text{if }}\;B(e_{i},e_{i})\neq 0\\\end{cases}}$
Now the new matrix representation A will be a diagonal matrix with only 0 and 1 on the diagonal. Zeroes will appear if and only if the radical is nontrivial.

## Orthogonal polarities

Let B be a symmetric bilinear form with a trivial radical on the space V over the field K with characteristic not 2. One can now define a map from D(V), the set of all subspaces of V, to itself:
    $\alpha :D(V)\rightarrow D(V):W\mapsto W^{\perp }.$
This map is an orthogonal polarity on the projective space PG(W). Conversely, one can prove all orthogonal polarities are induced in this way, and that two symmetric bilinear forms with trivial radical induce the same polarity if and only if they are equal up to scalar multiplication.