vector operations
Basic operations
Here are the operations that you will learn once you finish this lecture:
Vector addition
Vector subtraction
Scalar multiplication
Dot product
Cross product
Most of the operations shown below are applied to vectors in , but they can be also applied to vectors in and any .
Vector addition
You can add two vectors quite easily by simply adding their coordinates together, and adding their coordinates together.
To add the vectors and , use the following formula:
Vector addition may look different depending on the type of vector.
Both graphs display the two vectors being added together:
Note that starts at for the algebraic representation, contrary to the geometrically represented one, which starts at the start of and ends at the end of .
Notation
There is a special notation that you might see when two geometric vectors are added with a similar point. When adding them, the sum vector has the "inner" point removed ( in this case):
Again, this only occurs if the "inner" points are the same.
Vector subtraction
Just as you can add two vectors, you can also subtract them! Vector subtraction follows the same formula
To subtract the vectors and , use the formula below:
Here's a comparison of what vector subtraction looks like with algebraic and geometric vectors:
A good way to think of vector subtraction, is that you add both vectors, except all the vectors with a negative infront of them have the start and end points flipped.
Scalar multiplication
You can multiply a scalar value to a vector. This is done by multiplying by both the and values.
Here is the formula for such operation with the vector :
Visually, this looks like you are multiplying the magnitude (length) of the vector:
Dot product
The dot product of two vectors is the length of the projection of one vector onto the other. Now this sound a bit complicated, but once you see what it really looks like it makes total sense!
However, before doing so, let's look at the formula to obtain the dot product of two vectors and :
Please note that the dot product is a scalar. It is the included in the magnitude of the vector, NOT the vector itself!
Alternate formula
There is another way to calculate the dot product, and it involves the magnitudes of both vectors, as well as the angle between them:
Dot product of orthogonal vectors
The dot product of two orthogonal (perpendicular) vectors is equal to .
For two orthogonal vectors and :
This is because the angle between both vectors is , and the value of when in equals .
Cross product
The cross product is used in , and it produces a new vector that is orthogonal (or perpendicular) to the two vectors used.
Calculating the cross product can be complicated, so we will try to simplify it for you.
Visualization
Here is what the cross product of the two vectors and looks like:
Calculation
Follow the steps in this video to find the cross product of two vectors:
The calculation of the cross product is done by first drawing the grid shown in the video.
Then, by drawing lines, you can determine which product of terms you subtract with one another.
Finally, once you have the equation seen in the end (with appropriate values), all you need to do is solve!.
Since the vector is expressed as a sum of unit vectors, you can easily determine the vector's value in cartesian form by looking at the coefficients.
Scalar cross product
You can calculate the magnitude of the cross product vector by using the following formula:
The angle between two vectors
You can determine the angle between two vectors by using the two formulas for the dot product that we just learned:
example
Find the angle between the vectors and :
answer
Find the dot product of both vectors:
Find the magnitudes of both vectors:
Now, just plug in the values into the equation:
The angle between both vectors is approximated degrees
The projection of one vector onto another
The vector projection of onto is a vector that is in the same direction as , but same magnitude as the dot product of and .
It has its own special notation indicated a projection of onto .
To calculate the projection of some vector onto , use the following formula:
scalar projection
The scalar projection is the magnitude of the projection vector and it is obtained from the following formula:
vector properties
Vector addition properties
The following properties are true for all vectors being added:
Commutative:
Associative:
Distributive:
Identity properties: and
To clarify, is a vector with only zeros.
Dot product properties
The following properties are true for all vectors in a dot product:
Commutative:
Not Associated:
Dot product with a vector and itself:
Dot product of two orthogonal: where and are orthongal
Two non-zero vectors are orthogonal to one another when they have angle of with one another.