Should we always regard a $1\times 1$ matrix as a scalar? (I think, "yes".) And if so, how should we address this in our elementaty Linear Algebra courses? Let me give an example to illustrate my question.
Suppose $A= \left[\begin{array}{rr}1 & 2 \\-2 & 1\end{array}\right],$ $B = \bigl[-2\,,2\bigr],$ and and $C = \left[\begin{array}{r}4 \\5\end{array}\right].$ Then the calculation \begin{equation} A(BC) = \left[\begin{array}{rr}1 & 2 \\-2 & 1\end{array}\right] \left(\begin{array}{r} \bigl[-2\,,2\bigr] \\ \rule{1pt}{0pt} \end{array}\left[\begin{array}{r}4 \\5\end{array}\right] \right) = \left[\begin{array}{rr}1 & 2 \\-2 & 1\end{array}\right]\cdot 2 = \left[\begin{array}{rr}2 & 4 \\-4 & 2\end{array}\right] \end{equation} seems completely reasonable, doesn't it? And yet it's technically incorrect, since $A$ is a $2\times 2$ matrix and $BC$ is a $1\times 1$ matrix.
I've ben trying to come up with a technically correct way to conclude that $A(BC)$ can indeed by computed as above. And here's the best I can come up with. There's an obvious bijection, let's call it $J$, from the the $1\times 1$ matrices to the scalars, with $x = J([x])$ for any scalar $x$. If we want to be able to carry out ``$A(BC)$'' as above, what we really mean is that it is equal to $AJ\bigl([BC]).$
But someone could ask how we know when it's appropriate to interpret $A(BC)$ as $2A$ and when it's appropriate to interpret that product as undefined. My own answer is that it depends on context or something, but that seems unsatifying to me.
Does anyone know of a good way to address this matter, which is both rigorous at the foundational level and can easily be inserted into an elementary discussion? For example, when we define multiplication of two matrices, should we add a caveat that any $1\times 1$ matrix should be be regard as a scalar? But then, is there ever a situation where we want to regard a $1\times 1$ matrix as just that, and calling it scalar would mess something else up at the level of foundations/definition?
Thanks in advance. -JGW
If we refrain from this sort of usage, then for example how would we present and prove the Sherman Morrison formula?
– Gordon Jun 07 '22 at 01:54