Vectors
Contents
Vectors#
Author(s):
Translation:
Definition#
The term vector
has several interpretations: mathematical, geometric, physical, etc. The exact meaning of the term depends on the context.
Formally, a vector is defined as an element of vector space – a set with addition and multiplication of a vector by a number (scalar) operations, which satisfy 8 axioms.
For simplicity, let us consider the rectangular (Cartesian) coordinate system in the plane, familiar from school days – two perpendicular to each other axes
The vector
Note 1: Vector coordinates do not uniquely define its position in the plane, but only the position of the vector’s end relative to its start. For example, a vector
Note 2: A vector can be represented either as a column vector
The notion of a vector in the plane can be generalized to 3-dimensional space, and, in general, to
Vector operations#
As stated earlier, there are two basic operations on vectors in the formal definition:
addition:
multiplication of a vector by a number (scalar):
The operation of multiplying a vector by a number can be interpreted geometrically as a contraction/extension of a vector.
Using these two operations, we can define linear combinations of vectors:
The norm (length) of a vector#
In linear algebra, the term norm is used to generalize the notion of vector length. It can be said that the notions of length and norm are equivalent.
Formally the norm is defined as a functional in the vector space satisfying 3 axioms. Norm is mapping elements of this space (vectors) to the set of non-negative real numbers.
There are many functionals satisfying this definition of norm, but we will consider the most commonly used one – Euclidean norm.
For simplicity, let us consider a vector in the plane. Geometrically, it is a directional segment. The directionality of a vector has no effect on its length, so we can work with it as a segment in the plane and calculate its length using school formulas.
Note that the vector coordinates correspond to the numbers multiplying coordinate axis orthogonal vectors, so the vector length formula is:
Scalar product#
One of the most common operations on two vectors is the so-called scalar product, the result of which is a number (scalar) – hence the name of the operation.
Note: In addition to scalar product there is also vector product or cross product over a pair of vectors, the result of which is a vector. There is also triple product over a triplet of vectors, the result of which is a number. These operations will not be covered in this course.
Scalar product is used in determining the length of vectors and the angle between them. This operation has two definitions:
Algebraic:
geometric:
where is the angle between the vectors and .
Using both of these definitions, we can derive a formula for calculating the cosine of the angle between the vectors:
Using this formula we can arrive at one of the main properties of scalar product, which is that two vectors are perpendicular if and only if their scalar product is 0:
The scalar product can be used to calculate the vector norm as follows:
Linear independence#
One of the fundamental concepts of linear algebra is linear dependence/independence.
To define this concept, consider a set of several vectors. A set of vectors is linearly dependent if there exists nontrivial linear combination of vectors of this set (at least one element of this combination is not 0) equal to a zero vector (a vector consisting only of 0):
If a set of vectors is not linearly dependent, that is, there is no nontrivial linear combination of vectors of a given set equal to the zero vector, then such a set of vectors is called linearly independent.
Example:
A linearly independent set of vectors (only the zero coefficients of a linear combination lead to a zero vector):
linearly dependent set of vectors (there are non-zero coefficients of the linear combination that lead to the zero vector):
The following property can be deduced from the definition of linear dependence: A set of vectors is linearly dependent if and only if one of the elements of that set can be expressed through the remaining elements.
Note: If vectors represent some characteristics of objects, then linear dependence can be interpreted as data redundancy.
The notion of linear independence introduces the concept of dimensionality of a vector space – the maximum number of linearly independent vectors in it.
Basis#
In the formal definition of a vector there are no quantitative interpretations of it, just two operations on vectors and 8 axioms.
So where do quantitative measurements come from? To make this clear, we need to introduce the concept of basis.
A basis is a finite set of vectors in a vector space such that any vector in that space can be uniquely represented as a linear combination of vectors of that set.
Recall one of the examples above, where we represented a rectangular coordinate system in the plane and unit vectors
It turns out that the orthogonal vectors
The question arises, is this basis unique in two-dimensional space, or not?
The answer to this question is no. In fact, one can take any two vectors (almost any) and they will also form a basis, meaning that any vector can be decomposed by their linear combination.
Example.
Suppose we have a vector
From where we can find that
So, vector
But, as mentioned before, not any set of vectors makes a basis.
For example, the set of vectors
What is the fundamental difference between these sets, and can the basis of a two-dimensional space consist of more or fewer vectors than 2?
Linear algebra has an answer to this:
Any
Exactly due to the linear dependence, the vectors
What did we learn?#
The definition of a vector;
The operations on vectors;
The vector norm (length);
The scalar product;
The linear independence;
The basis.