Skip to main content

Rank of matrices

Consider a m×nm\times n matrix AA of rank rr.
So we have nn column vectors in Rm\mathbb{R}^m, and there are (nr)(n-r) column vectors which we can get by the linear combination of other rr column vectors.
We describe rank as number of pivots of a matrix.

info

# pivots can't be >\gt # rows (mm), so rmr\leq m
# pivots can't be >\gt # columns (nn), so rnr\leq n

Full column rank matrix

Consider a m×nm\times n matrix AA of rank rr and m>nm\gt n.
Here Rank(A)=r=n\text{Rank}(A)=r=n it means that all of the column vectors are independent, # pivots =n=n \Rightarrow # free column vectors =0=0.

note

Can we always get a solution, can we always find xx such that Ax=bA\vec{x}=\vec{b} for every b\vec{b}?
Here in AA we have nn independent vectors in Rm\mathbb{R}^m and m>nm\gt n, to fill a mm dimensional space we alteast need mm independent vectors, but we had nn independent vectors and n<mn\lt m so we don't have enough vectors to fill Rm\mathbb{R}^m.
Linear combination of nn independent vectors can't give us a space in Rm\mathbb{R}^m
So we can't get every vector b\vec{b} by the linear combinations of those independent vectors.
So answer is No we can't get every b\vec{b}.

We have no free vectors here so Null Space of AA is just 0\vec{0}, so Ax=0A\vec{x}=\vec{0} has only one solution that is x=0\vec{x}=\vec{0}
Complete solution of Ax=bA\vec{x}=\vec{b} is x=xp+xn=xp+0=xp\vec{x}=\vec{x}_p+\vec{x}_n=\vec{x}_p+\vec{0}=\vec{x}_p

info

So complete solution is just a single vector xp\vec{x}_p if it exists.
# solution = {1 if there is a solution0 otherwise\left\{\begin{matrix} 1 & \text{ if there is a solution} \\ 0 & \text{ otherwise} \\ \end{matrix}\right.

Example:

A=[14233241]A = \begin{bmatrix} 1 & 4\\ 2 & 3\\ 3 & 2\\ 4 & 1\\ \end{bmatrix}
Can we always get a solution, can we always find xx such that Ax=bA\vec{x}=\vec{b} for every b\vec{b}?
Here in AA we have 22 vectors in R4\mathbb{R}^4.
and linear combination of 22 vector can give us a space in R2\mathbb{R}^2 so we can only get those b\vec{b} which are in the linear combination(plane) of those two vectors.

possible b\vec{b} is

b=α[1234]+β[4321];α,βR\vec{b}= \alpha\begin{bmatrix} 1\\2\\3\\4\\ \end{bmatrix} +\beta\begin{bmatrix} 4\\3\\2\\1\\ \end{bmatrix};\quad \alpha,\beta\in\mathbb{R}

So answer is No we can't get every b\vec{b}

Row reduced echelon form is

[10010000]=[I2×20]\begin{bmatrix} \fbox{1} & 0 \\ 0 & \fbox{1} \\ 0 & 0 \\ 0 & 0 \\ \end{bmatrix} = \begin{bmatrix} I_{2\times2}\\0 \end{bmatrix}

So # of pivots are 22

Full row rank matrix

Consider a m×nm\times n matrix AA of rank rr and m<nm\lt n.
Here Rank(A)=r=m\text{Rank}(A)=r=m now all of the column vectors are not independent, # pivots =m=m \Rightarrow # free column vectors =nr=n-r.

note

Can we always get a solution, can we always find xx such that Ax=bA\vec{x}=\vec{b} for every b\vec{b}?
Here in AA we have mm independent vectors in Rm\mathbb{R}^m, so we have enough vectors to fill Rm\mathbb{R}^m.
Linear combination of mm independent vectors can give us a space in Rm\mathbb{R}^m
So we can get every vector b\vec{b} by the linear combinations of those independent vectors.
So answer is Yes we can get every b\vec{b}.

Here we have nrn-r free vectors so Null Space of AA is in Rnr\mathbb{R}^{n-r}.

info

# solutions are \infty

Example:

A=[12344321]A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 4 & 3 & 2 & 1 \\ \end{bmatrix}
Can we always get a solution, can we always find xx such that Ax=bA\vec{x}=\vec{b} for every b\vec{b}?
Here in AA we have 44 vectors in R2\mathbb{R}^2 and out of those 22 vectors are independent.
And linear combination of 22 independent vector can give us a space in R2\mathbb{R}^2. So we covered the whole 22-dimensional space.
So answer is Yes we can get every b\vec{b}.

Row reduced echelon form is

[10120123]=[I2×2F2×2]\begin{bmatrix} \fbox{1} & 0 & -1 & -2 \\ 0 & \fbox{1} & 2 & 3 \\ \end{bmatrix} = \begin{bmatrix} I_{2\times2} & F_{2\times2} \end{bmatrix}

So # of pivots are 22

Full rank matrix

Consider a m×nm\times n matrix AA of rank rr and m=nm = n.
Here Rank(A)=r=n\text{Rank}(A)=r=n it means that all of the column vectors are independent, # pivots =n=n \Rightarrow # free column vectors =0=0.

note

Can we always get a solution, can we always find xx such that Ax=bA\vec{x}=\vec{b} for every b\vec{b}?
Here in AA we have nn independent vectors in Rn\mathbb{R}^n, so we have enough vectors to fill Rn\mathbb{R}^n.
Linear combination of nn independent vectors can give us a space in Rn\mathbb{R}^n
So we can get every vector b\vec{b} by the linear combinations of those independent vectors.
So answer is Yes we can get every b\vec{b}.

We have no free vectors here so Null Space of AA is just 0\vec{0}, so Ax=0A\vec{x}=\vec{0} has only one solution that is x=0\vec{x}=\vec{0}

info

# solutions = 11
row reduced echelon form of AA is In×nI_{n\times n}