For an indication of the origin of the concept of inner product, we look at the plane.

In the plane, a triangle two of whose sides correspond to the vectors and , the third side has length . If the angle between the vectors and is equal to , then the law of cosines tells us that
The term on the right-hand side is the inner product of two vectors and in the plane. For , this term gives the square of the length of . The angle between two vectors is also built into this inner product. In the theory of inner products in abstract vector spaces, we cannot start with such an explicit formula nor do we have a definition of length, so the above expression does not make sense. Therefore, we start from certain properties that this inner product on the plane appears to have: symmetry in the two arguments and , linearity in each of the arguments and separately, and positivity of the expression if . This gives us a hold on the definition of inner product for abstract vector spaces.
Let be a real vector space. An inner product on is a function that assigns to every pair of vectors from a real number in such a way that the following three properties are satisfied.
- bilinearity: is linear in both and :
for all scalars and vectors;
- symmetry: for all ;
- positive-definiteness: for all , and if and only if .
A real vector space with an inner product is often referred to as a (real) inner product space.
An inner product is also called dot product. This name is suggested by the notation .
The definition of inner product on complex vector spaces is slightly different. This is treated elsewhere.
On we can define an inner product in many ways. The following inner product is used very often; it is called the standard inner product. If and are vectors of , then
It is straightforward to check the requirements of an inner product for the standard inner product.
If we refer to as an inner product space without mentioning a specific inner product, we mean that the inner product is the standard inner product.
Another way of expressing the standard inner product in terms of column vectors and is
Let be the set of continuous real functions defined on an interval . Then with the usual pointwise addition and scalar multiplication is a vector space. Take and define
This is an inner product on . The bilinearity and the symmetry are easily checked. The third property can be proven as follows. Take a function in and suppose that this function is not equal to the zero function. Then there is a number in the interval such that . Due to the continuity of there is an open interval around with the property that for all in that interval. Let be the length of this interval. Then, by restricting the integral to the interval around , we have
So if , then necessarily for all .
By symmetry we need only demand linearity in ; linearity in , and so bilinearity, then follows automatically.
The value is not only attained at , but also if one of the two arguments equals :
This follows from the bilinearity of the inner product. However, there are also cases in which the two vectors are not equal to but the inner product does equal . For example, consider the inner product of the vectors and in the vector space with respect to the standard inner product. If two vectors have inner product , these vectors are called orthogonal or perpendicular. Later we will elaborate on it.
Since, for each vector in an inner product space, is a non-negative real number, the expression is well defined. We use it to define length:
In an inner product space the length or norm of a vector is defined by
The distance between the vectors and is defined as the length of the difference vector , that is to say, .
The length of with respect to the standard inner product is equal to
The distance between and is
In the inner product space with the above inner product of functions on the interval the length of the function is equal to
In general, a function of the two variables and from the same vector space is called a distance function, if the following three properties hold for all vectors , , and :
- positivity: with equality if and only if
- symmetry:
- triangle inequality:
The function is a distance function: the positivity results from the positivity of the inner product. The symmetry is clear from the bilinearity of the inner product: The triangle inequality will be proven later.
Later we will prove that the norm has the following interesting features. Here, is a vector of an inner product space and is a scalar.
The formula below shows that an inner product is uniquely determined by the length.
In an inner product space, the following formula holds for all vectors and .
We start elaborating the right-hand side and arrive at the left-hand side:
Consider the vector space with standard inner product.
What is the inner product of the vectors and ?
The value of the inner product can be found as follows: