The total angular momentum J can be written as $$ J^2 = L^2 + S^2 + 2 L \cdot S .$$ Now, I assume this is a simplification of a more general tensor rule that $$ (M + N )^2 = M^2 + N^2 + M \cdot N + N \cdot M ,$$ where $ M = A \otimes B $, for instance, and $ N = C \otimes D .$
I'm questioning my understanding of this rule now. I thought it came from something as simple as $$( M + N ) (M + N ) = A^2 \otimes B^2 + A C \otimes B D + C A \otimes D B + C^2 \otimes D^2 = M^2 + N^2 + M \cdot N + N \cdot M .$$
This "proof" does not extend to 3 dimensions. For example, for the exercise to compute $ (\bar P - \frac{q}{c} A)^2 $ , one may write this as $ P^2 + A'^2 + P \cdot A' + A' \cdot P $ according to Sakurai, where I've allowed the $ A' $ to swallow the constants to its left.
So, what gives? How would you go about showing this identity? If I blindly multiply as I did in the 2D case, you would receive several cross terms. Even just computing $ (\bar P)^2 $ would result in a 9-term sum since there are 3 separate terms in $ \bar P = P_x \otimes I \otimes I + I \otimes P_y ... $ etc.
I'm guessing I'm either getting the "tensor multiplication" rules wrong, or I'm getting the definition of $ ^2 $ wrong for tensor multiplication.
EDIT: after clarification for a different question, I see that $ P_x \ne P_x \otimes I \otimes I$ Idk why but I associated "different directions" to "different tensor spaces". I think this was what Zero was getting at (thanks). But the two answers below still hold so that you don't get ugly cross terms like $ P_x P_y $ or something when doing the square.