NLA-lib Explorer

Quadratic forms and Rayleigh quotients of matrices

Library · Source module

Quadratic forms and Rayleigh quotients of matrices

NLAlib.quadForm A z is the \Bbbk-valued quadratic form \mathbf{z}^{\mathsf{H}}\mathbf{A}\mathbf{z} (in Lean star z ⬝ᵥ (A *ᵥ z)), the expression in which Mathlib states positive semidefiniteness. For a Hermitian \mathbf{A} it is real, and the real consumers (variational characterisations of eigenvalues, energy norms) take RCLike.re of it. NLAlib.rayleighQuotient A x is the real quotient \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) / \|\mathbf{x}\|^2.

Main definitions

* NLAlib.quadForm: the quadratic form \mathbf{z}^{\mathsf{H}}\mathbf{A}\mathbf{z}. * NLAlib.rayleighQuotient: the Rayleigh quotient \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) / \|\mathbf{x}\|^2, zero at \mathbf{x} = \mathbf{0}.

Main results

* NLAlib.posSemidef_iff_quadForm_nonneg: positive semidefiniteness through quadForm. * Matrix.IsHermitian.coe_re_quadForm: the quadratic form of a Hermitian matrix is real. * Matrix.IsHermitian.ext_quadForm: a Hermitian matrix is determined by its quadratic form. * NLAlib.re_quadForm_le_re_quadForm_of_le: monotonicity in the Loewner order. * NLAlib.rayleighQuotient_eq_toEuclideanCLM: the bridge to ContinuousLinearMap.rayleighQuotient.

Declarations