{
  "id": "quadratic-form",
  "title": "Quadratic Form",
  "lang": "en",
  "source_lang": "en",
  "summary": "A quadratic form is a homogeneous polynomial of degree two whose classification and applications connect linear algebra, geometry, number theory, statistics, and physics.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Homogeneous quadratic form"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/quadratic-form/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/quadratic-form/",
      "json": "https://aiwiki.page/zh/quadratic-form.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A quadratic form is a homogeneous polynomial of degree two in several variables. Over the real numbers, it can be written as\n\n\\[q(x_1,\\ldots,x_n)=\\sum_{i,j=1}^{n}a_{ij}x_ix_j =\\mathbf{x}^{T}A\\mathbf{x},\\]\n\nwhere \\(A\\) is a symmetric matrix and \\(\\mathbf{x}\\) is a column vector. Familiar examples include \\(x^2+y^2\\), which measures squared distance from the origin, and \\(x^2-y^2\\), which takes both positive and negative values. More generally, quadratic forms are defined on vector spaces over fields, with a formulation that remains meaningful when division by two is impossible.\n\nQuadratic forms provide a common language for squared lengths, conic sections, second-order approximations, energy, and arithmetic representation problems. Their classification depends fundamentally on the allowed changes of variables and on the number system containing the coefficients. Over the real numbers, the decisive information is the number of positive, negative, and zero squares in a diagonal expression. Over the integers or rational numbers, divisibility and local arithmetic introduce substantially finer distinctions."
    },
    {
      "heading": "Algebraic definition and matrix representation",
      "text": "Let \\(V\\) be a finite-dimensional vector space over a field \\(F\\). A quadratic form is a map \\(q:V\\to F\\) satisfying \\(q(av)=a^2q(v)\\) for every \\(a\\in F\\), such that\n\n\\[b_q(u,v)=q(u+v)-q(u)-q(v)\\]\n\nis a bilinear form. This means that \\(b_q\\) is linear separately in each argument. The pair \\((V,q)\\) is called a quadratic space. When the characteristic of \\(F\\) is not two, it is often more convenient to use the normalized associated form\n\n\\[B(u,v)=\\frac12 b_q(u,v).\\]\n\nThen \\(B\\) is symmetric and \\(q(v)=B(v,v)\\). Thus quadratic forms and symmetric bilinear forms determine one another in this setting.\n\nChoosing a basis identifies \\(V\\) with \\(F^n\\) and gives \\(q(\\mathbf{x})=\\mathbf{x}^{T}A\\mathbf{x}\\), where \\(A\\) is symmetric. The coefficient of \\(x_i^2\\) is \\(a_{ii}\\), whereas the coefficient of \\(x_ix_j\\), for \\(i\\ne j\\), is \\(2a_{ij}\\). For example,\n\n\\[q(x,y)=3x^2+4xy+2y^2\\]\n\nhas matrix\n\n\\[A=\\begin{pmatrix}3&2\\\\2&2\\end{pmatrix}.\\]\n\nAny matrix \\(M\\) over a field of characteristic other than two defines the same quadratic polynomial as its symmetric part \\((M+M^T)/2\\), because the skew-symmetric part contributes zero.\n\nAn invertible linear change of variables \\(\\mathbf{x}=P\\mathbf{y}\\) transforms the matrix according to\n\n\\[A\\longmapsto P^TAP.\\]\n\nThis relation is called congruence. It differs from matrix similarity, where the transformation is \\(A\\mapsto P^{-1}AP\\). Similarity describes one linear operator in different bases; congruence describes one quadratic form in different bases. Eigenvalues need not be preserved by congruence, although rank is preserved. For example, the one-variable forms \\(x^2\\) and \\(4y^2\\) are equivalent over the real numbers through \\(x=2y\\).\n\nThe radical of the associated bilinear form consists of vectors \\(v\\) satisfying \\(B(v,w)=0\\) for every \\(w\\in V\\). In coordinates it is the null space of \\(A\\). A form is nondegenerate if this radical is zero, equivalently if \\(\\det A\\ne0\\). Over a field of characteristic other than two, every quadratic form can be diagonalized by congruence:\n\n\\[q=a_1y_1^2+\\cdots+a_ry_r^2, \\qquad a_i\\ne0.\\]\n\nCompleting squares gives a constructive proof, although an initial change of basis may be needed if every diagonal entry initially vanishes. Which nonzero coefficients can then be removed by rescaling depends on which elements of \\(F\\) are squares."
    },
    {
      "heading": "Classification over the real and complex numbers",
      "text": "For a real quadratic form, the spectral theorem gives an orthogonal matrix \\(Q\\) such that\n\n\\[Q^TAQ=\\operatorname{diag}(\\lambda_1,\\ldots,\\lambda_n).\\]\n\nThe \\(\\lambda_i\\) are the real eigenvalues of \\(A\\). An orthogonal change of variables therefore removes mixed terms while preserving ordinary Euclidean lengths. Rescaling each coordinate whose eigenvalue is nonzero produces\n\n\\[q=y_1^2+\\cdots+y_p^2 -y_{p+1}^2-\\cdots-y_{p+r}^2,\\]\n\nwith \\(z=n-p-r\\) unused coordinates.\n\nSylvester’s law of inertia, established in the nineteenth century and associated with James Joseph Sylvester, states that the numbers \\(p,r,z\\) are independent of the invertible real change of coordinates used. They are the positive index, negative index, and nullity. The triple is called the inertia; “signature” may mean either the pair \\((p,r)\\) or the difference \\(p-r\\), depending on convention. Two real quadratic forms of the same dimension are congruent exactly when their inertias agree.\n\nA form is positive definite if \\(q(x)>0\\) for every nonzero \\(x\\), positive semidefinite if \\(q(x)\\ge0\\), and indefinite if it takes both positive and negative values. Negative definite and negative semidefinite forms are defined with the inequalities reversed. Positive definiteness is equivalent to all eigenvalues being positive and to the representing matrix being a positive-definite matrix. Sylvester’s criterion gives another test: every leading principal minor must be positive. Positive semidefiniteness instead requires all principal minors to be nonnegative; checking only the leading ones is insufficient.\n\nFor example,\n\n\\[q(x,y)=3x^2+4xy+2y^2 =3\\left(x+\\frac23y\\right)^2+\\frac23y^2\\]\n\nis positive definite. Its leading principal minors are \\(3\\) and \\(2\\). By contrast, \\(x^2-y^2\\) has inertia \\((1,1,0)\\) and vanishes on the two lines \\(x=\\pm y\\), despite being nondegenerate. Nondegeneracy therefore does not mean that only the zero vector has value zero.\n\nOver the complex numbers, every nonzero scalar has a square root. Consequently, every symmetric quadratic form of rank \\(r\\) is congruent to \\(z_1^2+\\cdots+z_r^2\\); rank alone classifies such forms. There is no corresponding positive-versus-negative distinction. Complex quadratic forms must also be distinguished from Hermitian forms \\(z^*Hz\\), which use complex conjugation and can define positive lengths. Indeed, \\(z_1^2+z_2^2\\) vanishes at the nonzero vector \\((1,i)\\), whereas the positive Hermitian expression \\(|z_1|^2+|z_2|^2\\) does not."
    },
    {
      "heading": "Geometric interpretation and transformation groups",
      "text": "A positive-definite real quadratic form defines an inner product by polarization and a norm by\n\n\\[\\|x\\|_q=\\sqrt{q(x)}.\\]\n\nIts unit level set \\(q(x)=1\\) is an ellipsoid. In orthonormal eigenvector coordinates, its principal semiaxes have lengths \\(1/\\sqrt{\\lambda_i}\\). Thus eigenvectors describe the directions of the axes, while eigenvalues describe their relative scales. The form \\(4x^2+y^2\\), for instance, gives an ellipse with semiaxes \\(1/2\\) and \\(1\\).\n\nIndefinite forms produce different level sets. The equation \\(x^2-y^2=1\\) defines a hyperbola, while \\(x^2+y^2-z^2=0\\) defines a double cone. More generally, a degree-two algebraic locus is called a quadric. An affine quadratic equation has the form\n\n\\[x^TAx+2b^Tx+c=0.\\]\n\nIf \\(A\\) is invertible, translating \\(x=y-A^{-1}b\\) removes the linear term and yields\n\n\\[y^TAy+c-b^TA^{-1}b=0.\\]\n\nIts geometry is then controlled by the inertia of \\(A\\) and the remaining constant. If \\(A\\) is singular, some linear terms may survive every translation, producing parabolic rather than central quadrics.\n\nIn projective geometry, a quadratic form defines a locus \\(q(x)=0\\) in homogeneous coordinates. Multiplying \\(q\\) by a nonzero scalar does not change this locus, so projective classification is not identical to classification of forms themselves. A nondegenerate form defines a nonsingular projective quadric when the characteristic is not two. A positive-definite real form has no real projective zeros, although its complexification can have many.\n\nVectors satisfying \\(q(v)=0\\) are called isotropic; a form with a nonzero such vector is isotropic. Otherwise it is anisotropic. Positive-definite real forms are anisotropic, but anisotropy is not synonymous with positivity over general fields. The rational form \\(x^2-2y^2\\) is anisotropic over the rationals because \\(\\sqrt2\\) is irrational, although it is isotropic over the real numbers.\n\nThe invertible transformations preserving \\(q\\) form its orthogonal group:\n\n\\[O(q)=\\{P:P^TAP=A\\}.\\]\n\nFor the ordinary sum of squares this is \\(O(n)\\); for a nondegenerate real form of inertia \\((p,r,0)\\), it is denoted \\(O(p,r)\\). These groups preserve the geometry selected by the form rather than necessarily preserving Euclidean distance. Reflections provide basic examples: when \\(B(v,v)\\ne0\\),\n\n\\[s_v(x)=x-2\\frac{B(x,v)}{B(v,v)}v\\]\n\npreserves \\(q\\). Over fields of characteristic other than two, every isometry of a nondegenerate finite-dimensional quadratic space is a product of such reflections."
    },
    {
      "heading": "Optimization, curvature, and numerical computation",
      "text": "Quadratic forms describe the local curvature of differentiable functions. For a twice continuously differentiable real function \\(f\\), the second-order Taylor expansion at \\(x\\) is\n\n\\[f(x+h)=f(x)+\\nabla f(x)^Th +\\frac12h^TH(x)h+o(\\|h\\|^2),\\]\n\nwhere \\(H(x)\\) is the Hessian matrix. At a stationary point, a positive-definite Hessian implies a strict local minimum, a negative-definite Hessian implies a strict local maximum, and an indefinite Hessian implies a saddle point. A semidefinite Hessian does not settle the question: \\(x^4+y^4\\) and \\(x^4-y^4\\) have the same zero Hessian at the origin but different local behavior.\n\nA quadratic objective is commonly written\n\n\\[f(x)=\\frac12x^TAx-b^Tx+c,\\]\n\nwith \\(A\\) symmetric. Its gradient is \\(Ax-b\\), and its Hessian is \\(A\\). If \\(A\\) is positive definite, the unique minimizer solves \\(Ax=b\\). If \\(A\\) is positive semidefinite, a minimum exists precisely when \\(b\\) belongs to the image of \\(A\\); the minimizing set is then an affine translate of its null space. If \\(A\\) has a negative eigenvalue, the unconstrained objective is unbounded below along a corresponding direction.\n\nQuadratic programming adds constraints, often linear equalities and inequalities. Positive-semidefinite \\(A\\) gives a convex problem, whereas indefinite quadratic programs may possess multiple local minima and are generally much harder. In equality-constrained optimization, curvature need only be positive on feasible directions. For constraints \\(Cx=d\\), these directions satisfy \\(Ch=0\\), so a reduced quadratic form on \\(\\ker C\\) determines whether a stationary point is a constrained minimum.\n\nThe Rayleigh quotient\n\n\\[R_A(x)=\\frac{x^TAx}{x^Tx},\\qquad x\\ne0,\\]\n\nconnects optimization directly with spectral theory. Its minimum and maximum are the smallest and largest eigenvalues of a real symmetric matrix. Restricting the quotient to subspaces leads to min–max characterizations of intermediate eigenvalues. These principles underlie vibration analysis and many numerical eigenvalue algorithms.\n\nComputation usually avoids explicitly inverting \\(A\\). A positive-definite form admits a Cholesky decomposition \\(A=LL^T\\), giving \\(q(x)=\\|L^Tx\\|^2\\). Symmetric indefinite matrices are commonly handled by pivoted \\(LDL^T\\) factorizations, with \\(1\\times1\\) and \\(2\\times2\\) diagonal blocks. Their block inertias recover the inertia of the original form. Near-zero eigenvalues make definiteness tests sensitive to roundoff, so numerical classification requires tolerances related to matrix scale and conditioning rather than exact comparisons with zero."
    },
    {
      "heading": "Probability, statistical inference, and data geometry",
      "text": "Quadratic forms arise naturally when squared deviations are combined across correlated variables. If a random vector \\(X\\) has mean \\(\\mu\\) and covariance matrix \\(\\Sigma\\), then for a fixed symmetric matrix \\(A\\),\n\n\\[\\mathbb E[X^TAX] =\\operatorname{tr}(A\\Sigma)+\\mu^TA\\mu.\\]\n\nThis identity requires finite second moments but not a normal distribution. It follows by writing \\(X=\\mu+(X-\\mu)\\), expanding, and using the fact that the centered vector has expectation zero. The trace term measures the contribution from random variation, while the second term measures displacement of the mean.\n\nFor nonsingular \\(\\Sigma\\), the quantity\n\n\\[d_M(x,\\mu)^2=(x-\\mu)^T\\Sigma^{-1}(x-\\mu)\\]\n\nis squared Mahalanobis distance. Unlike ordinary Euclidean distance, it accounts for unequal variances and correlations. If \\(\\Sigma=Q\\Lambda Q^T\\), transforming \\(x-\\mu\\) to \\(\\Lambda^{-1/2}Q^T(x-\\mu)\\) converts this expression to an ordinary sum of squares. This operation is called whitening. The density of a multivariate normal distribution is proportional to \\(\\exp(-d_M^2/2)\\), so its equal-density surfaces are ellipsoids defined by the covariance structure.\n\nIf \\(Z\\) has independent standard normal coordinates and \\(A=Q\\Lambda Q^T\\), orthogonal invariance gives\n\n\\[Z^TAZ\\ \\overset{d}{=}\\ \\sum_i\\lambda_iU_i^2,\\]\n\nwhere the \\(U_i\\) are independent standard normal variables. For a symmetric idempotent matrix \\(A\\) of rank \\(r\\), the nonzero eigenvalues are all one, and the result has a chi-squared distribution with \\(r\\) degrees of freedom. A general positive-semidefinite form yields a weighted sum of independent chi-squared variables, not ordinarily a single chi-squared distribution. An indefinite form can take either sign.\n\nFor a Gaussian \\(X\\), the variance has the explicit expression\n\n\\[\\operatorname{Var}(X^TAX) =2\\operatorname{tr}(A\\Sigma A\\Sigma) +4\\mu^TA\\Sigma A\\mu.\\]\n\nHigher moments of non-Gaussian vectors need not satisfy this formula. In the centered standard-normal case, two symmetric quadratic forms \\(Z^TAZ\\) and \\(Z^TBZ\\) are independent exactly when \\(AB=0\\), a result connecting probabilistic independence to orthogonality of the subspaces on which the forms act.\n\nIn ordinary least squares, the residual sum of squares is a quadratic form \\(Y^T(I-H)Y\\), where \\(H\\) is the orthogonal projection onto the design matrix’s column space. Under the Gaussian linear model with error variance \\(\\sigma^2\\) and design rank \\(p\\), its ratio to \\(\\sigma^2\\) has a chi-squared distribution with \\(n-p\\) degrees of freedom. Orthogonal decompositions of such forms also supply the exact distributional foundations of classical analysis of variance."
    },
    {
      "heading": "Integral forms, representation problems, and historical development",
      "text": "The arithmetic theory asks which integers are represented by a form with integer coefficients and how such forms should be classified. A form \\(q\\) represents an integer \\(m\\) if \\(q(x)=m\\) has an integer solution. Equivalence usually means an invertible integral change of variables, represented by a matrix in \\(GL_n(\\mathbb Z)\\), whose determinant is \\(1\\) or \\(-1\\). This is much more restrictive than real or rational equivalence: a real rescaling that simplifies coefficients may not preserve integer points.\n\nA binary quadratic form is\n\n\\[ax^2+bxy+cy^2, \\qquad a,b,c\\in\\mathbb Z,\\]\n\nwith discriminant \\(D=b^2-4ac\\). Under an integral change of variables, the discriminant is unchanged. A form is primitive when \\(\\gcd(a,b,c)=1\\). Proper equivalence restricts changes of variables to determinant \\(1\\), an important distinction in the composition theory. If \\(D<0\\) and \\(a>0\\), the form is positive definite; positive nonsquare \\(D\\) gives an indefinite form.\n\nFor positive-definite binary forms, reduction theory selects representatives satisfying inequalities such as\n\n\\[|b|\\le a\\le c,\\]\n\ntogether with boundary conventions. Since \\(4ac-b^2=|D|\\), these inequalities imply \\(3a^2\\le |D|\\), leaving only finitely many reduced possibilities for a fixed negative discriminant. Indefinite reduction has a different structure, with cycles related to periodic continued fractions and Pell-type equations. Reduction makes equivalence and representation questions computationally accessible without reducing arithmetic classification to real diagonalization.\n\nWork on sums of squares long predates the general theory. Fermat’s two-square theorem states that an odd prime is a sum of two integer squares exactly when it is congruent to \\(1\\) modulo \\(4\\). Joseph-Louis Lagrange proved in 1770 that every nonnegative integer is a sum of four squares. Adrien-Marie Legendre’s three-square theorem identifies the excluded nonnegative integers as those of the form \\(4^a(8b+7)\\). These results concern specific forms, but they exemplify the interaction between polynomial identities and congruence obstructions.\n\nCarl Friedrich Gauss gave binary quadratic forms a systematic treatment in Disquisitiones Arithmeticae in 1801. His composition law makes proper equivalence classes of primitive forms of a fixed discriminant into an abelian group. This construction later became closely connected with ideal classes in quadratic number fields. In higher dimensions, the 1993 Conway–Schneeberger fifteen theorem and the 2005 Bhargava–Hanke 290 theorem supplied finite tests for positive-definite forms to represent every positive integer. Their different bounds reflect different integrality conventions: integer-valued quadratic polynomials need not have integer entries in their symmetric representing matrices."
    },
    {
      "heading": "Rational forms and the local–global principle",
      "text": "Over the rational numbers, diagonalization is possible, but nonzero coefficients cannot generally all be changed to \\(1\\) or \\(-1\\). A rescaling alters a diagonal coefficient only by a rational square. For a nondegenerate form, the determinant therefore gives an invariant in\n\n\\[\\mathbb Q^\\times/(\\mathbb Q^\\times)^2.\\]\n\nThis determinant square class and the real signature are important but are not sufficient by themselves to classify rational quadratic forms.\n\nThe additional information is organized by considering the real numbers and the p-adic numbers \\(\\mathbb Q_p\\), one field for each prime \\(p\\). These are the completions of \\(\\mathbb Q\\) for its archimedean and prime-adic absolute values. Over \\(\\mathbb Q_p\\), quadratic forms are classified by dimension, determinant square class, and a Hasse invariant. For a diagonal form \\(\\langle a_1,\\ldots,a_n\\rangle\\), the latter is built from the pairwise Hilbert symbols \\((a_i,a_j)_p\\), which encode local norm and solvability conditions.\n\nThe Hasse–Minkowski theorem, completed through work of Hermann Minkowski and Helmut Hasse, states that a rational quadratic form has a nonzero rational zero if and only if it has a nonzero zero over the real numbers and over every \\(\\mathbb Q_p\\). Equivalently, two nondegenerate rational forms are isometric if and only if they are isometric over all these completions. This is a particularly strong local–global principle: a global question over \\(\\mathbb Q\\) is determined by a collection of local questions.\n\nFor example, consider\n\n\\[x^2+y^2=3z^2.\\]\n\nA nonzero rational solution could be cleared of denominators and divided by a common factor to give a primitive integer solution. Reducing modulo \\(3\\) forces both \\(x\\) and \\(y\\) to be divisible by \\(3\\), since the only square residues are \\(0\\) and \\(1\\). The equation then forces \\(z\\) to be divisible by \\(3\\), contradicting primitivity. The corresponding obstruction is also visible over \\(\\mathbb Q_3\\); real solvability alone is insufficient.\n\nIntegral representation is subtler. A nondegenerate integral form represents \\(m\\) locally if it represents \\(m\\) over the real numbers and over every ring of \\(p\\)-adic integers. These conditions are necessary but need not be sufficient for representation by a specified integral form. Distinct integral classes may belong to the same genus, meaning that they become equivalent over every such local ring and over the reals. Thus rational equivalence, integral equivalence, and membership in a genus are different classification problems. The local–global theorem for rational quadratic forms does not erase these integral distinctions."
    },
    {
      "heading": "Characteristic two, Witt decomposition, and associated algebras",
      "text": "Characteristic two requires a separate formulation because \\(2=0\\), so polarization cannot be divided by two. The polar form remains\n\n\\[b_q(u,v)=q(u+v)-q(u)-q(v),\\]\n\nbut now satisfies \\(b_q(v,v)=0\\) for every \\(v\\): it is alternating. It no longer determines \\(q\\). For example, over \\(\\mathbb F_2\\), the forms\n\n\\[q_1(x,y)=xy,\\qquad q_2(x,y)=x^2+xy+y^2\\]\n\nhave the same polar form. Yet \\(q_1\\) has nonzero isotropic vectors, while \\(q_2\\) takes value \\(1\\) at every nonzero vector.\n\nA symmetric matrix expression \\(x^TAx\\) in characteristic two contains no mixed terms, since the two off-diagonal contributions cancel. General quadratic polynomials can instead be encoded using an upper-triangular coefficient matrix, but this does not restore the characteristic-not-two correspondence with symmetric bilinear forms. Also, a nondegenerate alternating bilinear form has even dimension. Terminology concerning regularity and nonsingularity of quadratic forms in characteristic two therefore needs care, especially in odd dimensions.\n\nOver a field of characteristic other than two, a nondegenerate isotropic form contains a hyperbolic plane, represented by \\(xy\\) or equivalently by a nonzero scalar multiple of \\(x^2-y^2\\). Splitting off such planes repeatedly gives a Witt decomposition\n\n\\[q\\cong H^{\\perp w}\\perp q_{\\mathrm{an}},\\]\n\nwhere \\(q_{\\mathrm{an}}\\) is anisotropic. The integer \\(w\\), called the Witt index, is the maximal dimension of a totally isotropic subspace. The anisotropic part is unique up to isometry. Ernst Witt developed this structural theory in his 1937 work on quadratic forms.\n\nThe Witt group records forms after hyperbolic summands are discarded. Orthogonal direct sum supplies addition, and replacing \\(q\\) by \\(-q\\) supplies its additive inverse. Tensor products extend this structure to the Witt ring. Over the real numbers, the difference between positive and negative indices identifies the Witt group with \\(\\mathbb Z\\). Over other fields, it retains arithmetic information that is invisible to rank alone.\n\nA different construction associates a Clifford algebra to \\(q\\). It is generated by the vectors of \\(V\\), subject to\n\n\\[v^2=q(v)1.\\]\n\nWith normalized polarization in characteristic other than two, this implies\n\n\\[uv+vu=2B(u,v)1.\\]\n\nClifford algebras encode reflections and lead to spin groups, which are closely related to special orthogonal groups. They connect quadratic-form theory with representation theory, geometry, and the algebraic structures used to describe spinors."
    },
    {
      "heading": "Energy, differential geometry, and infinite-dimensional forms",
      "text": "In classical mechanics, kinetic energy is a positive quadratic form in velocity. For particles with fixed masses,\n\n\\[T=\\frac12\\sum_i m_i\\|\\dot r_i\\|^2.\\]\n\nIn generalized coordinates it becomes\n\n\\[T=\\frac12\\dot q^TM(q)\\dot q,\\]\n\nwhere the mass matrix \\(M(q)\\) depends on configuration and is positive definite when the coordinates describe independent physical degrees of freedom. Near a stable equilibrium, the potential energy has a quadratic approximation with stiffness matrix \\(K\\). Normal-mode frequencies then satisfy the generalized eigenvalue equation\n\n\\[Ku=\\omega^2Mu.\\]\n\nIn differential geometry, a Riemannian metric assigns a smoothly varying positive-definite quadratic form to each tangent space. The coordinate expression\n\n\\[ds^2=g_{ij}\\,dx^i\\,dx^j\\]\n\nspecifies infinitesimal squared length, and the matrix \\((g_{ij})\\) transforms by congruence under coordinate changes. An indefinite nondegenerate metric gives a pseudo-Riemannian geometry. In spacetime models, a Lorentzian metric has one sign different from the other three; its zero set determines null directions rather than a unit sphere. The distinction between positive, negative, and zero values acquires a geometric interpretation tied to the metric’s signature.\n\nQuadratic forms also determine the principal type of many second-order partial differential equations. For an operator with principal part\n\n\\[L u=\\sum_{i,j}a_{ij}(x)\\partial_i\\partial_j u,\\]\n\nthe principal symbol is the quadratic form\n\n\\[\\sigma_L(x,\\xi)=\\sum_{i,j}a_{ij}(x)\\xi_i\\xi_j,\\]\n\nup to a conventional overall sign. Positive or negative definiteness gives ellipticity. A Lorentzian signature is the basic pattern for wave-type hyperbolic equations. The heat equation requires a parabolic classification that treats the time derivative differently from the second-order spatial derivatives, rather than simply assigning the full operator a nondegenerate signature.\n\nIn infinite-dimensional analysis, quadratic forms need not be defined on an entire Hilbert space. The energy\n\n\\[q[u]=\\int_\\Omega |\\nabla u(x)|^2\\,dx\\]\n\nis naturally defined on a suitable Sobolev space, with boundary conditions encoded in its domain. A densely defined, closed, semibounded symmetric form determines a unique associated self-adjoint operator. This permits the rigorous construction of Laplacians and Schrödinger operators even when directly specifying an operator domain is difficult.\n\nA Dirichlet form is a closed nonnegative symmetric form with an additional contraction property. Such forms connect energy minimization with Markov semigroups and diffusion processes. A finite-dimensional analogue appears on a weighted undirected graph:\n\n\\[x^TLx=\\sum_{\\{i,j\\}\\in E}w_{ij}(x_i-x_j)^2.\\]\n\nHere \\(L\\) is the graph Laplacian and each edge is counted once. The form is nonnegative, and its null space consists of vectors constant on each connected component, linking algebraic degeneracy directly to graph connectivity."
    }
  ],
  "links": [
    "polynomial",
    "real-number",
    "matrix",
    "vector-space",
    "field-mathematics",
    "basis-linear-algebra",
    "matrix-similarity",
    "null-space",
    "spectral-theorem",
    "eigenvalues-and-eigenvectors",
    "positive-definite-matrix",
    "complex-number",
    "inner-product",
    "norm-mathematics",
    "projective-geometry",
    "orthogonal-group",
    "taylor-series",
    "hessian-matrix",
    "gradient",
    "quadratic-programming",
    "cholesky-decomposition",
    "covariance-matrix",
    "mahalanobis-distance",
    "multivariate-normal-distribution",
    "chi-squared-distribution",
    "ordinary-least-squares",
    "discriminant",
    "carl-friedrich-gauss",
    "rational-number",
    "clifford-algebra",
    "classical-mechanics",
    "differential-geometry",
    "partial-differential-equation",
    "hilbert-space"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}