Introduction to Inner Products

An inner product is a mathematical concept that introduces the notions of length, distance, and angle into vector spaces. Inner products allow us to determine whether two vectors are orthogonal (perpendicular) to each other and generalize the concept of the dot product from to more abstract vector spaces. With inner products, we can formally define notions like vector length (or magnitude) and the angle between vectors, which are fundamental in fields such as machine learning and physics.

The Dot Product in

The dot product (also known as the scalar product) is a specific type of inner product in the Euclidean space . For two vectors , the dot product is defined as:

where and . The dot product yields a scalar value and serves as a measure of the extent to which two vectors β€œpoint in the same direction.” In this book, we refer to this specific inner product as the dot product, although inner products in general can be more versatile.

General Definition of Inner Products

An inner product is a more generalized concept than the dot product, defined on any vector space, not just .

Properties of an Inner Product

For a function to qualify as an inner product on a vector space , it must satisfy the following properties:

  1. Linearity in Each Argument (Bilinearity):

    • For all vectors and scalars , we have:

    These conditions ensure that the inner product is linear in both arguments, meaning it respects vector addition and scalar multiplication.

  2. Symmetry:

    • For all vectors , the inner product satisfies:

    This property ensures that the order of arguments does not affect the result, which aligns with our intuitive sense of symmetry.

  3. Positive Definiteness:

    • For all vectors , we have: with equality if and only if . This property implies that the inner product of a vector with itself is always non-negative, capturing the idea that the β€œlength” or β€œmagnitude” of a vector is zero only if the vector itself is zero.

A positive definite, symmetric bilinear mapping defines an inner product space. If the vector space is equipped with an inner product, we call it an inner product space, denoted .

Examples of Inner Products

1. Euclidean Inner Product (Dot Product)

In , the standard inner product is the dot product:

This dot product satisfies all properties of an inner product, making with the dot product an example of an inner product space known as the Euclidean space.

2. A Non-Standard Inner Product in

Consider the vector space with the inner product defined by:

This example demonstrates that we can define inner products differently than the dot product, provided they satisfy the properties of bilinearity, symmetry, and positive definiteness. This inner product adheres to these properties, although it does not resemble the typical dot product.

Symmetric, Positive Definite Matrices and Inner Products

Symmetric Positive Definite Matrices (SPD Matrices) In machine learning, symmetric, positive definite matrices are essential, particularly in contexts like matrix decompositions and kernel methods. Such matrices help define inner products, distances, and even functions in higher-dimensional spaces.

Symmetric, Positive Definite Matrices

A matrix is symmetric and positive definite if it satisfies two key conditions:

  1. Symmetry: .
  2. Positive Definiteness: For all non-zero vectors ,

If satisfies (instead of ) for all , then is called positive semidefinite.

Example of Symmetric, Positive Definite Matrices

Consider the following matrices:

  • is positive definite, as for all , .
  • is symmetric but not positive definite, as there exists such that .

Inner Products and Matrix Representation

In an -dimensional vector space with an ordered basis , any vectors can be expressed as linear combinations of the basis vectors:

where .

The inner product with respect to the basis can be expressed as: where and are the coordinate representations of and with respect to . Here, is symmetric, positive definite, making it a Gram matrix associated with the inner product in .

Theorem: Characterization of Inner Products with Positive Definite Matrices

For a real, finite-dimensional vector space with an ordered basis , a bilinear mapping is an inner product if and only if there exists a symmetric, positive definite matrix such that:

for coordinate representations of and in .

Properties of Symmetric, Positive Definite Matrices

  1. Non-zero Kernel: The kernel (null space) of contains only the zero vector since for all .
  2. Positive Diagonal Elements: Each diagonal element of is positive because is positive definite.
  3. Invertibility: Positive definite matrices are invertible because their eigenvalues are all positive.