# Rank of product of two square matrices

#### KLHON

Let A, B be two different nxn square matrices and that their inverses do not exist. Under what conditions do rank(AB) = rank(BA)

$$\displaystyle \text{rank}(B A)=\text{rank}(A)-\dim (\ker B\cap \text{range} A)$$