<?xml version="1.0" encoding="UTF-8"?>

<record version="1" id="1113">
 <title>Euler Angles: Orientation, Notation, and Conventions</title>
 <name>NotationEulerAnglesOrientation</name>
 <created>2026-08-25 02:57:51</created>
 <modified>2026-08-25 02:57:51</modified>
 <type>Topic</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>some pmlinknames are not right atm so need to revisit, just removign for now</comment>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="45.40.-f"/>
 </classification>
 <defines>
	<concept>Euler Angle</concept>
	<concept>Euler Angles</concept>
 </defines>
 <synonyms>
	<synonym concept="Euler Angles: Orientation, Notation, and Conventions" alias="Euler Angle"/>
	<synonym concept="Euler Angles: Orientation, Notation, and Conventions" alias="Euler Angles"/>
 </synonyms>
 <keywords>
	<term>Euler angles</term>
	<term>Tait-Bryan angles</term>
	<term>Cardan angles</term>
	<term>attitude</term>
	<term>orientation</term>
	<term>direction cosine matrix</term>
	<term>passive transformation</term>
	<term>intrinsic rotation</term>
	<term>yaw</term>
	<term>pitch</term>
	<term>roll</term>
	<term>reference frame</term>
 </keywords>
 <preamble>% this is the default PhysicsLibrary preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics).
% If you use \includegraphics{figure} with no file extension, PhysicsLibrary
% will prefer figure.png before falling back to figure.eps.
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png,.jpg,.jpeg,.pdf,.eps}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section*{Euler Angles: Orientation, Notation, and Conventions}

Euler angles describe the relative orientation of two three-dimensional reference frames
by means of three successive one axis rotations.  They provide a minimal, three parameter
description of orientation and are therefore intuitive and economical, but the same
economy also produces coordinate singularities and convention ambiguities.

The phrase ``Euler angles'' is used broadly in engineering for both \emph{proper Euler
sequences}, in which the first and third axes are the same, and \emph{Tait--Bryan
sequences}, in which all three axes are different.  Examples are the $3$-$1$-$3$
proper Euler sequence and the $3$-$2$-$1$ yaw--pitch--roll Tait--Bryan sequence.

A formula involving Euler angles is incomplete unless it states at least:

\begin{enumerate}
\item the handedness of the coordinate frames;
\item whether the operation is an active vector rotation or a passive coordinate
transformation;
\item whether the three rotations are intrinsic (moving axis) or extrinsic
(fixed axis);
\item the axis sequence;
\item the direction of the frame to frame coordinate map; and
\item the meanings and ordering of the three angle symbols.
\end{enumerate}

This entry establishes the convention used by the PhysicsLibrary Euler angle series.

\section{PhysicsLibrary Euler angle convention contract}

Unless an article explicitly states otherwise, the PhysicsLibrary Euler angle series uses
the following convention.

\begin{center}
\fbox{\begin{minipage}{0.92\linewidth}
\textbf{PhysicsLibrary Euler angle convention}
\begin{enumerate}
\item All reference frames are right-handed and orthonormal.
\item Positive frame rotations follow the right-hand rule.
\item Euler sequences are interpreted \textbf{intrinsically}: each successive rotation is
about an axis of the current, already rotated frame.
\item Direction cosine matrices are used as \textbf{passive coordinate transformations}.
For frames $A$ and $B$,
\[
\boxed{{}^{B}\mathbf v={}^{B}C_{A}\,{}^{A}\mathbf v,}
\]
so ${}^{B}C_A$ converts the coordinates of the same physical vector from frame $A$
to frame $B$.
\item For a generic intrinsic $i$-$j$-$k$ sequence the first, second, and third
angles are denoted by
\[
\boxed{\alpha,\qquad \beta,\qquad \gamma}
\]
rather than assuming that $\phi,\theta,\psi$ always mean first, second, and third.
\item For the aerospace $3$-$2$-$1$ sequence only, PhysicsLibrary uses
\[
\boxed{\psi=\text{yaw},\qquad \theta=\text{pitch},\qquad \phi=\text{roll}.}
\]
\end{enumerate}
\end{minipage}}
\end{center}

This convention is deliberately explicit because many apparently contradictory Euler angle
formulas differ only by a transpose, a reversed sequence description, or a relabeling of the
three angles.

\section{Passive elementary coordinate transformations}

Let frame $B$ be obtained from frame $A$ by a positive right-handed rotation of the axes
through angle $\lambda$ about one coordinate axis.  The passive coordinate transformation
from $A$ to $B$ is written $C_i(\lambda)$, where $i=1,2,3$ denotes the $x,y,z$ axis,
respectively.

The three elementary transformations are

\[
\boxed{
C_1(\lambda)=
\begin{bmatrix}
1&amp;0&amp;0\\
0&amp;\cos\lambda&amp;\sin\lambda\\
0&amp;-\sin\lambda&amp;\cos\lambda
\end{bmatrix}}
\]

\[
\boxed{
C_2(\lambda)=
\begin{bmatrix}
\cos\lambda&amp;0&amp;-\sin\lambda\\
0&amp;1&amp;0\\
\sin\lambda&amp;0&amp;\cos\lambda
\end{bmatrix}}
\]

and

\[
\boxed{
C_3(\lambda)=
\begin{bmatrix}
\cos\lambda&amp;\sin\lambda&amp;0\\
-\sin\lambda&amp;\cos\lambda&amp;0\\
0&amp;0&amp;1
\end{bmatrix}.}
\]

These matrices are orthogonal,

\[
C_i^{-1}=C_i^T,
\]

and have determinant $+1$.

They are the transposes of the matrices commonly written for an \emph{active} rotation of
a vector by the same positive angle.  The sign difference is a consequence of changing the
basis rather than moving the physical vector.

\subsection*{A $90^\circ$ sign check}

Suppose frame $B$ is obtained by rotating the axes of frame $A$ through $+90^\circ$
about $+\hat{\mathbf z}$.  A physical vector with coordinates

\[
{}^{A}\mathbf v=
\begin{bmatrix}
1\\0\\0
\end{bmatrix}
\]

has coordinates in frame $B$

\[
{}^{B}\mathbf v
=
C_3\left(\frac{\pi}{2}\right){}^{A}\mathbf v
=
\begin{bmatrix}
0\\-1\\0
\end{bmatrix}.
\]

The vector itself has not rotated.  The new coordinate axes have rotated, so the coordinates
change with the opposite sign from an active vector rotation.

\section{Intrinsic Euler sequences}

Consider an original frame $A=A_0$ and a final frame $B=A_3$.  An intrinsic
$i$-$j$-$k$ Euler sequence is constructed as follows:

\[
A_0=A
\ \xrightarrow[\text{axis }i]{\alpha}\
A_1
\ \xrightarrow[\text{axis }j\text{ of }A_1]{\beta}\
A_2
\ \xrightarrow[\text{axis }k\text{ of }A_2]{\gamma}\
A_3=B .
\]

Each transformation maps coordinates into the newly rotated frame,

\[
{}^{A_1}\mathbf v=C_i(\alpha)\,{}^{A}\mathbf v,
\]

\[
{}^{A_2}\mathbf v=C_j(\beta)\,{}^{A_1}\mathbf v,
\]

and

\[
{}^{B}\mathbf v=C_k(\gamma)\,{}^{A_2}\mathbf v.
\]

Substitution therefore gives the universal PhysicsLibrary rule

\[
\boxed{
{}^{B}C_A
=
C_k(\gamma)\,C_j(\beta)\,C_i(\alpha)
}
\]

for an intrinsic $i$-$j$-$k$ sequence.

The rightmost matrix acts first on the coordinate column.  This is not a reversal of the
physical sequence: it is the ordinary rule for composition of linear transformations.

\section{The twelve three angle sequences}

A valid three angle sequence cannot use the same axis for two consecutive rotations,
because two consecutive rotations about the same current axis would combine into a single
rotation.  This leaves twelve standard sequences.

\subsection*{Tait--Bryan sequences}

The six Tait--Bryan sequences use three distinct axes.

\[
\begin{array}{c|c}
\text{intrinsic sequence} &amp; {}^{B}C_A \\ \hline
1\text{-}2\text{-}3 &amp; C_3(\gamma)C_2(\beta)C_1(\alpha)\\
1\text{-}3\text{-}2 &amp; C_2(\gamma)C_3(\beta)C_1(\alpha)\\
2\text{-}1\text{-}3 &amp; C_3(\gamma)C_1(\beta)C_2(\alpha)\\
2\text{-}3\text{-}1 &amp; C_1(\gamma)C_3(\beta)C_2(\alpha)\\
3\text{-}1\text{-}2 &amp; C_2(\gamma)C_1(\beta)C_3(\alpha)\\
3\text{-}2\text{-}1 &amp; C_1(\gamma)C_2(\beta)C_3(\alpha)
\end{array}
\]

\subsection*{Proper Euler sequences}

The six proper Euler sequences repeat the first axis as the third axis.

\[
\begin{array}{c|c}
\text{intrinsic sequence} &amp; {}^{B}C_A \\ \hline
1\text{-}2\text{-}1 &amp; C_1(\gamma)C_2(\beta)C_1(\alpha)\\
1\text{-}3\text{-}1 &amp; C_1(\gamma)C_3(\beta)C_1(\alpha)\\
2\text{-}1\text{-}2 &amp; C_2(\gamma)C_1(\beta)C_2(\alpha)\\
2\text{-}3\text{-}2 &amp; C_2(\gamma)C_3(\beta)C_2(\alpha)\\
3\text{-}1\text{-}3 &amp; C_3(\gamma)C_1(\beta)C_3(\alpha)\\
3\text{-}2\text{-}3 &amp; C_3(\gamma)C_2(\beta)C_3(\alpha)
\end{array}
\]

The expanded matrices are developed in the individual PhysicsLibrary sequence entries:
\PMlinkname{Euler 123 sequence}{Euler123Sequence},
\PMlinkname{Euler 132 sequence}{Euler132Sequence},
\PMlinkname{Euler 121 sequence}{Euler121Sequence},
\PMlinkname{Euler 131 sequence}{Euler131Sequence},
\PMlinkname{Euler 213 sequence}{Euler213Sequence},
\PMlinkname{Euler 231 sequence}{Euler231Sequence},
\PMlinkname{Euler 212 sequence}{Euler212Sequence},
\PMlinkname{Euler 232 sequence}{Euler232Sequence},
\PMlinkname{Euler 312 sequence}{Euler312Sequence},
\PMlinkname{Euler 321 sequence}{Euler321Sequence},
\PMlinkname{Euler 313 sequence}{Euler313Sequence}, and
\PMlinkname{Euler 323 sequence}{Euler323Sequence}.

\section{Intrinsic versus extrinsic descriptions}

An intrinsic rotation sequence uses moving axes.  An extrinsic sequence uses axes fixed in
the original frame.  These are not two different classes of physical orientation; an
intrinsic sequence can be re described as an extrinsic sequence if the axis order and
interpretation are reversed appropriately.

For example, an intrinsic $3$-$2$-$1$ sequence may be described geometrically as:

\[
\text{yaw about the original }3\text{-axis},
\quad
\text{pitch about the new }2\text{-axis},
\quad
\text{roll about the new }1\text{-axis}.
\]

The same final orientation can be represented using a corresponding fixed axis description,
but PhysicsLibrary names and derives Euler sequences \emph{intrinsically}.  Whenever formulas
from another source are imported, the source's intrinsic/extrinsic convention must be checked
before comparing matrix products.

\section{Why generic angles are written as $\alpha,\beta,\gamma$}

The legacy PhysicsLibrary Euler entries generally used $\phi$, $\theta$, and $\psi$ as the
first, second, and third rotation parameters independent of which physical axes were used.
That is internally workable, but it conflicts with the widespread aerospace convention

\[
\phi=\text{roll},\qquad
\theta=\text{pitch},\qquad
\psi=\text{yaw}.
\]

In a $3$-$2$-$1$ sequence, the first rotation is yaw and the third is roll.  Consequently,
the legacy notation can make a correct matrix appear to have the yaw and roll symbols
interchanged.

PhysicsLibrary therefore uses

\[
(\alpha,\beta,\gamma)
\]

for generic first/second/third sequence angles and reserves

\[
(\phi,\theta,\psi)
\]

for contexts in which the physical meanings roll/pitch/yaw are intended.

\section{Aerospace $3$-$2$-$1$ yaw--pitch--roll specialization}

For the intrinsic $3$-$2$-$1$ sequence,

\[
\alpha=\psi,\qquad
\beta=\theta,\qquad
\gamma=\phi,
\]

where $\psi$ is yaw, $\theta$ is pitch, and $\phi$ is roll.  The passive coordinate
transformation from the reference frame $A$ to the final frame $B$ is therefore

\[
\boxed{
{}^{B}C_A
=
C_1(\phi)\,C_2(\theta)\,C_3(\psi).
}
\]

Writing

\[
c_\phi=\cos\phi,\quad s_\phi=\sin\phi,
\qquad
c_\theta=\cos\theta,\quad s_\theta=\sin\theta,
\qquad
c_\psi=\cos\psi,\quad s_\psi=\sin\psi,
\]

gives

\[
\boxed{
{}^{B}C_A=
\begin{bmatrix}
c_\theta c_\psi &amp;
c_\theta s_\psi &amp;
-s_\theta\\
s_\phi s_\theta c_\psi-c_\phi s_\psi &amp;
s_\phi s_\theta s_\psi+c_\phi c_\psi &amp;
s_\phi c_\theta\\
c_\phi s_\theta c_\psi+s_\phi s_\psi &amp;
c_\phi s_\theta s_\psi-s_\phi c_\psi &amp;
c_\phi c_\theta
\end{bmatrix}.}
\]

The dedicated \PMlinkname{Euler 321 sequence}{Euler321Sequence} entry derives this matrix
step by step and discusses inverse extraction and the singularity at
$\theta=\pm\pi/2$.

\section{Euler angles are coordinates, not vectors}

The three numbers in an Euler angle triple are parameters of a nonlinear composition of
rotations.  In general,

\[
(\alpha_1,\beta_1,\gamma_1)+(\alpha_2,\beta_2,\gamma_2)
\]

does \emph{not} represent the composition of the corresponding orientations.  Finite
rotations in three dimensions do not commute, and an Euler angle triple should not be
transformed or added as though it were an ordinary geometric vector.

This distinction becomes especially important in attitude estimation and control, where
small attitude errors may sometimes be approximated by a threecomponent vector even though
the finite Euler angles themselves are not a vector.

\section{Coordinate singularities and nonuniqueness}

Euler angles provide only a local coordinate chart on three-dimensional orientation.
No three parameter Euler chart is globally nonsingular.

For a Tait--Bryan sequence the singularity occurs when the middle rotation places the first
and third rotation axes in alignment.  In the $3$-$2$-$1$ sequence this occurs at

\[
\boxed{\theta=\pm\frac{\pi}{2}.}
\]

This loss of one independent rotational degree of freedom in the coordinates is commonly
called \emph{gimbal lock}.  The physical orientation remains perfectly well defined; only the
chosen Euler angle coordinates become singular.

Euler triples are also not globally unique.  Angle periodicity and the structure of the
sequence allow more than one triple to represent the same final orientation.  Software
interfaces should therefore state the chosen principal ranges for inverse Euler angle
extraction.

\section{Relationship to direction cosine matrices}

A \PMlinkname{direction cosine matrix}{DirectionCosineMatrix} represents the complete
orientation without a coordinate singularity, although it uses nine matrix elements subject
to six orthonormality constraints.

Under the convention of this article,

\[
{}^{B}\mathbf v={}^B C_A\,{}^A\mathbf v.
\]

The inverse transformation is

\[
{}^{A}\mathbf v={}^A C_B\,{}^B\mathbf v,
\]

with

\[
\boxed{
{}^A C_B
=
({}^B C_A)^T
=
({}^B C_A)^{-1}.
}
\]

A source that writes the transpose of a PhysicsLibrary Euler matrix may therefore be describing
the same physical orientation but mapping coordinates in the opposite direction.

\section{Compatibility with the PhysicsLibrary quaternion convention}

The PhysicsLibrary quaternion series uses Hamilton multiplication and writes
${}^{A}q_B$ for the orientation of frame $B$ relative to frame $A$, with the coordinate map

\[
{}^{A}v
=
{}^{A}q_B\,{}^{B}v\,({}^{A}q_B)^*.
\]

If $R({}^{A}q_B)$ denotes the corresponding matrix that maps $B$ coordinates to $A$
coordinates, then

\[
{}^{A}C_B=R({}^{A}q_B).
\]

The passive Euler matrix used in this article maps in the opposite coordinate direction:

\[
\boxed{
{}^{B}C_A
=
R({}^{A}q_B)^T.
}
\]

Thus the Euler and quaternion conventions describe the same relative orientation without
changing Hamilton's quaternion multiplication law.  The frame direction is carried explicitly
by the notation rather than hidden in a sign convention.

For the $3$-$2$-$1$ yaw--pitch--roll orientation,

\[
{}^{A}q_B
=
q_3(\psi)\,q_2(\theta)\,q_1(\phi)
\]

under the PhysicsLibrary/Hamilton quaternion convention, while

\[
{}^{B}C_A
=
C_1(\phi)\,C_2(\theta)\,C_3(\psi)
=
R({}^{A}q_B)^T.
\]

See \PMlinkname{Quaternions for Physics and Engineering: Orientation, Notation, and Conventions}
{NotationQuaternionsForPhysicsAndEngineeringOrientation} and
\PMlinkname{quaternions and Euler angles}{QuaternionsAndEulerAngles} for the quaternion side
of the relationship.

\section{A minimum Euler angle convention declaration}

Any engineering paper, simulation, software interface, or PhysicsLibrary entry that uses
Euler angles should make enough information available to answer the following questions:

\begin{enumerate}
\item Are the coordinate frames right-handed?
\item What is the positive sense of rotation?
\item Is the operation active or passive?
\item What coordinate direction does the matrix map?
\item Is the sequence intrinsic or extrinsic?
\item What is the axis order?
\item Which angle is applied first?
\item What do the angle symbols mean physically?
\item What are the principal angle ranges used for inverse extraction?
\end{enumerate}

If these questions are answered, most apparent Euler angle disagreements reduce to a
transpose, an inverse, an order reversal, or an angle relabeling.

\section{Common pitfalls}

\begin{enumerate}
\item \textbf{Calling a matrix simply ``the rotation matrix.''}
Without a map such as ${}^{B}C_A$, the direction of the coordinate transformation is
ambiguous.

\item \textbf{Mixing active and passive matrices.}
For the same positive geometric rotation, the active vector rotation matrix and passive
coordinate transformation matrix are transposes of one another.

\item \textbf{Calling a sequence $3$-$2$-$1$ without saying intrinsic or extrinsic.}
The axis labels alone do not completely specify the verbal operation.

\item \textbf{Assuming $\phi,\theta,\psi$ always mean first, second, and third rotations.}
In aerospace work they normally mean roll, pitch, and yaw, respectively.

\item \textbf{Reading the matrix product from left to right as the order of action on a
column vector.}
The rightmost factor acts first.

\item \textbf{Treating Euler angles as an ordinary three vector.}
Finite rotation composition is nonlinear and noncommutative.

\item \textbf{Ignoring the middle angle singularity.}
Inverse formulas fail or become nonunique at gimbal lock.

\item \textbf{Copying quaternion  Euler formulas from another convention.}
Quaternion multiplication, frame direction, active/passive interpretation, and Euler sequence
must be converted as one consistent set.
\end{enumerate}

\section{Relation to later PhysicsLibrary entries}

The present entry establishes the convention contract.  The individual sequence entries
develop the twelve matrices in detail.  Separate entries treat:

\begin{enumerate}
\item each of the twelve intrinsic Euler sequences;
\item conversion from a direction cosine matrix to Euler angles;
\item Euler angle rates and angular velocity;
\item quaternion  Euler conversion; and
\item examples and exercises.
\end{enumerate}

The $3$-$2$-$1$ yaw--pitch--roll sequence is treated first because of its importance in
aerospace, navigation, robotics, and rigid-body dynamics.

\section{References and convention notes}

The matrix convention in this article agrees with the passive direction cosine matrix
construction used in modern reference frame mechanics treatments, where the rows contain
the new basis vectors resolved in the old basis.  Henderson's NASA memorandum is a useful
engineering reference because it tabulates all twelve three-angle transformations and
emphasizes the importance of transformation direction.  Diebel provides a broad comparison
of Euler angles, rotation matrices, quaternions, and rotation vectors.

\begin{thebibliography}{9}

\bibitem{Henderson1977}
D. M. Henderson,
\emph{Euler Angles, Quaternions, and Transformation Matrices---Working Relationships},
JSC-12960, NASA Johnson Space Center, July 1977.
\PMlinkexternal{NASA Technical Reports Server}
{https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770024290.pdf}

\bibitem{MooreOrientation}
J. K. Moore,
\emph{Learn Multibody Dynamics}, chapter ``Orientation of Reference Frames,''
2026 edition, CC BY 4.0.
\PMlinkexternal{Orientation of Reference Frames}
{https://moorepants.github.io/learn-multibody-dynamics/orientation.html}

\bibitem{Diebel2006}
J. Diebel,
``Representing Attitude: Euler Angles, Unit Quaternions, and Rotation Vectors,''
Stanford University, 2006.
\PMlinkexternal{online PDF}
{https://www.astro.rug.nl/software/kapteyn-beta/_downloads/attitude.pdf}

\end{thebibliography}

\section*{License}

Unless otherwise noted, this PhysicsLibrary entry is intended for release under the
Creative Commons Attribution--ShareAlike 4.0 International license.</content>
</record>
