Starting with a direction cosine matrix (DCM), we need to determine the three Euler Angles. The
connection is made by comparing the DCM elements with the combined Euler 232 sequence. It is
important to note that the 12 combinations of Euler angles for a given sequence can be found from
a given DCM. The DCM matrix is
The Euler 232 sequence is
If we examine the element in coloum 2 row 2, then by inspection
A22 = cos(𝜃)
Solving for 𝜃 yields
Care must now be taken when evaluating the inverse cosine. It is a multivalued function.
Analytically, the convention is to choose the principle value such that
0 ≤ 𝜃 ≤ π
If a numerical program is used, a function acos() usually does this for us. The next step is to
analyze the ratio
. Using these values from the Euler sequence we get
=
Rearranging and using the tangent yields
tan(ϕ) =
Solving the quadrant ambiquity caused by the inverse tangent is done by examining the signs of
the numerator and denominator. Denoting y as the numerator and x as the denominator, then the
quadrant is chosen by:
quadrant 1
so if x and y are both positive, then 0 ≤ ϕ ≤ π∕2. Similarily for the other quadrant
possibilites
quadrant 2
quadrant 3
quadrant 4
Ofcourse, it is much simplier to use a calculator or numerical program that uses the atan2()
function which will choose the principle value. In a similar fashion we can find the final Euler angle
by looking at the ratio
which gives the relation
=
Canceling terms and rearrangeing gives us
ψ = tan−1(
)
which uses the same method to resolove quadrant ambiguity as above. To summarize, we will give
the formulas for the conversion from a direction cosine matrix to the Euler 232 angles in Matlab
syntax. Be careful how you implement this in other numerical programs. In Matlab it goes
atan2(y,x) and in Mathematica it is ArcTan[x, y].