Linear combinations and span

 
 
 
 
 

Linear combinations are the sum of scaled vectors

At the end of the last lesson, we took 66 of the basis vector i^=(1,0)\hat{i}=(1,0) and 44 of the basis vector j^=(0,1)\hat{j}=(0,1) to express the vector a=(6,4)\vec{a}=(6,4) as

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

Notice how the vector i^=(1,0)\hat{i}=(1,0) is multiplied by a scalar of 66, and the vector j^=(0,1)\hat{j}=(0,1) is multiplied by a scalar of 44. In other words, to express a\vec{a}, we’ve only done two operations: 1) we’ve multiplied vectors by scalars, and 2) we’ve added these scaled vectors together.

Any expression like this one, which is just the sum of scaled vectors, is called a linear combination. Linear combinations can sum any number of vectors, not just two. So 3a2b3\vec a-2\vec b is a linear combination, a+0.5b-\vec a+0.5\vec b is a linear combination, 4.2a7b+πc4.2\vec a-7\vec b+\pi\vec{c} is a linear combination, and so on.

Span of a vector set

The span of a set of vectors is the collection of all vectors which can be represented by some linear combination of the set.

That sounds confusing, but let’s think back to the basis vectors i^=(1,0)\hat{i}=(1,0) and j^=(0,1)\hat{j}=(0,1) in R2\mathbb{R}^2. If you choose absolutely any vector, anywhere in R2\mathbb{R}^2, you can get to that vector using a linear combination of i^\hat{i} and j^\hat{j}. If I choose (13,2)(13,2), I can get to it with the linear combination a=13i^+2j^\vec{a}=13\hat{i}+2\hat{j}, or if I choose (1,7)(-1,-7), I can get to it with the linear combination a=i^7j^\vec{a}=-\hat{i}-7\hat{j}. There’s no vector you can find in R2\mathbb{R}^2 that you can’t reach with a linear combination of i^\hat{i} and j^\hat{j}.

And because you can get to any vector in R2\mathbb{R}^2 with a linear combination of i^\hat{i} and j^\hat{j}, you can say specifically that i^\hat{i} and j^\hat{j} span R2\mathbb{R}^2. If a set of vectors spans a space, it means you can use a linear combination of those vectors to reach any vector in the space.

In the same way, I can get to any vector, anywhere in R3\mathbb{R}^3, using a linear combination of the basis vectors i^\hat{i}, j^\hat{j}, and k^\hat{k}, which means i^\hat{i}, j^\hat{j}, and k^\hat{k} span R3\mathbb{R}^3, the entirety of three-dimensional space.

I could also write these facts as

Span(i^,j^)=R2\text{Span}(\hat{i},\hat{j})=\mathbb{R}^2

Span(i^,j^,k^)=R3\text{Span}(\hat{i},\hat{j},\hat{k})=\mathbb{R}^3

One other point: the span of the zero vector O\vec{O} is always just the origin, so (0,0)(0,0) in R2\mathbb{R}^2, (0,0,0)(0,0,0) in R3\mathbb{R}^3, etc.

Span, and linear independence

So our next step is to be able to determine when a vector set spans a space, and when it doesn’t. In other words, how can we tell when every point in the space is, or is not, reachable by a linear combination of the vector set?

The answer has to do with whether or not the vectors in the set are linearly independent or linearly dependent. We’ll talk about linear (in)dependence in the next lesson, but for now, let’s just make three points:

  • Any 22 two-dimensional linearly independent vectors will span R2\mathbb{R}^2. The two-dimensional basis vectors i^\hat{i} and j^\hat{j} are linearly independent, which is why they span R2\mathbb{R}^2.

  • Any 33 three-dimensional linearly independent vectors will span R3\mathbb{R}^3. The three-dimensional basis vectors i^\hat{i}, j^\hat{j}, and k^\hat{k} are linearly independent, which is why they span R3\mathbb{R}^3.

  • Any nn nn-dimensional linearly independent vectors will span Rn\mathbb{R}^n. The nn-dimensional basis vectors are linearly independent, which is why they span Rn\mathbb{R}^n.

So when is a set of vectors linearly dependent, such that they won’t span the vector space R2\mathbb{R}^2, R3\mathbb{R}^3, or Rn\mathbb{R}^n?

First, we should say that we can never span Rn\mathbb{R}^n with fewer than nn vectors. In other words, we can’t span R2\mathbb{R}^2 with one or fewer vectors, we can’t span R3\mathbb{R}^3 with two or fewer vectors, and we can’t span Rn\mathbb{R}^n with n1n-1 or fewer vectors.

Second, assuming we have enough vectors to span the space, generally speaking, those vectors need to be “different enough” from each other that they can cover the whole vector space. It’s actually easier to think about when the vectors won’t be “different enough” to span the vector space:

  •  When 22 two-dimensional vectors lie along the same line (or along parallel lines), they’re called collinear, they’re linearly dependent, and they won’t span R2\mathbb{R}^2.

  •  When 33 three-dimensional vectors lie in the same plane, they’re called coplanar, they’re linearly dependent, and they won’t span R3\mathbb{R}^3.

  •  When nn nn-dimensional vectors lie in the same (n1)(n-1)-dimensional space, they’re linearly dependent, and they won’t span Rn\mathbb{R}^n.

Let’s hold off until the next section on more detail about linear dependence and independence, and turn to an example.

 
 

The span of a vector set is the complete set of all possible linear combinations


 
 

Take the course

Want to learn more about Linear Algebra? I have a step-by-step course for that. :)

 
 

 
 

You can use a linear combination of basis vectors in a space to get to any vector in that space

Example

Prove that you can use a linear combination of the basis vectors i=(1,0)\bold i=(1,0) and j=(0,1)\bold j=(0,1) to get any vector k=(k1,k2)\vec k=(k_1,k_2) in R2\mathbb{R}^2.

We can set up a vector equation, then write the basis vectors as column vectors.

This matrix equation can be rewritten as a system of equations:

1c1+0c2=k11c_1+0c_2=k_1

0c1+1c2=k20c_1+1c_2=k_2

Simplifying the system leaves us with

c1=k1c_1=k_1

c2=k2c_2=k_2

Any n n-dimensional linearly independent vectors will span R^n. The n-dimensional basis vectors are linearly independent, which is why they span R^n.

So what have we shown? We realize that this system means we could pick any vector k=(k1,k2)\vec k=(k_1,k_2) in R2\mathbb{R}^2, and we’d get k1=c1k_1=c_1 and k2=c2k_2=c_2, which means our linear combination will simply be a k1k_1 number of i\bold i’s, and a k2k_2 number of j\bold j’s. 

So if, for example, the vector we chose in R2\mathbb{R}^2 was k=(7,4)\vec k=(7,4), then the linear combination of the basis vectors is

k1i+k2j=kk_1\bold i+k_2\bold j=\vec k

7i+4j=k7\bold i+4\bold j=\vec k

Which means we would need to use 77 of the i\bold i vectors and 44 of the j\bold j vectors in order to reach k=(7,4)\vec k=(7,4) from the origin.


 
 

Get access to the complete Linear Algebra course