3.5.5 · D5Guidance, Navigation & Control (GNC)
Question bank — Gimbal lock — problem with Euler angles at θ = ±90°
Before you start, one vocabulary anchor so nothing below is a symbol you haven't earned:
- DOF = degree of freedom = one independent "knob" you can turn. A rigid body's orientation always needs exactly three independent knobs.
- Chart = a way of labelling orientations with numbers (Euler angles are one chart, Quaternions give another). See Singularities of coordinate charts.
- Singularity = a place where the labels break, even though the thing being labelled is perfectly fine.
- Pitch = the middle rotation in the ZYX chain from the parent; , .
True or false — justify
Is gimbal lock a mechanical jam that stops the rigid body from rotating?
False. The body rotates freely about any axis; only the Euler-angle chart (and physical gimbals built to mimic it) loses a DOF. Nothing physical is stuck.
At the object has lost a rotational degree of freedom.
False — subtly. The object keeps all three DOF; the coordinate representation drops from three effective DOF to two. Always name which "thing" lost the DOF.
Gimbal lock happens at some other angle depending on your yaw and roll values.
False for the ZYX convention. It is fixed at the middle angle regardless of and ; the singular value belongs to the convention, not to the current attitude.
If you avoid the exact value , your Euler-angle GNC code is safe.
False. The rate map carries , so an entire neighbourhood (say –) is numerically unstable. It is a bad region, not a single bad point.
Quaternions secretly suffer the same gimbal lock, just hidden in the algebra.
False. Quaternions form a smooth global double cover with no singular orientations; their only quirk is the harmless sign identity , which loses no DOF.
Every orientation chart on must have at least one singularity somewhere.
True for any three-number chart. You cannot smoothly cover the whole rotation group with three coordinates without a singularity — the escape is to use more numbers (four in a quaternion), as Singularities of coordinate charts explains.
The blow-up in means the physical yaw rate becomes infinite near lock.
False. The physical rotation is finite and calm; it's the Euler rate that must diverge to keep describing that finite motion. Infinite label-speed, finite reality.
Switching from ZYX to ZYZ Euler angles removes gimbal lock entirely.
False. It merely moves the singularity — ZYZ locks when its middle angle hits or instead of . You relocate the hole, you don't fill it.
Spot the error
"At , yaw and roll cancel out, so no rotation is possible about the vertical."
Wrong: they don't cancel, they coincide. Both drive rotation about the same vertical axis, so you can still rotate about it — you just can't do it two independent ways.
"The term in the rate map is the whole problem; kill it and you're fine."
Incomplete: the terms in and also diverge as . Both come from the same vanishing , so you can't isolate one.
"Because infinitely many give the same at lock, the orientation itself is ambiguous."
Error of blame: the orientation is perfectly well-defined; it's the inverse map orientation→angles that becomes one-to-many. The problem is the labelling, not the pose.
"At the matrix depends on ."
Sign slip. At only survives; the collapse happens at . Mixing the two is a classic exam trap.
"Gimbal lock is why the Apollo astronauts could never point the spacecraft in certain directions."
Wrong cause. See Apollo Guidance Computer: the spacecraft could point anywhere; the inertial platform's three physical gimbals could jam, corrupting the guidance readout — hence "don't get into gimbal lock," not "can't rotate there."
"Rotation matrices Rotation matrices SO(3) have gimbal lock because you can build them from Euler angles."
Confusing map with target. A rotation matrix is a singularity-free representation; the lock lives in the Euler parametrization you optionally use to generate one, not in itself.
Why questions
Why is it specifically the middle rotation, not the first or last, that triggers lock in ZYX?
Because the middle rotation is the one that tilts the third axis relative to the first. Only it can swing the third axis to lie exactly on the first; the outer two just spin about already-fixed lines.
Why does , and not , appear in the denominator of the rate map?
Because at the pitch axis becomes perpendicular to the projection geometry that separates yaw from roll; measures how much of that separation remains, and it vanishes exactly at the poles.
Why do engineers still convert to Euler angles at all if they are singular?
They are the most human-readable (yaw/pitch/roll for a display or a pilot). The trick from Attitude determination and control: compute in Quaternions internally, convert to Euler angles only at the last moment for display, handling as a special case.
Why does small sensor noise become catastrophic near lock, not merely inconvenient?
The factor multiplies the noise by a huge, growing gain (see Angular velocity kinematics). A tiny error in a body rate is amplified into a wild Euler rate that the integrator then accumulates.
Why is for quaternions not a lost degree of freedom, unlike gimbal lock?
It's a two-to-one labelling redundancy over the whole space (two names for each rotation), uniform everywhere and smooth. Gimbal lock is a local collapse where a knob stops doing anything — genuinely different.
Why can't you simply add a small offset to in software to dodge the singularity?
Because the true attitude may legitimately pass through ; fudging the angle would misreport the real orientation. You must change the representation, not lie about the number.
Edge cases
What happens to the rate map when (level flight)?
It's perfectly regular: , , so yaw, pitch and roll rates map cleanly and independently. The chart is well-behaved far from the poles.
At , which combination of and does the rotation matrix depend on?
Only on . The sign flips relative to the case because reversing the pitch reverses how the roll axis lines up against the yaw axis.
If yaw and roll are literally the same motion at lock, can you recover a unique and from the matrix?
No. Only their combination ( at ) is determined; the individual values are free. Convention is to pin one (often set ) and let the other absorb the total.
Does gimbal lock depend on how fast you rotate, or only on the attitude reached?
Only on the attitude ( reaching ). Speed doesn't matter for the collapse; but faster motion through the neighbourhood makes the rate spike worse for a numerical integrator.
Is there any Euler-angle convention with zero singularities?
No three-angle convention escapes it — the singularity always sits somewhere (see Euler angles and Singularities of coordinate charts). Only leaving the three-number chart entirely (quaternions, rotation matrices) removes it.
What is the limiting behaviour of as with a fixed nonzero body rate ?
It diverges to like . The sign depends on which side you approach from, so swings through infinity — a textbook coordinate singularity, not a physical event.
Connections
- Euler angles — the chart whose traps this page drills
- Quaternions — the singularity-free escape referenced throughout
- Rotation matrices SO(3) — the space that is never actually singular
- Angular velocity kinematics — origin of the rate gain
- Attitude determination and control — where the "compute in quaternions, display in Euler" rule lives
- Apollo Guidance Computer — the historic physical-gimbal jam
- Singularities of coordinate charts — the general reason no 3-number chart is safe