Two arrows sit in different places on a grid. One runs from the point to the point , the other from to . Do they describe different movements? Each one goes two units to the right and one unit up, so as changes of position they are the same. This lesson separates a location from a change of location, writes changes as columns of numbers, and sets up the arithmetic of adding and scaling them, which works for lists of measurements just as well as for arrows.
Key terms
Vector
Definition Let be a positive integer. A vector in is an ordered list of real numbers, called its components or entries. We write a vector as a column vector,
and is the set of all such columns. Two vectors are equal when they have the same number of entries and agree in every position. Vectors get bold lowercase letters. In running text a tuple such as stands for the column vector with entries and .
In plain words A vector is a list of numbers in which position matters. A vector in can be drawn as an arrow, with its first entry giving the horizontal change from tail to tip and its second entry giving the vertical change.
Example The vectors and contain the same numbers, but they are different vectors. The first moves units right and unit up, the second moves unit right and units up. The vector moves unit left and units up. A negative entry means a move in the negative direction of that axis, not a negative length. A vector in such as
records a change of along the -axis, along the -axis and along the -axis, always in that order.
Point and displacement
Definition Fix an origin and coordinate axes. A point is a location. We name points with capital letters and give them by their coordinates, as in . Points are written with parentheses too, so a capital letter or the word point marks such a tuple as a location rather than a column vector. For points and , the displacement from to is the vector
endpoint minus starting point. Any arrow whose tip coordinates minus tail coordinates give this column represents the same vector. In particular, sliding an arrow to a new starting point without turning or stretching it does not change the vector it represents. Adding the displacement to the coordinates of gives the coordinates of .
In plain words A point says where you are, and a displacement says how you moved. The same move can start anywhere.
Example Let , , and . Then
The two arrows start at different points but represent the same displacement. The coordinates of the endpoint are not the components of the displacement, because the move started at rather than at the origin. Adding the change to gives , which is again.
Vector addition and subtraction
Definition For vectors and in the same , the sum and the difference are formed entry by entry,
Vectors with different numbers of entries cannot be added or subtracted. In and the sum follows the tip-to-tail rule. Draw , then draw a copy of with its tail at the tip of . The arrow from the tail of to the tip of that copy represents . When and are drawn from the same point, is the arrow from the tip of to the tip of , since . Addition is commutative and associative,
because addition of real numbers has these properties in each entry. Subtraction is not commutative. Each entry of is the negative of the matching entry of , so the two differences agree only when .
In plain words Add or subtract matching entries, never entries from different positions. As arrows, a sum is one move followed by the other. For two arrows drawn from the same point, the difference is the move from the tip of to the tip of .
Example Let and . Then
Starting at the origin, the path then turns at the point , and the path then turns at the point . Both end at the point , and together the two paths outline a parallelogram whose diagonal from the origin is . Adding the difference back gives , which is . In the other order, , the opposite of .
Scalar multiplication
Definition A real number that multiplies a vector is called a scalar. For a scalar and a vector in , the scalar multiple multiplies every entry by ,
The vector is written and called the opposite of . In and , for a nonzero vector and a nonzero scalar , the arrow of points the same way as when and the opposite way when , and it is times as long. For all vectors in and scalars , the distributive laws
hold, together with and . Each follows from the same law for real numbers, applied in every entry.
In plain words Scaling multiplies every entry by the same number. A nonzero scalar stretches or shrinks the arrow of a nonzero vector along its own line, and a negative scalar also turns it around.
Example For we get , and . The last one points opposite to and is twice as long. Changing only one entry, as in , does not give a scalar multiple of , and that arrow points in a different direction. With the first distributive law checks out,
Zero vector
Definition The zero vector of is the vector whose entries are all . For every in ,
So is the identity for vector addition, and the opposite is the vector that cancels . Subtracting a vector is the same as adding its opposite, . As a displacement, is no change of position, the displacement from any point to itself. Its arrow has its tail and tip at the same point, so it has no direction.
In plain words The zero vector is the move that goes nowhere. Adding it changes nothing, and every vector has an opposite that undoes it.
Example In the zero vector is , and in it is . With and , the opposite of is , and . Adding the opposite gives , the same as found above. Scaling by zero also gives the zero vector, since . Watch for one misreading. The zero vector is not a very short arrow along some axis. It has no direction at all.
Data vector
Definition A data vector is a vector in whose entries are measurements or counts listed in a fixed order, with a stated meaning and unit for each position. Data vectors are added, subtracted and scaled by the same entry by entry rules. A sum or difference of two data vectors answers a sensible question only when both use the same order, meanings and units, so that matching positions describe the same quantity.
In plain words A vector does not have to be an arrow. Any list of numbers in a fixed order is a vector, and four or a hundred entries are handled just like two or three.
Example A store records the units sold of pens, notebooks, folders and markers, in that order. Two weeks of sales are
The total for both weeks is , and the change from the first week to the second is . If the second week had been listed with notebooks first and pens second, adding by position would combine pens with notebooks. The arithmetic would still run, but the first two totals would answer the wrong question.
Check yourself
- Let and . Find and .
Show the answer
Adding matching entries gives . For the second, scale first to get , then subtract,
Adding back gives , which is , so the subtraction is right.
- Let and . A student says the displacement from to is . What went wrong, and what is the correct displacement?
Show the answer
The student gave the coordinates of the endpoint . Those equal the displacement only when the move starts at the origin. The displacement is endpoint minus starting point,
Starting at and adding this change gives , which is .
- Is a scalar multiple of ? Is ?
Show the answer
Every scalar multiple of has the form , with one scalar for both entries. For the first entry forces , but then the second entry would be , not . So is not a scalar multiple of . For the first entry gives and the second gives , which agrees. So , an arrow pointing the opposite way and twice as long.