Definition 7.4.1. Quadratic Form.
A quadratic form in \(n\) variables is a function of the form
\begin{equation*}
Q(x_1, x_2, \ldots, x_n) = \sum_{i=1}^{n} a_{ii}x_i^2 + 2\sum_{1 \le i < j \le n} a_{ij}x_ix_j,
\end{equation*}
where the coefficients \(a_{ij}\) are real numbers.
Equivalently, if \(\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix}\text{,}\) then every quadratic form can be written as
\begin{equation*}
Q(\mathbf{x}) = \mathbf{x}^T A\mathbf{x}
\end{equation*}
for a unique symmetric matrix \(A = [a_{ij}]\text{.}\)
A quadratic form is said to be in standard form if it has no cross terms \(x_ix_j\) with \(i \ne j\text{.}\)
