<?xml version="1.0" encoding="UTF-8"?>

<record version="4" id="1094">
 <title>quaternion inverse</title>
 <name>QuaternionInverse</name>
 <created>2026-08-23 19:19:40</created>
 <modified>2026-08-26 04:09:37</modified>
 <type>Definition</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>updated Related and removed % from keywords</comment>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="02.10.Hh"/>
	<category scheme="pacs" code="02.10.Ud"/>
 </classification>
 <related>
	<object name="QuaternionNorm"/>
	<object name="QuaternionConjugate"/>
	<object name="QuaternionProduct"/>
	<object name="QuaternionDefinitionAndBasicAlgebra"/>
	<object name="NotationQuaternionsForPhysicsAndEngineeringOrientation"/>
	<object name="QuaternionSeriesOverviewAndArticleGuide"/>
	<object name="ExampleOfQuaternionDefinitionAndBasicAlgebra"/>
	<object name="ExampleOfQuaternionProduct"/>
	<object name="ExampleOfQuaternionConjugate"/>
	<object name="ExampleOfQuaternionNorm"/>
 </related>
 <keywords>
	<term>quaternion</term>
	<term>inverse</term>
	<term>reciprocal</term>
	<term>division</term>
	<term>unit quaternion</term>
	<term>% conjugate</term>
	<term>norm</term>
	<term>Hamilton product</term>
	<term>noncommutative algebra</term>
 </keywords>
 <preamble>% this is the default PhysicsLibrary preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section*{Quaternion Inverse}

Every nonzero Hamilton quaternion has a multiplicative inverse.  If

\[
q=q_w+\mathbf q
\]

and

\[
q^*=q_w-\mathbf q
\]

is its conjugate, then

\begin{equation}
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2},
\qquad
q\neq0.
\end{equation}

Because

\[
\lVert q\rVert^2
=
qq^*
=
q^*q,
\]

equation (1) satisfies both

\begin{equation}
qq^{-1}=1
\end{equation}

and

\begin{equation}
q^{-1}q=1.
\end{equation}

This two sided inverse is what makes the nonzero quaternions a division
algebra.

Quaternion multiplication is not commutative, however, so division cannot be
written as a single ambiguous quotient.  Solving

\[
ax=b
\]

requires

\[
x=a^{-1}b,
\]

while solving

\[
xa=b
\]

requires

\[
x=ba^{-1}.
\]

These two expressions are generally different.  The distinction becomes
important in rigid body mechanics, navigation, robotics, and any quaternion
calculation in which multiplication order carries physical meaning.

For unit quaternions, the inverse simplifies to

\begin{equation}
q^{-1}=q^*.
\end{equation}

This is the form used throughout the later PhysicsLibrary attitude articles.
Under the PhysicsLibrary passive convention, inverting a unit frame quaternion
reverses the direction of the coordinate map.

\section{Definition}

Let $q$ be a nonzero quaternion.  A quaternion $r$ is called the inverse of
$q$ if

\begin{equation}
qr=rq=1.
\end{equation}

When such an $r$ exists, it is unique and is written $q^{-1}$.

For Hamilton quaternions, every nonzero element has an inverse.  The zero
quaternion does not, because

\[
0r=0
\]

for every quaternion $r$, so no product involving zero can equal the
multiplicative identity $1$.

\section{Derivation from conjugate and norm}

The preceding PhysicsLibrary articles established

\begin{equation}
q^*=q_w-\mathbf q
\end{equation}

and

\begin{equation}
qq^*=q^*q=\lVert q\rVert^2.
\end{equation}

If $q\neq0$, then

\[
\lVert q\rVert^2&gt;0,
\]

so division by this real scalar is allowed.  Starting from

\[
qq^*=\lVert q\rVert^2,
\]

divide by $\lVert q\rVert^2$:

\[
q
\left(
\frac{q^*}{\lVert q\rVert^2}
\right)
=
1.
\]

Similarly,

\[
\left(
\frac{q^*}{\lVert q\rVert^2}
\right)
q
=
1.
\]

Therefore

\begin{equation}
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2}.
\end{equation}

The denominator is an ordinary positive real number, so its position in the
product does not matter.

\section{Component formula}

Let

\[
q
=
q_w+q_x\mathbf i+q_y\mathbf j+q_z\mathbf k.
\]

Then

\[
q^*
=
q_w-q_x\mathbf i-q_y\mathbf j-q_z\mathbf k
\]

and

\[
\lVert q\rVert^2
=
q_w^2+q_x^2+q_y^2+q_z^2.
\]

Therefore

\begin{equation}
q^{-1}
=
\frac{
q_w-q_x\mathbf i-q_y\mathbf j-q_z\mathbf k
}{
q_w^2+q_x^2+q_y^2+q_z^2
}.
\end{equation}

In scalar first component form,

\begin{equation}
[q^{-1}]_{\mathrm{PL}}
=
\frac{1}{
q_w^2+q_x^2+q_y^2+q_z^2
}
\begin{bmatrix}
q_w\\
-q_x\\
-q_y\\
-q_z
\end{bmatrix}.
\end{equation}

The formula requires only conjugation, four squares, their sum, and a real
scalar division.

\section{Uniqueness of the inverse}

Suppose both $r$ and $s$ are inverses of $q$.  Then

\[
rq=1
\]

and

\[
qs=1.
\]

Using associativity,

\[
\begin{aligned}
r
&amp;=r1\\
&amp;=r(qs)\\
&amp;=(rq)s\\
&amp;=1s\\
&amp;=s.
\end{aligned}
\]

Therefore the inverse is unique.

The proof uses associativity but does not require commutativity.

\section{Inverse of a product}

For nonzero quaternions $p$ and $q$,

\begin{equation}
(pq)^{-1}
=
q^{-1}p^{-1}.
\end{equation}

The factor order reverses.

To verify this, multiply on the right:

\[
\begin{aligned}
(pq)(q^{-1}p^{-1})
&amp;=
p(qq^{-1})p^{-1}\\
&amp;=
p1p^{-1}\\
&amp;=
1.
\end{aligned}
\]

Multiplying in the opposite order gives

\[
\begin{aligned}
(q^{-1}p^{-1})(pq)
&amp;=
q^{-1}(p^{-1}p)q\\
&amp;=
q^{-1}1q\\
&amp;=
1.
\end{aligned}
\]

Thus $q^{-1}p^{-1}$ is the two sided inverse of $pq$.

For a longer product,

\begin{equation}
(q_1q_2\cdots q_n)^{-1}
=
q_n^{-1}\cdots q_2^{-1}q_1^{-1}.
\end{equation}

This reversal is the inverse analogue of the conjugation rule

\[
(pq)^*=q^*p^*.
\]

\section{Inverse and conjugation}

Starting from

\[
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2},
\]

conjugate both sides:

\[
(q^{-1})^*
=
\frac{q}{\lVert q\rVert^2}.
\]

But

\[
(q^*)^{-1}
=
\frac{(q^*)^*}{\lVert q^*\rVert^2}.
\]

Since

\[
(q^*)^*=q
\]

and

\[
\lVert q^*\rVert=\lVert q\rVert,
\]

we obtain

\begin{equation}
(q^{-1})^*
=
(q^*)^{-1}.
\end{equation}

Also,

\begin{equation}
(q^{-1})^{-1}=q.
\end{equation}

\section{Norm of the inverse}

Using multiplicativity of the norm,

\[
1
=
\lVert qq^{-1}\rVert
=
\lVert q\rVert
\lVert q^{-1}\rVert.
\]

Therefore

\begin{equation}
\lVert q^{-1}\rVert
=
\frac{1}{\lVert q\rVert}.
\end{equation}

This also follows directly from equation (8).

\section{Unit quaternions}

If $q$ is unit,

\[
\lVert q\rVert=1.
\]

Then equation (8) reduces to

\begin{equation}
q^{-1}=q^*.
\end{equation}

Thus inversion of a unit quaternion requires only reversing the sign of its
vector part.

If

\[
q=q_w+\mathbf q,
\]

then

\[
q^{-1}=q_w-\mathbf q.
\]

This simple inverse is one of the main computational advantages of using unit
quaternions for orientation.

\section{Pure quaternions}

Let

\[
v=\mathbf v
\]

be a nonzero pure quaternion.  Its conjugate is

\[
v^*=-v.
\]

Its squared norm is

\[
\lVert v\rVert^2
=
\mathbf v\cdot\mathbf v.
\]

Therefore

\begin{equation}
v^{-1}
=
-\frac{v}{\lVert v\rVert^2}.
\end{equation}

If $u$ is a unit pure quaternion,

\[
\lVert u\rVert=1,
\]

then

\begin{equation}
u^{-1}=-u.
\end{equation}

Because a unit pure quaternion also satisfies

\[
u^2=-1,
\]

the result $u^{-1}=-u$ follows immediately.

\section{Real quaternions}

If $q=a$ is a nonzero real quaternion, then

\[
q^*=a
\]

and

\[
\lVert q\rVert^2=a^2.
\]

Hence

\begin{equation}
q^{-1}
=
\frac{a}{a^2}
=
\frac{1}{a}.
\end{equation}

Quaternion inversion therefore reduces to ordinary reciprocal division on the
real subalgebra.

\section{Left and right division}

Because quaternion multiplication is noncommutative, an expression resembling

\[
\frac{b}{a}
\]

is ambiguous unless multiplication order is stated.

There are two distinct equations to consider.

\subsection*{Solving \(ax=b\)}

Suppose

\[
ax=b
\]

with $a\neq0$.

Multiply on the left by $a^{-1}$:

\[
a^{-1}(ax)=a^{-1}b.
\]

Associativity gives

\[
(a^{-1}a)x=a^{-1}b,
\]

so

\begin{equation}
x=a^{-1}b.
\end{equation}

\subsection*{Solving \(xa=b\)}

Now suppose

\[
xa=b.
\]

Multiply on the right by $a^{-1}$:

\[
(xa)a^{-1}=ba^{-1}.
\]

Associativity gives

\[
x(aa^{-1})=ba^{-1},
\]

so

\begin{equation}
x=ba^{-1}.
\end{equation}

In general,

\[
a^{-1}b\neq ba^{-1}.
\]

Therefore one must never cancel a quaternion factor without preserving the
side on which the inverse acts.

\section{Worked example 1: numerical inverse}

Let

\[
q=1+2\mathbf i-\mathbf j+2\mathbf k.
\]

Its conjugate is

\[
q^*
=
1-2\mathbf i+\mathbf j-2\mathbf k.
\]

Its squared norm is

\[
\lVert q\rVert^2
=
1^2+2^2+(-1)^2+2^2
=
10.
\]

Therefore

\begin{equation}
q^{-1}
=
\frac{1}{10}
\left(
1-2\mathbf i+\mathbf j-2\mathbf k
\right).
\end{equation}

A direct multiplication gives

\[
qq^{-1}=q^{-1}q=1.
\]

\section{Worked example 2: left and right division}

Let

\[
a=1+\mathbf i,
\qquad
b=\mathbf j.
\]

First compute

\[
a^*=1-\mathbf i
\]

and

\[
\lVert a\rVert^2=2.
\]

Thus

\[
a^{-1}
=
\frac12(1-\mathbf i).
\]

Consider first

\[
ax=b.
\]

The solution is

\[
x=a^{-1}b.
\]

Hence

\[
\begin{aligned}
x
&amp;=
\frac12(1-\mathbf i)\mathbf j\\
&amp;=
\frac12(\mathbf j-\mathbf i\mathbf j)\\
&amp;=
\frac12(\mathbf j-\mathbf k).
\end{aligned}
\]

Now consider instead

\[
xa=b.
\]

The solution is

\[
x=ba^{-1}.
\]

Thus

\[
\begin{aligned}
x
&amp;=
\mathbf j\frac12(1-\mathbf i)\\
&amp;=
\frac12(\mathbf j-\mathbf j\mathbf i)\\
&amp;=
\frac12(\mathbf j+\mathbf k).
\end{aligned}
\]

Therefore

\begin{equation}
a^{-1}b
=
\frac12(\mathbf j-\mathbf k)
\end{equation}

while

\begin{equation}
ba^{-1}
=
\frac12(\mathbf j+\mathbf k).
\end{equation}

The two division problems have different answers because the inverse acts on
different sides.

\section{Worked example 3: inverse of a product}

Let

\[
p=1+\mathbf i,
\qquad
q=1+\mathbf j.
\]

Their inverses are

\[
p^{-1}
=
\frac12(1-\mathbf i)
\]

and

\[
q^{-1}
=
\frac12(1-\mathbf j).
\]

The inverse of the product is

\[
(pq)^{-1}
=
q^{-1}p^{-1}.
\]

Therefore

\[
\begin{aligned}
(pq)^{-1}
&amp;=
\frac14(1-\mathbf j)(1-\mathbf i)\\
&amp;=
\frac14
\left(
1-\mathbf i-\mathbf j+\mathbf j\mathbf i
\right)\\
&amp;=
\frac14
\left(
1-\mathbf i-\mathbf j-\mathbf k
\right).
\end{aligned}
\]

Since

\[
pq
=
1+\mathbf i+\mathbf j+\mathbf k,
\]

its conjugate is

\[
(pq)^*
=
1-\mathbf i-\mathbf j-\mathbf k
\]

and its squared norm is

\[
\lVert pq\rVert^2=4.
\]

The direct inverse formula gives the same result.

\section{Passive frame interpretation}

The algebraic inverse formula is independent of active or passive
interpretation.  Its frame meaning depends on the convention used for
orientation.

PhysicsLibrary uses a unit quaternion

\[
{}^{B}q_A
\]

to map coordinates from frame $A$ into frame $B$:

\begin{equation}
{}^{B}v
=
{}^{B}q_A\,
{}^{A}v\,
({}^{B}q_A)^*.
\end{equation}

Since a frame quaternion is unit,

\[
({}^{B}q_A)^{-1}
=
({}^{B}q_A)^*.
\]

The inverse quaternion therefore represents the reverse coordinate map:

\begin{equation}
{}^{A}q_B
=
({}^{B}q_A)^{-1}
=
({}^{B}q_A)^*.
\end{equation}

Consequently,

\begin{equation}
{}^{A}v
=
{}^{A}q_B\,
{}^{B}v\,
({}^{A}q_B)^*.
\end{equation}

The frame labels make the direction of the inverse explicit.  Inverting a
frame quaternion does not merely change a sign; it reverses which coordinate
system is mapped into which.

\section{Inverse of a passive frame chain}

Suppose

\[
{}^{B}q_A
\]

maps coordinates from $A$ into $B$, and

\[
{}^{C}q_B
\]

maps coordinates from $B$ into $C$.

The direct passive chain is

\begin{equation}
{}^{C}q_A
=
{}^{C}q_B\,{}^{B}q_A.
\end{equation}

Invert both sides:

\[
({}^{C}q_A)^{-1}
=
({}^{B}q_A)^{-1}
({}^{C}q_B)^{-1}.
\]

Using the reversed frame labels gives

\begin{equation}
{}^{A}q_C
=
{}^{A}q_B\,{}^{B}q_C.
\end{equation}

The order reversal in the algebra is exactly what is needed to traverse the
frame chain in the opposite direction.

\section{Passive axis angle interpretation}

For a positive frame rotation through angle $\theta$ about unit axis
$\widehat{\mathbf u}$, PhysicsLibrary uses

\begin{equation}
{}^{B}q_A
=
\cos\frac{\theta}{2}
-
\widehat{\mathbf u}\sin\frac{\theta}{2}.
\end{equation}

Because this quaternion is unit,

\[
({}^{B}q_A)^{-1}
=
({}^{B}q_A)^*.
\]

Therefore

\begin{equation}
{}^{A}q_B
=
\cos\frac{\theta}{2}
+
\widehat{\mathbf u}\sin\frac{\theta}{2}.
\end{equation}

The inverse corresponds to traversing the same frame relation in the opposite
direction.

\section{Relationship to direction cosine matrices}

Let

\[
{}^{B}C_A
=
C({}^{B}q_A)
\]

be the passive direction cosine matrix associated with a unit frame
quaternion.

The inverse coordinate transformation is

\[
({}^{B}C_A)^{-1}.
\]

Because the matrix is orthogonal,

\[
({}^{B}C_A)^{-1}
=
({}^{B}C_A)^T.
\]

The quaternion inverse produces the same map:

\begin{equation}
C(({}^{B}q_A)^{-1})
=
C({}^{A}q_B)
=
({}^{B}C_A)^T.
\end{equation}

Thus quaternion inversion corresponds to matrix transposition for unit
orientation transformations.

\section{Numerical considerations}

The inverse formula

\[
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2}
\]

is mathematically valid for every nonzero quaternion, but numerical
implementations should consider several practical issues.

\begin{enumerate}

\item If $\lVert q\rVert$ is extremely small, division by
$\lVert q\rVert^2$ can amplify floating point error.

\item If $q$ is intended to be an orientation quaternion, it should normally
be maintained close to unit norm.  In that case the inverse should be close to
the conjugate.

\item Do not silently replace $q^{-1}$ with $q^*$ unless unit norm is known or
enforced.

\item In software, preserve multiplication order when solving quaternion
equations.  A left inverse operation and a right inverse operation are not
interchangeable.

\item Frame labels should be propagated with the inverse.  If
${}^{B}q_A$ maps $A$ into $B$, its inverse is ${}^{A}q_B$.

\end{enumerate}

\section{Common pitfalls}

\begin{enumerate}

\item \textbf{Using the conjugate as the inverse for a nonunit quaternion.}

In general,

\[
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2}.
\]

Only a unit quaternion satisfies $q^{-1}=q^*$.

\item \textbf{Trying to invert the zero quaternion.}

The zero quaternion has no multiplicative inverse.

\item \textbf{Forgetting inverse order reversal.}

The correct identity is

\[
(pq)^{-1}=q^{-1}p^{-1}.
\]

\item \textbf{Writing quaternion division as an ambiguous fraction.}

The expressions $a^{-1}b$ and $ba^{-1}$ solve different equations and are
generally unequal.

\item \textbf{Cancelling on the wrong side.}

For $ax=b$, multiply by $a^{-1}$ on the left.  For $xa=b$, multiply by
$a^{-1}$ on the right.

\item \textbf{Changing Hamilton algebra because the attitude interpretation
is passive.}

The inverse formula is algebraic and does not change when passive frame maps
are adopted.

\item \textbf{Inverting a frame quaternion without reversing its labels.}

Under the PhysicsLibrary convention,

\[
({}^{B}q_A)^{-1}
=
{}^{A}q_B.
\]

\item \textbf{Assuming inverse order reversal is merely notation.}

It follows from noncommutative multiplication and is required for both
algebraic cancellation and correct reversal of frame chains.

\end{enumerate}

\section{Exercises}

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

\begin{enumerate}

\item \textbf{Direct inverse.}

Find the inverse of

\[
q=2+\mathbf i-2\mathbf j+\mathbf k.
\]

\item \textbf{Verify both sides.}

For the quaternion in Exercise 1, verify explicitly that

\[
qq^{-1}=1
\]

and

\[
q^{-1}q=1.
\]

\item \textbf{Unit quaternion.}

Let

\[
q=\frac12
\left(
1+\mathbf i+\mathbf j+\mathbf k
\right).
\]

Show that $q$ is unit and find $q^{-1}$.

\item \textbf{Pure quaternion.}

Find the inverse of

\[
v=2\mathbf i-\mathbf j+2\mathbf k.
\]

\item \textbf{Inverse of a product.}

Let

\[
p=1+\mathbf i,
\qquad
q=1+\mathbf k.
\]

Compute $p^{-1}$ and $q^{-1}$, then verify

\[
(pq)^{-1}=q^{-1}p^{-1}.
\]

\item \textbf{Left division.}

For

\[
a=1+\mathbf i,
\qquad
b=\mathbf k,
\]

solve

\[
ax=b.
\]

\item \textbf{Right division.}

Using the same $a$ and $b$, solve

\[
xa=b.
\]

Compare your answer with Exercise 6.

\item \textbf{Norm of the inverse.}

Prove that

\[
\lVert q^{-1}\rVert
=
\frac{1}{\lVert q\rVert}
\]

for every nonzero quaternion.

\item \textbf{Passive frame inverse.}

If ${}^{B}q_A$ maps coordinates from $A$ into $B$, write the quaternion that
maps coordinates from $B$ into $A$.

\item \textbf{Frame chain reversal.}

Starting from

\[
{}^{C}q_A
=
{}^{C}q_B\,{}^{B}q_A,
\]

derive the inverse chain from frame $C$ back to frame $A$.

\end{enumerate}

\section{Solutions}

\subsection*{1. Direct inverse}

Let

\[
q=2+\mathbf i-2\mathbf j+\mathbf k.
\]

The conjugate is

\[
q^*
=
2-\mathbf i+2\mathbf j-\mathbf k.
\]

The squared norm is

\[
\lVert q\rVert^2
=
2^2+1^2+(-2)^2+1^2
=
10.
\]

Therefore

\begin{equation}
q^{-1}
=
\frac{1}{10}
\left(
2-\mathbf i+2\mathbf j-\mathbf k
\right).
\end{equation}

\subsection*{2. Verify both sides}

By construction,

\[
qq^*
=
q^*q
=
10.
\]

Therefore

\[
qq^{-1}
=
q
\frac{q^*}{10}
=
\frac{10}{10}
=
1.
\]

Similarly,

\[
q^{-1}q
=
\frac{q^*q}{10}
=
1.
\]

\subsection*{3. Unit quaternion}

For

\[
q=\frac12
\left(
1+\mathbf i+\mathbf j+\mathbf k
\right),
\]

the squared norm is

\[
\lVert q\rVert^2
=
4\left(\frac12\right)^2
=
1.
\]

Thus $q$ is unit and

\[
q^{-1}=q^*.
\]

Therefore

\[
q^{-1}
=
\frac12
\left(
1-\mathbf i-\mathbf j-\mathbf k
\right).
\]

\subsection*{4. Pure quaternion}

For

\[
v=2\mathbf i-\mathbf j+2\mathbf k,
\]

the squared norm is

\[
\lVert v\rVert^2
=
4+1+4
=
9.
\]

Since $v^*=-v$,

\[
v^{-1}
=
-\frac{v}{9}.
\]

Hence

\[
v^{-1}
=
-\frac{2}{9}\mathbf i
+\frac{1}{9}\mathbf j
-\frac{2}{9}\mathbf k.
\]

\subsection*{5. Inverse of a product}

For

\[
p=1+\mathbf i,
\]

we have

\[
p^{-1}
=
\frac12(1-\mathbf i).
\]

For

\[
q=1+\mathbf k,
\]

we have

\[
q^{-1}
=
\frac12(1-\mathbf k).
\]

Therefore

\[
\begin{aligned}
q^{-1}p^{-1}
&amp;=
\frac14(1-\mathbf k)(1-\mathbf i)\\
&amp;=
\frac14
\left(
1-\mathbf i-\mathbf k+\mathbf k\mathbf i
\right)\\
&amp;=
\frac14
\left(
1-\mathbf i+\mathbf j-\mathbf k
\right).
\end{aligned}
\]

Now

\[
pq
=
(1+\mathbf i)(1+\mathbf k)
=
1+\mathbf i-\mathbf j+\mathbf k.
\]

Its conjugate is

\[
(pq)^*
=
1-\mathbf i+\mathbf j-\mathbf k,
\]

and

\[
\lVert pq\rVert^2
=
4.
\]

Hence

\[
(pq)^{-1}
=
\frac14
\left(
1-\mathbf i+\mathbf j-\mathbf k
\right)
=
q^{-1}p^{-1}.
\]

\subsection*{6. Left division}

Given

\[
a=1+\mathbf i,
\qquad
b=\mathbf k,
\]

we have

\[
a^{-1}
=
\frac12(1-\mathbf i).
\]

For

\[
ax=b,
\]

the solution is

\[
x=a^{-1}b.
\]

Thus

\[
\begin{aligned}
x
&amp;=
\frac12(1-\mathbf i)\mathbf k\\
&amp;=
\frac12(\mathbf k-\mathbf i\mathbf k)\\
&amp;=
\frac12(\mathbf k+\mathbf j).
\end{aligned}
\]

Therefore

\[
x
=
\frac12(\mathbf j+\mathbf k).
\]

\subsection*{7. Right division}

For

\[
xa=b,
\]

the solution is

\[
x=ba^{-1}.
\]

Hence

\[
\begin{aligned}
x
&amp;=
\mathbf k\frac12(1-\mathbf i)\\
&amp;=
\frac12(\mathbf k-\mathbf k\mathbf i)\\
&amp;=
\frac12(\mathbf k-\mathbf j).
\end{aligned}
\]

Therefore

\[
x
=
\frac12(-\mathbf j+\mathbf k).
\]

The solutions to Exercises 6 and 7 differ because quaternion multiplication is
not commutative.

\subsection*{8. Norm of the inverse}

Because

\[
qq^{-1}=1,
\]

norm multiplicativity gives

\[
\lVert q\rVert
\lVert q^{-1}\rVert
=
1.
\]

Since $q\neq0$,

\[
\lVert q\rVert&gt;0.
\]

Therefore

\[
\lVert q^{-1}\rVert
=
\frac{1}{\lVert q\rVert}.
\]

\subsection*{9. Passive frame inverse}

The reverse coordinate map is

\[
{}^{A}q_B
=
({}^{B}q_A)^{-1}.
\]

Since frame quaternions are unit,

\[
{}^{A}q_B
=
({}^{B}q_A)^*.
\]

\subsection*{10. Frame chain reversal}

Start from

\[
{}^{C}q_A
=
{}^{C}q_B\,{}^{B}q_A.
\]

Invert:

\[
({}^{C}q_A)^{-1}
=
({}^{B}q_A)^{-1}
({}^{C}q_B)^{-1}.
\]

Relabeling the reverse maps gives

\[
{}^{A}q_C
=
{}^{A}q_B\,{}^{B}q_C.
\]

The reversed multiplication order agrees with the reversed sequence of frames.

\section{What comes next}

The first five algebra articles have now supplied the main operations needed
for quaternion orientation:

\[
q^*,
\qquad
\lVert q\rVert,
\qquad
q^{-1}.
\]

For a unit quaternion these collapse to the particularly simple relation

\[
q^{-1}=q^*.
\]

The next PhysicsLibrary article develops the axis angle representation and
shows how a physical frame rotation through angle $\theta$ about a unit axis
$\widehat{\mathbf u}$ produces the passive quaternion

\[
{}^{B}q_A
=
\cos\frac{\theta}{2}
-
\widehat{\mathbf u}\sin\frac{\theta}{2}.
\]

From Q06 onward, the quaternion series can build rotation geometry directly on
the algebra developed in Q01 through Q05.

\section{Sources and historical notes}

Hamilton's quaternions form a division algebra: every nonzero quaternion has a
two sided multiplicative inverse.  Classical quaternion texts often express
division through reciprocal quaternions, conjugation, and the historical
tensor or norm notation.

Modern notation makes the inverse especially compact:

\[
q^{-1}
=
\frac{q^*}{\lVert q\rVert^2}.
\]

The distinction between left and right division is a direct consequence of
noncommutative multiplication and should be preserved explicitly in engineering
applications.

\begin{thebibliography}{9}

\bibitem{Hamilton1899}
W. R. Hamilton,
\emph{Elements of Quaternions}, 2nd ed.,
edited by C. J. Joly,
Longmans, Green, and Co., 1899.
Public domain historical source.
\PMlinkexternal{Internet Archive scan}
{https://archive.org/details/elementsofquater01hamiuoft}

\bibitem{Joly1905}
C. J. Joly,
\emph{A Manual of Quaternions},
Macmillan and Co., London, 1905.
Public domain historical source.
\PMlinkexternal{Internet Archive scan}
{https://archive.org/details/manualofquaterni00jolyrich}

\bibitem{Hathaway1896}
A. S. Hathaway,
\emph{A Primer of Quaternions},
1896.
Public domain historical source.
\PMlinkexternal{Project Gutenberg edition}
{https://www.gutenberg.org/ebooks/9934}

\bibitem{WikibooksQuaternion}
Wikibooks contributors,
``Abstract Algebra/Quaternions.''
Openly licensed instructional source.
\PMlinkexternal{Wikibooks quaternion article}
{https://en.wikibooks.org/wiki/Abstract_Algebra/Quaternions}

\end{thebibliography}

\section*{License}

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