3.5.6 · D1Guidance, Navigation & Control (GNC)

Foundations — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

2,543 words12 min readBack to topic

This page assumes nothing. We build every symbol the parent note (parent topic) uses, one at a time, each anchored to a picture.


1. A number line, then a vector

Start with the simplest object: a single number, like or . Picture it as a point on a line. That is a scalar — a lone number with no direction, just a size (and a sign).

Now stack three numbers together: . Picture an arrow starting at the origin and reaching the point steps east, steps north, steps up. That arrow is a vector. We draw a little hat or arrow on top to remember it points somewhere: .

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

2. Length of a vector — the Pythagoras picture

Look at the arrow again. How long is it? If it goes east and north (stay in a flat plane for a second), the arrow is the hypotenuse of a right triangle with legs and .

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

3. Angles, sine, cosine

An angle (the Greek letter "theta") measures how far you turn. Picture a clock hand sweeping from one position to another. A full turn is or radians.

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

4. Two ways to multiply vectors: dot and cross

The quaternion product formula uses two vector products. Meet them both.

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

5. Imaginary units — three "rotate-me" buttons

You may have met one imaginary unit before: with (see Complex Numbers as 2D Rotations). Quaternions have three of them: .

The full quaternion is then written , or compactly where is a plain arrow and is a plain scalar. The letters are just bookkeeping tags saying "this number belongs to the vector part."


6. The multiplication symbol , conjugate, and inverse

Before we can even say "apply a rotation," we need the operations that act on quaternions. Meet them now — nothing later uses them until they are defined here.


7. Why the half-angle: the sandwich applies twice

Now that and exist, we can see where the mysterious comes from.

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

8. Putting it together — the unit constraint, foreseen

Now every symbol in the headline formula is defined. Read it slowly:

Figure — Quaternions — definition q = (q₀, q₁, q₂, q₃), unit quaternion constraint

9. Edge cases you must never forget


Prerequisite map

Scalar - a single number

Quaternion q = q0 plus vector part

Vector - an arrow x y z

Length via Pythagoras

Unit vector - length 1

Spin axis n-hat

Angle theta

cos and sin on unit circle

Half angle theta over 2

Dot product - a number

Cross product - a new arrow

Hamilton product times operator

Units i j k square to -1

Conjugate and inverse

Sandwich q v q-inverse

Double cover q and minus q

Unit constraint sum of squares = 1

Represents a real 3D rotation

This map feeds directly into Axis-Angle Representation, Rotation Matrices SO(3), Euler Angles and Gimbal Lock, and later Quaternion Kinematics — dq/dt and Spacecraft Attitude Determination.


Equipment checklist

Cover the right side and test yourself — you're ready for the parent note when all reveal cleanly.

A scalar is...
a single number; picture = a point on a line, magnitude only.
A vector is...
an arrow from the origin; magnitude and direction.
Length of is...
(3D Pythagoras).
A unit vector is...
an arrow of length exactly 1, written ; carries direction only.
To normalize a vector you...
divide it by its own length, .
and are...
the horizontal and vertical coordinates of a point swept angle round the unit circle.
The identity linking them is...
.
The dot product gives...
a number: ; measures shared direction.
The cross product gives...
a vector perpendicular to both; flips sign when you swap order.
The units obey...
and .
The operator is...
the Hamilton (quaternion) product; non-commutative; scalar part , vector part .
The conjugate is...
— flip the vector part; the undo direction.
The inverse of a unit quaternion is...
(since ), just three sign flips.
The rotation sandwich is...
acts twice, which is why the angle is halved.
Why the half-angle ...
the two-sided sandwich applies twice, so each copy carries half the turn.
and represent...
the same rotation (double cover); signs cancel in the sandwich.
At the quaternion is...
, the identity; the axis is undefined (spinning by nothing).
At the scalar part is...
; a pure-vector quaternion, axis sign ambiguous.
The vector part vs the axis...
vector part (axis scaled), not the bare axis.
Why 4 numbers, 1 rule...
free values = 3 rotational DOF; point lives on the unit 3-sphere.