Matrices, transposes, and inverses
https://www.math.hmc.edu/~dk/math40/math40-lect07.pdf01.02.2012 · Matrix multiplication not commutative In general, AB = BA. Problems with hoping AB and BA are equal: • BA may not be well-defined. • Even if AB and BA are both defined, BA may not be the same size. • Even if AB and BA are both defined and of the same size, they still may not be equal. (e.g., A is 2 x 3 matrix, B is 3 x 5 matrix) (e.g., A is 2 x 3 matrix, B is 3 x 2 matrix)
Algebraic simplification - MATLAB simplify
https://www.mathworks.com/help/symbolic/simplify.htmlThis MATLAB function performs algebraic simplification of expr. In most cases, to simplify a symbolic expression using Symbolic Math Toolbox™, you only need to use the simplify function. But for some large and complex expressions, you can obtain a faster and simpler result by using the expand function before applying simplify.. For instance, this workflow gives better results …