Vector Magnitude and Direction
Every vector has two main components: magnitude (length) and direction.
Consider the example vector below.
For AI agents: use /llms.txt for the Nakafa content index.
Every vector has two main components: magnitude (length) and direction.
Consider the example vector below.
A negative vector or opposite vector is a vector that has the same magnitude but opposite direction to the original vector.
Imagine Andi walks in a direction of (let's call this displacement vector ). Then, Andi returns to the starting position. This second displacement is the opposite vector of , which we write as .
The zero vector is a special vector because it has zero magnitude. Due to its zero length, this vector does not have a specific direction.
The zero vector can be visualized as a single point, where the initial point and terminal point coincide. The zero vector is usually denoted by .
Example:
If Andi walks east, then walks back west, Andi's total displacement is zero. This total displacement can be represented as the zero vector ().
Two or more vectors are said to be equivalent or equal if they have the same magnitude (length) and direction, even if their starting points are different.
Consider the graph below showing three equivalent vectors: , , and .
The three vectors above have the same magnitude and direction, so they are equivalent. We can write this as:
A vector is said to be equivalent to another vector if it has the same magnitude and direction as the other vector.
Consider the two vectors below:
Is vector the opposite vector of ?
Answer:
Vector is not the opposite vector of . To be an opposite vector, two conditions must be met:
Since these two conditions are not met, is not the opposite vector of .
How to make vectors and opposite?
To make vectors and opposite, you could define them like this: