Difference between revisions of "Subspaces of Rn and Linear Independence"
(4 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
For any vector space, a '''subspace''' is a subset that is itself a vector space, under the inherited operations. | For any vector space, a '''subspace''' is a subset that is itself a vector space, under the inherited operations. | ||
− | === | + | ===Lemma 1=== |
For a nonempty subset <math> S </math> of a vector space, under the inherited | For a nonempty subset <math> S </math> of a vector space, under the inherited | ||
operations, the following are equivalent statements. | operations, the following are equivalent statements. | ||
Line 126: | Line 126: | ||
The span of the empty subset of a vector space is the trivial subspace. No notation for the span is completely standard. The square brackets used here are common, but so are "<math>\mbox{span}(S)</math>" and "<math>\mbox{sp}(S)</math>". | The span of the empty subset of a vector space is the trivial subspace. No notation for the span is completely standard. The square brackets used here are common, but so are "<math>\mbox{span}(S)</math>" and "<math>\mbox{sp}(S)</math>". | ||
− | ===Lemma=== | + | ===Lemma 2=== |
In a vector space, the span of any subset is a subspace. | In a vector space, the span of any subset is a subspace. | ||
Line 141: | Line 141: | ||
: (<math> p </math>, <math> r </math> scalars) is a linear combination of elements of <math> S </math> and so is in <math> [S] </math> (possibly some of the <math>\vec{s}_i</math>'s forming <math>\vec{v}</math> equal some of the <math>\vec{s}_j</math>'s from <math>\vec{w}</math>, but it does not matter). | : (<math> p </math>, <math> r </math> scalars) is a linear combination of elements of <math> S </math> and so is in <math> [S] </math> (possibly some of the <math>\vec{s}_i</math>'s forming <math>\vec{v}</math> equal some of the <math>\vec{s}_j</math>'s from <math>\vec{w}</math>, but it does not matter). | ||
− | ===Example=== | + | ===Example 7=== |
The span of this set | The span of this set | ||
is all of <math>\mathbb{R}^2</math>. | is all of <math>\mathbb{R}^2</math>. | ||
Line 178: | Line 178: | ||
We first characterize when a vector can be removed from a set without changing the span of that set. | We first characterize when a vector can be removed from a set without changing the span of that set. | ||
− | ===Lemma=== | + | ===Lemma 3=== |
Where <math> S </math> is a subset of a vector space <math>V</math>, | Where <math> S </math> is a subset of a vector space <math>V</math>, | ||
:<math> | :<math> | ||
Line 199: | Line 199: | ||
: the spans <math> [\{\vec{v}_1,\vec{v}_2\}] </math> and <math> [\{\vec{v}_1,\vec{v}_2,\vec{v}_3\}] </math> are equal since <math> \vec{v}_3 </math> is in the span <math> [\{\vec{v}_1,\vec{v}_2\}] </math>. | : the spans <math> [\{\vec{v}_1,\vec{v}_2\}] </math> and <math> [\{\vec{v}_1,\vec{v}_2,\vec{v}_3\}] </math> are equal since <math> \vec{v}_3 </math> is in the span <math> [\{\vec{v}_1,\vec{v}_2\}] </math>. | ||
− | + | Lemma 2 says that if we have a spanning set then we can remove a <math>\vec{v}</math> to get a new set <math>S</math> with the same span if and only if <math>\vec{v}</math> is a linear combination of vectors from <math>S</math>. Thus, under the second sense described above, a spanning set is minimal if and only if it contains no vectors that are linear combinations of the others in that set. We have a term for this important property. | |
===Definition of Linear Independence=== | ===Definition of Linear Independence=== | ||
Line 226: | Line 226: | ||
what is usually the easiest way to compute whether a finite set is | what is usually the easiest way to compute whether a finite set is | ||
dependent or independent. | dependent or independent. | ||
+ | |||
+ | ===Lemma 4=== | ||
+ | A subset <math> S </math> of a vector space is linearly independent if and only if for any distinct <math> \vec{s}_1,\dots,\vec{s}_n\in S </math> the only linear relationship among those vectors | ||
+ | |||
+ | :<math> | ||
+ | c_1\vec{s}_1+\dots+c_n\vec{s}_n=\vec{0} | ||
+ | \qquad c_1,\dots,c_n\in\mathbb{R} | ||
+ | </math> | ||
+ | |||
+ | is the trivial one: <math> c_1=0,\dots,\,c_n=0 </math>. | ||
+ | Proof: This is a direct consequence of the observation above. | ||
+ | |||
+ | : If the set <math> S </math> is linearly independent then no vector <math>\vec{s}_i</math> can be written as a linear combination of the other vectors from <math>S</math> so there is no linear relationship where some of the <math>\vec{s}\,</math>'s have nonzero coefficients. If <math> S </math> is not linearly independent then some <math> \vec{s}_i </math> is a linear combination <math>\vec{s}_i=c_1\vec{s}_1+\dots+c_{i-1}\vec{s}_{i-1} +c_{i+1}\vec{s}_{i+1}+\dots+c_n\vec{s}_n</math> of other vectors from <math> S </math>, and subtracting <math>\vec{s}_i</math> from both sides of that equation gives a linear relationship involving a nonzero coefficient, namely the <math> -1 </math> in front of <math> \vec{s}_i </math>. | ||
+ | |||
+ | ===Example 8=== | ||
+ | In the vector space of two-wide row vectors, the two-element set <math> \{ \begin{pmatrix} 40 &15 \end{pmatrix},\begin{pmatrix} -50 &25 \end{pmatrix}\} </math> is linearly independent. To check this, set | ||
+ | |||
+ | :<math> | ||
+ | c_1\cdot\begin{pmatrix} 40 &15 \end{pmatrix}+c_2\cdot\begin{pmatrix} -50 &25 \end{pmatrix}=\begin{pmatrix} 0 &0 \end{pmatrix} | ||
+ | </math> | ||
+ | |||
+ | and solving the resulting system | ||
+ | |||
+ | :<math> | ||
+ | \begin{array}{*{2}{rc}r} | ||
+ | 40c_1 &- &50c_2 &= &0 \\ | ||
+ | 15c_1 &+ &25c_2 &= &0 | ||
+ | \end{array} | ||
+ | \;\xrightarrow[]{-(15/40)\rho_1+\rho_2}\; | ||
+ | \begin{array}{*{2}{rc}r} | ||
+ | 40c_1 &- &50c_2 &= &0 \\ | ||
+ | & &(175/4)c_2 &= &0 | ||
+ | \end{array} | ||
+ | </math> | ||
+ | |||
+ | shows that both <math> c_1 </math> and <math> c_2 </math> are zero. So the only linear relationship between the two given row vectors is the trivial relationship. | ||
+ | |||
+ | In the same vector space, <math> \{ \begin{pmatrix} 40 &15 \end{pmatrix},\begin{pmatrix} 20 &7.5 \end{pmatrix}\} </math> is linearly dependent since we can satisfy | ||
+ | |||
+ | :<math> | ||
+ | c_1\begin{pmatrix} 40 &15 \end{pmatrix}+c_2\cdot\begin{pmatrix} 20 &7.5 \end{pmatrix}=\begin{pmatrix} 0 &0 \end{pmatrix} | ||
+ | </math> | ||
+ | |||
+ | with <math> c_1=1 </math> and <math> c_2=-2 </math>. | ||
+ | |||
+ | ===Example 9=== | ||
+ | The set <math> \{1+x,1-x\} </math> is linearly independent in <math>\mathcal{P}_2 </math>, the space of quadratic polynomials with real coefficients, because | ||
+ | |||
+ | :<math> | ||
+ | 0+0x+0x^2 | ||
+ | = | ||
+ | c_1(1+x)+c_2(1-x) | ||
+ | = | ||
+ | (c_1+c_2)+(c_1-c_2)x+0x^2 | ||
+ | </math> | ||
+ | |||
+ | gives | ||
+ | |||
+ | :<math>\begin{array}{rcl} | ||
+ | \begin{array}{*{2}{rc}r} | ||
+ | c_1 &+ &c_2 &= &0 \\ | ||
+ | c_1 &- &c_2 &= &0 | ||
+ | \end{array} | ||
+ | &\xrightarrow[]{-\rho_1+\rho_2} | ||
+ | &\begin{array}{*{2}{rc}r} | ||
+ | c_1 &+ &c_2 &= &0 \\ | ||
+ | & &2c_2 &= &0 | ||
+ | \end{array} | ||
+ | \end{array} | ||
+ | </math> | ||
+ | since polynomials are equal only if their coefficients are equal. Thus, the only linear relationship between these two members of <math>\mathcal{P}_2</math> is the trivial one. | ||
+ | |||
+ | ===Example 10=== | ||
+ | In <math> \mathbb{R}^3 </math>, where | ||
+ | |||
+ | :<math> | ||
+ | \vec{v}_1=\begin{pmatrix} 3 \\ 4 \\ 5 \end{pmatrix} | ||
+ | \quad | ||
+ | \vec{v}_2=\begin{pmatrix} 2 \\ 9 \\ 2 \end{pmatrix} | ||
+ | \quad | ||
+ | \vec{v}_3=\begin{pmatrix} 4 \\ 18 \\ 4 \end{pmatrix} | ||
+ | </math> | ||
+ | |||
+ | the set <math> S=\{\vec{v}_1,\vec{v}_2,\vec{v}_3\} </math> is linearly dependent because this is a relationship | ||
+ | |||
+ | :<math> | ||
+ | 0\cdot\vec{v}_1 | ||
+ | +2\cdot\vec{v}_2 | ||
+ | -1\cdot\vec{v}_3 | ||
+ | =\vec{0} | ||
+ | </math> | ||
+ | |||
+ | where not all of the scalars are zero (the fact that some of the scalars are zero doesn't matter). | ||
+ | |||
+ | ==Resources== | ||
+ | * [https://textbooks.math.gatech.edu/ila/subspaces.html Subspaces], Interactive Linear Algebra from Georgia Tech | ||
+ | |||
+ | == Licensing == | ||
+ | Content obtained and/or adapted from: | ||
+ | * [https://en.wikibooks.org/wiki/Linear_Algebra/Definition_and_Examples_of_Linear_Independence Definition and Examples of Linear Independence, WikiBooks Linear Algebra] under a CC BY-SA license | ||
+ | * [https://en.wikibooks.org/wiki/Linear_Algebra/Subspaces_and_Spanning_sets Subspaces and Spanning Sets, WikiBooks Linear Algebra] under a CC BY-SA license | ||
+ | * [https://en.wikibooks.org/wiki/Linear_Algebra/Subspaces Subspaces, WikiBooks Linear Algebra] under a CC BY-SA license |
Latest revision as of 20:15, 14 November 2021
Contents
Subspaces
For any vector space, a subspace is a subset that is itself a vector space, under the inherited operations.
Lemma 1
For a nonempty subset of a vector space, under the inherited operations, the following are equivalent statements.
- is a subspace of that vector space
- is closed under linear combinations of pairs of vectors: for any vectors and scalars the vector is in
- is closed under linear combinations of any number of vectors: for any vectors and scalars the vector is in .
Briefly, the way that a subset gets to be a subspace is by being closed under linear combinations.
- Proof:
- "The following are equivalent" means that each pair of statements are equivalent.
- We will show this equivalence by establishing that . This strategy is suggested by noticing that and are easy and so we need only argue the single implication .
- For that argument, assume that is a nonempty subset of a vector space and that is closed under combinations of pairs of vectors. We will show that is a vector space by checking the conditions.
- The first item in the vector space definition has five conditions. First, for closure under addition, if then , as .
- Second, for any , because addition is inherited from , the sum in equals the sum in , and that equals the sum in (because is a vector space, its addition is commutative), and that in turn equals the sum in . The argument for the third condition is similar to that for the second.
- For the fourth, consider the zero vector of and note that closure of under linear combinations of pairs of vectors gives that (where is any member of the nonempty set ) is in ; showing that acts under the inherited operations as the additive identity of is easy.
- The fifth condition is satisfied because for any , closure under linear combinations shows that the vector is in ; showing that it is the additive inverse of under the inherited operations is routine.
We usually show that a subset is a subspace with .
Example 1
- The plane is a subspace of . As specified in the definition, the operations are the ones inherited from the larger space, that is, vectors add in as they add in
- and scalar multiplication is also the same as it is in . To show that is a subspace, we need only note that it is a subset and then verify that it is a space. Checking that satisfies the conditions in the definition of a vector space is routine. For instance, for closure under addition, just note that if the summands satisfy that and then the sum satisfies that .
Example 2
- The -axis in is a subspace where the addition and scalar multiplication operations are the inherited ones.
- As above, to verify that this is a subspace, we simply note that it is a subset and then check that it satisfies the conditions in definition of a vector space. For instance, the two closure conditions are satisfied: (1) adding two vectors with a second component of zero results in a vector with a second component of zero, and (2) multiplying a scalar times a vector with a second component of zero results in a vector with a second component of zero.
Example 3
- Another subspace of is
- which is its trivial subspace.
- Any vector space has a trivial subspace .
At the opposite extreme, any vector space has itself for a subspace. Template:AnchorThese two are the improper subspaces. Template:AnchorOther subspaces are proper.
Example 4
The condition in the definition requiring that the addition and scalar multiplication operations must be the ones inherited from the larger space is important. Consider the subset of the vector space . Under the operations and that set is a vector space, specifically, a trivial space. But it is not a subspace of because those aren't the inherited operations, since of course has .
Example 5
- All kinds of vector spaces, not just 's, have subspaces. The vector space of cubic polynomials has a subspace comprised of all linear polynomials .
Example 6
- This is a subspace of the matrices
- (checking that it is nonempty and closed under linear combinations is easy).
- To parametrize, express the condition as .
- As above, we've described the subspace as a collection of unrestricted linear combinations (by coincidence, also of two elements).
Span
The span(or linear closure) of a nonempty subset of a vector space is the set of all linear combinations of vectors from .
The span of the empty subset of a vector space is the trivial subspace. No notation for the span is completely standard. The square brackets used here are common, but so are "" and "".
Lemma 2
In a vector space, the span of any subset is a subspace.
Proof:
- Call the subset . If is empty then by definition its span is the trivial subspace. If is not empty, then we need only check that the span is closed under linear combinations. For a pair of vectors from that span, and , a linear combination
- (, scalars) is a linear combination of elements of and so is in (possibly some of the 's forming equal some of the 's from , but it does not matter).
Example 7
The span of this set is all of .
To check this we must show that any member of is a linear combination of these two vectors. So we ask: for which vectors (with real components and ) are there scalars and such that this holds?
Gauss' method
with back substitution gives and . These two equations show that for any and that we start with, there are appropriate coefficients and making the above vector equation true. For instance, for and the coefficients and will do. That is, any vector in can be written as a linear combination of the two given vectors.
Linear Independence
We first characterize when a vector can be removed from a set without changing the span of that set.
Lemma 3
Where is a subset of a vector space ,
for any .
- Proof: The left to right implication is easy. If then, since , the equality of the two sets gives that .
- For the right to left implication assume that to show that by mutual inclusion. The inclusion , write an element of as and substitute 's expansion as a linear combination of members of the same set . This is a linear combination of linear combinations and so distributing results in a linear combination of vectors from . Hence each member of is also a member of .
- Example: In , where
- the spans and are equal since is in the span .
Lemma 2 says that if we have a spanning set then we can remove a to get a new set with the same span if and only if is a linear combination of vectors from . Thus, under the second sense described above, a spanning set is minimal if and only if it contains no vectors that are linear combinations of the others in that set. We have a term for this important property.
Definition of Linear Independence
A subset of a vector space is linearly independent if none of its elements is a linear combination of the others. Otherwise it is linearly dependent. }}
Here is an important observation:
although this way of writing one vector as a combination of the others visually sets off from the other vectors, algebraically there is nothing special in that equation about . For any with a coefficient that is nonzero, we can rewrite the relationship to set off .
When we don't want to single out any vector by writing it alone on one side of the equation, we will instead say that are in a linear relationship and write the relationship with all of the vectors on the same side. The next result rephrases the linear independence definition in this style. It gives what is usually the easiest way to compute whether a finite set is dependent or independent.
Lemma 4
A subset of a vector space is linearly independent if and only if for any distinct the only linear relationship among those vectors
is the trivial one: . Proof: This is a direct consequence of the observation above.
- If the set is linearly independent then no vector can be written as a linear combination of the other vectors from so there is no linear relationship where some of the 's have nonzero coefficients. If is not linearly independent then some is a linear combination of other vectors from , and subtracting from both sides of that equation gives a linear relationship involving a nonzero coefficient, namely the in front of .
Example 8
In the vector space of two-wide row vectors, the two-element set is linearly independent. To check this, set
and solving the resulting system
shows that both and are zero. So the only linear relationship between the two given row vectors is the trivial relationship.
In the same vector space, is linearly dependent since we can satisfy
with and .
Example 9
The set is linearly independent in , the space of quadratic polynomials with real coefficients, because
gives
since polynomials are equal only if their coefficients are equal. Thus, the only linear relationship between these two members of is the trivial one.
Example 10
In , where
the set is linearly dependent because this is a relationship
where not all of the scalars are zero (the fact that some of the scalars are zero doesn't matter).
Resources
- Subspaces, Interactive Linear Algebra from Georgia Tech
Licensing
Content obtained and/or adapted from:
- Definition and Examples of Linear Independence, WikiBooks Linear Algebra under a CC BY-SA license
- Subspaces and Spanning Sets, WikiBooks Linear Algebra under a CC BY-SA license
- Subspaces, WikiBooks Linear Algebra under a CC BY-SA license