Quaternion - express vector from difference

77 Views Asked by At

I have this: $$ x = q_1 \cdot A \cdot \overline{q_1} - q_2 \cdot A \cdot \overline{q_2} $$ $\cdot$ is a standard quaternion multiplication.

Is it somehow possible to express $A$ from it?

2

There are 2 best solutions below

0
On BEST ANSWER

Since the quaternion multiplication is not commutative, there is no simple way to extract $A$ from the LHS using the properties of operations on$ \mathbb{H}$.

We can find $A=a_1+a_2\hat i+a_3 \hat j +a_4 \hat k$ performing the operations in LHS until we arrive at a result of the form $$ x_1+x_2\hat i+x_3 \hat j +x_4 \hat k=m_1+m_2\hat i+m_3 \hat j +m_4 \hat k $$

where the terms $m_i$ are linear functions of the unknowns $a_i$, so that, using the identity of quaternion, we find a linear systems with $4$ equations in the $4$ unknowns $ a_i$: $$ \begin {cases} m_1(a_1,a_2,a_3,a_4)=x_1\\m_2(a_1,a_2,a_3,a_4)=x_2\\m_3(a_1,a_2,a_3,a_4)=x_3\\m_4(a_1,a_2,a_3,a_4)=x_4 \end {cases} $$

solving this system (if it has a solution) we find $A$.

2
On

I have only a partial answer, but here goes:

First, find the kernel (null space, if you prefer) of the map $T\colon\mathbb{H}\to\mathbb{H}$ given by $TA=q_1A\bar q_1-q_2A\bar q_2$. We readily find that $A\in\operatorname{ker}T$ iff $A$ commutes with $\bar q_2q_1$. Thus $\operatorname{ker}T=\operatorname{lin}(\bar q_2q_1,1)$. This is two-dimensional, except in the degenerate case when $\bar q_2q_1$ is real, which you probably want to avoid anyhow.

Next, note that $\mathbb{H}$ is a real inner product space, with inner product $\langle x,y\rangle=\operatorname{Re}(x\bar y)$.

A straightforward calculation shows that the adjoint of $T$ is given by $T*A=\bar q_1Aq_1-\bar q_2Aq_2$. This has the same form as $T$, so we readily find $\operatorname{ker}T^*=\operatorname{lin}(q_2\bar q_1,1)$.

Findally we find the range of $T$ to be $\operatorname{im}T=(\operatorname{ker}T^*)^\perp$, which is the two-dimensional space spanned by the unit quaternions with zero real part and orthogonal to $q_2\bar q_1$.

In other words, $x$ had better belong to that space, or there is no solution. And when there is a solution, is only unique if you constrain it further, to have zero real part and be orthogonal to $q_2\bar q_1$.