Dot product is a magnificent tool when it comes to . We saw how it flawlessly connected geometric notions with the familiar algebraic manipulations. Could we define a similar operation for an arbitrary vector space ?
When we defined dot product, we were using standard basis of . So, probably, even more important is the question, could we define this operation without using any specific basis? The answers to both these questions are positive. Here we are going to see, that vector space bundled with this new operation creates a marvelous construction, which is at least as good to describe geometric concepts with algebraic language as with dot product.
Increasing the abstraction level
The dot product was so great because of its variable features and properties. There are three of them which are the most important for us. Let's say, that is an arbitrary real -dimensional vector space, and are any two vectors from . We are calling an operation taking and and giving some real number as an output, that is bilinear, symmetric, and positively defined as an inner product. To denote the inner product, we are using this brand-new angle-bracket notation . Here is what bilinear, symmetric, and positively defined means
Bilinearity:Symmetry:
Positive definition:
Note that, as was mentioned, these three properties hold for the dot product, therefore dot product is an example of inner product.
Inner products of basis vectors are the key
In the case of the dot product, the products of the basis vectors with themselves were , and with the others , in the case of the inner product, we have much more freedom in choosing these values, but note that the product of the basis vectors cannot be completely arbitrary numbers. For example, let be a two-dimensional space with an arbitrary basis . Suppose that the inner products of basis vectors are given in the following way
Here and are some real numbers. Consider an inner product of a couple of arbitrary vectors and . By bilinearity
By symmetry
Substitute initial values
Now if
The inner product is positively defined, meaning , thereforeFor this condition to hold, we need and ( and are not equal to at the same time).
Therefore, knowing the value of inner products of basis vectors, we can always find the inner product of two arbitrary vectors knowing their coordinates in this basis. The only condition is that these values are in accordance with the definition.
Euclidean space
The main intuition beside the dot product was its connection with the geometry of -dimensional space. This intuition could be generalized with the help of inner product.
Let’s say is a vector space and some inner product. A pair (a vector space with inner product) is called a Euclidean space. It's no coincidence that the name of the ancient geometer appeared here! The reason is, in Euclidean spaces, every geometric statement that we are familiar with holds true! Promising, isn't it?
However, for all this to work, first, we need to learn how to measure things in Euclidean spaces. But having a dot product as an example, it won’t be difficult.
The length of a vector in a Euclidean space is just a square root of its ‘inner square’:
(By the way, this is the main reason we wanted the inner product to be positively defined in the first place.)
A cosine of an angle between vectors and is given by the following quotient
The angle itself is going to be given by the inverse cosine
The two vectors and in a Euclidean space are called orthogonal if their inner product is equal to zero (denoted ).
Geometry without visualization
Let be a two-dimensional vector space with a basis . The following relations define an inner product (it’s not hard to check that this is indeed an inner product, using the above-mentioned argument). Let’s find the angle between vectors and in the Euclidean space .
Before solving this problem, we’d really like to empathize the idea of the solution, namely its utterly algebraic nature. There is no specific geometric picture behind and is a completely arbitrary basis, its vectors are not perpendicular and has length in . This example is much more abstract than the ones we considered in the dot product discussion.
One could ask why we need such a hypothetical construction. The answer is in universality! This algebraic approach allows to introduce a geometric sense in any problem, where vector spaces appear. For example, in vector analysis, statistics, or model building. This means that Euclidean spaces are tools, and the actual interpretation comes from a particular problem.
Now let’s go through calculations. The lengths of and areThe inner product of and is
Therefore
Which functions define inner product?
Having a -dimensional vector space with a basis one can always think about its element as a tuple from . This notation is more natural for a whole variety of specific problems. In this situation, it’s usually more convenient to define the inner product as a function of coordinates.
It could sound a little bit unclear, but let’s look at a two-dimensional example. An inner product in could be given like this
It’s straightforward, that this function of coordinates is symmetric and bilinear with respect to vectors and . Let’s check, that it’s positively defined, though. To prove this, let’s consider the product of with itselflet’s mess with this expression a little bitThis expression is greater than zero, as it is a sum of two whole squares, and it’s equal to zero if and only if , therefore, the “positively defined” part of an inner product definition is checked.
Now, to find an inner product of vectors, just plug in the coordinates into the expression:Note that we’ve just shown that and are orthogonal in with respect to this inner product.
Conclusion
- An inner product is a bilinear, symmetric, positively defined operation, which takes two vectors and gives a number.
- The dot product is the simplest example of an inner product.
- To define an inner product, one does not need any specific basis, however, when it comes to calculation, it could be useful to work with inner products of some basis vectors.
- Together with a chosen inner product, a vector space is a Euclidean space in which one can calculate lengths and angles.
- The formulas for the length of a vector and an angle between vectors are exactly the same as in the case of the dot product
- One can use a suitable function of coordinates of vectors to define an inner product.