Difference between revisions of "Subspaces of Rn and Linear Independence"
(11 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Subspaces== | |
− | the | + | 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 | |
− | vector | + | operations, the following are equivalent statements. |
+ | |||
+ | # <math> S </math> is a subspace of that vector space | ||
+ | # <math> S </math> is closed under linear combinations of pairs of vectors: for any vectors <math> \vec{s}_1,\vec{s}_2\in S </math> and scalars <math> r_1,r_2 </math> the vector <math> r_1\vec{s}_1+r_2\vec{s}_2 </math> is in <math> S </math> | ||
+ | # <math> S </math> is closed under linear combinations of any number of vectors: for any vectors <math> \vec{s}_1,\ldots,\vec{s}_n\in S </math> and scalars <math> r_1, \ldots,r_n </math> the vector <math> r_1\vec{s}_1+\cdots+r_n\vec{s}_n </math> is in <math> S </math>. | ||
+ | |||
+ | 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. | ||
+ | |||
+ | :::<math> | ||
+ | (1)\!\iff\!(2) | ||
+ | \qquad | ||
+ | (2)\!\iff\!(3) | ||
+ | \qquad | ||
+ | (3)\!\iff\!(1) | ||
+ | </math> | ||
+ | |||
+ | :: We will show this equivalence by establishing that <math> (1)\implies (3)\implies (2)\implies (1)</math>. This strategy is suggested by noticing that <math> (1)\implies (3) </math> and <math> (3)\implies (2) </math> are easy and so we need only argue the single implication <math> (2)\implies (1) </math>. | ||
+ | |||
+ | :: For that argument, assume that <math> S </math> is a nonempty subset of a vector space <math>V</math> and that <math>S</math> is closed under combinations of pairs of vectors. We will show that <math>S</math> 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 <math> \vec{s}_1,\vec{s}_2\in S </math> then <math> \vec{s}_1+\vec{s}_2\in S </math>, as <math> \vec{s}_1+\vec{s}_2=1\cdot\vec{s}_1+1\cdot\vec{s}_2 </math>. | ||
+ | :: Second, for any <math> \vec{s}_1,\vec{s}_2\in S </math>, because addition is inherited from <math> V </math>, the sum <math> \vec{s}_1+\vec{s}_2 </math> in <math> S </math> equals the sum <math> \vec{s}_1+\vec{s}_2 </math> in <math> V </math>, and that equals the sum <math> \vec{s}_2+\vec{s}_1 </math> in <math> V </math> (because <math>V</math> is a vector space, its addition is commutative), and that in turn equals the sum <math> \vec{s}_2+\vec{s}_1 </math> in <math> S </math>. The argument for the third condition is similar to that for the second. | ||
+ | :: For the fourth, consider the zero vector of <math> V </math> and note that closure of <math>S</math> under linear combinations of pairs of vectors gives that (where <math> \vec{s} </math> is any member of the nonempty set <math> S </math>) <math> 0\cdot\vec{s}+0\cdot\vec{s}=\vec{0} </math> is in <math>S</math>; showing that <math> \vec{0} </math> acts under the inherited operations as the additive identity of <math> S </math> is easy. | ||
+ | :: The fifth condition is satisfied because for any <math> \vec{s}\in S </math>, closure under linear combinations shows that the vector <math> 0\cdot\vec{0}+(-1)\cdot\vec{s} </math> is in <math> S </math>; showing that it is the additive inverse of <math> \vec{s} </math> under the inherited operations is routine. | ||
− | + | We usually show that a subset is a subspace with <math> (2)\implies (1) </math>. | |
− | |||
− | + | ===Example 1=== | |
− | |||
− | |||
: The plane <math> P=\{\begin{pmatrix} x \\ y \\ z \end{pmatrix}\,\big|\, x+y+z=0\} </math> is a subspace of <math> \mathbb{R}^3 </math>. As specified in the definition, the operations are the ones inherited from the larger space, that is, vectors add in <math>P</math> as they add in <math>\mathbb{R}^3</math> | : The plane <math> P=\{\begin{pmatrix} x \\ y \\ z \end{pmatrix}\,\big|\, x+y+z=0\} </math> is a subspace of <math> \mathbb{R}^3 </math>. As specified in the definition, the operations are the ones inherited from the larger space, that is, vectors add in <math>P</math> as they add in <math>\mathbb{R}^3</math> | ||
Line 22: | Line 46: | ||
: and scalar multiplication is also the same as it is in <math>\mathbb{R}^3</math>. To show that <math>P</math> is a subspace, we need only note that it is a subset and then verify that it is a space. Checking that <math>P</math> 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 <math>x_1+y_1+z_1=0</math> and <math>x_2+y_2+z_2=0</math> then the sum satisfies that <math>(x_1+x_2)+(y_1+y_2)+(z_1+z_2)=(x_1+y_1+z_1)+(x_2+y_2+z_2)=0</math>. | : and scalar multiplication is also the same as it is in <math>\mathbb{R}^3</math>. To show that <math>P</math> is a subspace, we need only note that it is a subset and then verify that it is a space. Checking that <math>P</math> 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 <math>x_1+y_1+z_1=0</math> and <math>x_2+y_2+z_2=0</math> then the sum satisfies that <math>(x_1+x_2)+(y_1+y_2)+(z_1+z_2)=(x_1+y_1+z_1)+(x_2+y_2+z_2)=0</math>. | ||
− | + | ===Example 2=== | |
: The <math> x </math>-axis in <math> \mathbb{R}^2 </math> is a subspace where the addition and scalar multiplication operations are the inherited ones. | : The <math> x </math>-axis in <math> \mathbb{R}^2 </math> is a subspace where the addition and scalar multiplication operations are the inherited ones. | ||
Line 38: | Line 62: | ||
: 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. | : 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 <math>\mathbb{R}^2</math> is | : Another subspace of <math>\mathbb{R}^2</math> is | ||
Line 52: | Line 76: | ||
{{anchor|proper}}Other subspaces are '''proper'''. | {{anchor|proper}}Other 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 <math> \{1\} </math> of the vector space <math> \mathbb{R}^1 </math>. Under the operations <math>1+1=1</math> and <math>r\cdot 1=1</math> that set is a vector space, specifically, a trivial space. But it is not a subspace of <math> \mathbb{R}^1 </math> because those aren't the inherited operations, since of course <math> \mathbb{R}^1 </math> has <math> 1+1=2 </math>. | 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 <math> \{1\} </math> of the vector space <math> \mathbb{R}^1 </math>. Under the operations <math>1+1=1</math> and <math>r\cdot 1=1</math> that set is a vector space, specifically, a trivial space. But it is not a subspace of <math> \mathbb{R}^1 </math> because those aren't the inherited operations, since of course <math> \mathbb{R}^1 </math> has <math> 1+1=2 </math>. | ||
− | + | ===Example 5=== | |
: All kinds of vector spaces, not just <math>\mathbb{R}^n</math>'s, have subspaces. The vector space of cubic polynomials <math> \{a+bx+cx^2+dx^3\,\big|\, a,b,c,d\in\mathbb{R}\} </math> has a subspace comprised of all linear polynomials <math> \{m+nx\,\big|\, m,n\in\mathbb{R}\} </math>. | : All kinds of vector spaces, not just <math>\mathbb{R}^n</math>'s, have subspaces. The vector space of cubic polynomials <math> \{a+bx+cx^2+dx^3\,\big|\, a,b,c,d\in\mathbb{R}\} </math> has a subspace comprised of all linear polynomials <math> \{m+nx\,\big|\, m,n\in\mathbb{R}\} </math>. | ||
− | + | ===Example 6=== | |
: This is a subspace of the <math> 2 \! \times \! 2 </math> matrices | : This is a subspace of the <math> 2 \! \times \! 2 </math> matrices | ||
Line 92: | Line 116: | ||
: As above, we've described the subspace as a collection of unrestricted linear combinations (by coincidence, also of two elements). | : 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 <math> S </math> of a vector space is the set of all linear combinations of vectors from <math> S </math>. | |
− | + | :<math> | |
+ | [S] =\{ c_1\vec{s}_1+\cdots+c_n\vec{s}_n | ||
+ | \,\big|\, c_1,\ldots, c_n\in\mathbb{R} | ||
+ | \text{ and } \vec{s}_1,\ldots,\vec{s}_n\in 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 2=== | ||
+ | In a vector space, the span of any subset is a subspace. | ||
+ | |||
+ | Proof: | ||
+ | : Call the subset <math> S </math>. If <math> S </math> is empty then by definition its span is the trivial subspace. If <math> S</math> is not empty, then we need only check that the span <math> [S] </math> is closed under linear combinations. For a pair of vectors from that span, <math> \vec{v}=c_1\vec{s}_1+\cdots+c_n\vec{s}_n </math> and <math> \vec{w}=c_{n+1}\vec{s}_{n+1}+\cdots+c_m\vec{s}_m </math>, a linear combination | ||
+ | :: <math> | ||
+ | p\cdot(c_1\vec{s}_1+\cdots+c_n\vec{s}_n)+ | ||
+ | r\cdot(c_{n+1}\vec{s}_{n+1}+\cdots+c_m\vec{s}_m)</math> | ||
+ | ::<math> | ||
+ | = | ||
+ | pc_1\vec{s}_1+\cdots+pc_n\vec{s}_n | ||
+ | +rc_{n+1}\vec{s}_{n+1}+\cdots+rc_m\vec{s}_m | ||
+ | </math> | ||
+ | : (<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 7=== | ||
+ | The span of this set | ||
+ | is all of <math>\mathbb{R}^2</math>. | ||
+ | |||
+ | :<math> | ||
+ | \{\begin{pmatrix} 1 \\ 1 \end{pmatrix},\begin{pmatrix} 1 \\ -1 \end{pmatrix}\} | ||
+ | </math> | ||
+ | |||
+ | To check this we must show that any member of <math>\mathbb{R}^2</math> is a linear combination | ||
+ | of these two vectors. | ||
+ | So we ask: for which | ||
+ | vectors (with real components <math>x</math> and <math>y</math>) | ||
+ | are there scalars <math>c_1</math> and <math>c_2</math> such that this holds? | ||
+ | |||
+ | :<math> | ||
+ | c_1\begin{pmatrix} 1 \\ 1 \end{pmatrix}+c_2\begin{pmatrix} 1 \\ -1 \end{pmatrix}=\begin{pmatrix} x \\ y \end{pmatrix} | ||
+ | </math> | ||
+ | |||
+ | Gauss' method | ||
+ | |||
+ | :<math>\begin{array}{rcl} | ||
+ | \begin{array}{*{2}{rc}r} | ||
+ | c_1 &+ &c_2 &= &x \\ | ||
+ | c_1 &- &c_2 &= &y | ||
+ | \end{array} | ||
+ | &\xrightarrow[]{-\rho_1+\rho_2} | ||
+ | &\begin{array}{*{2}{rc}r} | ||
+ | c_1 &+ &c_2 &= &x \\ | ||
+ | & &-2c_2 &= &-x+y | ||
+ | \end{array} | ||
+ | \end{array} | ||
+ | </math> | ||
+ | with back substitution gives <math>c_2=(x-y)/2</math> and <math>c_1=(x+y)/2</math>. These two equations show that for any <math>x</math> and <math>y</math> that we start with, there are appropriate coefficients <math>c_1</math> and <math>c_2</math> making the above vector equation true. For instance, for <math>x=1</math> and <math>y=2</math> the coefficients <math>c_2=-1/2</math> and <math>c_1=3/2</math> will do. That is, any vector in <math>\mathbb{R}^2</math> 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 <math> S </math> is a subset of a vector space <math>V</math>, | ||
+ | :<math> | ||
+ | [S]=[S\cup\{\vec{v}\}] | ||
+ | \quad\text{if and only if}\quad | ||
+ | \vec{v}\in[S] | ||
+ | </math> | ||
+ | for any <math>\vec{v}\in V</math>. | ||
+ | |||
+ | : Proof: The left to right implication is easy. If <math>[S]=[S\cup\{\vec{v}\}]</math> then, since <math> \vec{v}\in[S\cup\{\vec{v}\}] </math>, the equality of the two sets gives that <math> \vec{v}\in[S] </math>. | ||
+ | : For the right to left implication assume that <math> \vec{v}\in [S] </math> to show that <math> [S]=[S\cup\{\vec{v}\}] </math> by mutual inclusion. The inclusion <math [S]\subseteq[S\cup\{\vec{v}\}] </math> is obvious. For the other inclusion <math> [S]\supseteq[S\cup\{\vec{v}\}] </math>, write an element of <math> [S\cup\{\vec{v}\}] </math> as <math> d_0\vec{v}+d_1\vec{s}_1+\dots+d_m\vec{s}_m </math> and substitute <math> \vec{v} </math>'s expansion as a linear combination of members of the same set <math> d_0(c_0\vec{t}_0+\dots+c_k\vec{t}_k)+d_1\vec{s}_1+\dots+d_m\vec{s}_m </math>. This is a linear combination of linear combinations and so distributing <math> d_0 </math> results in a linear combination of vectors from <math> S </math>. Hence each member of <math>[S\cup\{\vec{v}\}]</math> is also a member of <math>[S]</math>. | ||
+ | |||
+ | : Example: In <math> \mathbb{R}^3 </math>, where | ||
+ | :: <math> | ||
+ | \vec{v}_1=\begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}\quad | ||
+ | \vec{v}_2=\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix}\quad | ||
+ | \vec{v}_3=\begin{pmatrix} 2 \\ 1 \\ 0 \end{pmatrix} | ||
+ | </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=== | ||
+ | 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: | ||
+ | |||
+ | :<math> | ||
+ | \vec{s}_0=c_1\vec{s}_1+c_2\vec{s}_2+\cdots +c_n\vec{s}_n | ||
+ | </math> | ||
+ | |||
+ | although this way of writing one vector as a combination of the others visually sets <math> \vec{s}_0 </math> off from the other vectors, algebraically there is nothing special in that equation about <math> \vec{s}_0 </math>. For any <math> \vec{s}_i </math> with a coefficient <math>c_i</math> that is nonzero, we can rewrite the relationship to set off <math> \vec{s}_i </math>. | ||
+ | |||
+ | :<math> | ||
+ | \vec{s}_i=(1/c_i)\vec{s}_0+(-c_1/c_i)\vec{s}_1 | ||
+ | +\dots+(-c_n/c_i)\vec{s}_n | ||
+ | </math> | ||
+ | |||
+ | 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 | ||
+ | <math>\vec{s}_0,\vec{s}_1,\dots,\vec{s}_n </math> 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 <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> | </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