7. Span, Linear Independence, Basis, and Dimension

Dimension

Dimension 📐

Introduction

students, in linear algebra, dimension tells us how many independent directions a space has. Think of it like counting the minimum number of steps needed to describe any point in a space. In a flat floor, you need two directions, like forward/back and left/right. In a room, you need three, because you can also move up/down. That idea becomes the language of vectors, spans, bases, and linear independence.

By the end of this lesson, you should be able to:

  • explain what dimension means in a vector space,
  • use dimension to reason about bases and linear independence,
  • connect dimension to span and the size of a basis,
  • identify the dimension of common vector spaces and subspaces,
  • justify answers using examples and linear algebra facts.

Dimension is one of the most important ideas in linear algebra because it helps us understand the structure of a space. It tells us whether a set of vectors is “enough,” “too many,” or exactly the right number to describe the whole space. ✨

What Dimension Means

A vector space is a set of vectors where we can add vectors and multiply them by scalars. The dimension of a vector space is the number of vectors in any basis for that space.

A basis is a set of vectors that does two things at the same time:

  1. it spans the space, meaning every vector in the space can be written as a linear combination of the basis vectors,
  2. it is linearly independent, meaning no vector in the set can be written as a linear combination of the others.

This is why dimension is so powerful: once you know one basis, you know the dimension. If a basis has $n$ vectors, then the space has dimension $n$.

For example, the standard basis of $\mathbb{R}^2$ is

$$

\{(1,0),(0,1)\}.

$$

Since this basis has $2$ vectors, we say $\dim(\mathbb{R}^2)=2$.

Similarly, the standard basis of $\mathbb{R}^3$ is

$$

\{(1,0,0),(0,1,0),(0,0,1)\}.

$$

So $\dim(\mathbb{R}^3)=3$.

Notice what dimension is not: it is not the number of vectors in a random spanning set. A spanning set can have extra vectors. It is the number of vectors in a basis, which is the smallest possible spanning set that is also linearly independent.

Dimension, Span, and Linear Independence

Dimension connects the ideas of span and linear independence in a very direct way. students, here is the key relationship:

  • A set of vectors that spans a space may contain too many vectors.
  • A linearly independent set may contain too few vectors to span the whole space.
  • A basis is the “just right” set: enough to span, but not too many to lose independence.

A useful fact is that in an $n$-dimensional space, any linearly independent set can have at most $n$ vectors, and any spanning set must have at least $n$ vectors.

For example, in $\mathbb{R}^2$, you cannot have more than $2$ linearly independent vectors. If you choose three vectors in $\mathbb{R}^2$, one of them must depend on the others. That does not mean the vectors are useless; it means one is redundant.

Let’s test this idea with vectors in $\mathbb{R}^2$:

$$

$\mathbf{v}_1=(1,0),\quad \mathbf{v}_2=(0,1),\quad \mathbf{v}_3=(2,3).$

$$

The set $\{\mathbf{v}_1,\mathbf{v}_2\}$ is a basis for $\mathbb{R}^2$, so it already spans the plane. The third vector $\mathbf{v}_3$ is a combination of them:

$$

$\mathbf{v}_3=2\mathbf{v}_1+3\mathbf{v}_2.$

$$

That means the set $\{\mathbf{v}_1,\mathbf{v}_2,\mathbf{v}_3\}$ is spanning, but not linearly independent.

This is an important pattern: when a set has more vectors than the dimension of the space, linear dependence must occur. When a set has fewer vectors than the dimension, it cannot span the space.

Finding Dimension of Common Spaces

Some vector spaces are easy to recognize, and their dimensions are standard.

1. The space $\mathbb{R}^n$

The dimension of $\mathbb{R}^n$ is $n$. This follows from the standard basis:

$$

$\{\mathbf{e}_1,\mathbf{e}_2,\dots,\mathbf{e}_n\},$

$$

where each $\mathbf{e}_i$ has a $1$ in position $i$ and $0$ elsewhere.

2. A line through the origin in $\mathbb{R}^2$ or $\mathbb{R}^3$

Any line through the origin is $1$-dimensional. A single nonzero vector on that line can serve as a basis. For example, the set

$$

\{(2,5)\}

$$

spans the line through $(2,5)$ and the origin.

3. A plane through the origin in $\mathbb{R}^3$

A plane through the origin is $2$-dimensional. It needs two independent vectors to span it. For instance, the vectors

$$

(1,0,0)\quad \text{and} \quad (0,1,0)

$$

span the $xy$-plane.

4. The zero vector space

The space containing only the zero vector has dimension $0$. Its basis is the empty set. This may feel surprising, but it is mathematically correct: there are no nonzero directions needed to describe only the zero vector.

5. Polynomial spaces

The space of polynomials of degree at most $2$, written $P_2$, has dimension $3$. A basis is

$$

$\{1,x,x^2\}.$

$$

Every polynomial in $P_2$ can be written as

$$

$a+bx+cx^2,$

$$

which is a linear combination of those three basis vectors.

This shows that dimension is not only about geometric arrows in space. It also works for functions, polynomials, matrices, and other kinds of vector spaces.

Dimension and Basis: Why They Must Match

One of the most important facts in linear algebra is that every basis of a vector space has the same number of vectors. That number is the dimension.

Why is that true? The idea is that if one basis had fewer vectors than another, then the smaller one could not span the whole space. If one basis had more vectors than another, then the larger one would have redundant vectors and would not be linearly independent. So all bases must have the same size.

This fact lets us use dimension as a reliable measurement of a space. Once you know the dimension, you know the size of every basis.

Here is a practical example. Suppose a subspace of $\mathbb{R}^3$ is spanned by the vectors

$$

$\mathbf{u}_1=(1,1,0),\quad \mathbf{u}_2=(2,2,0),\quad \mathbf{u}_3=(0,1,0).$

$$

The vector $\mathbf{u}_2$ is actually $2\mathbf{u}_1$, so it does not add a new direction. The set can be reduced to

$$

\{(1,1,0),(0,1,0)\}.

$$

These two vectors are linearly independent and still span the same plane-like subspace in the $xy$-plane. So the dimension of that subspace is $2$.

This example shows a common procedure: remove dependent vectors from a spanning set until the remaining vectors are independent. The number left is the dimension of the subspace.

Using Dimension to Check Reasoning

Dimension gives a quick way to check whether something is possible.

Example 1: Can three vectors span $\mathbb{R}^2$?

Yes. Since $\mathbb{R}^2$ has dimension $2$, any spanning set must have at least $2$ vectors, and it may have more. Three vectors can span $\mathbb{R}^2$ if at least two of them are independent and together cover the plane.

Example 2: Can two vectors span $\mathbb{R}^3$?

No. Since $\mathbb{R}^3$ has dimension $3$, a spanning set must have at least $3$ vectors.

Example 3: Can four vectors in $\mathbb{R}^3$ be linearly independent?

No. Since the dimension is $3$, no linearly independent set in $\mathbb{R}^3$ can have more than $3$ vectors.

These checks are very useful when solving problems. Instead of calculating everything from scratch, you can use dimension to predict the outcome. That saves time and helps avoid mistakes. ✅

Conclusion

Dimension is the number of vectors in a basis, and that number tells us how many independent directions a vector space has. It connects directly to span and linear independence: a basis spans the space and is linearly independent, and every basis has the same size. students, when you understand dimension, you can analyze whether a set of vectors is enough to span a space, whether it contains redundancy, and how big a basis must be. Dimension is one of the best tools for organizing the ideas of span, linear independence, and basis into a single clear framework.

Study Notes

  • Dimension is the number of vectors in any basis of a vector space.
  • A basis must both span the space and be linearly independent.
  • All bases of the same vector space have the same number of vectors.
  • $\dim(\mathbb{R}^n)=n$.
  • A line through the origin has dimension $1$.
  • A plane through the origin has dimension $2$.
  • The zero vector space has dimension $0$.
  • In an $n$-dimensional space, any linearly independent set has at most $n$ vectors.
  • In an $n$-dimensional space, any spanning set has at least $n$ vectors.
  • If a set has more vectors than the dimension of the space, it must be linearly dependent.
  • If a set has fewer vectors than the dimension of the space, it cannot span the space.
  • Dimension helps verify answers and understand the structure of vector spaces, subspaces, and polynomial spaces.

Practice Quiz

5 questions to test your understanding

Dimension — Linear Algebra | A-Warded