Linear Combinations and Span

Category: Linear Algebra   Level: 301

a u + b v, with a, b ∈ ℝ

Stretch two vectors by numbers and add the results. Two vectors that point in different directions reach every point of the plane this way, so their span is the whole plane.

Step through it

Watch it

Animated walkthrough

Step by step

Step 1: Pick two vectors and a target

Start with u and v. The goal is to reach the point (4, 1) using only stretched copies of u and v.

u = (1, 1), v = (-2, 1)

Step 1: Pick two vectors and a target

Step 2: Stretch u by 2

Multiplying by a scalar changes the length but keeps the line. Every multiple of u sits on the dashed line through u.

2u = (2, 2)

Step 2: Stretch u by 2

Step 3: Flip v with a negative scalar

Multiplying by −1 reverses the direction. The vector −v lies on the same line as v but points the other way.

-1v = (2, -1)

Step 3: Flip v with a negative scalar

Step 4: Add the scaled vectors

Place −v at the tip of 2u. The path ends exactly on the target, so 2 and −1 are the weights that work.

2u + (-1)v = (2, 2) + (2, -1) = (4, 1)

Step 4: Add the scaled vectors

Step 5: See the span

The skewed grid shows every combination with whole-number weights. Weights in between fill the gaps, so u and v reach every point. Their span is the whole plane.

span(u, v) = ℝ2

Step 5: See the span

All steps at once

Storyboard

Generate it yourself

cd svg-generator
python3 -m svgmath render linear-combinations --out /tmp/linear-combinations

Source: svgmath/diagrams/vectors.py