# Introduction to Vectors

A vector is a line that goes from one point to another. Vectors can exist in any dimension, so you can have a 2, 3, ...,
n
^{th }dimension vector even if you can't draw or imagine a line in that dimension.

All vectors have a length (magnitude) and a direction.

A vector is usually denoted by an upper-case letter with a right-arrow over top.

## Magnitude:

To find the length (magnitude) of a vector, you need to square each element and add them together. Once you've done that, the length is the square root of the resulting value. The magnitude is usually denoted by a set of double-line brackets on either side of the vector.

### Example:

## Standard Basis Vectors:

There is a special type of vector that, using scalar multiplication, any vector can be made from. These vectors are usually
lettered
*i*,
*j*,
*k*, etc... depending on which dimension you're working with. As you can see in the examples below, for
each dimension you add another vector that represents a single element. By multiplying each vector by a scalar
and then adding the vectors together, you can end up with any vector just as I've done in the fourth example.

### Example - First Dimension:

### Example - Second Dimension:

### Example - Third Dimension:

### Example - Making a Vector:

## Linear Combinations of Vectors

:
A linear combination of two or more vectors is the vector obtained by adding two or more vectors by adding two or more vectors
(with different directions) which are multiplied by scalar values.
^{
(Citation)
}

### Example:

### Example:

## Angle Between Vectors:

### Formula:

### Example:

## Projections:

### Projection of a Vector onto a Vector:

Projecting a vector onto another vector gives you the difference in size of the two vectors. The image below is a good representation of what you're calculating.

### Formula:

### Example - 2D Vector:

### Example - 3D Vector:

Special thanks to birling for creating the gif used in the Projections section.