ArticleslgStudy

physics

Quaternions and spatial rotation

Quaternions and spatial rotation is a physics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Quaternions and spatial rotation rather than just read about it. In short: Unit quaternions, known as versors, provide a convenient mathematical notation for representing spatial orientations and rotations of elements in three dimensional space (3D rotations). This is a generalization of the use of unit complex numbers for 2D rotations.

Quaternions and spatial rotation — main illustration
Quaternions and spatial rotation — illustration

Key takeaways

  • Quaternions and spatial rotation belongs to physics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Quaternions and spatial rotation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Quaternions and spatial rotation from memory before moving on to harder problems.

Reference excerpt

Unit quaternions, known as versors, provide a convenient mathematical notation for representing spatial orientations and rotations of elements in three dimensional space (3D rotations). This is a generalization of the use of unit complex numbers for 2D rotations. Specifically, quaternions encode information about an axis-angle rotation about an arbitrary axis. Rotation and orientation quaternions have applications in computer graphics, computer vision, robotics, navigation, molecular dynamics, flight dynamics, orbital mechanics of satellites, and crystallographic texture analysis. When used to represent rotation, unit quaternions are also called rotation quaternions as they represent the 3D rotation group. When used to represent an orientation or attitude (body rotation relative to a reference coordinate system), they are called orientation quaternions or attitude quaternions. A spatial rotation in the amount of θ {\displaystyle \theta } radians about a fixed unit axis ( X , Y , Z ) {\displaystyle (X,Y,Z)} that denotes the Euler axis is given by the quaternion ( C , X S , Y S , Z S ) {\displaystyle (C,X\,S,Y\,S,Z\,S)} , where C = cos ⁡ ( θ / 2 ) {\displaystyle C=\cos(\theta /2)} and S = sin ⁡ ( θ / 2 ) {\displaystyle S=\sin(\theta /2)} . Compared to rotation matrices, quaternions are more compact, efficient, and numerically stable. Compared to Euler angles, they are simpler to compose. However, they are not as intuitive and easy to understand and, due to the periodic nature of sine and cosine, rotation angles differing precisely by the natural period will be encoded into identical quaternions and recovered angles in radians will be limited to [ 0 , 2 π ) {\displaystyle [0,2\pi )} .

Using quaternions as rotations

In 3-dimensional space, according to Euler's rotation theorem, any rotation or sequence of rotations of a rigid body or coordinate system about a fixed point is equivalent to a single rotation by a given angle θ {\displaystyle \theta } about a fixed axis (called the Euler axis) that runs through the fixed point. The Euler axis is typically represented by a unit vector u → {\displaystyle {\vec {u}}} ( e ^ {\displaystyle {\hat {e}}} in the picture). Therefore, any rotation in three dimensions can be represented as a vector u → {\displaystyle {\vec {u}}} and an angle θ {\displaystyle \theta } . Quaternions give a simple way to encode this axis–angle representation using four real numbers, and can be used to apply (calculate) the corresponding rotation to a position vector (x,y,z), representing a point relative to the origin in R3. Euclidean vectors such as (2, 3, 4) or (ax, ay, az) can be rewritten as 2 i + 3 j + 4 k or ax i + ay j + az k, where i, j, k are unit vectors representing the three Cartesian axes (traditionally x, y, z), and also obey the multiplication rules of the fundamental quaternion units by interpreting the Euclidean vector (ax, ay, az) as the vector part of the pure quaternion (0, ax, ay, az). A rotation of angle θ {\displaystyle \theta } around the axis defined by the unit vector

u = ( u x , u y , u z ) = u x i + u y j + u z k {\displaystyle \mathbf {u} =(u_{x},u_{y},u_{z})=u_{x}\mathbf {i} +u_{y}\mathbf {j} +u_{z}\mathbf {k} }

can be represented by conjugation by a unit quaternion q. Since the quaternion product ( 0 + u x i + u y j + u z k ) ( 0 − u x i − u y j − u z k ) {\displaystyle \ (0+u_{x}\mathbf {i} +u_{y}\mathbf {j} +u_{z}\mathbf {k} )(0-u_{x}\mathbf {i} -u_{y}\mathbf {j} -u_{z}\mathbf {k} )} gives 1, using the Taylor series of the exponential function, the extension of Euler's formula results:

… excerpt ends here. Continue reading the full article.

Illustrations

Quaternions and spatial rotation: A rotation of 120° around the first diagonal permutes i, j, and k cyclically
A rotation of 120° around the first diagonal permutes i, j, and k cyclically
Quaternions and spatial rotation: p ↦ q p for q = ⁠1 + i + j + k/2⁠ on the unit 3-sphere. Note this one-sided (namely, left) multiplication yields a 60° rotation of quaternions
p ↦ q p for q = ⁠1 + i + j + k/2⁠ on the unit 3-sphere. Note this one-sided (namely, left) multiplication yields a 60° rotation of quaternions
Quaternions and spatial rotation: Two separate rotations, differing by both angle and axis, in the space of rotations. Here, the length of each axis vector is relative to the respective magnitude of the rotation about that axis.
Two separate rotations, differing by both angle and axis, in the space of rotations. Here, the length of each axis vector is relative to the respective magnitude of the rotation about that axis.
Quaternions and spatial rotation: The sphere of rotations for the rotations that have a "horizontal" axis (in the xy plane).
The sphere of rotations for the rotations that have a "horizontal" axis (in the xy plane).
Quaternions and spatial rotation: Non-commutative rotation of dice
Non-commutative rotation of dice

Worked examples

Example 1 — a first encounter with Quaternions and spatial rotation

Start with the simplest possible case. Write down what Quaternions and spatial rotation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In physics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Quaternions and spatial rotation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Quaternions and spatial rotation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Quaternions and spatial rotation

In research
Quaternions and spatial rotation appears in physics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Quaternions and spatial rotation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Quaternions and spatial rotation is common in secondary-school and first-year university syllabi. It links to neighbouring topics 3D computer graphics, Quaternions, Rigid bodies mechanics, so understanding it makes those chapters shorter.
In everyday life
Look for Quaternions and spatial rotation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Quaternions and spatial rotation” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Quaternions and spatial rotation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Quaternions and spatial rotation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Quaternions and spatial rotation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Quaternions and spatial rotation in simple terms?

Unit quaternions, known as versors, provide a convenient mathematical notation for representing spatial orientations and rotations of elements in three dimensional space (3D rotations). This is a generalization of the use of unit complex numbers for 2D rotations.

Why does Quaternions and spatial rotation matter?

Because it connects several physics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Quaternions and spatial rotation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Quaternions and spatial rotation.

Tags

  • 3D computer graphics
  • Quaternions
  • Rigid bodies mechanics
  • Rotation in three dimensions

Keep exploring