Vectors and Linear Combinations
What you will be able to do
Given vectors in
What you will be able to do
Given a vector in
Orientation
A list of numbers and an arrow with a length and a direction are the same object. Which reading is useful depends on the question. A cost dotted with a plan is money, a cost dotted with a direction is a rate.
Two operations and one product. Everything later in this subject, a constraint, a cost, a basis, a pivot, is assembled from them, so the arithmetic here is worth being fluent in rather than merely able to do.
Intuition
Translating between the two readings
Each row below is one object read twice. Fill the missing cell before reading on: the point is that the translation is mechanical, and that fluency in it is what later algorithms assume.
| Situation | As a list | As an arrow |
|---|---|---|
| Make 3 of A, 7 of B | displacement 3 east, 7 north | |
| Double the production plan | same direction, twice the length | |
| Combine two plans | second arrow's tail at the first's head | |
| Reverse a plan | same line, opposite direction |
A numerical check worth doing once. Take
Now verify geometrically:
Where the translation earns its keep. A constraint
so the point satisfies it. Geometrically,
One number, three questions. For a direction
Simulation
Scalar multiples of one vector, positive and negative
Move
Every multiple lies on one line through the origin — the blue span line — so scaling changes length without changing the line. Between
Negative
This is the operation later algorithms assume when they speak of moving a distance along a direction, and of moving backwards along it.
Figure
Vector addition tip to tail, and orthogonality at a common origin
Two operations on the same pair of vectors,
Addition. Drawn from the tip of
Orthogonality. Drawn from the origin instead, the faint copy of
Both copies are the same vector. A vector is a displacement, not a position, so it may be drawn anywhere; where you choose to draw it is chosen to make the relation you are asking about visible.
Definition
Vectors, combinations, and the dot product
The canonical statement above fixes the objects and the two operations. Three things follow from it that the statement does not say, and each is used later without comment.
The zero vector is a linear combination of every set. Take every coefficient zero in
The dot product is the only place two vectors become a scalar. Addition and scaling return vectors;
The norm is defined from the dot product, not beside it.
A note on shape.
Example
Three quantities, three readings
Take
Addition and scaling.
Each is another vector in
A linear combination. With coefficients
The dot product.
One number, not a vector. Its sign says the two vectors broadly agree in direction; had it come out zero they would be perpendicular.
The norm.
A length, so it is never negative, and it says nothing about which way
Worked example
A cost, a plan, and a direction
Problem. A workshop makes three products. The production plan is
Find the total profit, decide whether moving along
Goal. Read each dot product as the quantity it reports.
Relevant principle. A dot product measures how much of one vector lies along another. With a cost vector on one side, it measures money.
Step 1: total profit.
Reason: each product's profit times its quantity, summed, which is exactly the dot product of the two lists.
Step 2: the effect of the change.
Reason:
Step 3: read the sign. Negative, so the change loses £4 per unit step. Moving along
Step 4: what zero would have meant.
Result. Profit
Check. Does the sign make sense without the arithmetic?
Interpretation. Nothing here required a diagram. The geometry, improving, worsening, flat, arrived entirely through one scalar, which is why the dot product does so much work later.
Non-example
Undefined vector operations
Adding vectors of different dimensions.
A dot product that returns a vector.
Concluding that a zero dot product means a zero vector.
Reading a larger norm as a better direction. The norm measures length only. Scaling a worsening direction makes it longer and no less worsening.
Treating the zero vector as outside the space. It is a perfectly ordinary member, and it is a linear combination of every set, which is the fact the definition of independence is built on.
Contrast
Two products that are easy to confuse
| Dot product | Entrywise product | |
|---|---|---|
| Result | One scalar | A vector |
| Formula | ||
| Answers | How much of one lies along the other | Nothing geometric |
| Used for | Costs, constraint tests, orthogonality | Rescaling data entry by entry |
| Appears in this subject | Constantly | Almost never |
Why the confusion is common. Both are written as a product of two vectors, and a calculator will happily do either. The notation
The test. Ask what the answer is supposed to be. A cost applied to a plan is money, one number. A constraint applied to a point is a quantity to compare with a bound, one number. If the answer should be a single quantity, it is a dot product.
Where the entrywise product does appear. Rescaling: multiplying each entry of a plan by a per-unit factor. That is a legitimate operation and it is never written
Exercise
1: fully structured. Let
(a) Compute
Check: (a)
2: partly structured. A plan is
(a) What is the current cost? (b) Does
Check: (a)
3: unstructured. A logistics planner writes: "Our two route vectors are
Assess the reasoning, and say what the zero actually tells the planner.
Check: the conclusion is wrong and the arithmetic is right.
What to carry forward
A vector is a list of
Two operations.
A linear combination.
The dot product.
What it measures. How much of one vector lies along the other. A cost dotted with a plan is money; a cost dotted with a direction is the rate of change along it.
Orthogonality.
The norm.
The recurring error. Treating the dot product as a vector.