Spatial Algebra

Change of Basis

Be VERY CAREFUL

Matrix multiplication is associative, but not commutative.

https://chat.openai.com/share/544dedb7-d4dd-4719-b304-c7e2fbeb3400

In the context of transformations, the order in which operations are applied is crucial. Suppose we have two matrices and that represent two different transformations. Multiplying these matrices in different orders will generally yield different results: .

Although matrix multiplication is associative , this does not mean that it is commutative in general.

In many applications like computer graphics or robotics, transformations are often represented in “column-major” form. In such a setup, points are column vectors and are transformed by right-multiplying them with transformation matrices:

  • is a transformation matrix
  • is the original point
  • and is the transformed point

When you multiply on the RHS, you can intuitively read the series of transformations from right to left, giving you a “pipeline” of operations. For example, let’s say you first want to rotate a point and then translate it. You can represent this as:

In matrix form, it becomes:

  • is the translation matrix and
  • is the rotation matrix

Notice that we right-multiplied by and then right-multiplied the result by , preserving the desired sequence of transformations.