# Maths - Coordinate Free Examples

In the page that led upto this we looked at two categories of algebra that help us express physical representations in a way that is independent of the coordinate system used:

Both of these require leaning a lot of new ideas and techniques which is not easy. So on this page we will try to get a flavor of the different approaches by using simple examples to help you decide which helps your intuitive understanding.

## 3D rotations

We don't need this extra complexity to handle 3D rotations, we can use quaternions or matrices (which we can think of as specific examples of Clifford and tensor algebras respectively) as described on this page. However it may help to start with something relatively familiar.

### Using Clifford algebras

We use the even subalgebra based on 3D vectors which gives us quantities containing a scalar and a 3 dimensional bivector. The rotation transform is represented by:

v' = q * v * q-1

where:

• v',v = output and input vectors
• q = multivector containing scalar and 3D bivector (quaternion).

q is four dimensional but it is normalised to give 3 degrees of freedom.

However here we want to take into account any changes in the coordinate system so we need to define v and q in terms of their coordinates as follows:

v = vx e1 + vy e2 + vz e3

q = qw + qx e2e3 + qy e3e1 + qz e1e2

which gives the formula for the rotation in terms of the basis vectors as:

v' = (qw + qx e2e3 + qy e3e1 + qz e1e2) * (vx e1 + vy e2 + vz e3) * (qw + qx e2e3 + qy e3e1 + qz e1e2) -1

### Using Tensor algebra

We can represent the rotation by a grade 2 tensor (matrix) with two subscripts, one raised and one lowered:

vj=Rij * vi

In the 3D case Rij will be a square 3×3 matrix but we dont allow any linear transform it is constrained to be orthogonal.

The above transformed the coordinates but we could have got the same result by transforming the basis vectors in the opposite direction.

ej= e i * Rji

In 3D with orthogonal coordinates this distinction between transforming the coordinates and transforming the basis vectors has minimal effect on the actual computations but when things get more complicated, for example if we are using curvilinear coordinates then we need to be much more careful about these things.

## Inertia Tensor

At first sight this would appear to be a 3D linear transform similar to the rotation above, for instance it can be used to relate torque and angular acceleration (or L=[I]ω):

T= [I]α

where:

• T= Torque
• [I] = Inertia Tensor
• α = angular acceleration

However what we are interested in here is how it changes with a change in coordinates which is where it is very different. Here we will see that continuously rotational quantities like torque and angular acceleration vary with the reciprocal basis.

### Using Clifford algebras

The inertia tensor maps bivectors to bivectors (for example torque to angular acceleration)

T= i1 α1 e2 e3 + i2 α2 e3 e1 + i3 α3 e1 e2

where:

• i1,i2,i3 = eigen vectors (symmetry axes)
• α123 = components of angular acceleration
• e1,e2,e3 = basis vectors

If the basis vector is e then :

Ie = e•Ie

where:

I = pseudoscalar

### Using Tensor algebra

How do we represent rotational quantities like ω=v×r and α=a×r in tensor algebra? Since they can be formed from cross products we can use

v×r = εijkvjrk

where:

• εijk = permutation symbol

An alternative way to investigate this is to convert the rotational quantity as a anti-symmetric grade 2 tensor:

[~w]=
 0 -ωz ωy ωz 0 -ωx -ωy ωx 0

Yet another approach is to use the determinant:

v×r= det
 e1 e2 e3 vx vy vz rx ry rz

where:

• e1,e2,e3 = basis vectors.

So what about the inertia tensor itself?

 N Ijk = Σ mk(rkδij - rki rkj) k=1

where:

δij = Kronecker delta

Ie = [l m n]
 Ix -Pxy -Pxz -Pxy Iy -Pyz -Pxz -Pyz Iz
 l m n