|Gradients and Directional Derivatives|
|Change of Coordinate Systems|
|Math for Computer Graphics and Computer Vision|
Vectors are quantities that are specified by both a magnitude of length and a direction. Perhaps the simplest vector is a Euclidean vector, represented by an arrow in Euclidean space. Refer to Image 1. This arrow has a length and points in some direction.
The length of a vector, which is measurable, is called the magnitude. The magnitude is denoted by . The magnitude of a vector is a scalar quantity, a numerical value with no direction.
Image 1 is a vector. However, Image 1 is not very useful because it's unclear where it is positioned. To use vectors, we need to introduce the coordinate system. Assigning x and y coordinates to a vector allows us to be more precise when we talk about the location of a vector. Refer to Modified Image 1 on the left. In this updated image, we now know the x and y coordinates. Our vector is 6 units in the x direction and 8 units in the y direction.
Another way to define the position of a vector is by using unit vectors, which have length 1. A unit vector is denoted by a lowercase letter with a hat above it, like so, . It is pronounced as a-hat. Unit vectors correspond to the x-y-z coordinate system. points along the x-axis points along the y-axis and points along the z-axis. This notation is used in physics, engineering and linear algebra. In order to give a vector's position using unit vectors, we write it as a combination of unit vectors that are placed along the the coordinate axes.
We already described our vectors position just using coordinate points. We can also use unit vector. A unit vector initially has a length of one, but we can change the magnitude by stretching or shrinking the unit vectors. Imagine the unit vector is a rubber substance that can stretch and shrink. You can learn more of this in the graphical introduction to vectors. Refer to Modified Image 1. To express this vector using unit vectors, we would need a unit vector with a magnitude of 6 going in the x direction and 8 a unit vector with a magnitude of 8 going in the y direction.
When we have a vector quantity we put an arrow on top of the labeling letter to remind us that it is a vector. It looks like so . One way of writing vectors is by components, like this: . The components of a vector can also be written as: . This vector has an x-component of 3, a y-component of 2, and a z-component of 0. This is shown in the image on the right.
With as any numerical values we can also write any vector in terms of standard unit vectors: . If we are given we know that vector A is 3 units in the x and y direction and 2 units in the z direction. This is shown in the image below.
If a vector is still a bit abstract to you then think of a compass. The arrow has a certain length, this is our magnitude, and it points in any direction (north, south, east, and west).
Click here for a graphical introduction to vectors:
Click here for an algebraic introduction to vectors:
Click here for an interactive demonstration: