Linear Algebra - Inner product of two vectors

Card Puncher Data Processing


Inner products allow the rigorous introduction of intuitive geometrical notions such as the length of a vector or the angle between two vectors. They also provide the means of defining orthogonality between vectors (zero inner product).

An inner product space is a vector space with an additional structure called an inner product.

Inner product spaces generalize Euclidean spaces (in which the inner product is the dot product) to vector spaces of any (possibly infinite) dimension.

The Inner product of vectors u and v is written: <math>\left \langle u,v \right \rangle</math>


For the real numbers and complex numbers, the definition of the inner product may be flexible.

This flexibility is used heavily, e.g. in Machine Learning

Dot product

In Euclidean spaces (vectors over R?), the inner product is the dot-product.

This definition leads to the norm of a vector being the geometric length of its arrow.

<MATH>\left \langle u,v \right \rangle = u.v</MATH>


  • linearity (in the first argument):<math>\left \langle u + v, w \right \rangle = \left \langle u, w \right \rangle + \left \langle v, w \right \rangle </math>
  • symmetry: <math>\left \langle u, v \right \rangle = \left \langle v, u \right \rangle </math>
  • homogeneity:<math>\left \langle \alpha.u, v \right \rangle = \alpha . \left \langle u, v \right \rangle </math>

When the inner product definition is the dot-product definition, these properties are easy to prove.

Documentation / Reference

Discover More
Line In 3d
Geometry - Object

in Geometry An object can be: a pre-defined shape or an arbitrary one defined with the help of a path. Notions such as: The length of a vector The angle between two vectors. are introduced...
Orthogonality Scaling
Linear Algebra - Orthogonality (Perpendicular)

Orthogonal is linear-algebra-ese for perpendicular. The squared length of the “hypotenuse” (the vector u + v) is Thus following the Pythagorean Theorem u and v are orthogonal when then:...
Card Puncher Data Processing
Linear Algebra - Norm (Length)

The norm of a vector v is written The norm of a vector v is defined by: where: is the inner product of v. In Euclidean space, the inner product is the . For a 2-vector: as the Pythagorean...
Vector Addition Arrow
Linear Algebra - Vector Vector Operations

Vector Vector Operations: (also known as addition or substraction) (Scaling) Using operator overloading, you can compute this operations with the following syntax. Operation Syntax...

Share this page:
Follow us:
Task Runner