Inner and outer products are essential tools in vector algebra, offering unique insights into geometric relationships. They help us understand how vectors interact, measure alignment, and represent areas and volumes in multidimensional spaces.
These concepts are fundamental to many applications in physics, computer graphics, and engineering. Inner products reveal vector similarities and projections, while outer products capture oriented areas and volumes, providing a powerful framework for solving complex geometric problems.
Inner products: Geometric interpretation
Vector alignment and similarity
- The inner product of two vectors is a scalar value that measures their alignment or similarity
- Positive inner product indicates vectors pointing in similar directions (acute angle between them)
- Zero inner product means vectors are orthogonal (perpendicular to each other)
- Negative inner product suggests vectors pointing in opposite directions (obtuse angle between them)
- Example: In a 2D space, vectors and have an inner product of zero, indicating they are orthogonal
Angle and projection
- Geometrically, the inner product of two unit vectors equals the cosine of the angle between them
- , where is the angle between vectors and
- The inner product's absolute value equals the length of the projection of one vector onto the other, multiplied by the length of the other vector
- , where is the projection of onto
- Example: Given vectors and , the projection of onto is , and
Cauchy-Schwarz inequality
- The Cauchy-Schwarz inequality states that the absolute value of the inner product of two vectors is less than or equal to the product of their magnitudes
- Equality holds if and only if one vector is a scalar multiple of the other
- Example: For vectors and , , which is less than
Inner products: Computation in vector spaces
Euclidean space
- In Euclidean space, the inner product (dot product) of two vectors and is defined as
- Example: In 3D space, for vectors and ,

Function spaces
- In function spaces, such as the space of continuous functions on an interval , the inner product of two functions and is defined as the integral of their product over the interval:
- Example: For functions and on the interval ,
Matrix spaces
- In matrix spaces, the inner product (Frobenius inner product) of two matrices and is the sum of the products of their corresponding entries:
- Example: For matrices and ,
Complex vector spaces
- The inner product of two complex vectors and is defined as , where denotes the complex conjugate
- Example: For complex vectors and ,
Outer products: Definition and properties
Bivectors and oriented area
- The outer product of two vectors and , denoted as , is a bivector that represents the oriented area spanned by the two vectors
- The magnitude of the outer product equals the area of the parallelogram formed by the two vectors
- , where is the angle between vectors and
- Example: For vectors and , represents a unit square in the -plane with a counterclockwise orientation

Anticommutativity and distributivity
- The outer product is anticommutative: , meaning that swapping the order of the vectors changes the sign of the result
- The outer product is distributive over addition: and
- Example: For vectors , , and ,
Self-product and associativity
- The outer product of a vector with itself is zero:
- The outer product is associative:
- Example: For vectors , , and , , representing a unit volume in the -space with a right-handed orientation
Inner vs Outer products: Applications in geometry
Angles, projections, and collision detection
- Use the inner product to determine the angle between two vectors, which can be useful in collision detection, computer graphics, and physics simulations
- Apply the inner product to find the projection of one vector onto another, which is essential in solving problems involving forces, shadows, and least-squares approximations
- Example: In a game engine, the inner product can be used to check if two objects are colliding by comparing the angle between their surface normal vectors
Areas, normals, and cross products
- Employ the outer product to calculate the area of a parallelogram or triangle spanned by two vectors in 2D or 3D space
- Parallelogram area:
- Triangle area:
- Use the outer product to determine the normal vector to a plane or hyperplane, which is crucial in computer graphics, physics, and engineering applications
- For vectors and spanning a plane, the normal vector is given by
- In 3D space, the outer product is related to the cross product: , where is the pseudoscalar
- Example: In computer graphics, the outer product can be used to calculate surface normals for shading and lighting calculations
Complex geometric problems
- Combine inner and outer products to solve more complex geometric problems, such as finding the distance between a point and a line or plane, or determining the intersection of lines, planes, or higher-dimensional objects
- Example: To find the distance between a point and a plane defined by a point and a normal vector , use the formula
- Example: To determine the intersection point of two lines in 3D space, defined by points , and , , respectively, solve the equation for and