How exactly do you compute the span?

  • Thread starter Bipolarity
  • Start date
  • Tags
    Span
In summary: S.In summary, if you have a finite subset of vectors in an n-dimensional space, then their span is the set of all linear combinations of those vectors. To find the dimension of the span, you need to find the largest linearly independent subset of those vectors.
  • #1
Bipolarity
776
2
Let's say I have some finite subset of vectors in, let's say, [itex] ℝ^{5} [/itex]. If my set has five linearly independent vectors, they necessarily form a basis for [itex] ℝ^{5} [/itex].

If I have more than 5 vectors, they are linearly dependent. If I have less than 5 vectors, they span only a subspace of [itex] ℝ^{5} [/itex] not equal to [itex] ℝ^{5} [/itex].

My question:
How can I actually compute the span of the vectors I am given? Obviously it is going to be some subspace of [itex] ℝ^{5} [/itex]. But how can I find an explicit representation of that subspace? How can I compute the dimension of that subspace?

Thanks!

BiP
 
Physics news on Phys.org
  • #2
Bipolarity said:
My question:
How can I actually compute the span of the vectors I am given? Obviously it is going to be some subspace of [itex] ℝ^{5} [/itex]. But how can I find an explicit representation of that subspace? How can I compute the dimension of that subspace?

Thanks!

BiP


The dimension can be found by finding what the largest linearly independent subset of your vectors is. As for an explicit representation, or "compute the span", can you give an example of what this means?
 
  • #3
You can get an explicit representation of your space by computing the row reduced echelon form of the matrix formed by your vectors.
 
  • #4
deluks917 said:
You can get an explicit representation of your space by computing the row reduced echelon form of the matrix formed by your vectors.

How exactly would this be done though? And how do you know the result (I'm guessing the number of parameter of the solution is equivalent to the dimension of the subspace spanned by the vectors).

BiP
 
  • #5
We find the "span" of a set of vectors by using the definition of "span". The "span" of a set of vectors is the set of all linear combinations of those vectors, so start by looking at such linear combinations.

For example, suppose, since you started with [itex]R^5[/itex] suppose the set is {<1, 0, 0, 1, 1>, <1, 1, 0, 1, 0>, <2, 1,0,2,1>} in the span would be of the form a<1, 0, 0, 1, 1>+ b<1, 1, 0, 1, 0>+ c<2, 1, 0, 2, 1>= <a+ b+2c, b+ c, 0, a+ b+ 2c, a+ c>. Noticing that the first and third components are the same, let's let that be, say, "x". Then we have the second component b+ c= (a+ b+ 2c)- (a+ c) so if we call the fourth component, "y", we have <a+ b+ 2c, b+ c, 0, a+ b+ 2c, a+ c>= <x, x- y, 0, x, y>= x<1, 1, 0, 1, 0>+ y<0, -1, 0, 0, 1>, showing that the span is two dimensional.

(I intentionally made the third vector in the set, <2, 1, 0, 2, 1>, the sum of the first two so the set was NOT independent and could not span a three dimensional space.)
 
  • #6
HallsofIvy said:
We find the "span" of a set of vectors by using the definition of "span". The "span" of a set of vectors is the set of all linear combinations of those vectors, so start by looking at such linear combinations.

For example, suppose, since you started with [itex]R^5[/itex] suppose the set is {<1, 0, 0, 1, 1>, <1, 1, 0, 1, 0>, <2, 1,0,2,1>} in the span would be of the form a<1, 0, 0, 1, 1>+ b<1, 1, 0, 1, 0>+ c<2, 1, 0, 2, 1>= <a+ b+2c, b+ c, 0, a+ b+ 2c, a+ c>. Noticing that the first and third components are the same, let's let that be, say, "x". Then we have the second component b+ c= (a+ b+ 2c)- (a+ c) so if we call the fourth component, "y", we have <a+ b+ 2c, b+ c, 0, a+ b+ 2c, a+ c>= <x, x- y, 0, x, y>= x<1, 1, 0, 1, 0>+ y<0, -1, 0, 0, 1>, showing that the span is two dimensional.

(I intentionally made the third vector in the set, <2, 1, 0, 2, 1>, the sum of the first two so the set was NOT independent and could not span a three dimensional space.)

I see what you did there but the procedure seems to be far from algorithmic. Is there a precise algorithm in computing the span?

What about the following method?
1) Say you have a set S of n vectors and wish to find their span (as well as the dimension of such span).
2) Take anyone nonzero vector in S and form a set M. Clearly this set is linearly independent.
3) Keep adding vectors from S to M until M is a maximal linearly independent subset of S.
4) If S is linearly independent, S will be a basis for its own span and thus the span is simply the set of all its linear combinations and its dimension equal to the cardinality of S.
5) If S is linearly dependent, M will be some proper subset of S, and will be a basis for the vector space spanned by S. Since it is a basis, the cardinality of M will be the dimension of span(S). The dimension of span(S) will surely be less than the cardinality of S.

BiP
 
  • #7
Bipolarity said:
I see what you did there but the procedure seems to be far from algorithmic. Is there a precise algorithm in computing the span?

What about the following method?
1) Say you have a set S of n vectors and wish to find their span (as well as the dimension of such span).
2) Take anyone nonzero vector in S and form a set M. Clearly this set is linearly independent.
3) Keep adding vectors from S to M until M is a maximal linearly independent subset of S.
4) If S is linearly independent, S will be a basis for its own span and thus the span is simply the set of all its linear combinations and its dimension equal to the cardinality of S.
5) If S is linearly dependent, M will be some proper subset of S, and will be a basis for the vector space spanned by S. Since it is a basis, the cardinality of M will be the dimension of span(S). The dimension of span(S) will surely be less than the cardinality of S.

BiP

True, in fact there is a procedure in my linear algebra textbook precisely identical to this. But in practical usage, you're going to end up row reducing as described by HallsofIvy if you want to find a basis for a less-trivial set of vectors.
 

1. How do you define "span" in computing?

In computing, the "span" refers to the total number of elements in a data set or array. It represents the distance between the first and last element in the set or array.

2. What is the purpose of computing the span?

The span is used to measure the size or extent of a data set or array. It can also help identify patterns and trends in the data.

3. How do you compute the span of a data set?

To compute the span of a data set, you need to determine the largest and smallest values in the set. Then, subtract the smallest value from the largest value and add 1. This will give you the total number of elements in the data set, which is the span.

4. Can a data set have a negative span?

No, a data set cannot have a negative span. The span always represents the absolute value of the difference between the largest and smallest values in the set.

5. Is there a specific formula for computing the span?

Yes, the formula for computing the span is: span = (largest value - smallest value) + 1. This formula can be applied to any data set or array to determine its span.

Similar threads

  • Linear and Abstract Algebra
Replies
8
Views
851
  • Linear and Abstract Algebra
Replies
6
Views
845
  • Linear and Abstract Algebra
Replies
3
Views
916
  • Linear and Abstract Algebra
Replies
1
Views
2K
  • Linear and Abstract Algebra
Replies
3
Views
1K
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
5
Views
3K
  • Linear and Abstract Algebra
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
8
Views
2K
  • Linear and Abstract Algebra
Replies
1
Views
917
Back
Top