A projection principle selects an approximation from a trial space. Galerkin imposes orthogonality of the residual to a test space; minimum-residual methods minimize a residual norm. Their optimality statements depend on the matrix, inner product, and relationship between the spaces.
Results
Theorem (Galerkin approximations are \mathbf{A}-norm optimal).
for positive definite \mathbf{A} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \mathsf{galerkinInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b} minimises \|\mathbf{x}_\star - \mathbf{y}\|_{\mathbf{A}}^2 = \operatorname{Re}\bigl((\mathbf{x}_\star - \mathbf{y})^{\mathsf{H}}\mathbf{A} (\mathbf{x}_\star - \mathbf{y})\bigr) over the column space of \mathbf{X}. [Saad2003, Β§5.2].
Lean statement and details
Matrix.PosDef.isMinOn_galerkinInverse_mulVec.{u_1, u_2, u_3} {π : Type u_1} [RCLike π]
{n : Type u_2} {p : Type u_3} [Fintype n] [Fintype p] {A : Matrix n n π} (hA : A.PosDef)
(X : Matrix n p π) {b xs : n β π} (hxs : A *α΅₯ xs = b) :
IsMinOn (fun y β¦ RCLike.re (quadForm A (xs - y))) (βX.mulVecLin.range) (galerkinInverse A X *α΅₯ b)
Theorem (Minimal residual approximations minimise the residual).
for every \mathbf{A}, \mathsf{minResidualInverse}(\mathbf{A}, \mathbf{X})\,\mathbf{b} minimises \|\mathbf{b} - \mathbf{A}\mathbf{y}\| over the column space of \mathbf{X}. [Saad2003, Β§5.3.2].
Lean statement and details
NLAlib.isMinOn_minResidualInverse_mulVec.{u_1, u_2, u_3, u_4} {π : Type u_1} [RCLike π]
{m : Type u_2} {n : Type u_3} {p : Type u_4} [Fintype m] [Fintype n] [Fintype p]
(A : Matrix m n π) (X : Matrix n p π) (b : m β π) :
IsMinOn (fun y β¦ βWithLp.toLp 2 (b - A *α΅₯ y)β) (βX.mulVecLin.range) (minResidualInverse A X *α΅₯ b)