I want to calculate an expression like $\left( M_1\otimes I+I\otimes M_2 \right) ^l$ with $M_i$'s symbolic matrices and $I$ the identity matrix with Mathematica. $M_i$'s are of the same dimension and my problem is how can I realize such an identity matrix without specifying the dimension of it, it should just work like a matrix multiply any matrix will still be the matrix itself(although it should be the same dimension as all the $M_i$)? Or is there some method that I can specify the dimension of the symbolic matrix $M_i$?
Thanks in advance!
like this
I guess. I forgot the exponent, but you get the general idea I think $\endgroup$MatrixPower
andTensorExpand
or their cousins, but I have not managed to make it work. $\endgroup$