NLA-lib Explorer

Matrix.IsHermitian.rayleighQuotient_eq_integral_div

Library · theorem

The Rayleigh quotient as a ratio of spectral integrals: for Hermitian \mathbf{A}, \frac{\operatorname{Re}\,\mathbf{b}^{\mathsf{H}}\mathbf{A}\mathbf{b}}{\|\mathbf{b}\|^2} = \frac{\int \mathbf{x}\,d\mu_{\mathbf{A},\mathbf{b}}}{\mu_{\mathbf{A},\mathbf{b}}(\mathbb{R})}\,, both sides 0 at \mathbf{b} = \mathbf{0}.

Matrix.IsHermitian.rayleighQuotient_eq_integral_div.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (b : n → 𝕜) :
  rayleighQuotient A b = (∫ (x : ℝ), x ∂spectralMeasure A b) / (spectralMeasure A b).real Set.univ

Full source on GitHub

Import NLAlib.Matrix.Spectral.SpectralMeasure.