I am rather new to mathematics, so the question is probably a bit stupid.
I've been thinking about non-commutativity as "when the order matters", but then this makes it hard to get the difference between that situation and non-associativity which also seem to be about the order of operations. Can someone help me clear up what probably is a misunderstanding?
Thank you :)
Commutivity is about the order of the operands: $x \circ y = y \circ x$.
Associativity is about the order of the operators: $x \circ (y \circ z) = (x \circ y) \circ z$. Note that although the operators will be performed in a different sequence, the operands are in the same sequence.
As mentioned in the examples, matrix multiplication is associative but not commutative. Non-commutative operations are frequently studied but non-associative ones are more rarely studied.