Jump to content

Dimension – "Math for Non-Geeks"

From Wikibooks, open books for an open world

In this article we define the dimension of a vector space and show some elementary properties like the dimension formula.

Motivation

[edit | edit source]

In this article we define the notion of a dimension of a vector space. It would be nice to do it in a way that common vector spaces like ℝ,ℝ2,ℝ3,... have the "obvious dimensions" 1,2,3,... . The vector space ℝ3 has a basis with 3 elements, for example the standard basis B3={e1,e2,e3}.

Similarly, for any field K, we want the vector space Kn to have dimension dimK(Kn)=n. Again, with the standard basis Bn={e1,...,en} we find a basis with exactly n vectors.

This suggests defining the dimension of a vector space V as the number of vectors of a basis of V. At this point, it is not yet clear that every basis has the same cardinality. We will prove this in the following.

Definition of the dimension

[edit | edit source]
Definition (Dimension of a vector space)

Let V be a K-vector space and let B be a basis of V. If B is finite, we define the dimension of V by dimK(V):=dim(V):=|B|. (We usually omit the specification of the field if this is obvious from the context). In this case, we say that V is finite dimensional. If B is infinite instead, we say that V is infinite-dimensional and write dim(V)=∞.

From this definition it is not clear that the dimension is independent of the choice of the basis of our vector space. For example, it could happen that a vector space has different bases with different numbers of elements. This does actually never happen, as the next theorem shows:

Theorem (Well-definedness of the dimension)

Let V be a K-vector space and B,B′ two bases of V. If B is finite, then B′ is also finite, and we have that |B|=|B′|.

Proof (Uniqueness of the dimension)

Let B be finite. Suppose that the basis B′ was infinite. Then, we could choose any |B|+1-elementary subset W of B′. Note that W is linearly independent, as it is a subset of the linearly independent set B′. This contradicts Steinitz's exchange theorem because of |B|<|W|. Thus B′ is finite. It remains to show the equality of cardinalities. Since B is linearly independent and B′ is a basis of V, it follows from Steinitz's exchange theorem that |B|≤|B′|. Analogously, we can prove |B′|≤|B|. This establishes the theorem.

Examples of dimensions

[edit | edit source]

Dimension of Kn

[edit | edit source]
Example

In this example we want to verify that the dimension of Kn is indeed n. A possible basis would be the canonical basis:

B={(1,0,…,0)T⏟n components,(0,1,…,0)T⏟n components,⋯,(0,0,…,1)T⏟n components}

This basis is finite, and we have that |B|=n. We get dimK(Kn)=n.

Dimension of a polynomial space

[edit | edit source]
Example

The polynomial space K[x] over a field K is defined as

K[x]:={∑i=0naixi|n∈ℕ,ai∈K∀i∈{0,…,n}},

with coefficient-wise addition and scalar multiplication. From this we see that {xn|n∈ℕ} is a generator of K[x]. Since the vector space identifications operate coefficient-wise, this set is also linearly independent. From |{xn|n∈ℕ}|=∞ we finally get dimK(K[x])=∞.

Dimension of ℂ as an ℝ-vector space

[edit | edit source]
Example

We would like to determine the dimension of the complex numbers, understood as an ℝ-vector space. Each complex number z∈ℂ can be written uniquely as z=a+b⋅i, with a,b∈ℝ. From this we see that {1,i} is a basis of ℂ over ℝ. So dimℝ(ℂ)=2, i.e., as a real vector space, ℂ is 2-dimensions. (Note that as a complex vector space, ℂ is 1-dimensional).

Dimension of the null space

[edit | edit source]
Example

For every field K, the ("trivial") null space {0} is a vector space. To determine its dimension, we need to find a basis. As we have already seen in the article on the null space, the null space is generated by the empty set. Furthermore, ∅︀ is linearly independent by definition and therefore a basis of the null space. Thus, we have dimK({0})=|∅︀|=0.

Properties of the dimension

[edit | edit source]

We now prove some properties of the "dimension" notion:

Theorem

Let V be a finite-dimensional K-vector space and U⊆V a subspace. Then we have that:

  1. dim(U)≤dim(V).
  2. If dim(U)=dim(V), then U=V follows.
Proof

Let BU be a basis of U. Then BU is a linearly independent subset of V. Therefore, according to the basis completion theorem, there exists a basis BV of V, with BU⊆BV. It follows immediately that |BU|≤|BV|, so dim(U)≤dim(V). Now, if in addition dim(U)=dim(V) is assumed, then we have that |BU|=|BV|. Since BV is finite, we get BU=BV. So we can conclude U=span⁡(BU)=span⁡(BV)=V.

In order to show that it is important to assume V to be finite-dimensional, consider an example of an infinite-dimensional vector space that has a proper infinite-dimensional subspace:

Example

Let V=K[x] be the polynomial space over a field K and U:={∑i=1naixi|n∈ℕ,ai∈K∀i∈{0,…,n}} the subspace of polynomials without a constant term. One can easily show (as above) that B={xi|i∈ℕ>0} is a basis of U. Thus, we see dim(U)=∞=dim(V). But U⊊V, since the constant polynomial is 1∈V∖U.

Dimension formula

[edit | edit source]

Proof of the dimension formula

[edit | edit source]

The following dimensional formula gives how to calculate the dimension of the sum of two finite dimensional subspaces U,W⊆V of a K-vector space V.

Theorem (Dimension formula)

Let V be a K-vector space and let U,W⊆V be finite-dimensional subspaces. Then, we have: dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W)

Proof (Dimension formula)

Since U,V are finite dimensional, the spaces U+V,U∩V are also finite dimensional. Set n:=dim⁡(U∩W). Then dim⁡(U),dim⁡(W)≥n. So there are some k,m∈ℕ, such that dim⁡(U)=n+k and dim⁡(W)=n+m. Furthermore, let {b1,…,bn} be a basis of U∩W. Since U∩W is a subspace of U and of W, according to the basis completion theorem there exist vectors u1,…,uk∈U and vectors w1,…,wm∈W , such that {b1,…,bn,u1,…,uk} is a basis of U and {b1,…,bn,w1,…wm} is a basis of W.

We now show that B:={b1,…,bn,u1,…uk,w1,…wm} is a basis of U+W.


Proof step: First, we show that B is a generator.

To do this, we show that any vector a∈U+W can be represented as a linear combination of elements from B.

So let a∈U+W. Then there are some u∈U,w∈W with a=u+w. Since u is a linear combination of the basis {b1,…,bn,u1,…,uk} of U, we have

u=∑i=1nλibi+∑j=1kμjuj for suitable λi,μj∈K

And v is a linear combination of the basis {b1,…,bn,w1,…,wm} of W, so

w=∑i=1nρibi+∑j=1mσjwj for ρi,σj∈K

Thus,

a=∑i=1n(λi+ρi)bi+∑j=1kμjuj+∑l=1mσlwl.

So a is linear combination of {b1,…,bn,u1,…,uk,w1,…,wm} and B a generator of U+W.

Proof step: Now we show the linear independence of B.

Let λi,μj,ρl∈K, with

∑i=1nλibi+∑j=1kμjuj+∑l=1mρlwl=0

We have to show that λi=μj=ρl=0 for all i,j,k. Let for this v=∑i=1nλibi+∑j=1kμjuj. Then, we have v∈U and because of the above condition.

v=−∑l=1mρlwl.

So also v∈W , i.e., v∈U∩W .

Thus v can be represented as a linear combination of the basis {b1,…,bn} of U∩W and there exist σ1,…,σn∈K such that

v=∑i=1nσibi.

Now, we further have

0=v−v=∑i=1n(λi−σi)bi+∑j=1kμjuj.

Since {b1,…,bn,u1,…,uk} is a Basis of U, it is linearly independent and

λ1=σ1,…,λn=σn and μ1=…=μk=0.

So

∑i=1nλibi+∑l=1mρlvl=0.

Since {b1,…,bn,w1,…,wm} is a Basis of W and hence the vectors are linearly independent, we have that

λ1=…=λn=0 and ρ1=…=ρm=0.

Thus all coefficients are zero and the vectors {b1,…,bn,u1,…,uk,w1,…,wm} are linearly independent. B is therefore actually a basis.

Now, we have that

  • dim⁡(U+W)=|B|=n+k+m
  • dim⁡(U∩W)=n
  • dim⁡(U)=n+k
  • dim⁡(W)=n+m

So: dim⁡(U+W)=n+k+m=(n+k)+(n+m)−n=dim⁡(U)+dim⁡(V)−dim⁡(U∩W).

This is the claim to be proven.

Next, we consider a conclusion of the dimension formula that makes a statement about the sum of subspaces (missing). Visually, this means that the complement of a subspace in terms of dimension is the missing "remainder".

Theorem

Let V be a finite-dimensional K-vector space and let U,W⊆V be subspaces, with U⊕W=V. Then, we have:

dim⁡(V)=dim⁡(U)+dim⁡(W)

Proof

First, because of U,W⊆V, both subspaces are finite-dimensional. Using the dimensional formula, we conclude

dim⁡(V)=dim⁡(U+W)=dim⁡(U)+dim⁡(W)−dim⁡(U∩W)=dim⁡(U)+dim⁡(W)−dim⁡({0}).

As shown in the example above, we have that dim({0})=0 and get

dim⁡(V)=dim⁡(U)+dim⁡(W)

Exercises: Dimension formula

[edit | edit source]
Exercise (Dimension formula)

Let V be a K-vector space and let U,W⊆V be subspaces of V. Further, let dim(U)=3, dim(W)=5, dim(V)=7. What dimension can U∩W and U+W have?

How to get to the proof? (Dimension formula)

Bound dim(U∩W) from above and apply the dimension formula.

Solution (Dimension formula)

We have the dimensional formula

dim(U+W)=dim(U)+dim(W)−dim(U∩W)

Further, we have that dim(U∩W)≤dim(U)=3, since U∩W is a subspace of U. So

dim(U+W)=dim(U)+dim(W)−dim(U∩W)=8−dim(U∩W)≥8−3=5

Since U+W⊆V holds, we also have that dim(U+W)≤7. Both results together yield

dim(U+W)∈{5,6,7}

From the dimensional formula we now conclude

dim(U∩W)=dim(U)+dim(W)−dim(U+W)=3+5−dim(U+W)∈{1,2,3}

In total, we obtain:

dim(U∩W)∈{1,2,3}unddim(U+W)∈{5,6,7}.

Exercise (Dimension formula)

Consider the ℚ-vector space V:=ℚ4 and the subspaces U:=span⁡({(2,1,0,0)T,(1,−1,0,0)T}), W:=span⁡({(1,0,1,0)T,(0,1,0,1)T}). Show that V=U⊕W holds.

Solution (Dimension formula)

We first show U∩W={0}. Let for this be v∈U∩W. Then there exist α,β,λ,μ∈ℚ with

v=(2α+βα−β00)=(λμλμ).

It follows that λ=μ=0 and hence v=0. So we have that U∩W={0}.

From the dimension formula we now obtain

dim(U+W)=dim(U)+dim(W)−dim(U∩W)=2+2−0=4=dim(V).

Using the theorem above about properties of the dimension, it follows that V=U+W. Together we get V=U⊕W.