Finding the rank of the matrix directly from eigenvalues

Let $e$ denote eigenvalues and $$e_1=0\\ e_2=2 \\ e_3=2 \\$$

Let $B$ be a $3\times3$ matrix. This information is certainly enough to find the rank of the matrix B(according to Gilbert Strang) And the rank would be $r=2$. But how come?

I know that the determinant is $0$ so rank can't be 3. But how come it's 2 but not 1? Can't it be 1?

My approach of thinking is below .

Is it because these three eigenvalues would correspond the two different eigenvectors. And since two different eigenvectors are in the $C(B)$ this would make B $r=2$. But how do we know that eigenvectors are linearly independent? are they always linearly independent? And do distinct eigenvalues always form the same eigenvector?

• How are your $e_i$ defined? Just as the three roots (with multiplicity) of $\det(B-xI)$, i.e., numbers such that $\det(B-xI)=(e_1-x)(e_2-x)(e_3-x)$? – Hagen von Eitzen Jul 30 '16 at 16:49

The rank of a matrix is defined as the dimension of the column space. Let $r$ denote the rank of a matrix, $A$, defined over a finite-dimensional vector space, $V$.

The rank theorem (sometimes called the rank-nullity theorem) relates the rank of a matrix to the dimension of its Null space (sometimes called Kernel), by the relation: $\mathrm{dim} V = r + \mathrm{dim ~ Null } A$

But how does this relate to eigenvalues and eigenvectors?

Recall a definition of an eigenvalue, $\lambda$ is an eigenvalue of a linear transformation, $T$, if and only if there exists a nonzero $v \in V$ such that $Tv = \lambda v \iff (T- \lambda I)v = 0$.

Recall the definition of an eigenvector, $v$ is an eigenvector of the linear transformation $T$ with eigenvalue $\lambda$ if and only if there exists an eigenvalue $\lambda$ such that $Tv = \lambda v \iff (T- \lambda I)v = 0$

Thus it makes sense to define the eigenspace as the set of all eigenvectors (which happens to be a subspace), i.e., the set of all vetors such that $(T- \lambda I)v = 0$, which is just the null space of $(T- \lambda I)$. So: $\mathrm{E}(\lambda, T) = \mathrm{Null}(T- \lambda I)$.

This shows you the relationship between eigenspaces and null spaces. How do you relate this back to the null space of $T$? Well, take $\lambda = 0$. Then:

$$E(0, T) = \mathrm{Null} ~ T$$

So the null space of $T$ is exactly the dimension of the eigenspace corresponding to eigenvalue $0$. By the rank theorem, we relate this back to the rank of the matrix:

$$\mathrm{rank}(T) = \mathrm{dim}V - \mathrm{dim ~ E}(0, T)$$

Now, a few common misconceptions often appear. Many people will initially think that the dimension of the eigenspace is equal to the (algebraic) multiplicity of the eigenvalue, but this is not true. Consider:

$$B = \begin{bmatrix} 0 & 1&0 \\0&0&1\\0&0&0\end{bmatrix}$$

For this matrix, the eigenvalue $0$ has an algebraic multiplicty of $3$, but the dimension of the eigenspace corresponding to $0$ (And thus the null space of this matrix) is only 1:

$\mathrm{Null}B = \mathrm{span}\left(\begin{bmatrix} 1\\0\\0 \end{bmatrix}\right)$.

So to calculate the dimension of the eigenspace corresponding to eigenvalue $0$, you cannot just count the number of times $0$ is an eigenvalue, you must find a basis for $Null(A)$ and then see how long the basis is, determining the dimension of the null space. From there, you can get the rank from the rank theorem.

But we do have an upper bound, the dimension of each eigenspace (geometric multiplicity) cannot be larger than the (algebraic) multiplicity of the eigenvalue in general. See here for why.

In your example, $0$ is an eigenvalue, which means there exists a nonzero eigenvector, $v$, such that $Tv=0$, so the dimension of the null space is at least $1$. We cannot have the dimension of the null space larger than $1$, because the geometric multiplicity is less than or equal to the algebraic multiplicity, and you were given the algebraic multiplicity of $0$ is $1$.

This means that the dimension of the eigenspace corresponding to eigenvalue $0$ is at least $1$ and less than or equal to $1$. Thus the only possibility is that the dimension of the eigenspace corresponding to $0$ is exactly $1$. Thus the dimension of the null space is $1$, thus by the rank theorem the rank is $2$. It cannot be less than 2, because the dimension of the eigenspace corresponding to $0$ cannot be greater than the algebraic multiplicity, forcing the rank to be $2$.

First, on linearly independent eigenvectors:

Eigenvectors with distinct eigenvalues are always linearly independent. I'll show you a proof of the following theorem for you (I cite Axler's Linear Algebra Done Right for much of this proof):

Let $\lambda_1, ... , \lambda_m$ be distinct eigenvalues of $T$ where $v_1, ... , v_m$ are corresponding nonzero eigenvectors, then $v_1, ... , v_m$ is linearly independent.

We will proceed by contradiction; Assume the list is linearly dependent:

Let $k$ be the smallest integer such that $v_1, ... v_{k-1}$ is linearly independent. Then adding $v_k$ makes the list linearly dependent, so we can write:

$v_k = a_1v_1 + ... + a_{k-1}v_{k-1}$ for some $a_1, ... , a_{k-1}$, or

$\lambda_kv_k = \lambda_k(a_1v_1 + ... + a_{k-1}v_{k-1}) ~~~~~~~~~~~~~~~~~~~~~$(*)

(multiplying both sides by $\lambda_k$)

Apply $T$ to both sides of the first equation (recall each $v_k$ is an eigenvector):

$$\lambda_k v_k = \lambda_1a_1v_1 + ... + \lambda_{k-1}v_{k-1}$$

Subtracting this equation from (*) produces:

$$0 = a_1(\lambda_k-\lambda_1)v_1 + ... + a_{k-1}(\lambda_k-\lambda_{k-1})v_{k-1}$$

Since $v_1, ... , v_{k-1}$ are linearly independent by assumption, we must have that all $a_i$ are zero (since no $\lambda_k-\lambda_i$ is zero because we assumed the eigenvalues are distinct). Then that means $v_k = 0$, but we assumed $v_k$ was nonzero. This is the contradiction we need, so we must have that $v_1, ... , v_m$ is linearly independent.

So, eigenvectors with distinct eigenvalues are linearly independent. Eigenvectors with the same eigenvalue may be linearly dependent (Let $v$ be an eigenvector, then $av$ is also an eigenvector ($a \in \mathbb{F}$) because $T(av) = aT(v) = a\lambda v$). But as I said above, by calculating the dimension of the null space, you can determine the dimension of the eigenspace and thus the number of linearly independent eigenvectors corresponding to the same eigenvalue that you can have.

I'm not quite sure what you mean by "Does [sic] distinct eigenvalues always form the same eigenvector?" but I think this proof of linearly independence of eigenvectors with distinct eigevalues will answer whatever concern you had.

As for why your approach didn't work, you cannot use that there are two linearly independent eigenvectors corresponding to eigenvalue $2$, and thus the dimension of the column space is $2$, because you don't know the dimension of the eigenspace is 2. You would need to calculate $\mathrm{Null}(A-2I)$. We can have a transformation where the eigenvalue 2 has multiplicity 2, but the dimension of the eigenspace is not 2. Namely:

$$\begin{bmatrix}0&0&0\\0&2&1\\0&0&2\end{bmatrix}$$

• Such a great explanation, that's what I needed. Awarding bounty in 18 hours. – Xenidia Aug 3 '16 at 19:36
• @LGezelis The restriction that an eigenvector need not be 0 is not necessary with the way I defined the terms, and, I want $0$ to be an eigenvector, so I can define the eigenspace as the set of all eigenvectors and it will be a subspace. By defining an eigenvalue as a $\lambda$ where there exists a nonzero $v$ such that $Tv = \lambda v$, we avoid that $0$ would have to be an eigenvector with every $\lambda$ an eigenvalue, because there must be a nonzero $v$ such that $Tv = \lambda v$. When there is a nonzero eigenvector, I want $0$ to be an eigenvector with that eigenvalue. – Christian Sep 22 '16 at 14:08
• It's a matter of preference of definitions, and as long as I defined it carefully to avoid the problem I addressed, which I did, the definition I had made is perfectly valid. – Christian Sep 22 '16 at 14:10

The rank is equal to the dimension of the space minus the dimension of the kernel.

The dimension of the kernel is equal to the dimension of the eigenspace for the eigenvalue $0$.

• Note however that we may have $\det(B-xI)=-x^3$ and yet $B$ has rank $2$. – Hagen von Eitzen Jul 30 '16 at 16:51
• You're right, it depends exactly on how de $e_i$ are defined, assuming they form a basis for each eigenvalue it works. – Jorge Fernández Hidalgo Jul 30 '16 at 16:56
• I see, so rank is =$r=n-(n-r)$. I got it right, right? – Xenidia Jul 30 '16 at 18:38