Assuming $A$ and $B$ are invertible matrices and are of proper dimensions to be multiplied (say, $2\times2$), is the following expression correct for all examples of matrices $A$ and $B$?
$$(A^{-1}B)(AB^{-1}) = A^{-1}BAB^{-1} = A^{-1}AB^{-1}B = I^2 = I$$
My understanding is that for matrices $A$ and $B$, $AB$ doesn't necessarily equal $BA$ as matrix multiplication is not commutative.
I'm trying to simplify the below expression:
$$(AB)^{-1}(AC^{-1})(D^{-1}C^{-1})^{-1}D^{-1}$$
Nothing is given about the matrices $A$, $B$, $C$, or $D$ beyond that they are invertible and of correct dimensions such that any matrix multiplication is possible. My process is as below:
$$\begin{align}(AB)^{-1}(AC^{-1})(D^{-1}C^{-1})^{-1}D^{-1} &= (A^{-1}B^{-1})(AC^{-1})(DC)D^{-1}\\ &= A^{-1}B^{-1}AC^{-1}DCD^{-1}\\ &= B^{-1}A^{-1}AC^{-1}CDD^{-1}\\ &= B^{-1}I^3\\ &= B^{-1}\end{align}$$
You'll notice the error I've made here: $(AB)^{-1} = (B^{-1}A^{-1})$, not $(A^{-1}B^{-1})$, but in the end it doesn't change the answer. The answer in the textbook is indeed $B^{-1}$. According to the above:
$$(B^{-1}A^{-1}) = (A^{-1}B^{-1})$$
But matrices are not commutative? Why does the algebra suggest they are?