Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random |  
Login
create new user
Username:
Password:
forget your password?
Main Menu
Sections

Meta

Talkback

Downloads

Information
quaternion conjugate (Definition)

Quaternion Conjugate

Quaternion conjugation reverses the sign of the vector part of a quaternion while leaving the scalar part unchanged. If

q = qw + qxi + qyj + qzk = qw + q,

then the quaternion conjugate is

q∗ = qw − qxi − qyj − qzk = qw − q.
(1)

Conjugation is one of the central operations in quaternion algebra. It separates scalar and vector parts, produces a real quantity when a quaternion is multiplied by its conjugate, reverses the order of a product, and becomes the multiplicative inverse when the quaternion has unit norm.

In the later PhysicsLibrary attitude articles, unit quaternions represent passive coordinate transformations. Under that convention, conjugation has a direct frame meaning: it reverses the direction of the coordinate map.

1 Definition

For

q = qw + q,

define

q∗ = qw − q.
(2)

In scalar first component form,

         ⌊    ⌋
           qw
[q∗]   = ||− qx|| .
    PL   ⌈− qy⌉
          − qz
(3)

Thus conjugation changes the sign of the three imaginary coefficients and leaves the real coefficient unchanged.

The notation q is used throughout the PhysicsLibrary quaternion series. Other sources may use q, q, or another symbol. A dagger is also widely used for conjugate transpose of matrices, so an unfamiliar source should always be checked before importing formulas.

2 Basic examples

If

q = 3 − 2i + 4j − k,

then

q∗ = 3 + 2i − 4j + k.
(4)

If q is real,

q = a,

then

 ∗
q  = q.
(5)

If q is pure,

q = q,

then

q∗ = − q.
(6)

The real quaternions are therefore exactly the quaternions fixed by conjugation, while pure quaternions reverse sign.

3 Conjugation is an involution

Applying conjugation twice returns the original quaternion:

(q∗)∗ = q.
(7)

Indeed,

q = qw + q

gives

q∗ = q −  q,
      w

and a second conjugation gives

  ∗ ∗
(q ) =  qw + q = q.

An operation that is its own inverse is called an involution.

4 Conjugation and addition

Let

p = pw + p,     q = qw + q.

Then

p + q = (pw + qw) + (p +  q).

Conjugating gives

(p + q)∗ = p∗ + q∗.
(8)

Similarly, for a real scalar a,

(aq)∗ = aq∗.
(9)

Thus conjugation is linear over real scalars.

5 Conjugation reverses the order of multiplication

The most important structural identity is

(pq)∗ = q∗p∗.
(10)

The factor order reverses. This is essential because quaternion multiplication is not commutative.

To derive the result, write

p = (p ,p ),    q = (q ,q ).
      w               w

The Hamilton scalar vector product is

pq = (p q  − p ⋅ q, p q + q p + p × q ).
       w w          w      w

Conjugating this product changes the sign of its vector part:

    ∗
(pq)  = (pwqw −  p ⋅ q, − pwq − qwp − p × q).

Now

q∗ = (qw,− q ),     p∗ = (pw,− p).

Their product is

q∗p∗ = (qwpw − (− q) ⋅ (− p ),

       qw(− p ) + pw (− q ) + (− q) × (− p)).

Because the dot product is symmetric and

q × p  = − p × q,

this becomes exactly

q∗p∗ = (pwqw − p ⋅ q, − pwq − qwp − p × q ).

Therefore

(pq)∗ = q∗p∗.

Conjugation is consequently an anti homomorphism of quaternion multiplication: it preserves multiplication only after reversing factor order.

6 Conjugating a product of many factors

Repeated use of equation (10) gives

           ∗    ∗     ∗ ∗
(q1q2⋅⋅⋅qn)  = qn⋅ ⋅⋅q2q1.
(11)

Every factor is conjugated and the entire order is reversed.

For three factors,

(abc)∗ = c∗b∗a ∗.

This identity becomes especially useful in frame composition and in simplifying quaternion coordinate transformation expressions.

7 Scalar and vector parts from conjugation

Conjugation gives convenient formulas for extracting the scalar and vector parts of a quaternion.

Add q and q:

     ∗
q + q  = (qw + q) + (qw − q) = 2qw.

Therefore

        q + q∗
Sc(q) = ------.
           2
(12)

Subtract:

q − q ∗ = (qw + q ) − (qw − q ) = 2q.

Therefore

               ∗
Vec (q) = q-−-q-.
            2
(13)

These formulas characterize the decomposition of a quaternion into parts that are unchanged and sign reversed by conjugation.

8 Product with the conjugate

Let

q = qw + q.

Using the scalar vector product,

  ∗
qq  = (qw,q )(qw, − q ).

The scalar part is

 2               2
qw − q ⋅ (− q ) = qw + q ⋅ q,

and the vector part is

qw (− q ) + qwq + q × (− q) = 0.

Hence

qq∗ = q∗q = q2w + q2x + q2y + q2z.
(14)

The result is always a nonnegative real number.

This identity is the basis for the quaternion norm. It also leads directly to the inverse of every nonzero quaternion.

9 Relation to norm and inverse

The quaternion norm is defined by

∥q∥ = √qq-∗.

Therefore

qq∗ = q∗q = ∥q∥2.
(15)

If q≠0, divide by q2 to obtain

         ∗
q−1 = -q---.
      ∥q ∥2
(16)

For a unit quaternion,

∥q∥ = 1,

so

 − 1    ∗
q   = q .
(17)

This special case is fundamental in attitude mechanics because orientation quaternions are maintained at unit norm.

10 Conjugation of a passive frame quaternion

The algebraic operation above does not depend on any rotation convention. Its physical interpretation does.

PhysicsLibrary uses a unit quaternion

BqA

to map coordinates from frame A into frame B:

Bv = BqA  Av(BqA )∗.
(18)

Because the quaternion is unit,

 B   − 1   B    ∗
( qA)   = (  qA) .

Therefore the inverse coordinate map is

A      B    ∗
 qB = (  qA) .
(19)

It follows that

Av = AqB Bv (AqB )∗.
(20)

Conjugating a unit frame quaternion therefore reverses the map direction:

A  −→  B

becomes

B  −→  A.

This is the quaternion counterpart of transposing a passive direction cosine matrix.

11 Passive axis angle interpretation

Suppose frame B is obtained from frame A by a positive right hand rule frame rotation through angle 𝜃 about unit axis u. Under the PhysicsLibrary passive convention,

Bq  =  cos 𝜃-− ^u sin 𝜃-.
  A       2        2
(21)

Conjugation gives

A         𝜃        𝜃
 qB =  cos--+ ^u sin--.
          2        2
(22)

Thus conjugation reverses the passive frame transformation. The same numerical quaternion on the right side of equation (23) is also the familiar positive active rotor for the corresponding physical vector rotation in a fixed frame.

This distinction is why a sign change in the vector part must not be described without also stating the intended frame map.

12 Relationship to direction cosine matrices

Let

B         B
  CA =  C(  qA)

be the passive direction cosine matrix corresponding to the unit quaternion Bq A.

The inverse frame map satisfies

ACB =  (BCA )−1.

Since a direction cosine matrix is orthogonal,

(BC  )−1 = (BC  )T .
    A          A

Quaternion conjugation gives the same result:

    ∗        T
C (q ) = C(q) .
(23)

Thus, for unit frame quaternions,

    B    ∗      A       A       B    T
C (( qA )) = C ( qB ) =  CB =  ( CA ) .
(24)

This provides a useful implementation check between quaternion and matrix orientation code.

13 Conjugation and frame composition

Suppose

B
 qA

maps A coordinates into B, and

C
 qB

maps B coordinates into C.

The direct passive frame map is

Cq  =  Cq  Bq  .
  A      B   A
(25)

Conjugate both sides:

(C q )∗ = (Bq  )∗(Cq  )∗.
    A        A     B

Using the inverse frame labels,

AqC =  AqB BqC .
(26)

The reversed product order produced by conjugation is exactly what is required when the entire frame chain is traversed in the opposite direction.

14 Worked example 1: numerical conjugate

Let

q =  2 − 3i + 4j + 5k.

Then

q∗ = 2 + 3i − 4j − 5k.
(27)

Applying conjugation again returns

(q∗)∗ = q.

15 Worked example 2: product with the conjugate

For

q =  2 − 3i + 4j + 5k,

equation (15) gives

  ∗     2       2    2   2
qq  = 2  + (− 3) + 4  + 5 .

Therefore

  ∗
qq  = 54.
(28)

The result is purely real.

The norm is consequently

         ---     --
∥q ∥ = √ 54 = 3√ 6,

and the inverse is

 −1    1
q   = ---(2 + 3i − 4j − 5k ).
      54

16 Worked example 3: order reversal

Let

p = 1 + i,    q = 1 + j.

First,

pq = 1 + i + j + k.

Therefore

    ∗
(pq)  = 1 − i − j − k.

Now compute the reversed conjugate product:

q∗p∗ = (1 − j)(1 − i).

Expanding,

q∗p∗ = 1 − i − j + ji

    =  1 − i − j − k.

Hence

(pq)∗ = q∗p∗.

If one incorrectly used pq, the sign of the k term would be wrong.

17 Worked example 4: reversing a passive frame rotation

Let frame B be obtained from frame A by a positive 90 rotation about +z. The PhysicsLibrary passive quaternion is

       √ --   √ --
Bq   = --2-−  --2k.
   A    2      2

Its conjugate is

                √ --  √ --
A      B    ∗   --2-  --2-
 qB = (  qA) =   2  +  2  k.

The first quaternion maps coordinate components from A to B. The conjugate maps them from B back to A.

If a fixed physical vector has

      ⌊  ⌋
       1
Av  = ⌈0 ⌉,

       0

then the positive frame rotation produces

      ⌊   ⌋
B       0
  v = ⌈ − 1⌉ .
        0

Applying the conjugate frame map returns

      ⌊  ⌋
       1
Av  = ⌈0 ⌉.

       0

18 Common pitfalls

  1. Changing the scalar part. Quaternion conjugation leaves qw unchanged and reverses only the vector part.
  2. Forgetting product order reversal. The correct identity is
        ∗    ∗ ∗
(pq)  = q p ,

    not pq.

  3. Assuming q = q1 for every quaternion. This is true only for unit quaternions. In general,
    q −1 = q∗∕∥q∥2.
  4. Confusing quaternion conjugation with component storage order. Scalar first versus scalar last storage does not change the definition of the conjugate.
  5. Confusing quaternion conjugation with complex conjugation of a matrix. The operations are related in some representations but are not the same object.
  6. Conjugating a passive frame quaternion without reversing its frame meaning. For unit frame quaternions,
    A      B    ∗
 qB = (  qA) .
  7. Changing Hamilton multiplication because the attitude interpretation is passive. Conjugation and passive frame interpretation do not change the Hamilton product.

19 Exercises

The exercises are stated first so the article can be used for self study. Complete solutions follow afterward.

  1. Direct conjugation. For
    q =  4 − 2i + 7j − 3k,

    find q.

  2. Pure and real cases. Find the conjugate of
    q = 5

    and of

    p = 2i − j + 4k.
  3. Double conjugation. Prove directly that
    (q∗)∗ = q.
  4. Scalar and vector extraction. Starting from q = qw + q, derive
             q + q∗
Sc (q) = ------
           2

    and

              q − q∗
Vec (q) = ------.
            2
  5. Product with the conjugate. For
    q = 1 + 2i − 2j + k,

    compute qq.

  6. Order reversal. Let
    p = 1 + i,    q = 2 + j.

    Compute (pq) and qp and verify that they agree.

  7. Incorrect order. For the same p and q, compute pq and show that it differs from (pq).
  8. Unit quaternion inverse. If q= 1, prove that q = q1.
  9. Passive frame inverse. If Bq A is a unit quaternion mapping A coordinates into B, write the quaternion that maps B coordinates back into A.
  10. Frame chain reversal. Given
    CqA =  CqB BqA,

    conjugate the equation and derive the inverse frame chain.

20 Solutions

1. Direct conjugation

Starting from

q =  4 − 2i + 7j − 3k,

reverse all three imaginary coefficients:

q∗ = 4 + 2i − 7j + 3k.

2. Pure and real cases

A real quaternion is unchanged:

 ∗
5  = 5.

For the pure quaternion

p = 2i − j + 4k,

the conjugate is

 ∗
p =  − 2i + j − 4k = − p.

3. Double conjugation

If

q = qw + q,

then

q∗ = qw − q.

Conjugating again gives

(q∗)∗ = qw + q = q.

4. Scalar and vector extraction

Add:

     ∗
q + q  = (qw + q) + (qw − q) = 2qw.

Therefore

        q + q∗
Sc(q) = ------.
           2

Subtract:

     ∗
q − q = (qw + q ) − (qw − q ) = 2q.

Therefore

          q − q∗
Vec (q) = ------.
            2

5. Product with the conjugate

For

q = 1 + 2i − 2j + k,

the squared norm is

12 + 22 + (− 2)2 + 12 = 10.

Hence

  ∗
qq  = 10.

6. Order reversal

First,

pq = (1 + i)(2 + j)

   = 2 + j + 2i + k.

Thus

(pq)∗ = 2 − 2i − j − k.

Now

q∗ = 2 − j,    p∗ = 1 − i.

Then

q∗p∗ = (2 − j)(1 − i)

     = 2 − 2i − j + ji
     = 2 − 2i − j − k.

Therefore

    ∗    ∗ ∗
(pq)  = q p .

7. Incorrect order

Compute

p∗q∗ = (1 − i)(2 − j)

     = 2 − j − 2i + ij
     = 2 − 2i − j + k.

This differs from

    ∗
(pq) = 2 − 2i − j − k.

The factor order must reverse.

8. Unit quaternion inverse

From

qq ∗ = ∥q∥2

and q= 1,

  ∗
qq =  1.

Similarly,

q∗q = 1.

Therefore q is both the left and right inverse of q:

q− 1 = q ∗.

9. Passive frame inverse

The inverse coordinate map is represented by the conjugate:

A      B    ∗
 qB = (  qA) .

10. Frame chain reversal

Begin with

C      C   B
 qA =   qB  qA.

Conjugating gives

 C    ∗   B    ∗ C   ∗
(  qA) =  ( qA) ( qB ).

Relabeling each conjugate as the inverse frame map,

A      A   B
 qC =   qB  qC .

Thus the conjugated chain traverses the same sequence of frames in the reverse direction.

21 What comes next

Quaternion conjugation immediately produces the real quantity

  ∗    ∗
qq =  q q.

The next PhysicsLibrary article develops the quaternion norm from this identity and proves its important multiplicative properties. The following inverse article then uses conjugation and norm together to obtain

         ∗
q−1 = -q---.
      ∥q ∥2

Later orientation articles use the unit quaternion specialization q1 = q to reverse passive frame transformations, invert direction cosine matrices, and derive coordinate transformation and attitude kinematic formulas.

22 Sources and historical notes

Quaternion conjugation appears naturally in Hamilton’s algebra and in later quaternion texts under several historical notations. Modern engineering notation often writes q or q and interprets conjugation as reversing the vector part.

Hamilton’s Elements of Quaternions and Joly’s A Manual of Quaternions provide public domain historical treatments. The modern PhysicsLibrary presentation emphasizes the anti order property, the relationship to norm and inverse, and the passive frame interpretation needed in mechanics and navigation.

References

[1]   W. R. Hamilton, Elements of Quaternions, 2nd ed., edited by C. J. Joly, Longmans, Green, and Co., 1899. Public domain historical source. Internet Archive scan

[2]   C. J. Joly, A Manual of Quaternions, Macmillan and Co., London, 1905. Public domain historical source. Internet Archive scan

[3]   A. S. Hathaway, A Primer of Quaternions, 1896. Public domain historical source. Project Gutenberg edition

[4]   Wikibooks contributors, “Abstract Algebra/Quaternions.” Openly licensed instructional source. Wikibooks quaternion article

License

Unless otherwise noted, this PhysicsLibrary entry is intended for release under the Creative Commons Attribution ShareAlike 4.0 International license.


"quaternion conjugate" is owned by bloftin.
(view preamble)
View style:
See Also: quaternion series overview and article guide, Quaternions for Physics and Engineering: Orientation, Notation, and Conventions, quaternion definition and basic algebra, example of quaternion definition and basic algebra, quaternion product, example of quaternion product, example of quaternion conjugate, quaternion norm, example of quaternion norm, quaternion inverse, example of quaternion inverse, Axis Angle Representation and Unit Quaternion, example of Axis Angle Representation and Unit Quaternion, rotating vectors with quaternions, example of rotating vectors with quaternions, composition of rotations and quaternion order, example of composition of rotations and quaternion order, quaternions and direction cosine matrices, example of quaternions and direction cosine matrices, quaternions and Euler angles, example of quaternions and Euler angles, quaternion kinematics and angular velocity, example of quaternion kinematics and angular velocity, relative attitude and error quaternions, example of relative attitude and error quaternions, numerical quaternion propagation and IMU attitude state integration, example of numerical quaternion propagation and IMU attitude state integration, quaternion exercises for physics and engineering

Keywords:  quaternion, conjugate, Hamilton product, scalar part, vector part, anti-automorphism, noncommutative algebra

Attachments:
example of quaternion conjugate (Example) by bloftin

Cross-references: domain, kinematic, quaternion inverse, representations, direction cosine matrix, algebraic, mechanics, quaternion norm, composition, dot product, vector product, quaternion multiplication, identity, formulas, matrices, norm, operations, scalar, vector, conjugation, quaternion
There are 4 references to this object.

This is version 3 of quaternion conjugate, born on 2026-08-23, modified 2026-08-28.
Object id is 1092, canonical name is QuaternionConjugate.
Accessed 259 times total.

Classification:
Physics Classification02.10.Hh (Rings and algebras)
 02.10.Ud (Linear algebra)
Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:

No messages.

Interact
rate | post | correct | update request | add derivation | add example | add (any)