Just multiply all the elements in the diagonal.

  • All non-diagonal entries are zeroed out.
  • When we create our sub-matrices while expanding across row/column, we multiply each entry with it’s cofactor.
  • Only diagonal entries will not cancel out.