Math Algebra

Defining Vectors

Vectors are a list of components. They can be expressed in ij notation by:

or

You can also express a vector as a matrix:

Adding and Subtracting Vectors

To add vectors, add their corresponding components. For example:

Subtracting vectors works in a similar fashion:

Here are the formulas:

Here’s a graph visualizing the addition and subtraction of vectors: https://www.desmos.com/calculator/gavjpwhnuo

Multiplication by Scalar

To multiply a vector by a scalar (regular number), just multiply all the components by that number:

Multiplication by Another Vector: Dot Product

There are two different ways to multiply a vector by another vector. The first way is a dot product. Here is the algebraic definition, where n is the length of the two vectors:

With two two dimensional vectors, we can also provide a geometric definition, where is the magnitude of , and is the angle between the vectors:

As you can see, the dot product returns a single value, or scalar. From the geometric definition, you can see that it describes how much one vector “aligns” to the other.

Proving that the Definitions are the Same

Let have a magnitude of and an angle of , let have a magnitude of and an angle of .

Using the algebraic definition, we can get the geometric definition as shown above.

Cross Product

Let be a unit vector perpendicular to and , and be the angle between them. The cross product is: