Having $X,Y$ being symbols for matrices, I was wondering if there is a way to simplify expressions like
KroneckerProduct[X, X] + KroneckerProduct[-X, X]
to give zero. Or
KroneckerProduct[2 X, 3 Y]
to produce something like:
6 KroneckerProduct[X, Y]
In general if $a,b$ are scalars, and $X,Y$ are matrices we have this mathematical identity:
KroneckerProduct[a X, b Y] == a*b KroneckerProduct[X, Y].
{}
button above the edit window. The edit window help button?
is also useful for learning how to format your questions and answers. You may also find this this meta Q&A helpful $\endgroup$