Let A be an n × n matrix. Define the determinantal rank detrankA to be the greatest value of r such that there is an r × r submatrix B of A (that is, a matrix B obtained by deleting n − r rows and n − r columns from A) such that detB $\neq$ 0. Show that detrankA = rankA.