NLA-lib Explorer

NLAlib.quadForm_add_right

Library · theorem

The polar expansion of the quadratic form of a sum of vectors: (\mathbf{x} + \mathbf{y})^{\mathsf{H}}\mathbf{A}(\mathbf{x} + \mathbf{y}) = \mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x} + \mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{y} + \mathbf{y}^{\mathsf{H}}\mathbf{A}\mathbf{x} + \mathbf{y}^{\mathsf{H}}\mathbf{A}\mathbf{y}\,.

NLAlib.quadForm_add_right.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [Fintype n]
  (A : Matrix n n 𝕜) (x y : n → 𝕜) :
  quadForm A (x + y) = quadForm A x + star x ⬝ᵥ A *ᵥ y + star y ⬝ᵥ A *ᵥ x + quadForm A y

Full source on GitHub

Import NLAlib.Matrix.Basic.QuadForm.