Basis
Basis for vector space vs subspace
Basis can be defined both for vector spaces and subspaces. But usually if nothing is mentioned it is typical to infer them as basis for vector space.
Definition: Basis of a vector space (subspace) is a set of vectors that are:
- Linearly independent.
- Spans the entire vector space i.e.
Every basis of a given vector space has the same size.
Basis vectors do not need to be orthogonal.
It is common to develop this misconception, because most of the time the basis we work with are orthogonal. They are referred to as orthogonal basis. But in general basis do not need to be orthogonal.
In a sense, basis is the most efficient spanning set for vector space (or subspace). By most efficient, I mean there is “no redundant vector” which can be formed from the other vectors in the basis set.
Let’s go through a concrete example to get a better understanding. Let’s restrict ourselves to .
Consider two vectors in ,
- Are they linearly independent? : Yes, because it is not possible to generate one vector from the other by taking linear combination. In other word, one vector in this set do lie in the span of the other vector.
- Do they span the entire vector space : No, because they span of these two vectors only fills in a plane in which is a subspace of , not the entire . Therefore, it is not possible to generate any vector in by taking the linear combination of these two vectors.
Linearly Independent Set | ✔️ |
Basis | ❌ |
Spanning Set | ❌ |
Now consider the following three vectors:
- Are they linearly independent?: Yes.
- Do they span the entire vector space : Yes
Linearly Independent Set | ✔️ |
Basis | ✔️ |
Spanning Set | ✔️ |
Now consider the following four vectors:
- Are they linearly independent?: No. Because we have a redundant vector , which can be formed by linear combination of the other vectors.
- Do they span the entire vector space : Yes. Even though there is a redundant vector, these vectors span the entire .
Linearly Independent Set | ❌ |
Basis | ❌ |
Spanning Set | ✔️ |
Based on the discussion above we can claim the following:
This means:
- Every spanning set contains a basis.
- Every linearly independent set can be extended to a basis.
Another interpretation of the equation above is:
- Basis is a maximal linearly independent set. This means if any other vector is added to the set, it will no longer be a linearly independent set.
- Basis is a minimal spanning set . This means if any vector is removed from the set it will no longer be a spanning set.
Dimension
Dimension is defined as the number of basis vectors for a vector space (or subspace). For example, in , the basis consist of three basis vectors hence, the dimension of is . Mathematically, we would write that as . In general for a dimensional vectors space, .
In a sense, dimension measure the “degrees of freedom” of a vector space or subspace.
Rank
One of the fundamental theorem in linear algebra is column rank equals row rank. Because of this, normally no distinction is made when the term “rank” is used. But let’s go through it without this notion.
Column Rank
Definition: The column rank of a matrix is the dimension of the column space (or range or image) of a matrix.
This definition can be interpreted as follows:
The column rank refers to the number of linearly independent columns.
Row Rank
Definition: The row rank of a matrix is the dimension of the row space of a matrix.
Here, we used a trick which is taking the transpose of the matrix, which coverts the rows into columns. This means we can just use the definitions for the column rank with the transposed version of the matrix.
The definition can be interpreted as follows:
The row rank refers to the number of linearly independent rows.
Some facts about rank:
- If a matrix has a rank of that means there are linearly independent columns and linearly independent rows.
- If a matrix is full rank that means all the columns and rows are linearly independent columns.
- Column rank is always equal to row rank.
- For a matrix , . This can be deduced from the fact that row rank is always equal to column rank.
- For a full rank matrix .
Nullity
Nullity is defined as the dimension of the null space.