Basis and Dimension - drnickmines/MinesLinearAlgebra GitHub Wiki
Remember, we are in the middle of our theoretical module. It's a lot of definitions, theorems, and proofs. We are building a foundation to get to the applications of linear algebra. Much of what makes linear algebra useful is based on the ideas of linear independence, the span of vectors, and on various subspaces.
We've seen a few important subspaces of
A basis of a subspace is a collection of vectors that allows us to fully understand the space. The definition:
Definition: A set of vectors
$\large \lbrace \vec{v_1},\vec{v_2},\dots,\vec{v_m}\rbrace$ in a subspace$\large H$ is called a basis of$\large H$ if:
$\large \text{Span}\lbrace\vec{v_1},\vec{v_2},\dots,\vec{v_m}\rbrace=H$ $\large \lbrace\vec{v_1},\vec{v_2},\dots,\vec{v_m}\rbrace$ is a linearly independent set of vectors.
As a quick example, the standard unit basis vectors
Let's look at an example. Is the following set a basis for
The solution is worked out in the following video:
If we take the approach of the video on the following sets, we can determine which are bases of
- The set on the left is not a basis. The vectors are linearly independent, but they don't span
$\large \mathbb{R}^3$ ! (It's too small to be a basis.) - The set in the middle is not a basis. The vectors span
$\large \mathbb{R}^3$ , but they aren't linearly independent! (It's too big to be a basis.) - The set on the right is a basis. It's just right! The vectors are linearly independent and they span
$\large \mathbb{R}^3$ .
Note
We can characterize a basis as the smallest possible spanning set of a subspace or as the largest possible linearly independent set in a subspace. It is neither too hot nor too cold...it's just right.
Here's an example where the subspace is not all of
First of all, we know
Click to see the answer
Five vectors in
$\large \mathbb{R}^4$ cannot be linearly independent! This set is too big. We need to trim it.
So how do we find the basis? Let's see in the video:
The video makes use of the following fact: the columns of
Remember, any set
- If
$\large B$ spans$\large H$ but is not a basis, we can get a basis by removing appropriate vectors from$\large B$ . - If
$\large B$ is linearly independent but is not a basis, we can get a basis by adding appropriate vectors to$\large B$ .
All bases of
Definition: The dimension of a vector space
$\large V$ (or subspace) is the number of vectors in a basis for$\large V$ . We write$\large \text{Dim}(V)$ .
Note
As we'd expect, the dimension of
Let's see an example. Let's define a subspace of
What is
If we already happen to know the dimension of a vector space, it is easier to tell if a set of vectors is a basis (we only need to check either of the two conditions in the definition of a basis):
Theorem: If
$\large \text{Dim}(V)=n$ and if$\large S=\lbrace \vec{v_1}, \vec{v_2}, \vec{v_n}\rbrace$ , then:
- If
$\large S$ is linearly independent, then$\large S$ is a basis.- If
$\large S$ spans$\large V$ , then$\large S$ is a basis.
Note
The most common use of this theorem is to recognize that any
We have two subspaces associated with a matrix
-
$\large \text{Col}(A)$ is a subspace of$\large \mathbb{R}^m$ -
$\large \text{Null}(A)$ is a subspace of$\large \mathbb{R}^n$
We give a name to the dimension of each of these subspaces:
Definition: The dimension of
$\large \text{Col}(A)$ is called the rank of$\large A$ . The dimension of$\large \text{Null}(A)$ is called the nullity of$\large A$ .
Note
Yes, this is the same rank that we've seen before. We first defined it to be the number of leading ones in the rref of
Important
Now we have a theoretical definition of rank. Don't forget that rank is just a measure of how much redundancy there is in a matrix, how much of the information is "unique" in some sense.
To find the rank and/or nullity of a matrix, we do the following:
-
$\large \text{Rank}(A)=$ number of leading ones in rref -
$\large \text{Nullity}(A)=$ number of free variables in the solution of$\large A\vec{x}=\vec{0}$
Example: find the rank and nullity of A:
The solution is in the video:
We previously learned that the number of free variables is equal to the number of columns of
Theorem:
At this point, we've done all kinds of things with a matrix
-
$\large A$ is invertible. -
$\large \text{det}(A)\ne 0$ . -
$\large A$ is row equivalent to$\large I$ , the identity matrix. -
$\large A\vec{x}=\vec{0}$ has only the trivial solution. -
$\large A\vec{x}=\vec{b}$ has a unique solution for any$\large \vec{b}$ . -
$\large \text{Col}(A)=\mathbb{R}^n$ . -
$\large \text{Null}(A)=\lbrace \vec{0}\rbrace$ (the set containing only the zero vector). - The columns or rows of
$\large A$ are linearly independent. - The columns of
$\large A$ form a basis for$\large \mathbb{R}^n$ . -
$\large \text{Rank}(A) = n$ . -
$\large \text{Nullity}(A) = 0$ .
Definition: A square matrix
$\large A$ that meets the above criteria is called nonsingular. Otherwise, the matrix is called singular.
Note
Nonsingular matrices are the "good" square matrices, the ones we can easily work with, the ones where we can solve the systems of equations. Most random square matrices are nonsingular.
I can:
- Recall and use the definitions of basis, dimension, rank, and nullity.
- Determine if a set of vectors is a basis for a given subspace.
- Find the dimension of a vector space or subspace.
- Find the rank and nullity of a given matrix.