Coordinate Transformations
Introduction
Coordinate transformations are nonintuitive enough in 2-D, and positively painful in 3-D. This page tackles them in the following order: (i) vectors in 2-D, (ii) tensors in 2-D, (iii) vectors in 3-D, (iv) tensors in 3-D, and finally (v) 4th rank tensor transforms.
A major aspect of coordinate transforms is the evaluation of the transformation matrix, especially in 3-D. This is touched on here, and discussed at length on the next page.
It is very important to recognize that all coordinate transforms on this page are rotations of the coordinate system while the object itself stays fixed. The "object" can be a vector such as force or velocity, or a tensor such as stress or strain in a component. Object rotations are discussed in later sections.
2-D Coordinate Transforms of Vectors
The academic potato provides an excellent example of how coordinate transformations apply to vectors, while at the same time stressing that it is the coordinate system that is rotating and not the vector... or potato.
The potato on the left has a vector on it. But without a coordinate system, there is no way to describe the vector. So a coordinate system has been added to the potato as shown on the right, allowing the vector to now be described as .
So now we introduce a rotated coordinate system shown in blue below, using and . The new system is rotated counter-clockwise by an angle, , from the initial coordinate system. Note that the vector itself does not change at all. It is still the very same vector as before. But it is described by different numerical values in the new coordinate system. In this case, the vector is more closely parallel to the new axis than the axis, so the component will be greater than the component. The transformation is given below the figure.
The 2-D vector transformation equations are
This can be seen by noting that
- the part of that lies along the axis is
- the part of that lies along the axis is
- the part of that lies along the axis is
- the part of that lies along the axis is
These four factors make up the four terms in the transformation equations. They are easily checked by setting and . When , then and . When , then and .
Returning to the Potato...
So, if , then
The component is indeed greater than the component as expected.
Transformation Matrix
It is more convenient to write (and work with) transformation equations using matrices.
The terms are on the matrix diagonal while the terms are off-diagonal. The only potential gotcha is remembering which term has the minus sign on it. It is always the lower-left term.
The above equation is written in matrix notation as
where is the usual letter chosen for the transformation matrix.
Transformation vs Rotation Matrices
If this topic weren't already difficult enough, many books and websites add to the confusion by not clarifying what is fixed and what is rotating. In this page and the next, it is the coordinate system that is rotating while the object remains fixed. So the term transformation matrix is used here to emphasize this.
However, we will later address situations in which the object rotates while the coordinate system remains fixed. In this scenario, the term rotation matrix will be used to emphasize that the object is rotating.
Much confusion arises from the amazing fact that each matrix (transform and rotation) is just the transpose of the other! So they look extremely similar. In 2-D problems, the only practical difference is whether the minus sign in front of is on the term, or the term.
Transformation Matrix Properties
Transformation matrices have several special properties that, while easily seen in this discussion of 2-D vectors, are equally applicable to 3-D applications as well. This list is useful for checking the accuracy of a transformation matrix if questions arise. While a matrix still could be wrong even if it passes all these checks, it is definitely wrong if it fails even one!
| - The determinant of equals one. - The transpose of is its inverse. - The dot product of any row or column with itself equals one. Ex: ( (\cos \theta ; {\bf i} + \sin \theta ; {\bf j}) \cdot |
(\cos \theta \; {\bf i} + \sin \theta \; {\bf j}) = 1 \) - The dot product of any row with any other row equals zero. Ex: \( (\cos \theta \; {\bf i} + \sin \theta \; {\bf j}) \cdot
(-\sin \theta \; {\bf i} + \cos \theta \; {\bf j}) = 0 \) - The dot product of any column with any other column equals zero. Ex: \( (\cos \theta \; {\bf i} - \sin \theta \; {\bf j}) \cdot
(\sin \theta \; {\bf i} + \cos \theta \; {\bf j}) = 0 \) | {\bf Q} =
\left[ \matrix {\;\;\;\cos \theta & \sin \theta \\
-\sin \theta & \cos \theta} \right] |A general method exists for formulating transformation matrices based on the cosines of the angles between the axes of the two coordinate systems, i.e., direction cosines. (This also applies to 3-D transforms.) The transformation matrix can be written as
where represents the angle between the and axes, is the angle between the and axes, etc.
The angle between and is , and .
Likewise, the angle between and is , and .
Transformation Matrix Formulation
Another way of building up the transformation matrix (and my favorite) is as follows
"x-comp of " means the x-component of the unit vector. Pay close attention to which terms have primes on them and which don't. Don't confuse this with "the x'-component" because "the x'-comp of " is simply 1. Yet another way to say this is, "the first component of the unit vector in the non-primed reference coordinate system."
In summary,
- the x-comp of is
- the y-comp of is
- the x-comp of is
- the y-comp of is
Tensor Notation
The coordinate transform is written in tensor notation as
where is the transformation matrix . (I don't know why is used in matrix notation, but , not , is used in tensor notation.) is defined as
For example, if and , then
is the direction cosine of the angle between the axis and the axis. Again, this is equally applicable to 3-D transformations as well.
Multiplication of Transformation Matrices
Recall from above that the dot product of any two different rows or columns of a transformation matrix is zero, while the dot product of any row or column with itself is one. This can be written in matrix and tensor notation as
This shows that the transpose of a transformation matrix is also it's inverse.
2-D Coordinate Transforms of Tensors
This section will present the what and how of tensor transforms. The why will have to wait until later.
Coordinate transformations of 2nd rank tensors involve the very same matrix as vector transforms. A transformation of the stress tensor, , from the reference coordinate system to in a new system is done as follows.
Writing the matrices out explicitly gives
(Note that the stress tensor is always symmetric, even following transformations.)
Multiplying the matrices out gives
These three equations are exactly the 2-D transform of a stress tensor resulting from summing forces on a differential element and imposing equilibrium. This is also represented by Mohr's circle.
Transformations of Vectors vs Tensors
Note that each stress component in the above equation is multiplied by exactly two trig functions. In contrast, only one trig function is multiplied by any vector component in a vector transformation. Ex: . This is not a coincidence. Each trig function comes from the transform matrix, . One matrix is used to transform 1st-rank tensors (i.e., vectors) and two matrices are used to transform 2nd-rank tensors like stress and strain.
2-D Tensor Transform Example
If the stress tensor in a reference coordinate system is \left[ \matrix{1 & 2 \\ 2 & 3 } \right], then in a coordinate system rotated 50°, it would be written as
As with the vector example above, the stress state has not changed at all. Only the values in the matrices are different because the orientations of the coordinate systems are different.
Tensor Notation
The coordinate transform is written in tensor notation as
As usual, tensor notation provides extra insight into the process. This time, the insight comes from the subscripts on the lambdas. Each lambda effectively pairs up a subscript on with one on . This is true regardless of the rank of the tensor.
3-D Coordinate Transforms of Vectors
Many of the general equations used in 2-D transformations are also applicable in 3-D. Examples include
Only now the details are different. The vectors have z-components and the transformation matrices are 3x3 instead of 2x2.
3-D Coordinate Transforms of Tensors
Once again, the rules don't change, only the particulars do.
Writing the matrices out explicitly gives
This webpage performs coordinate transforms on 3-D tensors. Try it out.
Coordinate Transforms of 4th Rank Tensors
We will see in the section on Hooke's Law that the stiffness tensor is 4th rank, i.e., 3x3x3x3 (not 4x4). It is written as because it relates any strain component, , to any stress component, , i.e., . The coordinate transformation law for the 4th rank stiffness tensor is easily written in tensor notation as
The tensor equation directs how to write the transformation in matrix notation.
4th Rank Tensor Transform Example
The slides below show the stiffness calculation of a typical single ply steel belt. The angle is the rotation of the cables off the longitudinal axis. Note how the equations contain trig functions to the 4th power, This is consistent with the use of four matrices in the transformation equations.
Reference: McGinty, R. D., Rhyne, T. B., and Cron, S. M., "Analytical Solution for the Stresses Arising in +/- Angle Ply Belts of Radial Tires," Tire Science and Technology, TSTCA, Vol. 36, No. 4, October – December 2008, pp. 244-274.
Summary
The coordinate transform of a vector in matrix and tensor notation is
The coordinate transform of a tensor in matrix and tensor notation is
Note that and are the same transformation matrix.
In 2-D, and are defined as
which is a special case of the more general 3-D form
where is the direction cosine of the angle between the rotated axis and the reference axis.
The coordinate transform of a 4th rank tensor is
in matrix notation and



