I would like to know how to tell Maple not to assume that two things commute, that is, AB != BA. I would like to be able to have maple expand expressions such as

(A+B)^2 = A^2 + AB + BA + B^2

instead of having it collect terms and ignore the multiplication order as it does when I use the "expand()" function.

Please Wait...