3.5.3 · D1Guidance, Navigation & Control (GNC)

Foundations — Direction cosine matrix (DCM) — construction from Euler angles

2,038 words9 min readBack to topic

This page assumes nothing. Before you can read the parent note the DCM topic, you must own every symbol it silently uses. We build them in order, each on top of the last.


0. The stage: what "a vector in a frame" means

The whole topic exists because there are two frames:

  • — the inertial (navigation) frame. Think: fixed to the stars / the sky. Guidance and orbits are described here.
  • — the body frame. Glued to the spacecraft itself. Sensors and thrusters live here.
Figure — Direction cosine matrix (DCM) — construction from Euler angles

1. Unit vector — the "hat" symbol

The parent note writes the frame axes as (the three inertial pointing-directions) and (the three body pointing-directions). The subscript just names the first, second, third axis.

Why we need it: the DCM's entries are built entirely from how these hatted arrows line up with each other.


2. The dot product — "how much do two arrows agree?"

This is the single most important tool, so we build it carefully.

Now the key special case, which is the whole reason the topic is called "direction cosine":

Figure — Direction cosine matrix (DCM) — construction from Euler angles

3. The angle and the two triangle ratios

Every rotation is measured by an angle, and the machinery needs and of that angle. Build them from a right triangle so no symbol is borrowed.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Why the topic needs this: the elementary rotation matrices are built entirely out of and of the rotation angle.


4. The angle-difference identity — the engine of the rotation

The parent's derivation uses and . We must own these.


5. Matrix, and matrix × vector

The DCM is a matrix. Here is the bare minimum, from zero.

Why the topic needs this: composing three rotations () is matrix multiplication, and transposing gives the inverse rotation.


6. Two functions that "undo" trig: and

The parent extracts angles back out of the DCM with these.


7. The skew-symmetric bracket (preview)

The parent's small-angle example writes . Just enough to read it:

You don't need to master this yet — its own note does — just recognize the shape when the parent's linearization appears.


Prerequisite map

Vector = arrow

Reference frame = 3 axes

Unit vector n-hat

Dot product a dot b

Unit dot = cosine

Right triangle sin cos

Angle difference identity

2D axis rotation R3

DCM entry Cij = cosine

Elementary DCMs R1 R2 R3

Matrix times vector

Matrix product order matters

Compose 3-2-1 DCM

arcsin and atan2

Recover Euler angles


Equipment checklist

Test yourself — you're ready for the parent note when you can answer each without hesitation.

What does a hat, as in , tell you about an arrow?
Its length is exactly ; it only carries direction.
Why is the dot product of two unit vectors just ?
Because and both lengths are .
On a right triangle, what is ?
Adjacent side divided by hypotenuse.
In which quadrants is negative?
Quadrants II and III (angles between and ).
Why does axis-rotation produce ?
Rotating axes by moves a point at angle to angle relative to the new axes.
How do you compute entry of ?
Dot product of row of with .
What does the transpose do to entry ?
Moves it to row , column (flip across the diagonal).
Why must be used instead of ?
It uses the signs of both and to keep the correct quadrant.
What is the identity matrix ?
Ones on the diagonal, zeros elsewhere; multiplying by it changes nothing.
Why does the order of the three Euler rotations matter?
Matrix multiplication is not commutative: .

Connections