선형대수학

Dimension of Vector Spaces

Bases and dimension of vector spaces

Posted Updated

Dimension of a Vector Space

From §Basis of a Vector Space, ⁋Example 9 and §Basis of a Vector Space, ⁋Example 11, we see that a basis of a vector space \(V\) need not be unique. However, looking at these examples, we can also see that they have in common that the number of elements in a basis remains the same. This is not a coincidence.

Theorem 1 For a \(\mathbb{K}\)-vector space \(V\), if two bases \(\mathcal{B}_1\) and \(\mathcal{B}_2\) of \(V\) are given, then \(\lvert \mathcal{B}_1\rvert=\lvert \mathcal{B}_2\rvert\) holds.

This theorem includes the case where \(\mathcal{B}_1\) and \(\mathcal{B}_2\) are infinite. To show this, three steps are required.

  1. First, if some basis of \(V\) is infinite, then the other bases are also necessarily infinite and have the same cardinality.
  2. Therefore, if some basis of \(V\) is finite, then all other bases must also be finite.
  3. Finally, if two finite bases of \(V\) are given, the number of elements in these two bases is the same.

Of course, there is no reason we could not prove this theorem now, but just as with §Basis of a Vector Space, ⁋Theorem 10, proving it requires some set-theoretic background, so we leave it to a separate post. The last step, however, can be proved without any special background knowledge.

Lemma 2 For a \(\mathbb{K}\)-vector space \(V\), if \(\mathcal{B}_1\) and \(\mathcal{B}_2\) are both finite bases of \(V\), then \(\lvert \mathcal{B}_1\rvert=\lvert \mathcal{B}_2\rvert\) holds.

Proof

Let \(\mathcal{B}_1=\{x_1,x_2,\ldots, x_m\}\) and \(\mathcal{B}_2=\{y_1,y_2,\ldots, y_n\}\); we must show that \(m=n\). Suppose, to the contrary, that \(m>n\).

First, since \(x_1\in V\), we can express \(x_1\) as a linear combination of \(y_1\), \(y_2\), \(\ldots\), \(y_n\). Thus, by §Basis of a Vector Space, ⁋Proposition 6, the set \(\{x_1,y_1,y_2,\ldots, y_n\}\) is linearly dependent. That is, there exist scalars \(\beta_1\), \(\alpha_1\), \(\alpha_2\), \(\ldots\), \(\alpha_n\), not all zero, such that

\[\beta_1x_1+\alpha_1y_1+\alpha_2y_2+\cdots+\alpha_n y_n=0\tag{1}\]

Here, it is clear that \(\beta_1\) cannot be zero. If \(\beta_1=0\), then the above equation becomes

\[\alpha_1y_1+\alpha_2y_2+\cdots+\alpha_ny_n=0\]

which contradicts the assumption that \(y_1\), \(y_2\), \(\ldots\), \(y_n\) are linearly independent. Also, if all \(\alpha_i\) are zero, then \(\beta_1x_1=0\), and since \(\beta_1\neq 0\), we have \(x_1=0\). In this case \(\{x_1, x_2, \ldots, x_m\}\) would trivially be linearly dependent, so let us assume that some nonzero \(\alpha_i\) exists. Then we can rearrange equation (1) above to obtain the equation

\[y_i=-\frac{\beta_1}{\alpha_i}x_1-\frac{\alpha_1}{\alpha_i}y_1-\cdots-\frac{\alpha_{i-1}}{\alpha_i}y_{i-1}-\frac{\alpha_{i+1}}{\alpha_i}y_{i+1}-\cdots-\frac{\alpha_n}{\alpha_i}y_n\]

Therefore, even if from the set \(\{x_1, y_1, y_2, \ldots, y_n\}\) we remove \(y_i\), this set still spans \(V\).

On the other hand, this set is linearly independent. For scalars \(\beta_1'\), \(\alpha_1'\), \(\ldots\), \(\alpha_{i-1}'\), \(\alpha_{i+1}'\), \(\ldots\), \(\alpha_n'\), not all zero, if

\[\beta_1'x_1+\alpha_1'y_1+\alpha_2'y_2+\cdots+\alpha_{i-1}'y_{i-1}+\alpha_{i+1}'y_{i+1}+\cdots+\alpha_n'y_n=0\]

then, for the same reason as above, \(\beta_1'\neq 0\), and thus substituting

\[x_1=-\frac{\alpha_1'}{\beta_1'}y_1-\frac{\alpha_2'}{\beta_1'}y_2-\cdots-\frac{\alpha_{i-1}'}{\beta_1'}y_{i-1}-\frac{\alpha_{i+1}'}{\beta_1'}y_{i+1}-\cdots-\frac{\alpha_n'}{\beta_1'}y_n\]

into the preceding equation gives

\[0=\left(\frac{\alpha_1'\beta_1}{\alpha_i\beta_1'}-\frac{\alpha_1}{\alpha_i}\right)y_1+\cdots+\left(\frac{\alpha_{i-1}'\beta_1}{\alpha_i\beta_1'}-\frac{\alpha_{i-1}}{\alpha_i}\right)y_{i-1}-y_i+\left(\frac{\alpha_{i+1}'\beta_1}{\alpha_i\beta_1'}-\frac{\alpha_{i+1}}{\alpha_i}\right)y_{i+1}+\cdots+\left(\frac{\alpha_n'\beta_1}{\alpha_i\beta_1'}-\frac{\alpha_n}{\alpha_i}\right)y_n\]

Since the coefficient of \(y_i\) is not \(0\), this contradicts the assumption that \(\{y_1,y_2,\ldots,y_n\}\) is linearly independent.

Thus we have obtained a new basis of \(V\), \(\{x_1,y_1,y_2,\ldots,y_{i-1}, y_{i+1},\ldots, y_n\}\). Without loss of generality, if the vector we eliminated was \(y_n\), then the resulting new basis is \(\{x_1, y_1, \ldots, y_{n-1}\}\). Now let us again add \(x_2\) to this basis and consider \(\{x_2, x_1, y_1, y_2, \ldots, y_{n-1}\}\).

\[\beta_2x_2+\beta_1x_1+\alpha_1y_1+\alpha_2y_2+\ldots+\alpha_{n-1}y_{n-1}=0\]

If the above holds, then by the same logic as above, \(\beta_2\neq 0\), and excluding the case \(x_2=0\), there exists a nonzero coefficient among \(\beta_1\), \(\alpha_1\), \(\ldots\), \(\alpha_{n-1}\).

Here, if \(\beta_1\) is the only nonzero coefficient, then the above equation becomes \(\beta_2x_2+\beta_1x_1=0\), so \(\{x_1,x_2\}\) is linearly dependent and the proof is complete.

Otherwise, if some \(\alpha_i\neq 0\) exists, we repeat the same process as above to again obtain a new basis \(\{x_2,x_1,y_1,y_2,\ldots,y_{n-2}\}\).

Repeating this process leads to two possibilities.

  1. If this process stops at some point,

    \[\beta_kx_k+\beta_{k-1}x_{k-1}+\cdots+\beta_1x_1=0\]

    will hold, so \(\{x_1,x_2,\ldots,x_m\}\) is linearly dependent.

  2. Otherwise, after \(n\) repetitions we will completely replace the original basis \(\{y_1,y_2,\ldots, y_n\}\) with a new basis \(\{x_1, x_2, \ldots, x_n\}\). In this case, since \(x_{n+1}\in V\) can be expressed as a linear combination of \(\{x_1, x_2, \ldots, x_n\}\), the set \(\{x_1,x_2,\ldots, x_{n+1}\}\) is linearly dependent, and hence so is \(\{x_1,x_2,\ldots, x_m\}\).

In either case, \(\{x_1,x_2,\ldots, x_m\}\) is linearly dependent and therefore cannot be a basis, which is a contradiction.

In fact, the proof of the proposition above establishes the following proposition, which is slightly stronger than the original:

Suppose a \(\mathbb{K}\)-vector space \(V\) has a finite basis \(\mathcal{B}\). Then, whenever it has more elements than \(\mathcal{B}\), a subset of \(V\) is necessarily linearly dependent.

In any case, by Theorem 1, all bases of \(V\) have the same size, so the following definition makes sense.

Definition 3 For a \(\mathbb{K}\)-vector space \(V\), the cardinality of a basis of \(V\) is called the dimension of \(V\) and is denoted by \(\dim V\), or when we need to emphasize \(\mathbb{K}\), by \(\dim_\mathbb{K}V\). If \(\dim V\) is finite, \(V\) is a finite-dimensional vector space; otherwise, \(V\) is an infinite-dimensional vector space.

Example 4

  1. The basis of the trivial vector space \(\{0\}\) is \(\emptyset\), so the dimension of this space is \(\lvert\emptyset\rvert=0\).
  2. For any field \(\mathbb{K}\), \(\mathbb{K}\) itself is a 1-dimensional \(\mathbb{K}\)-vector space.
  3. For any field \(\mathbb{K}\), the dimension of the Euclidean \(n\)-space \(\mathbb{K}^n\) is \(\dim \mathbb{K}^n=n\).
  4. \(\dim_\mathbb{R}\mathbb{C}=2\).
  5. \(\mathbb{K}[\x]\) is an infinite-dimensional vector space.

Remark From now on, we always assume that the vector spaces we deal with are finite-dimensional.

Depending on the situation, results in finite-dimensional vector spaces may or may not hold in infinite dimensions. For example, the following proposition can be extended to the infinite-dimensional case, but in this post we restrict ourselves to the finite-dimensional case.

Proposition 5 For a \(\mathbb{K}\)-vector space \(V\) and, in \(V\), any linearly independent subset \(S\), there exists an \(S\)-containing basis of \(V\), \(\mathcal{B}\).

Proof

If \(\langle S\rangle=V\), there is nothing more to prove. Otherwise, with \(v\not\in\langle S\rangle\), there exists \(v\in V\). Now define the set \(S_1=S\cup\{v\}\). Then \(S_1\) is linearly independent. Obviously \(v\neq0\), and now if for an arbitrary linear combination of \(S_1\) we set

\[\sum_{x\in S_1} \alpha_xx=\sum_{x\in S}\alpha_xx+\alpha_vv=0\]

then when \(\alpha_v\neq 0\), moving \(\alpha_vv\) to the other side and multiplying by \(-\alpha_v^{-1}\) allows us to express \(v\) as a linear combination of the elements of \(S\), which contradicts the choice of \(v\). Therefore \(\alpha_v=0\), and then since the elements of \(S\) are linearly independent, \(\alpha_x=0\) holds for all \(x\in S\). Thus, \(\alpha_x=0\) holds for all \(x\in S_1\).

Now if \(\langle S_1\rangle=V\), the proof is again complete, and otherwise we can repeat this in the exact same way by defining \(S_2=S_1\cup\{v'\}\). Of course, we must show that \(S_2\) is linearly independent, but since we picked \(v'\) from \(V\setminus\langle S_1\rangle\), this can be done by the exact same logic as shown above.

By the preceding Lemma 2, this process terminates within at most the \(\dim V\)-th step, and when this process ends we obtain the desired basis \(S_n\).

A basis of \(V\) is a set that is both linearly independent and spans \(V\). The above proposition says that we can appropriately add vectors to a linearly independent set so that it spans \(V\). Conversely, if there is a set spanning \(V\), we can appropriately remove some overlapping elements from it so that it also satisfies the linear independence condition. The basic idea of the proof of this proposition is the same as that of Proposition 5, but since \(S\) may be an infinite set, the proof does not work by removing elements from \(S\) one by one.

Proposition 6 For a \(\mathbb{K}\)-vector space \(V\) and a \(V\)-spanning subset \(S\), some subset of \(S\) is a basis of \(V\).

Proof

Let \(S_0=\emptyset\). Then \(\langle S_0\rangle=\{0\}\). Now choose from \(S\setminus\langle S_0\rangle\) an element \(x_1\) and let \(S_1=\{x_1\}=S_0\cup\{x_1\}\); similarly, choose from \(S\setminus\langle S_1\rangle\) an element \(x_2\) to form \(S_2=\{x_1,x_2\}=S_1\cup \{x_2\}\), repeating this process.

The sets \(S_i\) obtained in this way are linearly independent subsets by definition, and as long as \(S\setminus\langle S_i\rangle\) is nonempty, the number of elements in \(S_{i+1}\) is always one greater than that in \(S_i\). By Lemma 2, this process terminates within at most the \(\dim V\)-th step, so it suffices to show that \(\langle S_m\rangle=V\) at the step \(m\) where the process terminates.

Choose a natural number \(m\) such that \(S\setminus\langle S_m\rangle=\emptyset\). That is, \(S\subseteq\langle S_m\rangle\). Now, from §Basis of a Vector Space, ⁋Lemma 4, we know that taking \(\span\) preserves inclusion relations between sets, so

\[\langle S\rangle\subseteq\span\bigl(\langle S_m\rangle\bigr)\]

and since \(\langle S_m\rangle\) on the right-hand side is already a subspace of \(V\), by §Basis of a Vector Space, ⁋Definition 2 we know that \(\span\bigl(\langle S_m\rangle\bigr)=\langle S_m\rangle\). Therefore, from

\[V=\langle S\rangle\subseteq\span\bigl(\langle S_m\rangle\bigr)=\langle S_m\rangle\]

we conclude that \(\langle S_m\rangle=V\).

Finally, let us examine two somewhat general examples.

Example 7 Let two \(\mathbb{K}\)-vector spaces \(V\) and \(W\) be given. Then their product \(V\times W\) is, for arbitrary \(v\in V\) and \(w\in W\), the vector space of vectors of the form \((v,w)\). Its operations are given respectively by

\[(v_1, w_1)+(v_2,w_2)=(v_1+v_2,w_1+w_2),\quad\alpha(v,w)=(\alpha v,\alpha w)\]

It is not difficult to verify that if \(\mathcal{B}_1\) and \(\mathcal{B}_2\) are bases of \(V\) and \(W\) respectively, then the subset of \(V\times W\),

\[\mathcal{B}=\{(x, 0)\mid x\in \mathcal{B}_1\}\cup\{(0, y)\mid y\in \mathcal{B}_2\}\]

is a basis of \(V\times W\). In particular, if both \(V\) and \(W\) are finite-dimensional, then so is \(V\times W\), and \(\dim(V\times W)\) is equal to \((\dim V)+(\dim W)\).

Example 8 Now let a \(\mathbb{K}\)-vector space \(V\) be given, and let two subspaces of \(V\), \(W_1\) and \(W_2\), be given. Then the subspace of \(V\) denoted \(W_1+W_2\) is defined as

the smallest among the subspaces containing the two subspaces \(W_1\) and \(W_2\) in \(V\).

In symbols, we may write \(W_1+W_2=\span(W_1\cup W_2)\).

Now assuming that \(W_1,W_2\) are both finite-dimensional,

\[\dim(W_1+W_2)=\dim W_1+\dim W_2-\dim(W_1\cap W_2)\]

holds.

Proof

Let \(W_1,W_2\) be \(m\)- and \(n\)-dimensional, respectively, and let \(W_1\cap W_2\) be \(k\)-dimensional. Then \(W_1\cap W_2\) has a basis \(\mathcal{B}_0=\{x_1,\ldots, x_k\}\). Since this set is a linearly independent subset of \(W_1\) and \(W_2\), there exist bases of \(W_1\) and \(W_2\), respectively, containing this set. Let these be \(\mathcal{B}_1\) and \(\mathcal{B}_2\). Then we may write

\[\mathcal{B}_1=\{y_1,\ldots, y_m\},\quad \mathcal{B}_2=\{z_1,\ldots, z_n\},\qquad y_1=z_1=x_1,\ldots, y_k=z_k=x_k\]

Now the following set

\[\mathcal{B}_1\cup\mathcal{B}_2=\{x_1=y_1,\ldots, x_k=y_k, \quad y_{k+1}, \ldots, y_m,\quad z_{k+1},\ldots, z_n\}\]

spans \(W_1+W_2\). Moreover, this set is linearly independent. To show this, let

\[\alpha_1x_1+\cdots+\alpha_kx_k+\beta_{k+1}y_{k+1}+\cdots+\beta_{m}y_m+\gamma_{k+1}z_{k+1}+\cdots+\gamma_{n}z_n=0\tag{2}\]

Subject to \(\alpha_i=\beta_i+\gamma_i\), for arbitrary scalars \(\beta_i\), \(\gamma_i\) (\(i\leq k\)), if we write

\[\beta_1y_1+\cdots+\beta_ky_k+\beta_{k+1}y_{k+1}+\cdots+\beta_{m}y_m=-\gamma_1z_1-\cdots-\gamma_kz_k-\gamma_{k+1}z_{k+1}-\cdots-\gamma_{n}z_n\]

then the left-hand side is an element of \(W_1\) and the right-hand side is an element of \(W_2\), so this common vector is an element of \(W_1\cap W_2\). Since \(\mathcal{B}_0\) is a basis of \(W_1\cap W_2\), we can again choose suitable scalars \(\alpha_i'\) and write

\[\beta_1y_1+\cdots+\beta_my_m=\alpha_1'x_1+\cdots+\alpha_k'x_k=-\gamma_1z_1-\cdots-\gamma_nz_n\]

However, in the case of the first equality, moving the \(\alpha_i'x_i\) terms back to the left-hand side and combining them with the \(\beta_iy_i\) terms gives

\[(\beta_1-\alpha_1')y_1+\cdots+(\beta_k-\alpha_k')y_k+\beta_{k+1}y_{k+1}+\cdots+\beta_my_m=0\]

so by the linear independence of \(\mathcal{B}_1\) all coefficients are 0, and in particular \(\beta_{k+1}=\cdots=\beta_m=0\). Similarly, from the second equality \(\gamma_{k+1}=\cdots=\gamma_n=0\), and then the only remaining equation in (2) is \(\alpha_1x_1+\cdots+\alpha_kx_k=0\); since \(x_1,\ldots,x_k\) form a basis of \(W_1\cap W_2\), by linear independence again these are all 0 as well. That is, \(\mathcal{B}_1\cup\mathcal{B}_2\) is a linearly independent subset that spans \(W_1+W_2\), and is therefore a basis of \(W_1+W_2\). Now

\[\dim(W_1+W_2)=\lvert\mathcal{B}_1\cup\mathcal{B}_2\rvert=\lvert\mathcal{B}_1\rvert+\lvert\mathcal{B}_2\rvert-\lvert\mathcal{B}_0\rvert=\dim W_1+\dim W_2-\dim(W_1\cap W_2).\]

References

[Goc] M.S. Gockenbach, Finite-dimensional linear algebra, Discrete Mathematics and its applications, Taylor&Francis, 2011.


Comments

  • Public repository: a deleted comment stays in the Git history.
  • The password and the email are encrypted and kept in Cloudflare KV alone.

No comments yet.

Leave a comment