Exercises — Euler angles — roll φ, pitch θ, yaw ψ; rotation sequence (3-2-1 convention)
The master formulas we test against (all derived in the parent):
Level 1 — Recognition
L1.1
In the 3-2-1 convention, list the three rotations in the order they are physically applied, naming the axis, the Greek letter, and the plain-English motion for each.
Recall Solution
- Yaw about the -axis (the "3rd" axis) — nose swings left/right (like a merry-go-round).
- Pitch about the new -axis (the "2nd" axis) — nose tips up/down.
- Roll about the newest -axis (the "1st" axis) — wings bank sideways.
The name 3-2-1 is literally the axis numbers in application order: .
L1.2
Which entry of depends on pitch alone (no roll, no yaw)? Write it.
Recall Solution
Look at the top-right entry . It contains only . That is exactly why pitch is the easiest angle to recover: no other angle contaminates it, so needs no ratio.
L1.3
True/False: . Explain in one sentence.
Recall Solution
False. Matrix multiplication (and physical rotation) does not commute — spinning yaw-then-roll leaves you somewhere different from roll-then-yaw. Order is part of the definition; you must always state the convention.
Level 2 — Application
L2.1
Compute numerically, then find where the nose vector (body frame) points in nav coordinates.
Recall Solution
With : , so The nose lives in the body frame, so to see it in nav we apply : That is = East. A yaw swings the nose from North to East. ✓
L2.2
For , compute the first row of (which tells us where nav-North lands in body coordinates through row·vector). Interpret.
Recall Solution
First row . With : , so first row . Meaning: the body- axis (nose) is now -aligned with nav Down direction negated — the nose points straight up (). A pitch-up stands the aircraft on its tail. ✓
L2.3
Given , what is ? Then invert: from recover .
Recall Solution
. Inverting, . The minus signs cancel, confirming the recovery formula is self-consistent. ✓
Level 3 — Analysis
L3.1
Build the third row of for , and verify it is a unit vector.
Recall Solution
Third row . With (): . Numbers: : Magnitude: . ✓ Interpretation: this row is the body-Down axis seen in nav — its downward component shows the belly is no longer pointing straight down; the craft is tilted.
L3.2
Recover all three Euler angles from
Recall Solution
- . Why: is uncontaminated.
- . Why: and share the factor ; their ratio is , and atan2 uses both signs to nail the quadrant.
- . Same trick with . ✓
L3.3
The DCM read-out uses rather than . Give a concrete pair of values where plain would give the wrong answer, and show atan2 fixes it. (See figure.)

Recall Solution
Take for simplicity, so .
- Case : . Ratio , . Correct.
- Case (equivalently ): . Ratio is still , so — wrong by .
- — correct, because atan2 sees both signs are negative and places the angle in the third quadrant.
Plain only ever returns answers in because repeats every ; atan2 uses the two separate signs of numerator and denominator to recover the full range. The figure shows the two vectors landing in different quadrants despite an identical ratio.
Level 4 — Synthesis
L4.1
Set and show algebraically that the recovery formulas for and both collapse to . Identify what physical thing has been lost. (See figure.)

Recall Solution
At : . Look at the four entries the read-out needs: So and — both undefined (). Physically, when the nose points straight up the roll axis and the yaw axis point the same way in space, so a roll and a yaw produce the same motion. Two knobs now do one job → one degree of freedom is lost. This is gimbal lock. The figure shows the roll and yaw circles becoming coincident. Practical fix: propagate attitude with quaternions or the Direction Cosine Matrix (DCM) directly, and only convert to Euler angles for human display away from .
L4.2
Show that the composed matrix at gimbal lock () depends only on the sum , not on and separately. Verify with vs .
Recall Solution
At , plug into the lower-left block of : Every non-trivial entry is a function of only (the sign convention here makes the difference the free combination; the exact combination depends on convention, but the point stands: one combined angle, not two). Check: ; — these give different matrices, but any other pair with the same difference (e.g. , difference ) gives the same matrix as . That collapse from two independent numbers to one is exactly the lost degree of freedom. ✓
Level 5 — Mastery
L5.1
A UAV holds and pitches slowly from up through to . Explain what the recovered Euler yaw does numerically as it crosses , and why an attitude estimator running on Euler angles would misbehave here. Then state the design fix.
Recall Solution
As , the entries shrink toward while any tiny sensor noise remains. So divides small noisy numbers by small noisy numbers — the recovered yaw becomes wildly sensitive and can jump by up to in a single step as passes through (the frame effectively "flips" which way it is looking). A filter integrating would see an enormous spurious rate and inject a false correction. Why this happens: the map from orientation to has a coordinate singularity at (the Jacobian of the Euler-rate relation blows up because it contains a term — the same that cancelled harmlessly in L3 now sits in a denominator for the rates). Near the singularity, small state changes demand infinite angle changes. Design fix: run the estimator's internal state as a quaternion or a DCM (both singularity-free — see Quaternions — avoiding gimbal lock, Direction Cosine Matrix (DCM)), propagate using body rates from Angular velocity & body rates p, q, r, and only convert to for the pilot's display, avoiding the display update exactly at .
L5.2
Prove that is orthogonal (i.e. ) using the fact that each elementary rotation is orthogonal — without multiplying out the full .
Recall Solution
Each elementary matrix satisfies (its columns are perpendicular unit vectors — the definition of a rotation, see Rotation matrices & orthogonality). For the product : Now peel from the inside: , leaving ; then , leaving . Hence : the product of orthogonal matrices is orthogonal. Why it matters: this is why the inverse is just the transpose, which we used freely in L2.1 to map body → nav. ✓
Connections
- Rotation matrices & orthogonality
- Quaternions — avoiding gimbal lock
- Direction Cosine Matrix (DCM)
- Angular velocity & body rates p, q, r
- NED navigation frame
- Attitude estimation (Kalman / complementary filter)