How Do Quaternions Rotate a Vector to a Specific Orientation?

  • Thread starter Four
  • Start date
In summary, the conversation discusses finding a unit quaternion (q) that, when applied to a given vector (z), results in another given vector (v). The equation qzq^(-1)=v is corrected to qzq^(-1)=vq due to the non-commutative nature of quaternion multiplication. The correct matrix form for the equation is also provided. Additionally, it is noted that the vector u must also be used in order to fully define the quaternion q.
  • #1
Four
35
0

Homework Statement


given z = (0, 0, 0, 1), and v = (0, x, y, z),

and the following properties hold

[tex] v \times u = L [/tex]
[tex] L \times v = u [/tex]
[tex] u \times L = v [/tex]

v, u, l, and z are unit quaternions

In other words; we define forward (v), up (u) and right(L), find a unit quaternion that when you apply it on z, you get v, in the proper orientation.

solve for q = (a, b, c, d)

Homework Equations


(equation to solve for q)
[tex]qzq^{-1} = v[/tex]
Left side applys q on z and right side is v

The Attempt at a Solution


[tex] qz = vq [/tex]
[tex] dk = (xi + yj + zk)(a + bi + cj + dk) [/tex]

after expanding and grouping the terms on the same axis together. In a matrix form I got

[tex] \left(
\begin{array}{cccc}
x & y & z & 0 \\
0 & z & y & x \\
z & 0 & -x & y \\
-y & x & -1 & z
\end{array}
\right)

\left(
\begin{array}{c}
a \\
b \\
c \\
d
\end{array}
\right)
=
\left(
\begin{array} {c}
0 \\
0 \\
0 \\
0
\end{array}
\right)
[/tex]

[a, b, c, d] = [0, 0, 0, 0] ? That doesn't seem right?

Shouldn't I need to use atleast the vector u?

Thank you for your help
 
Physics news on Phys.org
  • #2
.

Hello,

Thank you for your post. Your attempt at a solution is a good start, but there are a few things that need to be corrected.

Firstly, the equation qzq^(-1)=v is not correct. It should be qzq^(-1)=vq. This is because quaternion multiplication is not commutative, so the order of multiplication matters.

Secondly, the matrix you have written is not correct. The correct matrix should be:

\left(
\begin{array}{cccc}
a & -d & c & -b \\
d & a & -b & -c \\
-c & b & a & -d \\
b & c & d & a
\end{array}
\right)

This can be derived from the definition of quaternion multiplication: (a+bi+cj+dk)(e+fi+gj+hk) = (ae-bf-cg-dh) + (af+be+ch-dg)i + (ag-bh+ce+df)j + (ah+bg-cf+de)k

Thirdly, you are correct in thinking that you need to use the vector u in your solution. In order to fully define the quaternion q, you need to find values for a, b, c, and d that satisfy all three equations given in the problem. This means that you need to use the vector u in addition to the vector v.

I hope this helps. Good luck with your solution!
 

Related to How Do Quaternions Rotate a Vector to a Specific Orientation?

1. What is the purpose of the equation Ax = b when b = [0; 0; 0; 0]?

The equation Ax = b is used to solve for the unknown variables in a system of linear equations. When b is equal to [0; 0; 0; 0], it means that the system of equations has a solution where all the equations equal to zero. This can be useful in many scientific and engineering applications.

2. How is the equation Ax = b solved when b = [0; 0; 0; 0]?

When b is equal to [0; 0; 0; 0], the equation Ax = b is solved by finding the inverse of matrix A and multiplying it with b. This will result in the values of x that satisfy the equation and make all the equations equal to zero.

3. What is the significance of the solution to Ax = b when b = [0; 0; 0; 0]?

The solution to Ax = b when b = [0; 0; 0; 0] is significant because it represents the intersection point of all the equations in the system. This point is known as the origin and it is an important reference point in mathematics and physics.

4. Can the equation Ax = b have multiple solutions when b = [0; 0; 0; 0]?

Yes, the equation Ax = b can have multiple solutions when b = [0; 0; 0; 0]. This means that there are multiple combinations of values for the variables in x that satisfy all the equations and make them equal to zero. These solutions can be found by using different methods such as Gaussian elimination or matrix inversion.

5. How is the equation Ax = b used in real-world applications when b = [0; 0; 0; 0]?

The equation Ax = b is used in various real-world applications, such as solving for unknown forces in a system of objects, finding equilibrium points in chemical reactions, and determining the stability of a system in engineering. When b = [0; 0; 0; 0], it means that the system is in a state of equilibrium and all the forces and reactions are balanced.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
513
  • Calculus and Beyond Homework Help
Replies
6
Views
600
  • Calculus and Beyond Homework Help
Replies
4
Views
966
  • Calculus and Beyond Homework Help
Replies
1
Views
533
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
781
  • Calculus and Beyond Homework Help
Replies
1
Views
637
  • Calculus and Beyond Homework Help
Replies
1
Views
759
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top