The general case
The operator
"Rotation with the angle around a specified axis"
discussed above is an orthogonal mapping and its matrix relative any base vector system is therefore an
orthogonal matrix . Further more its determinant has the value 1.A non-trivial fact is the opposite, i.e. that for any orthogonal linear mapping in having determinant = 1 there exist base vectors
:
such that the matrix takes the "canonical form"
:
for some value of .
In fact, if a linear operator has the orthogonal matrix
: relative some base vector system :
and this matrix is symmetric the "Symmetric operator theorem" valid in (any dimension) applies saying
that it has "n" orthogonal eigenvectors. This means for the 3-dimensional case that there exists a coordinate system:
such that the matrix takes the form: As it is an orthogonal matrix these diagonal elements are either 1 or −1. As the determinant is 1 these elements are either all 1 or one of the elements is 1 and the other two are −1.
In the first case it is the trivial identity operator correspondingto .
In the second case it has the form
:
if the basevectors are numbered such that the one with eigenvalue 1 has index 3. This matrix is then of the desired form for .
If the matrix is un-symmetric the vector:
where
:::
is non-zero. This vector is an eigenvector with eigenvalue
:
Setting :
and selecting any two orthogonal unit vectors in the plane orthogonal to :
:
such that
:
form a positively oriented trippel the operator takes the desired form with::
The expressions above are in fact valid also for the case of a symmetricrotation operator corresponding to a rotation with or . But the difference is that for the vector :
is zero and of no use for finding the eigenspace of eigenvalue 1, i.e. therotation axis.
Defining as the matrix for therotation operator is
:
provided that
:
i.e. except for the cases (the identity operator) and
Quaternions
Quaternions are defined similar to withthe difference that the half angle is used in stead of the full angle .
This means that the first 3 components are components of a vector defined from
:and that the forth component is the scalar:
As the angle defined from the canonical form is in the interval :
one would normally have that . But a "dual" representation of a rotation with quaternionsis used, i.e. :
and :
are two alternative representations of one and the same rotation.
The entities are defined from the quaternions by::::
Using quaternions the matrix of the rotation operatator is:
Numerical example
Consider the reorientation corresponding to the Euler anglesrelative a given base vector system:
Corresponding matrix relative this base vector system is (see Euler angles#Matrix notation)
:
and the quaternion is:
The canonical form of this operator:with is obtained with:
The quaternion relative this new system is then:
Instead of making the three Euler rotations
:
the same orientation can be reached with one single rotation of size around
Reference
*.