# Linear Algebra/Dimension

Jump to: navigation, search
Linear Algebra
 ← Basis Dimension Vector Spaces and Linear Systems →

In the prior subsection we defined the basis of a vector space, and we saw that a space can have many different bases. For example, following the definition of a basis, we saw three different bases for ${\displaystyle \mathbb {R} ^{2}}$. So we cannot talk about "the" basis for a vector space. True, some vector spaces have bases that strike us as more natural than others, for instance, ${\displaystyle \mathbb {R} ^{2}}$'s basis ${\displaystyle {\mathcal {E}}_{2}}$ or ${\displaystyle \mathbb {R} ^{3}}$'s basis ${\displaystyle {\mathcal {E}}_{3}}$ or ${\displaystyle {\mathcal {P}}_{2}}$'s basis ${\displaystyle \langle 1,x,x^{2}\rangle }$. But, for example in the space ${\displaystyle \{a_{2}x^{2}+a_{1}x+a_{0}\,{\big |}\,2a_{2}-a_{0}=a_{1}\}}$, no particular basis leaps out at us as the most natural one. We cannot, in general, associate with a space any single basis that best describes that space.

We can, however, find something about the bases that is uniquely associated with the space. This subsection shows that any two bases for a space have the same number of elements. So, with each space we can associate a number, the number of vectors in any of its bases.

This brings us back to when we considered the two things that could be meant by the term "minimal spanning set". At that point we defined "minimal" as linearly independent, but we noted that another reasonable interpretation of the term is that a spanning set is "minimal" when it has the fewest number of elements of any set with the same span. At the end of this subsection, after we have shown that all bases have the same number of elements, then we will have shown that the two senses of "minimal" are equivalent.

Before we start, we first limit our attention to spaces where at least one basis has only finitely many members.

Definition 2.1

A vector space is finite-dimensional if it has a basis with only finitely many vectors.

(One reason for sticking to finite-dimensional spaces is so that the representation of a vector with respect to a basis is a finitely-tall vector, and so can be easily written.) From now on we study only finite-dimensional vector spaces. We shall take the term "vector space" to mean "finite-dimensional vector space". Other spaces are interesting and important, but they lie outside of our scope.

To prove the main theorem we shall use a technical result.

Lemma 2.2 (Exchange Lemma)

Assume that ${\displaystyle B=\langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{n}\rangle }$ is a basis for a vector space, and that for the vector ${\displaystyle {\vec {v}}}$ the relationship ${\displaystyle {\vec {v}}=c_{1}{\vec {\beta }}_{1}+c_{2}{\vec {\beta }}_{2}+\cdots +c_{n}{\vec {\beta }}_{n}}$ has ${\displaystyle c_{i}\neq 0}$. Then exchanging ${\displaystyle {\vec {\beta }}_{i}}$ for ${\displaystyle {\vec {v}}}$ yields another basis for the space.

Proof

Call the outcome of the exchange ${\displaystyle {\hat {B}}=\langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{i-1},{\vec {v}},{\vec {\beta }}_{i+1},\dots ,{\vec {\beta }}_{n}\rangle }$.

We first show that ${\displaystyle {\hat {B}}}$ is linearly independent. Any relationship ${\displaystyle d_{1}{\vec {\beta }}_{1}+\dots +d_{i}{\vec {v}}+\dots +d_{n}{\vec {\beta }}_{n}={\vec {0}}}$ among the members of ${\displaystyle {\hat {B}}}$, after substitution for ${\displaystyle {\vec {v}}}$,

${\displaystyle d_{1}{\vec {\beta }}_{1}+\dots +d_{i}\cdot (c_{1}{\vec {\beta }}_{1}+\dots +c_{i}{\vec {\beta }}_{i}+\dots +c_{n}{\vec {\beta }}_{n})+\dots +d_{n}{\vec {\beta }}_{n}={\vec {0}}\qquad \qquad (*)}$

gives a linear relationship among the members of ${\displaystyle B}$. The basis ${\displaystyle B}$ is linearly independent, so the coefficient ${\displaystyle d_{i}c_{i}}$ of ${\displaystyle {\vec {\beta }}_{i}}$ is zero. Because ${\displaystyle c_{i}}$ is assumed to be nonzero, ${\displaystyle d_{i}=0}$. Using this in equation ${\displaystyle (*)}$ above gives that all of the other ${\displaystyle d}$'s are also zero. Therefore ${\displaystyle {\hat {B}}}$ is linearly independent.

We finish by showing that ${\displaystyle {\hat {B}}}$ has the same span as ${\displaystyle B}$. Half of this argument, that ${\displaystyle [{\hat {B}}]\subseteq [B]}$, is easy; any member ${\displaystyle d_{1}{\vec {\beta }}_{1}+\dots +d_{i}{\vec {v}}+\dots +d_{n}{\vec {\beta }}_{n}}$ of ${\displaystyle [{\hat {B}}]}$ can be written ${\displaystyle d_{1}{\vec {\beta }}_{1}+\dots +d_{i}\cdot (c_{1}{\vec {\beta }}_{1}+\dots +c_{n}{\vec {\beta }}_{n})+\dots +d_{n}{\vec {\beta }}_{n}}$, which is a linear combination of linear combinations of members of ${\displaystyle B}$, and hence is in ${\displaystyle [B]}$. For the ${\displaystyle [B]\subseteq [{\hat {B}}]}$ half of the argument, recall that when ${\displaystyle {\vec {v}}=c_{1}{\vec {\beta }}_{1}+\dots +c_{n}{\vec {\beta }}_{n}}$ with ${\displaystyle c_{i}\neq 0}$, then the equation can be rearranged to ${\displaystyle {\vec {\beta }}_{i}=(-c_{1}/c_{i}){\vec {\beta }}_{1}+\dots +(1/c_{i}){\vec {v}}+\dots +(-c_{n}/c_{i}){\vec {\beta }}_{n}}$. Now, consider any member ${\displaystyle d_{1}{\vec {\beta }}_{1}+\dots +d_{i}{\vec {\beta }}_{i}+\dots +d_{n}{\vec {\beta }}_{n}}$ of ${\displaystyle [B]}$, substitute for ${\displaystyle {\vec {\beta }}_{i}}$ its expression as a linear combination of the members of ${\displaystyle {\hat {B}}}$, and recognize (as in the first half of this argument) that the result is a linear combination of linear combinations, of members of ${\displaystyle {\hat {B}}}$, and hence is in ${\displaystyle [{\hat {B}}]}$.

Theorem 2.3

In any finite-dimensional vector space, all of the bases have the same number of elements.

Proof

Fix a vector space with at least one finite basis. Choose, from among all of this space's bases, one ${\displaystyle B=\langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{n}\rangle }$ of minimal size. We will show that any other basis ${\displaystyle D={\langle {\vec {\delta }}_{1},{\vec {\delta }}_{2},\ldots \rangle }}$ also has the same number of members, ${\displaystyle n}$. Because ${\displaystyle B}$ has minimal size, ${\displaystyle D}$ has no fewer than ${\displaystyle n}$ vectors. We will argue that it cannot have more than ${\displaystyle n}$ vectors.

The basis ${\displaystyle B}$ spans the space and ${\displaystyle {\vec {\delta }}_{1}}$ is in the space, so ${\displaystyle {\vec {\delta }}_{1}}$ is a nontrivial linear combination of elements of ${\displaystyle B}$. By the Exchange Lemma, ${\displaystyle {\vec {\delta }}_{1}}$ can be swapped for a vector from ${\displaystyle B}$, resulting in a basis ${\displaystyle B_{1}}$, where one element is ${\displaystyle {\vec {\delta }}}$ and all of the ${\displaystyle n-1}$ other elements are ${\displaystyle {\vec {\beta }}}$'s.

The prior paragraph forms the basis step for an induction argument. The inductive step starts with a basis ${\displaystyle B_{k}}$ (for ${\displaystyle 1\leq k) containing ${\displaystyle k}$ members of ${\displaystyle D}$ and ${\displaystyle n-k}$ members of ${\displaystyle B}$. We know that ${\displaystyle D}$ has at least ${\displaystyle n}$ members so there is a ${\displaystyle {\vec {\delta }}_{k+1}}$. Represent it as a linear combination of elements of ${\displaystyle B_{k}}$. The key point: in that representation, at least one of the nonzero scalars must be associated with a ${\displaystyle {\vec {\beta }}_{i}}$ or else that representation would be a nontrivial linear relationship among elements of the linearly independent set ${\displaystyle D}$. Exchange ${\displaystyle {\vec {\delta }}_{k+1}}$ for ${\displaystyle {\vec {\beta }}_{i}}$ to get a new basis ${\displaystyle B_{k+1}}$ with one ${\displaystyle {\vec {\delta }}}$ more and one ${\displaystyle {\vec {\beta }}}$ fewer than the previous basis ${\displaystyle B_{k}}$.

Repeat the inductive step until no ${\displaystyle {\vec {\beta }}}$'s remain, so that ${\displaystyle B_{n}}$ contains ${\displaystyle {\vec {\delta }}_{1},\dots ,{\vec {\delta }}_{n}}$. Now, ${\displaystyle D}$ cannot have more than these ${\displaystyle n}$ vectors because any ${\displaystyle {\vec {\delta }}_{n+1}}$ that remains would be in the span of ${\displaystyle B_{n}}$ (since it is a basis) and hence would be a linear combination of the other ${\displaystyle {\vec {\delta }}}$'s, contradicting that ${\displaystyle D}$ is linearly independent.

Definition 2.4

The dimension of a vector space is the number of vectors in any of its bases.

Example 2.5

Any basis for ${\displaystyle \mathbb {R} ^{n}}$ has ${\displaystyle n}$ vectors since the standard basis ${\displaystyle {\mathcal {E}}_{n}}$ has ${\displaystyle n}$ vectors. Thus, this definition generalizes the most familiar use of term, that ${\displaystyle \mathbb {R} ^{n}}$ is ${\displaystyle n}$-dimensional.

Example 2.6

The space ${\displaystyle {\mathcal {P}}_{n}}$ of polynomials of degree at most ${\displaystyle n}$ has dimension ${\displaystyle n+1}$. We can show this by exhibiting any basis— ${\displaystyle \langle 1,x,\dots ,x^{n}\rangle }$ comes to mind— and counting its members.

Example 2.7

A trivial space is zero-dimensional since its basis is empty.

Again, although we sometimes say "finite-dimensional" as a reminder, in the rest of this book all vector spaces are assumed to be finite-dimensional. An instance of this is that in the next result the word "space" should be taken to mean "finite-dimensional vector space".

Corollary 2.8

No linearly independent set can have a size greater than the dimension of the enclosing space.

Proof

Inspection of the above proof shows that it never uses that ${\displaystyle D}$ spans the space, only that ${\displaystyle D}$ is linearly independent.

Example 2.9

Recall the subspace diagram from the prior section showing the subspaces of ${\displaystyle \mathbb {R} ^{3}}$. Each subspace shown is described with a minimal spanning set, for which we now have the term "basis". The whole space has a basis with three members, the plane subspaces have bases with two members, the line subspaces have bases with one member, and the trivial subspace has a basis with zero members. When we saw that diagram we could not show that these are the only subspaces that this space has. We can show it now. The prior corollary proves that the only subspaces of ${\displaystyle \mathbb {R} ^{3}}$ are either three-, two-, one-, or zero-dimensional. Therefore, the diagram indicates all of the subspaces. There are no subspaces somehow, say, between lines and planes.

Corollary 2.10

Any linearly independent set can be expanded to make a basis.

Proof

If a linearly independent set is not already a basis then it must not span the space. Adding to it a vector that is not in the span preserves linear independence. Keep adding, until the resulting set does span the space, which the prior corollary shows will happen after only a finite number of steps.

Corollary 2.11

Any spanning set can be shrunk to a basis.

Proof

Call the spanning set ${\displaystyle S}$. If ${\displaystyle S}$ is empty then it is already a basis (the space must be a trivial space). If ${\displaystyle S=\{{\vec {0}}\}}$ then it can be shrunk to the empty basis, thereby making it linearly independent, without changing its span.

Otherwise, ${\displaystyle S}$ contains a vector ${\displaystyle {\vec {s}}_{1}}$ with ${\displaystyle {\vec {s}}_{1}\neq {\vec {0}}}$ and we can form a basis ${\displaystyle B_{1}=\langle {\vec {s}}_{1}\rangle }$. If ${\displaystyle [B_{1}]=[S]}$ then we are done.

If not then there is a ${\displaystyle {\vec {s}}_{2}\in [S]}$ such that ${\displaystyle {\vec {s}}_{2}\not \in [B_{1}]}$. Let ${\displaystyle B_{2}=\langle {\vec {s}}_{1},{\vec {s_{2}}}\rangle }$; if ${\displaystyle [B_{2}]=[S]}$ then we are done.

We can repeat this process until the spans are equal, which must happen in at most finitely many steps.

Corollary 2.12

In an ${\displaystyle n}$-dimensional space, a set of ${\displaystyle n}$ vectors is linearly independent if and only if it spans the space.

Proof

First we will show that a subset with ${\displaystyle n}$ vectors is linearly independent if and only if it is a basis. "If" is trivially true— bases are linearly independent. "Only if" holds because a linearly independent set can be expanded to a basis, but a basis has ${\displaystyle n}$ elements, so this expansion is actually the set that we began with.

To finish, we will show that any subset with ${\displaystyle n}$ vectors spans the space if and only if it is a basis. Again, "if" is trivial. "Only if" holds because any spanning set can be shrunk to a basis, but a basis has ${\displaystyle n}$ elements and so this shrunken set is just the one we started with.

The main result of this subsection, that all of the bases in a finite-dimensional vector space have the same number of elements, is the single most important result in this book because, as Example 2.9 shows, it describes what vector spaces and subspaces there can be. We will see more in the next chapter.

Remark 2.13

The case of infinite-dimensional vector spaces is somewhat controversial. The statement "any infinite-dimensional vector space has a basis" is known to be equivalent to a statement called the Axiom of Choice (see (Blass 1984).) Mathematicians differ philosophically on whether to accept or reject this statement as an axiom on which to base mathematics (although, the great majority seem to accept it). Consequently the question about infinite-dimensional vector spaces is still somewhat up in the air. (A discussion of the Axiom of Choice can be found in the Frequently Asked Questions list for the Usenet group sci.math. Another accessible reference is (Rucker 1982).

## Exercises

Assume that all spaces are finite-dimensional unless otherwise stated.

This exercise is recommended for all readers.
Problem 1

Find a basis for, and the dimension of, ${\displaystyle {\mathcal {P}}_{2}}$.

Problem 2

Find a basis for, and the dimension of, the solution set of this system.

${\displaystyle {\begin{array}{*{4}{rc}r}x_{1}&-&4x_{2}&+&3x_{3}&-&x_{4}&=&0\\2x_{1}&-&8x_{2}&+&6x_{3}&-&2x_{4}&=&0\end{array}}}$
This exercise is recommended for all readers.
Problem 3

Find a basis for, and the dimension of, ${\displaystyle {\mathcal {M}}_{2\!\times \!2}}$, the vector space of ${\displaystyle 2\!\times \!2}$ matrices.

Problem 4

Find the dimension of the vector space of matrices

${\displaystyle {\begin{pmatrix}a&b\\c&d\end{pmatrix}}}$

subject to each condition.

1. ${\displaystyle a,b,c,d\in \mathbb {R} }$
2. ${\displaystyle a-b+2c=0}$ and ${\displaystyle d\in \mathbb {R} }$
3. ${\displaystyle a+b+c=0}$, ${\displaystyle a+b-c=0}$, and ${\displaystyle d\in \mathbb {R} }$
This exercise is recommended for all readers.
Problem 5

Find the dimension of each.

1. The space of cubic polynomials ${\displaystyle p(x)}$ such that ${\displaystyle p(7)=0}$
2. The space of cubic polynomials ${\displaystyle p(x)}$ such that ${\displaystyle p(7)=0}$ and ${\displaystyle p(5)=0}$
3. The space of cubic polynomials ${\displaystyle p(x)}$ such that ${\displaystyle p(7)=0}$, ${\displaystyle p(5)=0}$, and ${\displaystyle p(3)=0}$
4. The space of cubic polynomials ${\displaystyle p(x)}$ such that ${\displaystyle p(7)=0}$, ${\displaystyle p(5)=0}$, ${\displaystyle p(3)=0}$, and ${\displaystyle p(1)=0}$
Problem 6

What is the dimension of the span of the set ${\displaystyle \{\cos ^{2}\theta ,\sin ^{2}\theta ,\cos 2\theta ,\sin 2\theta \}}$? This span is a subspace of the space of all real-valued functions of one real variable.

Problem 7

Find the dimension of ${\displaystyle \mathbb {C} ^{47}}$, the vector space of ${\displaystyle 47}$-tuples of complex numbers.

Problem 8

What is the dimension of the vector space ${\displaystyle {\mathcal {M}}_{3\!\times \!5}}$ of ${\displaystyle 3\!\times \!5}$ matrices?

This exercise is recommended for all readers.
Problem 9

Show that this is a basis for ${\displaystyle \mathbb {R} ^{4}}$.

${\displaystyle \langle {\begin{pmatrix}1\\0\\0\\0\end{pmatrix}},{\begin{pmatrix}1\\1\\0\\0\end{pmatrix}},{\begin{pmatrix}1\\1\\1\\0\end{pmatrix}},{\begin{pmatrix}1\\1\\1\\1\end{pmatrix}}\rangle }$

(The results of this subsection can be used to simplify this job.)

Problem 10

Refer to Example 2.9.

1. Sketch a similar subspace diagram for ${\displaystyle {\mathcal {P}}_{2}}$.
2. Sketch one for ${\displaystyle {\mathcal {M}}_{2\!\times \!2}}$.
This exercise is recommended for all readers.
Problem 11
Where ${\displaystyle S}$ is a set, the functions ${\displaystyle f:S\to \mathbb {R} }$ form a vector space under the natural operations: the sum ${\displaystyle f+g}$ is the function given by ${\displaystyle (f+g)\,(s)=f(s)+g(s)}$ and the scalar product is given by ${\displaystyle (r\cdot f)\,(s)=r\cdot f(s)}$. What is the dimension of the space resulting for each domain?
1. ${\displaystyle S=\{1\}}$
2. ${\displaystyle S=\{1,2\}}$
3. ${\displaystyle S=\{1,\ldots ,n\}}$
Problem 12

(See Problem 11.) Prove that this is an infinite-dimensional space: the set of all functions ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$ under the natural operations.

Problem 13

(See Problem 11.) What is the dimension of the vector space of functions ${\displaystyle f:S\to \mathbb {R} }$, under the natural operations, where the domain ${\displaystyle S}$ is the empty set?

Problem 14

Show that any set of four vectors in ${\displaystyle \mathbb {R} ^{2}}$ is linearly dependent.

Problem 15

Show that the set ${\displaystyle \langle {\vec {\alpha }}_{1},{\vec {\alpha }}_{2},{\vec {\alpha }}_{3}\rangle \subset \mathbb {R} ^{3}}$ is a basis if and only if there is no plane through the origin containing all three vectors.

Problem 16
1. Prove that any subspace of a finite dimensional space has a basis.
2. Prove that any subspace of a finite dimensional space is finite dimensional.
Problem 17

Where is the finiteness of ${\displaystyle B}$ used in Theorem 2.3?

This exercise is recommended for all readers.
Problem 18

Prove that if ${\displaystyle U}$ and ${\displaystyle W}$ are both three-dimensional subspaces of ${\displaystyle \mathbb {R} ^{5}}$ then ${\displaystyle U\cap W}$ is non-trivial. Generalize.

Problem 19

Because a basis for a space is a subset of that space, we are naturally led to how the property "is a basis" interacts with set operations.

1. Consider first how bases might be related by "subset". Assume that ${\displaystyle U,W}$ are subspaces of some vector space and that ${\displaystyle U\subseteq W}$. Can there exist bases ${\displaystyle B_{U}}$ for ${\displaystyle U}$ and ${\displaystyle B_{W}}$ for ${\displaystyle W}$ such that ${\displaystyle B_{U}\subseteq B_{W}}$? Must such bases exist? For any basis ${\displaystyle B_{U}}$ for ${\displaystyle U}$, must there be a basis ${\displaystyle B_{W}}$ for ${\displaystyle W}$ such that ${\displaystyle B_{U}\subseteq B_{W}}$? For any basis ${\displaystyle B_{W}}$ for ${\displaystyle W}$, must there be a basis ${\displaystyle B_{U}}$ for ${\displaystyle U}$ such that ${\displaystyle B_{U}\subseteq B_{W}}$? For any bases ${\displaystyle B_{U},B_{W}}$ for ${\displaystyle U}$ and ${\displaystyle W}$, must ${\displaystyle B_{U}}$ be a subset of ${\displaystyle B_{W}}$?
2. Is the intersection of bases a basis? For what space?
3. Is the union of bases a basis? For what space?
4. What about complement?

(Hint. Test any conjectures against some subspaces of ${\displaystyle \mathbb {R} ^{3}}$.)

This exercise is recommended for all readers.
Problem 20

Consider how "dimension" interacts with "subset". Assume ${\displaystyle U}$ and ${\displaystyle W}$ are both subspaces of some vector space, and that ${\displaystyle U\subseteq W}$.

1. Prove that ${\displaystyle \dim(U)\leq \dim(W)}$.
2. Prove that equality of dimension holds if and only if ${\displaystyle U=W}$.
3. Show that the prior item does not hold if they are infinite-dimensional.
? Problem 21

For any vector ${\displaystyle {\vec {v}}}$ in ${\displaystyle \mathbb {R} ^{n}}$ and any permutation ${\displaystyle \sigma }$ of the numbers ${\displaystyle 1}$, ${\displaystyle 2}$, ..., ${\displaystyle n}$ (that is, ${\displaystyle \sigma }$ is a rearrangement of those numbers into a new order), define ${\displaystyle \sigma ({\vec {v}})}$ to be the vector whose components are ${\displaystyle v_{\sigma (1)}}$, ${\displaystyle v_{\sigma (2)}}$, ..., and ${\displaystyle v_{\sigma (n)}}$ (where ${\displaystyle \sigma (1)}$ is the first number in the rearrangement, etc.). Now fix ${\displaystyle {\vec {v}}}$ and let ${\displaystyle V}$ be the span of ${\displaystyle \{\sigma ({\vec {v}})\,{\big |}\,\sigma {\text{ permutes }}1,\ldots ,n\}}$. What are the possibilities for the dimension of ${\displaystyle V}$? (Gilbert, Krusemeyer & Larson 1993, Problem 47)

Solutions

## References

• Blass, A. (1984), "Existence of Bases Implies the Axiom of Choice", in Baumgartner, J. E., Axiomatic Set Theory, Providence RI: American Mathematical Society, pp. 31–33 .
• Rucker, Rudy (1982), Infinity and the Mind, Birkhauser .
• Gilbert, George T.; Krusemeyer, Mark; Larson, Loren C. (1993), The Wohascum County Problem Book, The Mathematical Association of America .
Linear Algebra
 ← Basis Dimension Vector Spaces and Linear Systems →