Linear AlgebraVectors1 of 5
Vectors · 1

What Is a Vector?

A vector can look like an arrow on a board or a column of numbers in brackets, and we want to see how both describe the exact same thing.

1

Vectors as step instructions

A point like (3,2)(3, 2) sits at one fixed spot on a grid, whereas a vector is a step-by-step instruction for how to move from a starting spot to an ending spot.

Vectors as step instructions
what is a vector?\text{what is a vector?}
direction\text{direction}
length\text{length}
[23]\begin{bmatrix} 2 \\ 3 \end{bmatrix}
3\htmlClass{lc-green}{3}
2\htmlClass{lc-pink}{2}
[32]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{3} \\ \htmlClass{lc-pink}{2} \end{bmatrix}}
3\htmlClass{lc-green}{3}
2\htmlClass{lc-pink}{2}
[32]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{3} \\ \htmlClass{lc-pink}{2} \end{bmatrix}}
Text solution
Stack the horizontal and vertical steps in a columnWalking 3\first{3} steps to the right and 2\second{2} steps up from any starting dot gives a straight arrow written with the left-or-right move on top and the up-or-down move on the bottom.
[32]←steps right (or left)←steps up (or down)\displaystyle \vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} \begin{array}{l} \leftarrow \first{\text{steps right (or left)}} \\ \leftarrow \second{\text{steps up (or down)}} \end{array}
Put a minus sign on steps that go left or downWalking the opposite way flips the sign of that step, so 3\first{3} steps left and 2\second{2} steps down has two negative numbers, while 4\first{4} steps right and 1\second{1} step down has a negative bottom number.
[−3−2]and[4−1]\displaystyle \vect{\begin{bmatrix} \first{-3} \\ \second{-2} \end{bmatrix}} \qquad \text{and} \qquad \vect{\begin{bmatrix} \first{4} \\ \second{-1} \end{bmatrix}}

As the arrow's tip moves around its starting dot, the top number in the column tracks the left-or-right steps and the bottom number tracks the up-or-down steps, turning negative whenever the arrow steps left or down.

The top number counts the arrow’s steps left or right from its starting dot, and the bottom number counts its steps up or down, turning negative when the arrow goes left or down.
2

Vectors between two points

When we only know the starting point and ending point on a grid, we want to find the column vector that takes us from the first point to the second.

Vectors between two points
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(1, 2)(1,\ 2)
(4, 4)(4,\ 4)

To find the move between any two points, subtract the starting coordinates from the ending coordinates:

[ending x−starting xending y−starting y]\displaystyle \vect{\begin{bmatrix} \first{\text{ending } x} - \first{\text{starting } x} \\ \second{\text{ending } y} - \second{\text{starting } y} \end{bmatrix}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(2, 1)(2,\ 1)
(−1, 3)(-1,\ 3)
−3\htmlClass{lc-green}{-3}
+2\htmlClass{lc-pink}{+2}
[−32]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{-3} \\ \htmlClass{lc-pink}{2} \end{bmatrix}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(0, 0)(0,\ 0)
(3, 2)(3,\ 2)
[32]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{3} \\ \htmlClass{lc-pink}{2} \end{bmatrix}}
Text solution
Subtract starting coordinates from ending coordinatesWalking from (1,2)(1, 2) to (4,4)(4, 4) changes xx by 4−1\first{4} - \first{1} and yy by 4−2\second{4} - \second{2}, while walking from (2,1)(2, 1) to (−1,3)(-1, 3) moves left by 3\first{3} steps and up by 2\second{2} steps.
[4−14−2]=[32]and[−1−23−1]=[−32]\displaystyle \begin{aligned} \vect{\begin{bmatrix} \first{4} - \first{1} \\ \second{4} - \second{2} \end{bmatrix}} &= \vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} \qquad \text{and} \\ \vect{\begin{bmatrix} \first{-1} - \first{2} \\ \second{3} - \second{1} \end{bmatrix}} &= \vect{\begin{bmatrix} \first{-3} \\ \second{2} \end{bmatrix}} \end{aligned}
Start the tail at the origin (0,0)(0, 0) to match the point and the vectorWhen the starting point is (0,0)(0, 0), subtracting zero leaves the ending coordinates unchanged.
[3−02−0]=[32]\displaystyle \vect{\begin{bmatrix} \first{3} - \first{0} \\ \second{2} - \second{0} \end{bmatrix}} = \vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}}

Moving an arrow anywhere across the grid changes its starting and ending coordinates by the exact same amount, so ending minus starting keeps giving the same column vector. And placing the tail at (0,0)(0, 0) makes the tip's coordinates match the vector's numbers.

Wherever this arrow sits on the grid, ending minus starting gives the same vector, and when its tail is at the origin, its tip lands right on the vector’s numbers.
3

Vectors in 3D space

Two numbers can only describe movement on a flat board, so to describe an arrow in three-dimensional space we bring in a third axis and a third number in the column.

Vectors in 3D space
backward\htmlClass{lc-green}{\text{backward}}
forward\htmlClass{lc-green}{\text{forward}}
left\htmlClass{lc-pink}{\text{left}}
right\htmlClass{lc-pink}{\text{right}}
down\htmlClass{lc-violet}{\text{down}}
up\htmlClass{lc-violet}{\text{up}}
[234]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{2} \\ \htmlClass{lc-pink}{3} \\ \htmlClass{lc-violet}{4} \end{bmatrix}}
Text solution
Follow the three axes in order from top to bottomStarting from the origin, we walk forward or backward along the first axis, then right or left parallel to the second axis, and finally straight up or down along the third axis.
[234]←steps forward (or backward)←steps right (or left)←steps up (or down)\displaystyle \vect{\begin{bmatrix} \first{2} \\ \second{3} \\ \third{4} \end{bmatrix}} \begin{array}{l} \leftarrow \scriptstyle \first{\text{steps forward (or backward)}} \\ \leftarrow \scriptstyle \second{\text{steps right (or left)}} \\ \leftarrow \scriptstyle \third{\text{steps up (or down)}} \end{array}
Reverse direction on any axis with a negative numberChanging the middle number from 3\second{3} to −3\second{-3} keeps the 2\first{2} steps forward and 4\third{4} steps up, but steps 3\second{3} units to the left instead of to the right.
[2−34]\displaystyle \vect{\begin{bmatrix} \first{2} \\ \second{-3} \\ \third{4} \end{bmatrix}}

Every position of the arrow's tip in 3D space breaks down into three ordered steps along the forward-backward, left-right, and up-down axes, with negative numbers stepping the opposite way.

A 3D vector is a chain of three steps from the origin (forward-back, left-right, then up-down), where making a number negative flips that step the opposite way.
4

What R2\mathbb{R}^2, R3\mathbb{R}^3, and Rn\mathbb{R}^n mean

Instead of saying "a column vector with two numbers" or "a column vector with three numbers" every time, we use a quick shorthand for the set of all vectors of a given size.

What ℝ², ℝ³, and ℝⁿ mean
R2\mathbb{R}^2
R3\mathbb{R}^3
Rn\mathbb{R}^n
[32]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{3} \\ \htmlClass{lc-pink}{2} \end{bmatrix}}
[234]\htmlClass{lc-blue}{\begin{bmatrix} \htmlClass{lc-green}{2} \\ \htmlClass{lc-pink}{3} \\ \htmlClass{lc-violet}{4} \end{bmatrix}}
??

The symbol Rn\mathbb{R}^n pairs the letter R\mathbb{R} with a top number that counts how many numbers are in the column:

R⏟real numbers(3,−2.5,17) ⁣ ⁣ ⁣n⏞how many numbersstacked in the column\displaystyle \underbrace{\mathbb{R}}_{\substack{\text{real numbers} \\ (3,\; -2.5,\; \tfrac{1}{7})}}{}^{\!\!\!\overbrace{n}^{\substack{\text{how many numbers} \\ \text{stacked in the column}}}}

The nn up top is not an exponent telling you to multiply a number by itself; it just tells you how many real numbers sit inside the brackets. A 2-number vector like [32]\vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} is in R2\mathbb{R}^2, a 3-number vector like [234]\vect{\begin{bmatrix} \first{2} \\ \second{3} \\ \third{4} \end{bmatrix}} is in R3\mathbb{R}^3, and a column of 5050 numbers is in R50\mathbb{R}^{50}.

5

Vectors as lists of data

Physical space stops at three dimensions, so we need to see why vectors in R5\mathbb{R}^5 or R50\mathbb{R}^{50} show up and how they connect back to arrows on the board.

Vectors as lists of data
[23]\begin{bmatrix} 2 \\ 3 \end{bmatrix}
2,000 sq ft\text{2,000 sq ft}
$300,000\$300{,}000
Text solution
Add vectors by adding matching positionsFollowing the arrow [32]\vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} and then [13]\vect{\begin{bmatrix} \first{1} \\ \second{3} \end{bmatrix}}, or combining the square footage and price of two houses, adds the top numbers together and the bottom numbers together.
[32]+[13]=[3+12+3]=[45]\displaystyle \vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} + \vect{\begin{bmatrix} \first{1} \\ \second{3} \end{bmatrix}} = \vect{\begin{bmatrix} \first{3} + \first{1} \\ \second{2} + \second{3} \end{bmatrix}} = \vect{\begin{bmatrix} \first{4} \\ \second{5} \end{bmatrix}}
Scale a vector by multiplying every number by the same valueStretching the arrow [23]\vect{\begin{bmatrix} \first{2} \\ \second{3} \end{bmatrix}} to twice its length, or finding the total square footage and price for 2\scale{2} identical houses of 2,000 sq ft2{,}000\text{ sq ft} and $300,000\$300{,}000, multiplies each number by 2\scale{2}.
2[23]=[46]\displaystyle \scale{2}\vect{\begin{bmatrix} \first{2} \\ \second{3} \end{bmatrix}} = \vect{\begin{bmatrix} \first{4} \\ \second{6} \end{bmatrix}}
Stack more measurements to work in Rn\mathbb{R}^nRecording 55 facts about a house (square footage in thousands, price in hundreds of thousands, bedrooms, bathrooms, and age) gives a column of 55 numbers that adds and scales by the exact same rules.
[2342.515] in R5\displaystyle \begin{bmatrix} 2 \\ 3 \\ 4 \\ 2.5 \\ 15 \end{bmatrix} \text{ in } \mathbb{R}^5

Key concepts

Point vs. vector

Parentheses (3,2)(3, 2) mark a fixed spot on a grid, while vertical brackets [32]\vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}} give a move instruction (3\first{3} right, 2\second{2} up) that is the same vector anywhere on the board. In R3\mathbb{R}^3, follow the three axes in order: forward-backward, left-right, and up-down, as in [2−34]\vect{\begin{bmatrix} \first{2} \\ \second{-3} \\ \third{4} \end{bmatrix}}.

Vector between two points

When an arrow goes from one point to another, take ending minus starting in each coordinate, so walking from (2,1)(2, 1) to (−1,3)(-1, 3) is [−1−23−1]=[−32]\vect{\begin{bmatrix} \first{-1} - \first{2} \\ \second{3} - \second{1} \end{bmatrix}} = \vect{\begin{bmatrix} \first{-3} \\ \second{2} \end{bmatrix}}. When the tail starts at the origin (0,0)(0, 0), you don't need to subtract: a tip at (3,2)(3, 2) immediately gives the vector [32]\vect{\begin{bmatrix} \first{3} \\ \second{2} \end{bmatrix}}.

Spaces Rn\mathbb{R}^n and data lists

The number up top in Rn\mathbb{R}^n counts how many real numbers are stacked in the column. Whether a vector is an arrow in R2\mathbb{R}^2 or a 5-number list for a house [2342.515]\begin{bmatrix} 2 \\ 3 \\ 4 \\ 2.5 \\ 15 \end{bmatrix} in R5\mathbb{R}^5, you add two vectors by adding matching numbers and scale a vector by multiplying every number by that value.

6

Practice

1

Starting from a dot on the board, you walk 55 steps to the left and 33 steps up. Write the column vector for this move.

Decide which direction goes on top, and check what sign a step to the left gets.

Put the left-or-right step on top and the up-or-down step on the bottom. Stepping to the left is negative (forgetting the minus sign gives [53]\begin{bmatrix} 5 \\ 3 \end{bmatrix}, and putting the vertical step on top gives [3−5]\begin{bmatrix} 3 \\ -5 \end{bmatrix}).
[−53]\displaystyle \vect{\begin{bmatrix} \first{-5} \\ \second{3} \end{bmatrix}}
2

Find the vector that takes you from the point (3,−2)(3, -2) to the point (−1,4)(-1, 4).

Subtract where you started from where you ended up for xx and for yy.

Take ending minus starting for each coordinate:
[−1−34−(−2)]\displaystyle \vect{\begin{bmatrix} \first{-1} - \first{3} \\ \second{4} - \second{(-2)} \end{bmatrix}}
Watch the order and the double negative: doing starting minus ending flips the signs to [4−6]\begin{bmatrix} 4 \\ -6 \end{bmatrix}, and writing 4−24 - 2 instead of 4−(−2)\second{4} - \second{(-2)} gives [−42]\begin{bmatrix} -4 \\ 2 \end{bmatrix}.
[−46]\displaystyle \vect{\begin{bmatrix} \first{-4} \\ \second{6} \end{bmatrix}}
3

In 3D space, you start at the origin and move 44 steps backward (into the board), 00 steps left or right, and 33 steps down. Write this vector and the space Rn\mathbb{R}^n it is in.

Write the steps along all three axes in order (forward-backward, left-right, up-down), including any axis where you move 00 steps.

Backward and down are both negative steps, and the 0\second{0} stays in the middle spot for the left-right axis (dropping the 0\second{0} turns it into the 2D vector [−4−3]\begin{bmatrix} -4 \\ -3 \end{bmatrix} in R2\mathbb{R}^2, and leaving off the minus signs gives [403]\begin{bmatrix} 4 \\ 0 \\ 3 \end{bmatrix}).
[−40−3] in R3\displaystyle \vect{\begin{bmatrix} \first{-4} \\ \second{0} \\ \third{-3} \end{bmatrix}} \text{ in } \mathbb{R}^3
4

One arrow for the vector [4−3]\vect{\begin{bmatrix} \first{4} \\ \second{-3} \end{bmatrix}} has its tail at the origin (0,0)(0, 0), and a second arrow for the exact same vector has its tail at (−2,5)(-2, 5). At what point does the tip of each arrow land?

From each starting point, move 4\first{4} steps right and 3\second{3} steps down.

Starting the tail at (0,0)(0, 0) makes the tip land on the exact numbers inside the vector: (4,−3)(4, -3). For the tail at (−2,5)(-2, 5), add the move to the starting coordinates (subtracting the move instead of adding it gives (−6,8)(-6, 8), and leaving the tip at (4,−3)(4, -3) forgets that the second arrow started at (−2,5)(-2, 5)):
(−2+4,  5+(−3))\displaystyle (-2 + \first{4},\; 5 + \second{(-3)}) =(2,2)\displaystyle = (2, 2)
The first tip lands at (4,−3)(4, -3), and the second tip lands at (2,2)(2, 2).
5

You follow the vector [−35]\vect{\begin{bmatrix} \first{-3} \\ \second{5} \end{bmatrix}} and end up at the point (1,2)(1, 2). What point did you start at?

Set up ending−starting=[−35]\text{ending} - \text{starting} = \vect{\begin{bmatrix} \first{-3} \\ \second{5} \end{bmatrix}}, or reverse the steps from (1,2)(1, 2) to walk back to the start.

Using ending minus starting for the unknown starting point (x,y)(x, y) gives:
[1−x2−y]=[−35]\displaystyle \vect{\begin{bmatrix} \first{1} - \first{x} \\ \second{2} - \second{y} \end{bmatrix}} = \vect{\begin{bmatrix} \first{-3} \\ \second{5} \end{bmatrix}}
Be careful not to follow the vector forward from (1,2)(1, 2) as if (1,2)(1, 2) were the start, which gives (1+(−3),2+5)=(−2,7)(1 + (-3), 2 + 5) = (-2, 7). Solving 1−x=−3\first{1} - \first{x} = \first{-3} and 2−y=5\second{2} - \second{y} = \second{5} gives the starting point:
(4,−3)\displaystyle (4, -3)
6

For each delivery truck, a company records 44 numbers in a column: cargo weight in tons, fuel in tens of gallons, deliveries completed, and hours driven. A truck carries 2.52.5 tons of cargo, has 3030 gallons of fuel, makes 1212 deliveries, and drives 66 hours. Write the vector for this truck, give the space Rn\mathbb{R}^n it is in, and find the vector for 33 identical trucks combined.

Check the units for fuel before writing the column, then scale the vector by 3\scale{3}.

Because fuel is recorded in tens of gallons, 3030 gallons is written as 33 (putting 3030 in the second spot gives [2.530126]\begin{bmatrix} 2.5 \\ 30 \\ 12 \\ 6 \end{bmatrix} and [7.5903618]\begin{bmatrix} 7.5 \\ 90 \\ 36 \\ 18 \end{bmatrix}). Stacking the 44 numbers and then multiplying each by 3\scale{3} for the 3\scale{3} trucks gives:
[2.53126] in R4, and [7.593618] for 3 identical trucks.\displaystyle \begin{gathered} \begin{bmatrix} 2.5 \\ 3 \\ 12 \\ 6 \end{bmatrix} \text{ in } \mathbb{R}^4, \text{ and } \\ \begin{bmatrix} 7.5 \\ 9 \\ 36 \\ 18 \end{bmatrix} \text{ for } \scale{3} \text{ identical trucks.} \end{gathered}