If $A,B,C,D,E$ are $n\times n$ matrices, does $AB=CD$ imply $AEB=CED$?
I only know that $AB=CD \implies ABE=CDE$, but I don't see how you can sandwhich $E$ within it.
Also, if $AB=CD=0$, does $\det(AB)=\det(CD)=0$?
I think this should be true because $AB$ and $CD$ are the same matrices and $\det(0)=0$
The first question is not true as the following counterexample shows:
$$ A = B = \begin{bmatrix} 0 & 1\\ 0 & 0 \end{bmatrix} \\ C = D = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}\\ E = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$$ We get $$ AB = 0 = CD$$ but $$AEB = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}\\ CED = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}$$