Using Inner Products to Describe Geometry
A vector space has operations for addition and scalar multiplication. An inner product determines vector lengths, angles between vectors, and whether two vectors are orthogonal. For complex vectors, the inner product used below is conjugate-linear in its first argument and linear in its second.
For and , an inner product satisfies
Conjugate symmetry guarantees that is real. Over , complex conjugation disappears, so the inner product is symmetric and bilinear.
Matrix Weighted Inner Products
For real vectors, a matrix weighted inner product is written as:
This formula defines an inner product exactly when is symmetric positive definite. Symmetry of makes the result symmetric in and , while for every nonzero gives strict positivity.
For complex vectors, the corresponding formula is
In this formula, must be Hermitian positive definite. Merely saying that has positive entries or positive diagonal entries is not enough.
The standard Euclidean inner products are recovered with :
Vector Lengths with Angles and Orthogonality
Every inner product defines the following norm:
This norm satisfies the Cauchy-Schwarz inequality:
For nonzero real vectors, this inequality ensures that the angle can be defined by
Vectors are -orthogonal when . Changing changes the geometry, so vectors that are perpendicular in the Euclidean metric need not be perpendicular in a weighted metric.
Comparing Euclidean and Weighted Angles
Let
The positive eigenvalues confirm that is symmetric positive definite. Although , the weighted geometry gives
The same coordinate vectors are perpendicular in the Euclidean geometry but form a angle in the -geometry.
Orthogonal Complex Vectors with Conjugation
For the standard inner product, take
Then
The conjugate in is essential. Using instead would not define the standard complex inner product because need not be a nonnegative real number.
Projection in a Weighted Geometry
The projection of onto the one-dimensional subspace spanned by nonzero is
Its residual is -orthogonal to :
This is the same geometric principle behind weighted least squares: the fitted residual is orthogonal to the model space under the chosen inner product.
Using the same as above, project onto . The weighted coefficient is , not the Euclidean coefficient zero:
Writing an Inner Product as a Matrix
In the standard basis , every finite-dimensional inner product has a unique representation matrix with entries
The matrix is symmetric positive definite over the reals and Hermitian positive definite over the complex numbers.
For vectors , their Gram matrix is
The Gram matrix is Hermitian positive semidefinite. It is positive definite exactly when the vectors are linearly independent. Its entries record every pairwise inner product, so they can be used to check angles and linear independence.