Picture a little set of three arrows glued to the object: one out the nose, one out the right wing, one out the belly. Rotating the object rotates that trio of arrows. The whole subject is: how do we write down where those three arrows point?
Why we need it: Everything in the parent note — Euler angles, gimbal lock, quaternions — is a competing language for naming this one thing: an orientation. Fix the object; only the description differs.
The picture below shows the right-handed trio and the sense of a positive turn about z (which sweeps +x toward +y).
Why we need it: The parent's three angles (yaw, pitch, roll) are each a rotation about one of these axes. Without a fixed right-handed frame and positive sense, "θ=+90°" would be ambiguous.
An angle measures how much you turn — a fraction of a full circle. We write angles with Greek letters: α (alpha), ϕ (phi), θ (theta), ψ (psi). They are just "amount of turn."
Read these key values straight off the picture:
Why we need it: In the parent, every rotation matrix is filled with cos and sin of the three angles. The blow-up term 1/cosθ explodes precisely because cos90°=0, and dividing by zero is forbidden.
We abbreviate, exactly as the parent does:
cα=cosα,sα=sinα
Watch what happens as α climbs toward 90°: "how far up" (sin) grows to 1 while "how far across" (cos) shrinks to 0. A finite number divided by a shrinking number becomes enormous:
tan89°≈57,tan89.9°≈573,tan90°=undefined (infinite steepness).
Why we need it: The parent's rate matrix contains tanθ. As pitch approaches 90°, tanθ (and its cousin 1/cosθ) run away to infinity — that is the mathematical face of gimbal lock, not a physical jam.
Let us derive a rotation matrix instead of quoting it. Take a turn by angle α about the z axis. A turn about z leaves the height (the z coordinate) untouched and only stirs the x–y plane — so we just need to know where the two flat arrows go.
Using Section 3's circle picture: an arrow at angle 0 turned by α lands at (cosα,sinα); an arrow at 90° turned by α lands at (cos(90°+α),sin(90°+α))=(−sinα,cosα). So:
old +x arrow →(cosα,sinα,0) — this is column 1.
old +y arrow →(−sinα,cosα,0) — this is column 2.
old +z arrow →(0,0,1) — unchanged, column 3.
Stacking those columns gives the general z-rotation:
Why we need it:Rotation matrices SO(3) are the group the parent parametrizes. The single equation R=Rz(ψ)Ry(θ)Rx(ϕ)is "do three turns in a row," because multiplying matrices means "apply one rotation, then the next."
Why the middle one is special: pitch θ sits between yaw and roll. It is the turn that tilts the roll axis away from the yaw axis. If pitch reaches 90°, the roll axis lands right on top of the yaw axis — and that is the whole story of the parent note.
Here is the conversion matrix in full (the same one the parent uses), so nothing is hidden:
Why we need it: GNC systems (Attitude determination and control) continuously read (p,q,r) and integrate them into angles through exactly this matrix. The disaster is not in the static angles but in this rate conversion diverging.
Gimbal lock is exactly this: at θ=±90° the Euler-angle map has a hole, but the physical object rotates freely. The fix is to switch to a map with no holes — Quaternions.
An orientation vs a position — what is the difference?
Orientation is which way the object faces; position is where it sits. Gimbal lock is about orientation only.
Which way do +x, +y, +z point, and what makes the frame right-handed?
+x forward, +y left, +z up; right-handed means fingers sweeping +x→+y point the thumb along +z (i.e. x×y=z).
What does the right-hand rule tell you about rotations?
Thumb along the positive axis, curling fingers give the positive direction of rotation about it.
What are cosα and sinα geometrically?
The horizontal ("across") and vertical ("up") coordinates of a point turned by α on the unit circle.
What is cos90°, and why does it matter here?
cos90°=0; dividing by it (as in 1/cosθ) causes the gimbal-lock blow-up.
Why does tanθ→∞ as θ→90°?
Because tan=sin/cos and cos90°=0: a finite top over a vanishing bottom explodes.
What do the columns of a rotation matrix represent?
The new positions of the old axis arrows after the turn — which is why the entries are cos/sin.
Why does Rz(α) carry cos on the diagonal and −sin above, +sin below?
Diagonal cos = how much of each axis stays; off-diagonal sin = how much leaks into the perpendicular axis; the −sin is above because +x→+y is the opposite sense to +y's leak toward −x.
Which of yaw/pitch/roll is the "middle" rotation and about which axis?
Pitch θ, about the y axis — it tilts the roll axis relative to the yaw axis.
Write the body-to-Euler conversion term that blows up, and say when.
The 1/cosθ (and tanθ) entries blow up as θ→±90° because cosθ→0.
What is a coordinate singularity?
A spot where the description breaks (infinities/ambiguity) though the physical object is fine — like the North Pole for longitude.