2x2, 3x3 Matrix Square Calculator
Method 1: See if its rank is 1. If it is 1, it can be written as a row (a) multiplied by a column (b), that is, A=ab. In this case, A^2=a(ba)b. Note that ba is a number here, so it can be proposed that A^2=(ba)A;
Method 2: See if it can be diagonalized. If it can, there is a reversible matrix a, so that a^(-1)Aa=∧, so A=a∧a^(-1), A^2=a∧a^(-1)a∧a^(-1)=a∧^2a^(-1); Finally, use the most primitive method of multiplication, matrix multiplication.