Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
Euler angles: elementary axis rotations and passive rotation matrices (Definition)

Euler Angles: Elementary Axis Rotations and Passive Rotation Matrices

Every Euler angle sequence is built from three elementary coordinate transformations about the coordinate axes.

For that reason, the most efficient way to understand Euler Angle matrices is to understand the three one axis passive transformations first.

This article derives the passive elementary matrices

C1 (λ),     C2(λ),     C3(λ),

interprets their signs geometrically, and records the diagnostic tests that make later Euler sequence formulas easier to verify.

1 Convention and notation

PhysicsLibrary uses right handed orthonormal coordinate frames and passive coordinate transformations.

If the same physical vector has coordinate columns Av and Bv in frames A and B, then

Bv =  BCA Av.
(1)

A passive transformation therefore keeps the physical vector fixed while the coordinate frame is rotated.

A positive frame rotation follows the right hand rule.

The three elementary passive coordinate transformations are denoted

C1 (λ),     C2(λ),     C3(λ),
(2)

where λ is the rotation angle and the subscript 1, 2, 3 refers to the x,y,z axis respectively.

2 Why elementary matrices matter

A general intrinsic Euler sequence is composed from the elementary transformations.

For intrinsic i-j-k with sequence angles (α,β,γ),

B
  CA =  Ck(γ)Cj (β)Ci(α).
(3)

Thus every Euler angle formula is ultimately a product of the three matrices derived in this article.

If their signs are understood at the elementary level, later formulas become much easier to trust and debug.

3 What changes under a passive rotation

A passive frame rotation changes coordinates, not the physical vector.

Suppose frame B is obtained from frame A by a positive rotation of the coordinate axes through angle λ about one of the coordinate axes.

Then a fixed physical vector has one coordinate column in frame A and a different coordinate column in frame B.

The unchanged geometry and changed coordinates are related by

Bv  = C (λ )Av.
        i
(4)

This passive viewpoint is the key sign convention.

For example, if the coordinate axes rotate positively about +z, then a physical vector that originally had coordinates

     ⌊ 1⌋
A    ⌈  ⌉
 v =   0
       0

will generally not retain those same coordinates in the rotated frame.

4 Derivation of the rotation about axis 1

Let frame B be obtained from frame A by a positive frame rotation through angle λ about axis 1, the x axis.

The x axis is unchanged by this rotation, while the y and z axes rotate in the yz plane.

PIC

Figure. Passive frame rotation about axis 1. The x axis is common to both frames, while the y and z axes of frame B are obtained by a positive frame rotation through angle λ about +x. The angle label is placed between the pre-rotation and post-rotation axes to emphasize that λ is the geometric separation of those axes. All axes share one common origin.

Let

      ⌊  ⌋
       v1
Av  = ⌈v2⌉
       v3

and

     ⌊   ⌋
       u1
Bv = ⌈ u ⌉ .
        2
       u3

Under the passive rotation about axis 1,

u1 = v1,
(5)

because the first axis is unchanged.

In the yz plane, the coordinate pair transforms as a two dimensional passive rotation:

u  =  cosλ v + sin λv ,
  2         2        3
(6)

u  =  − sin λv  + cos λv .
  3           2        3
(7)

Collecting terms gives

⌊  ⌋    ⌊                 ⌋ ⌊  ⌋
 u1      1     0       0     v1
⌈u ⌉  = ⌈0   cos λ   sinλ ⌉ ⌈v ⌉ .
  2                           2
 u3      0  −  sin λ  cosλ    v3
(8)

Therefore

         ⌊1     0       0 ⌋
         ⌈                ⌉
C1 (λ) =  0   cos λ   sin λ  .
          0  − sin λ  cosλ
(9)

A 90∘ diagnostic for C1

At λ = π∕2,

          ⌊          ⌋
   (π )     1   0   0
C1  --  = ⌈ 0   0   1⌉ .
    2       0  − 1  0
(10)

If a fixed physical vector has initial coordinates

      ⌊  ⌋
       0
A     ⌈  ⌉
 v  =  1  ,
       0

then

             ⌊  ⌋    ⌊   ⌋
        ( π )  0       0
Bv =  C1  -- ⌈ 1⌉ =  ⌈ 0 ⌉ .
          2    0      − 1
(11)

This sign pattern agrees with the passive interpretation: the vector did not move, but the coordinate axes did.

5 Derivation of the rotation about axis 2

Now let frame B be obtained from frame A by a positive frame rotation through angle λ about axis 2, the y axis.

The y axis is unchanged, while the x and z axes rotate in the xz plane.

PIC

Figure. Passive frame rotation about axis 2. The y axis is common to both frames, while the x and z axes of frame B result from a positive frame rotation through angle λ about +y. The marked angle λ is drawn between corresponding old and new axes.

Again write

      ⌊ v ⌋            ⌊u ⌋
A     ⌈  1⌉      B     ⌈ 1⌉
  v =   v2 ,      v =   u2  .
        v3              u3

Because the second axis is unchanged,

u  = v .
 2    2
(12)

The xz coordinates transform as

u  =  cosλ v − sin λv ,
  1         1        3
(13)

u3 =  sin λv1 + cos λv3.
(14)

Hence

⌊  ⌋    ⌊                 ⌋ ⌊  ⌋
 u1      cos λ  0  − sinλ    v1
⌈u2⌉  = ⌈  0    1     0   ⌉ ⌈v2⌉ ,
 u        sin λ  0   cosλ     v
  3                           3
(15)

so

         ⌊cos λ  0  − sinλ⌋
         ⌈                ⌉
C2 (λ) =    0    1     0    .
          sin λ  0   cosλ
(16)

A 90∘ diagnostic for C2

At λ = π∕2,

          ⌊          ⌋
   (  )     0  0  − 1
C2  π-  = ⌈ 0  1   0 ⌉ .
    2       1  0   0
(17)

If

      ⌊  ⌋
       0
Av  = ⌈0 ⌉,

       1

then

             ⌊  ⌋    ⌊   ⌋
B       ( π )  0      − 1
 v =  C2  -- ⌈ 0⌉ =  ⌈ 0 ⌉ .
          2    1       0
(18)

6 Derivation of the rotation about axis 3

Finally let frame B be obtained from frame A by a positive frame rotation through angle λ about axis 3, the z axis.

The z axis is unchanged, while the x and y axes rotate in the xy plane.

PIC

Figure. Passive frame rotation about axis 3. The z axis is common to both frames, while the x and y axes of frame B are produced by a positive frame rotation through angle λ about +z. The angle marker is drawn between the old and new x axes to emphasize the sign convention.

With the same notation,

u3 = v3,
(19)

and the xy coordinates transform as

u1 =  cosλ v1 + sin λv2,
(20)

u2 =  − sin λv1 + cos λv2.
(21)

Therefore

⌊u ⌋    ⌊ cos λ   sinλ   0⌋ ⌊v ⌋
⌈ 1⌉    ⌈                 ⌉ ⌈ 1⌉
 u2   =  −  sin λ  cosλ   0   v2  ,
 u3         0       0    1   v3
(22)

so

         ⌊ cos λ   sin λ  0⌋
         ⌈                ⌉
C3 (λ) =  − sin λ  cosλ  0  .
             0       0   1
(23)

A 90∘ diagnostic for C3

At λ = π∕2,

          ⌊          ⌋
   (π )      0   1  0
C3  --  = ⌈ − 1  0  0⌉ .
    2        0   0  1
(24)

If

      ⌊1 ⌋
A     ⌈  ⌉
 v  =  0  ,
       0

then

             ⌊  ⌋    ⌊   ⌋
        ( π )  1       0
Bv =  C3  -- ⌈ 0⌉ =  ⌈− 1⌉ .
          2    0       0
(25)

This example is often the quickest sign check for the passive convention.

7 Orthogonality, inverse, and determinant

Each elementary matrix is an orthogonal matrix with determinant +1.

For each i = 1, 2, 3,

C  (λ )TC (λ) = I,
  i     i
(26)

detCi (λ ) = 1,
(27)

and therefore

Ci(λ)−1 = Ci (λ )T.
(28)

Because changing the sign of the angle reverses the frame rotation,

C (− λ) = C (λ)T = C  (λ)−1.
 i         i         i
(29)

This identity is one of the most useful algebraic checks in Euler angle work.

8 Relation to active rotation matrices

The passive coordinate transformation and the active vector rotation for the same positive geometric angle are transposes of one another.

If Ri(λ) denotes the active rotation matrix, then

             T
Ri(λ) = Ci(λ ) =  Ci(− λ).
(30)

Thus many sign disagreements found in textbooks are actually differences between active and passive conventions.

The geometry is the same; the map interpretation is different.

9 Rows and columns of a passive direction cosine matrix

For a passive direction cosine matrix,

       ⌊               ⌋
          |    |     |
BC   = ⌈ Bˆa   Bˆa   B ˆa ⌉ ,
   A       1     2    3
          |    |     |
(31)

so the columns are the coordinates of the basis vectors of frame A expressed in frame B.

Equivalently, the entries may be written as direction cosines

(BCA )ij = ˆbi ⋅ ˆaj.
(32)

Therefore the rows are the components of the basis vectors of frame B measured along the axes of frame A.

Both viewpoints are valid and useful.

10 Small angle forms

For small |λ|,

cosλ ≈ 1,     sinλ ≈  λ.

Therefore

        ⌊          ⌋
          1   0   0
C1(λ) ≈ ⌈ 0   1   λ⌉ ,
          0  − λ  1
(33)

        ⌊          ⌋
          1  0  − λ
        ⌈          ⌉
C2(λ) ≈   0  1   0   ,
          λ  0   1
(34)

and

        ⌊          ⌋
           1   λ  0
C3(λ) ≈ ⌈ − λ  1  0⌉ .
           0   0  1
(35)

These first-order forms are useful in error analysis and linearized attitude models, but they should not be mistaken for exact finite rotation matrices.

11 How the elementary matrices build Euler sequences

Because a generic intrinsic sequence is

B
  CA =  Ck(γ)Cj (β)Ci(α),

every Euler matrix is formed by multiplying the elementary matrices in the appropriate order.

For example, the PhysicsLibrary passive intrinsic 3-2-1 yaw pitch roll map is

BCA  =  C1(ϕ)C2 (𝜃)C3(ψ).
(36)

The rightmost factor acts first on a coordinate column.

Thus the first step is a positive frame rotation about axis 3 through yaw ψ, the second step is a positive frame rotation about the current axis 2 through pitch 𝜃, and the third step is a positive frame rotation about the current axis 1 through roll ϕ.

12 A compact verification battery

Any derived Euler matrix should agree with the elementary matrices under appropriate specializations.

Useful tests include:

  1. set all angles to zero and verify the identity matrix;
  2. set two angles to zero and verify the correct elementary matrix;
  3. test the 90∘ cases recorded above;
  4. verify orthogonality:
    CCT  =  I;
  5. verify proper determinant:
    detC =  1;
  6. verify the reverse map:
    AC   = (BC  )T ;
   B       A
  7. compare with the corresponding passive quaternion relation when a quaternion representation is available.

These checks are simple enough to do by hand and strong enough to catch most sign, order, and convention mistakes.

13 Summary

The three elementary passive coordinate transformations are

         ⌊1     0       0 ⌋
         ⌈                ⌉
C1 (λ) =  0   cos λ   sin λ  ,
          0  − sin λ  cosλ
(37)

         ⌊                ⌋
          cos λ  0  − sinλ
C2 (λ) = ⌈  0    1     0  ⌉ ,
          sin λ  0   cosλ
(38)

and

         ⌊                ⌋
           cos λ   sin λ  0
C3 (λ) = ⌈− sin λ  cosλ  0⌉ .
             0       0   1
(39)

They are orthogonal, proper, and related to their active counterparts by transpose.

Every intrinsic Euler angle matrix in the PhysicsLibrary convention is built from these elementary factors according to

BCA  =  Ck(γ)Cj (β)Ci(α).
(40)

Understanding these three matrices is therefore the key first step toward understanding every later Euler sequence formula.

The next companion article, Elementary axis rotations and passive rotation matrices: examples, exercises, and solutions, will reinforce these results with direct computations and verification checks.

14 References and further reading

Henderson is a classic engineering source for Euler angle transformations, quaternions, and direction cosine matrices.

Moore develops passive coordinate transformations and orientation of reference frames in a modern open text.

Diebel gives a compact comparative overview of Euler angles, rotation matrices, quaternions, and rotation vectors.

References

[1]   D. M. Henderson, Euler Angles, Quaternions, and Transformation Matrices: Working Relationships, JSC-12960, NASA Johnson Space Center, 1977. NASA Technical Reports Server

[2]   J. K. Moore, Learn Multibody Dynamics, chapter “Orientation of Reference Frames,” 2026 edition. Licensed CC BY 4.0. Orientation of Reference Frames

[3]   J. Diebel, “Representing Attitude: Euler Angles, Unit Quaternions, and Rotation Vectors,” Stanford University, 2006. Online PDF

License

Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.


"Euler angles: elementary axis rotations and passive rotation matrices" is owned by bloftin.
(view preamble)
View style:
See Also: Axis Angle Representation and Unit Quaternion

Also defines:  Euler angle sequence
Keywords:  Euler angles, passive rotation matrix, direction cosine, matrix, elementary rotations, coordinate transformation, intrinsic rotation

Attachments:
example of Euler angles: elementary axis rotations and passive rotation matrices (Example) by bloftin

Cross-references: computations, representation, relation, quaternion, direction cosines, direction cosine matrix, work, algebraic, identity, determinant, vector, formulas, matrices, Euler Angle

This is version 3 of Euler angles: elementary axis rotations and passive rotation matrices, born on 2026-08-28, modified 2026-08-29.
Object id is 1122, canonical name is EulerAnglesElementaryAxisRotationsAndPassiveRotationMatrices.
Accessed 170 times total.

Classification:
Physics Classification: 02.40.Yy (Geometric mechanics )
 45.40.-f (Dynamics and kinematics of rigid bodies)
 02.10.Ud (Linear algebra)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add derivation | add example | add (any)