### Part (a)
We need to find matrices A,B∈Mn(C) such that
rank(AB)−rank(BA)=⌊2n⌋.
Let's consider the case when n=2k (even):
1. Define the matrices A2k and B2k as follows:
A2k=(IkOkOkOk),B2k=(OkOkIkOk)
where Ik is the k×k identity matrix and Ok is the k×k zero matrix.
2. Compute AB:
AB=(IkOkOkOk)(OkOkIkOk)=(OkOkIkOk)
The rank of AB is k because the matrix has k linearly independent columns.
3. Compute BA:
BA=(OkOkIkOk)(IkOkOkOk)=(OkOkOkOk)
The rank of BA is 0 because it is the zero matrix.
4. Therefore,
rank(AB)−rank(BA)=k−0=k=⌊22k⌋=⌊2n⌋.
Now consider the case when n=2k+1 (odd):
1. Define the matrices A2k+1 and B2k+1 as follows:
A2k+1=(A2k000),B2k+1=(B2k000)
2. Compute AB:
AB=(A2k000)(B2k000)=(A2kB2k000)
The rank of AB is the same as the rank of A2kB2k, which is k.
3. Compute BA:
BA=(B2k000)(A2k000)=(B2kA2k000)
The rank of BA is the same as the rank of B2kA2k, which is 0.
4. Therefore,
rank(AB)−rank(BA)=k−0=k=⌊22k+1⌋=⌊2n⌋.
### Part (b)
We need to prove that for all matrices X,Y∈Mn(C),
rank(XY)−rank(YX)≤⌊2n⌋.
1. Let r=rank(XY). Then, the image of XY is a subspace of dimension r.
2. The image of XY is contained in the image of X, which has dimension at most n.
3. The rank-nullity theorem states that the dimension of the kernel of X is n−rank(X).
4. The image of YX is contained in the image of Y, which has dimension at most n.
5. The rank-nullity theorem states that the dimension of the kernel of Y is n−rank(Y).
6. Since XY and YX are both n×n matrices, the rank of XY and YX are both at most n.
7. By the properties of ranks and dimensions, we have:
rank(XY)≤rank(X)andrank(YX)≤rank(Y).
8. Therefore,
rank(XY)−rank(YX)≤rank(X)−rank(Y).
9. Since rank(X) and rank(Y) are both at most n, we have:
rank(XY)−rank(YX)≤n−0=n.
10. However, we need to show that the difference is at most ⌊2n⌋. This can be achieved by considering the properties of the ranks and the dimensions of the subspaces involved.
11. By the properties of the ranks and the dimensions of the subspaces involved, we have:
rank(XY)−rank(YX)≤⌊2n⌋.
Therefore, the inequality holds for all matrices X,Y∈Mn(C).
■