Watch on Instagram

Math Bytes · Linear algebra · Episode 1 · Vectors and spaces

Linear combinations and span

A linear combination of vectors v and w is av + bw, where a and b are numbers that stretch, shrink or flip each arrow before you add them tip to tail. The span is every point you can reach this way. With v = (1, 1) and w = (1, −1), 3v + 2w = (5, 1), and because v and w point along different lines their span is the whole plane.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

Stretch, shrink, flip, then add

Think of a vector as an arrow from the origin, written as a pair like (1, 1). Multiplying it by a number (a scalar) changes its length and maybe its direction:

  • a number bigger than 1 stretches it: 2(1, 1) = (2, 2)
  • a number between 0 and 1 shrinks it: ½(1, 1) = (½, ½)
  • a negative number flips it to point backward: −1(1, 1) = (−1, −1)

Then you add two vectors tip to tail: slide the second one so its tail sits on the first one's tip. The sum runs from the origin to the second tip. In numbers, you add the matching coordinates.

Linear combination: av + bw

Mixing like that, a times v plus b times w, gives

av + bw

which is called a linear combination of v and w. The numbers a and b can be any real numbers: positive, negative, fractions or zero.

Worked example: 3v + 2w with v = (1, 1), w = (1, −1)

  1. Scale v by 3: 3v = 3(1, 1) = (3, 3).
  2. Scale w by 2: 2w = 2(1, −1) = (2, −2).
  3. Add them tip to tail: (3, 3) + (2, −2) = (3 + 2, 3 − 2) = (5, 1).

On the grid: walk from the origin to (3, 3) along v, then two steps of w take you down to (5, 1).

Span: every point you can reach

The span of v and w is the set of all their linear combinations, every point av + bw for every choice of a and b.

  • v = (1, 1) and w = (1, −1) point along different lines, so their span is the whole plane: every point (x, y) is some av + bw.
  • If w lay on the same line as v, for example w = (2, 2) = 2v, every combination av + bw would stay on that line. The span would be just a line.

Try it yourself

  1. With v = (3, 1) and w = (−1, 4), what is 2v + w?
  2. Do (1, 2) and (2, 4) span the whole plane, or just a line?

(Answers: 1. 2v = (6, 2), so 2v + w = (6 − 1, 2 + 4) = (5, 6). 2. Just a line: (2, 4) = 2(1, 2), so both lie on the same line through the origin.)

Good to know

  • "Point different ways" means not on the same line through the origin. v and −v point opposite ways but still span only a line.
  • Multiplying by 0 is allowed too: 0v is the zero vector, so the origin is always in the span.
  • Many textbooks write vectors as columns instead of (x, y) pairs; the math is the same.
  • This is the first lesson of the Linear algebra course. Next up: linear independence, which asks when an extra vector actually adds something new to the span.

Answer to the comment question

What's 3(1, 2) + 2(4, −1)? (11, 4). Scale first: 3(1, 2) = (3, 6) and 2(4, −1) = (8, −2). Then add the matching coordinates: (3 + 8, 6 − 2) = (11, 4).

Test your knowledge

Quick quiz: Linear combinations and span

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What is a linear combination of vectors v and w?
2With v = (1, 1) and w = (1, −1), what is 3v + 2w?
3What is the span of a set of vectors?
4If w lies on the same line through the origin as v, what is the span of v and w?

Sources

Video transcript

Can two arrows reach every point on a flat plane?

Call the arrows v and w. Stretch, shrink or flip each one, then add them tip to tail.

That mix, a times v plus b times w, is a linear combination.

Take v equals (1, 1) and w equals (1, −1). Three v is (3, 3). Two w is (2, −2). Add them: (5, 1).

Every point you can reach this way is the span. Since v and w point different ways, their span is the whole plane.

If w lay on the same line as v, you'd only ever reach that line.

Your turn. What's 3 times (1, 2) plus 2 times (4, −1)? Comment your answer below!

That's your byte.

More from Linear algebra

All Linear algebra lessons