Intuition The one core idea
A 3D rotation is fully described by two things: a direction to spin around (an arrow) and how much to twist (an angle). A quaternion is just a tidy box of 4 numbers that stores both at once, kept honest by one rule — the four numbers squared must add to exactly 1.
Everything below is the vocabulary you need before that sentence makes full sense: what an axis is, what an angle is, what "squared and added to 1" means geometrically, and why 4 numbers describe a 3-way freedom.
This page assumes nothing . We build every symbol the parent note (parent topic) uses, one at a time, each anchored to a picture.
Start with the simplest object: a single number, like 3 or − 2 . 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: ( x , y , z ) . Picture an arrow starting at the origin and reaching the point x steps east, y steps north, z steps up. That arrow is a vector . We draw a little hat or arrow on top to remember it points somewhere: v .
Definition Scalar vs vector
Scalar s : one number. Picture = a point on a line. It has magnitude (size) only.
Vector v = ( x , y , z ) : three numbers bundled together. Picture = an arrow in space. It has magnitude and direction .
Why the topic needs both: a rotation carries a scalar (how much you twist) AND a vector (which way the spin-axis points). The quaternion q = ( q 0 , q v ) is literally "one scalar glued to one vector."
Look at the arrow again. How long is it? If it goes x east and y north (stay in a flat plane for a second), the arrow is the hypotenuse of a right triangle with legs x and y .
Intuition Why we square, add, and square-root
A right triangle obeys ( leg ) 2 + ( leg ) 2 = ( hypotenuse ) 2 . So the arrow's length is x 2 + y 2 . In 3D we simply add the third leg z under the same root. Squaring removes negative signs (a length can't be negative and left-vs-right shouldn't matter); the square root undoes the squaring to return an honest length.
A unit vector is an arrow of length exactly 1 , written with a hat: n ^ . Its job is to carry direction only — it points a way without adding size.
To make any arrow a unit vector, divide it by its own length ("normalize " it): v ^ = v / ∥ v ∥ .
Why the topic needs it: a spin-axis is a pure direction — "spin about this way." So the axis n ^ = ( n x , n y , n z ) is always a unit vector, meaning n x 2 + n y 2 + n z 2 = 1 . Remember that fact; it makes the quaternion norm collapse to 1 later.
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 36 0 ∘ or 2 π radians.
Definition Sine and cosine, on the circle
Draw a unit circle (radius 1). Sweep a point around it by angle θ . Then:
cos θ = the point's horizontal coordinate.
sin θ = the point's vertical coordinate.
Because the point sits on a radius-1 circle, Pythagoras gives the identity you will use constantly:
cos 2 θ + sin 2 θ = 1.
The quaternion product formula uses two vector products. Meet them both.
Definition Dot product (scalar-valued)
p ⋅ q = p x q x + p y q y + p z q z
Multiply matching parts, add them up — the answer is a single number (a scalar).
Picture: how much two arrows point the same way . Same direction → big positive; perpendicular → zero; opposite → negative.
Definition Cross product (vector-valued)
p × q = a new arrow perpendicular to both p and q .
The answer is itself a vector , sticking out sideways from the plane of the two inputs.
Picture: point your right-hand fingers from p toward q ; your thumb gives p × q .
You may have met one imaginary unit before: i with i 2 = − 1 (see Complex Numbers as 2D Rotations ). Quaternions have three of them: i , j , k .
Definition The imaginary units
Each squares to − 1 : i 2 = j 2 = k 2 = − 1.
Multiplied in a cycle they wrap around: ij = k , j k = i , k i = j (and reversing the order flips the sign).
Picture: think of i , j , k as three perpendicular axes; multiplying two of them "turns" you onto the third — a right-hand cycle. Reverse the cycle, get a minus sign.
The full quaternion is then written q = q 0 + q 1 i + q 2 j + q 3 k , or compactly q = ( q 0 , q v ) where q v = ( q 1 , q 2 , q 3 ) is a plain arrow and q 0 is a plain scalar. The letters i , j , k are just bookkeeping tags saying "this number belongs to the vector part."
Common mistake "The vector part
( q 1 , q 2 , q 3 ) IS the spin-axis."
Why it feels right: both are 3-number bundles.
Fix: the axis n ^ is a unit vector; the quaternion's vector part is n ^ sin 2 θ — the axis scaled by sin 2 θ . They point the same way but have different lengths.
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.
Definition The Hamilton product
⊗
⊗ is the special way you multiply two quaternions . It is NOT ordinary number multiplication — it mixes the scalar and vector parts using the dot and cross products from Section 4:
p ⊗ q = ( p 0 q 0 − p ⋅ q , p 0 q + q 0 p + p × q ) .
Picture: feed in two boxes-of-4, get one box-of-4 out. The p ⋅ q (a number) lands in the scalar slot; the p × q (an arrow) lands in the vector slot.
Because the cross product flips sign when you swap the inputs (p × q = − q × p ), the whole product is non-commutative : in general p ⊗ q = q ⊗ p — exactly like real rotations, where order matters.
q ∗
The conjugate flips the sign of the vector part only:
q ∗ = ( q 0 , − q v ) = ( q 0 , − q 1 , − q 2 , − q 3 ) .
Picture: keep the twist-amount, but point the spin-axis the opposite way — this is the undo button for a rotation.
q − 1
The inverse is the quaternion that, multiplied in, gives back the "do-nothing" identity ( 1 , 0 ) :
q − 1 = ∥ q ∥ 2 q ∗ .
For a unit quaternion (∥ q ∥ = 1 ) the denominator is 1 , so it simplifies to
q − 1 = q ∗ (just negate the 3 vector signs).
Why this matters: inverting a rotation should be cheap. With unit quaternions it is just three sign flips — no division, no matrix work. This is why spacecraft flight computers (Spacecraft Attitude Determination ) love them.
Now that ⊗ and q − 1 exist, we can see where the mysterious θ /2 comes from.
Intuition The rotation sandwich
To actually rotate an arrow v , you don't multiply once — you sandwich it:
v ′ = q ⊗ v ⊗ q − 1 .
The quaternion touches v on both sides , so its rotation effect is applied twice . If a single q carried the full angle θ , the sandwich would rotate by 2 θ — too much. So each copy of q must carry only half the angle, θ /2 , and the two halves add up to the one full turn θ you actually want.
Now every symbol in the headline formula is defined. Read it slowly:
Intuition Why 4 numbers, 1 rule = 3 freedoms — the 3-sphere picture
Four numbers ( q 0 , q 1 , q 2 , q 3 ) minus one binding rule (∑ q i 2 = 1 ) leaves 4 − 1 = 3 genuinely free choices — exactly the 3 ways a body can rotate (yaw, pitch, roll). The picture: a unit quaternion is a point pinned to the surface of a sphere , always at distance 1 from the centre. A surface has one fewer dimension than the space it sits in — a 2D sphere-surface lives in 3D, and our "3-sphere" surface lives in 4D. You can't draw 4D, so the figure below shows the honest 3D stand-in: an ordinary ball whose surface is where every valid rotation lives.
Definition The two signs are the same rotation (double cover)
Look at the sandwich v ′ = q ⊗ v ⊗ q − 1 . Replace q with − q : the minus signs appear on both sides and cancel :
( − q ) ⊗ v ⊗ ( − q ) − 1 = q ⊗ v ⊗ q − 1 .
So q and − q produce the identical 3D rotation. Every real rotation is therefore named by two quaternion points (antipodal on the 3-sphere). This "two-names-one-rotation" fact is called the double cover of S O ( 3 ) — the sphere covers the set of rotations twice over.
q and − q must be different rotations."
Why it feels right: they are different 4-tuples, so surely different outputs.
Fix: the sandwich squares the sign away. − q is just the other name for the same physical turn.
θ = 0 : the axis vanishes
At zero rotation , q = ( cos 0 , n ^ sin 0 ) = ( 1 , 0 ) . The vector part is the zero arrow, so the axis n ^ has no effect and is undefined — which is correct: "spin by nothing" doesn't care about which axis you didn't spin around. This ( 1 , 0 ) is the identity quaternion , the do-nothing element.
θ = 18 0 ∘ (π ): the scalar vanishes
A half-turn gives cos 2 π = 0 , so q = ( 0 , n ^ ) — a pure vector quaternion, scalar part zero. Here q and − q point to n ^ and − n ^ : spinning 18 0 ∘ about n ^ lands you in the same place as spinning 18 0 ∘ about − n ^ . The double cover shows up plainly — the axis sign is genuinely ambiguous at exactly a half-turn, and that is fine because both give the same result.
Quaternion q = q0 plus vector part
cos and sin on unit circle
Cross product - a new arrow
Hamilton product times operator
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 .
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 ( x , y , z ) is... an arrow from the origin; magnitude and direction.
Length of v = ( x , y , z ) is... ∥ v ∥ = x 2 + y 2 + z 2 (3D Pythagoras).
A unit vector is... an arrow of length exactly 1, written n ^ ; carries direction only.
To normalize a vector you... divide it by its own length,
v ^ = v / ∥ v ∥ .
cos θ and sin θ are...the horizontal and vertical coordinates of a point swept angle θ round the unit circle.
The identity linking them is... cos 2 θ + sin 2 θ = 1 .
The dot product p ⋅ q gives... a number : p x q x + p y q y + p z q z ; measures shared direction.
The cross product p × q gives... a vector perpendicular to both; flips sign when you swap order.
The units obey... i 2 = j 2 = k 2 = − 1 and ij = k , j k = i , k i = j .
The ⊗ operator is... the Hamilton (quaternion) product; non-commutative; scalar part
p 0 q 0 − p ⋅ q , vector part
p 0 q + q 0 p + p × q .
The conjugate q ∗ is... ( q 0 , − q v ) — flip the vector part; the undo direction.
The inverse of a unit quaternion is... q − 1 = q ∗ (since ∥ q ∥ = 1 ), just three sign flips.
The rotation sandwich is... v ′ = q ⊗ v ⊗ q − 1 — q acts twice, which is why the angle is halved.
Why the half-angle θ /2 ... the two-sided sandwich applies q twice, so each copy carries half the turn.
q and − q represent...the same rotation (double cover); signs cancel in the sandwich.
At θ = 0 the quaternion is... ( 1 , 0 ) , the identity; the axis is undefined (spinning by nothing).
At θ = 18 0 ∘ the scalar part is... q 0 = cos 9 0 ∘ = 0 ; a pure-vector quaternion, axis sign ambiguous.
The vector part vs the axis... vector part = n ^ sin 2 θ (axis scaled ), not the bare axis.
Why 4 numbers, 1 rule... 4 − 1 = 3 free values = 3 rotational DOF; point lives on the unit 3-sphere.