What’s a vector
Simply put, a vector is a list of ordered numbers. Each element in a vector is also called a component or coordinate.
In the example below, a vector (x) is in the field of Real Numbers with n-dimensions.1
The vector has infinite elements, as denoted by the ellipsis.
The following vector within a 2-dimensional field of Real Numbers has two elements.
This essentially represents a line on a 2-dimensional plane.
The elements of a vector give instructions on how to get from the origin of a coordinate grid (e.g., x = 0, y = 0). In other words, where the tail of the vector begins, to its tip.
The first number is how far to move to the right or left along the x-axis, while the second is how far to move up or down the y-axis.
In the vector above, the first element, 4, represents the movement along an x-axis. The second element, 2, represents the movement along a y-axis.
Visually, this could look like the following:
Starting from B, there are four movements to the right and then two movements vertically to reach A.
Mathematically, this would appear as:
Vector transpose
Vectors can be column vectors or row vectors. In Linear Algebra, a transpose is when a column vector takes the shape of a row vector or vice versa. The mathematical notation for a transpose is T.
In other words:
Magnitude
Each vector holds a magnitude.
The symbol used for magnitude is || ||.
The Pythagorean Theorem calculates the magnitude of a 2D vector.
For example, take the vector:
The magnitude would be calculated as:
Where 4 is the horizontal element (e.g., four movements along the x-axis) and 2 is the vertical element (e.g., two movements along the y-axis).
Direction
Therefore, the angle created by moving along the two axes gives the direction of the vector. Looking at the vector visually, the angle is denoted by θ.
Trigonometry is used to calculate the angle:
Where y is the short side of the triangle and x is the long side.
In this case:
Operations in the field
Vector addition
The mathematical definition of vector addition in the Real Numbers field is to add the elements entry by entry.
Take two vectors, for example:
The result of summing these two vectors will also be in the Real Numbers field.
For example, take these two vectors:
The sum of the first element:
is:
The sum of the second element:
is:
Therefore:
Visually, this is the same as moving the tail of the second vector to sit at the tip of the first.
Then drawing a new vector from the origin of the first vector to the tip of the second vector.
The resulting third vector is said to be the sum of the original two.
Vector addition is the only time a vector will stray from the origin (x = 0, y = 0).
How does this look numerically?
In the example above, it is the same as:
Five steps to the right (5)
Two steps up (2)
Four steps to the left (-4)
One step down (-1)
Or :
5 + (-4) = 1
2 + (-1) = 1
Why is this a good definition of addition?
Think of each vector as a movement in space; a step with a distance and direction from some point of origin. Taking a step along the first vector and then a step along the second, the overall movement would be the same as the sum of the vectors, as described above.
It is the same as visualising movement on a one-dimensional number line. Taking two steps to the right and six further steps reaches position 8, just as if you were taking all eight steps simultaneously.
Scalar by vector multiplication
A scalar by vector multiplication is also defined by multiplying the vector elements entry by entry
If α∈R (that is, α is a number in the field of Real Numbers), and the vector is:
Then, each vector element is multiplied by the scalar (α).
Visually, scalar by vector multiplication extends the vector’s direction and increases or decreases the magnitude. Therefore, if the scalar is a fraction, the vector is reduced proportionally to that fraction.
Using a scalar of a negative number would flip the vector around to its opposite direction and then stretch it in that new direction.
Hence, the name “scalar” is used for scaling.
In mathematics, a field is a set equipped with two operations (typically called addition and multiplication) that satisfy certain properties, such as associativity, commutativity, distributivity, the existence of additive and multiplicative identities, and the existence of additive and multiplicative inverses for every element except the additive identity.
The field of Real Numbers, denoted by the “R,” represents the set of all real numbers. It is most commonly encountered in calculus, real analysis, and many applied fields.