Unit 1 · Vectors

Lesson 06 · Available to read

Subtraction and linear combinations

a − b is the vector from the tip of b to the tip of a: the displacement between two points.

Subtraction is defined through addition and scalar multiplication: a − b = a + (−1)b. In components it is carried out entry by entry: [4, 3] − [3, 1] = [1, 2].

The geometric interpretation is particularly useful. Draw a and b from the origin; the vector from the tip of b to the tip of a is a − b. It is the displacement required to move from point b to point a, as one can verify: b + (a − b) = a.

Subtraction is therefore the natural tool for comparing two objects represented as vectors. The difference between the feature vectors of two houses, two songs or two words shows precisely how, and by how much, they differ.

Combining addition, scaling and subtraction gives the most important construction in the subject. A linear combination of vectors is a sum of scalar multiples of them, such as 2a + b. The scalars are called weights or coefficients.

Take a = [1, 0] and b = [1, 2]. Then 2a = [2, 0], and adding b gives [3, 2]. Different weights reach different points: 3a − b = [2, −2].

An analogy is mixing paint: the vectors are the base colours, the weights are the quantities of each, and the linear combination is the resulting colour. Much of what follows, including matrix multiplication, systems of equations and the notion of span, is built directly on this scale-and-add operation.

Vectors a = [4, 3] and b = [3, 1] from the origin, with a − b = [1, 2] drawn from b's tip to a's tip
Two copies of a = [1, 0] make 2a = [2, 0]; adding b = [1, 2] reaches 2a + b = [3, 2]
Two parts red plus one part blue make a new colour, like 2 × a + 1 × b

The takeaway

a − b points from the tip of b to the tip of a; a linear combination scales vectors and adds them, as in 2a + b.

Practice

0 of 9 attempted

  1. 1Calculate

    Compute [5, 1] − [2, 3].

    Saved in this browser

  2. 2Calculate

    You are at point (1, 4) and want to get to (6, 2). What vector takes you there?

    Saved in this browser

  3. 3Multiple choice

    How does b − a relate to a − b?

  4. 4Explain in your own words

    Describe how to draw a − b, starting from arrows a and b drawn at the origin.

    Saved in this browser

  5. 5Calculate

    With a = [1, 0] and b = [0, 1], compute 3a + 2b.

    Saved in this browser

  6. 6Calculate

    With a = [1, 2] and b = [3, 1], compute 2a − b.

    Saved in this browser

  7. 7Calculate

    With a = [1, 0] and b = [1, 1], find weights x and y so that xa + yb = [5, 3].

    Saved in this browser

  8. 8Recall

    In your own words, what is a linear combination?

    Saved in this browser

  9. 9Apply

    Write your own analogy for linear combinations (not paint), naming the vectors and the weights.

    Saved in this browser