For the inverse of a matrix, we learned that to prove two matrices are inverses of each other, you must show that $AB = I = BA$. However, today in class someone claimed you only have to show either $AB = I$ or $BA = I$ to prove they are inverse. I know the commutative property doesn't apply to matrices, so can someone provide an example where $AB = I \ne BA$?
Edit: The question type goes as follows: Given matrix $A$ and matrix $B$, show whether or not the two are inverses. -For this question, do we need to show both $AB = I$ and $BA = I$ or will one or the other suffice?