Visual walkthrough — Gimbal lock — problem with Euler angles at θ = ±90°
Step 1 — Three axes, three spins (the vocabulary)
WHAT. An orientation is "which way is the object tilted." We build it from three simple turns, each about one axis of a right-handed frame. A right-handed frame is three arrows at to each other, labelled (forward), (left), (up), arranged so that curling the right hand from toward points the thumb along .
WHY these three. Any tilt in 3D can be reached by stacking exactly three independent turns — no more, no less. That number three is the "degrees of freedom" (DOF): three independent dials. Losing one is the whole story of this page.
PICTURE. Figure s01 shows the three named turns:
- (yaw) — spin about the up-axis . Think "turn left/right."
- (pitch) — spin about the left-axis . Think "nose up/down."
- (roll) — spin about the forward-axis . Think "barrel roll."

Step 2 — Turning a spin into a grid (the rotation matrix)
WHAT. To compute with these turns we replace each one by a box of numbers called a rotation matrix. A matrix here is just a bookkeeping grid: give it the arrow "before," it hands you the arrow "after."
WHY a matrix and not the angle alone. Because we must stack turns, and stacked turns multiply as grids in a fixed order. Angles alone can't be chained; grids can. See Rotation matrices SO(3) for the group they live in.
PICTURE. Figure s02 takes the pitch turn and shows what each entry does to a test arrow.
Each symbol, right where it sits:
- on the diagonal "how much of the old direction survives."
- off-diagonal "how much leaks from forward into up (or back)."
- the lone in the middle row the pitch axis is untouched — it is the spin axis.
The other two dials, written out the same way. So no grid is left to guess, here are the yaw and roll matrices in full. Each keeps its own spin axis frozen (the lone on that axis) and mixes the other two components through (keep) and (leak):
- freezes (the yaw axis) and mixes .
- freezes (the roll axis) and mixes .

Step 3 — Freeze the middle dial at the danger value
WHAT. We set pitch to its suspected singular value and see what the pitch grid becomes. At : and .
WHY here. The middle turn is the only one that tilts the last axis relative to the first. Push it to and we suspect the last axis (, roll) will lie exactly on the first axis (, yaw). We test that suspicion directly rather than guess.
PICTURE. Figure s03: watch the forward-arrow swing up until it points along . The two "leak" terms hit their maximum ; the two "keep" terms collapse to .

The key visual: the old forward direction now stands straight up. That is the alignment that will merge yaw and roll.
Step 4 — Multiply it out and read the collapse
WHAT. We compute using the three grids from Steps 2–3, and stare at the result:
WHY this is the punchline. Look at every non-trivial entry: they contain and only through the single combination . So if you turn the yaw dial up by and the roll dial up by the same , the difference is unchanged — and therefore is unchanged. Two dials, one net effect: a degree of freedom has vanished.
PICTURE. Figure s04 plots the entries as and each vary. The surface is flat along the diagonal — a whole valley of pairs give the same orientation.

Step 5 — The other pole, and everything in between
WHAT. We must cover all cases, not just . Three regimes:
- : same collapse, opposite sign. Set , , so the pitch grid becomes . Multiplying out gives the collapse below.
- (the safe interior): , the two axes are genuinely tilted apart, all three dials act independently. Full 3 DOF.
- near but not exactly there: not safe, as Step 6 shows.
WHY the sign flips. At the forward axis pointed straight up along , so roll and yaw ran the same way and their effects subtracted (). At the forward axis points straight down along — roll now runs opposite to yaw, so their effects add (). The lone sign change is exactly what carries through the multiplication. Explicitly:
— every non-trivial entry now depends only on .
PICTURE. Figure s05 lines up the three regimes side by side: yaw axis and roll axis fanned apart (interior), merged pointing up (), merged pointing down ().

Step 6 — Why the rates explode (a neighborhood, not a point)
WHAT. Orientation is not static; a GNC computer measures body spin rates — where is the spin rate about the roll axis , about the pitch axis , and about the yaw axis (the same three axes from Step 1) — and integrates them into Euler angles. The bridge (from Angular velocity kinematics) is:
Two symbols are the culprits, defined here:
- — "steepness"; it answers how fast the tilt grows per unit turn. As , denominator , so .
- — same vanishing denominator, same blow-up.
WHY it's a region not a point. Because is huge for a band of angles around , not only at the exact value. At , , so . A whisper of sensor noise in becomes a scream in .
PICTURE. Figure s06 plots across : a smooth curve for most of the range that rockets toward a vertical asymptote as . The unstable band is shaded.

Step 7 — The physics never broke; only the chart did
WHAT. The rigid body still rotates perfectly freely in every direction. What failed is the coordinate chart — the particular way labels orientations. This is exactly what Singularities of coordinate charts describes: the map is fine in the interior, singular at the poles, like the meridian lines all crashing together at the North Pole of a globe.
WHY the fix works. Quaternions wrap all of smoothly with no singular orientation, so they never divide by . Their only quirk () is not a lost DOF.
PICTURE. Figure s07: a globe with meridians crowding at the pole (the Euler singularity) beside a smooth quaternion cover with no pinch point.

The one-picture summary
WHAT. Figure s08 compresses the whole walkthrough: interior pitch keeps yaw and roll fanned apart (3 DOF); as pitch swings to the roll axis climbs onto the yaw axis, the matrix depends only on , and the rate curve blows through the roof. One glance tells the entire story.

Recall Feynman retelling — the whole walkthrough in plain words
Picture a toy plane with three dials: turn (yaw), nose up/down (pitch), barrel-roll (roll). We wrote each dial as a little grid of numbers so we could stack them (Steps 1–2). Then we cranked the middle dial — pitch — until the nose pointed dead at the ceiling (Step 3). When we multiplied the three grids together, something spooky happened: the answer only cared about the difference between the turn dial and the roll dial (Step 4). Turn both dials by the same amount and the plane doesn't move at all — two dials had fused into one. The same trap sits at nose-straight-down, except there the dials add instead of subtract (Step 5). Worse, the equation that turns real spin into dial-motion has a in it, which becomes a division by almost-zero near the poles, so a tiny wobble in the sensor makes the computer command an insane spin (Step 6). But the plane itself was never stuck — only our three dials got confused. Swap the dials for quaternions, whose map never pinches, and the confusion disappears (Step 7).
Connections
- Euler angles — the three-dial representation we dissected
- Rotation matrices SO(3) — the grids we multiplied in Steps 2–4
- Angular velocity kinematics — source of the rate blow-up (Step 6)
- Quaternions — the pinch-free fix (Step 7)
- Singularities of coordinate charts — the general reason a chart fails while the physics is fine
- Attitude determination and control — where this bites in real GNC
- Apollo Guidance Computer — the historic "gimbal lock" alarm