Quaternion and Rotation

Size: px
Start display at page:

Download "Quaternion and Rotation"

Transcription

1 Quaternion and Rotation Com S 477/577 Notes) Yan-Bin Jia Sep 5, Introduction Up until now we have learned that a rotation in R 3 about an axis through the origin can be represented by a 3 3 orthogonal matrix with determinant 1. However, the matrix representation seems redundant because only four of its nine elements are independent. Also the geometric interpretation of such a matrix is not clear until we carry out several steps of calculation to extract the rotation axis and angle. Furthermore, to compose two rotations, we need to compute the product of the two corresponding matrices, which requires twenty-seven multiplications and eighteen additions. Quaternions are very efficient for analyzing situations where rotations in R 3 are involved. A quaternion is a 4-tuple, which is a more concise representation than a rotation matrix. Its geometric meaning is also more obvious as the rotation axis and angle can be trivially recovered. The quaternion algebra to be introduced will also allow us to easily compose rotations. This is because quaternion composition takes merely sixteen multiplications and twelve additions. The development of quaternions is attributed to W. R. Hamilton [5] in Legend has it that Hamilton was walking with his wife Helen at the Royal Irish Academy when he was suddenly struck by the idea of adding a fourth dimension in order to multiply triples. Excited by this breakthrough, as the couple passed the Brougham bridge of the Royal Canal, he carved the newfound quaternion equations î ĵ ˆk îĵˆk 1 into the stone of thebridge. Thisevent is marked by a plaqueat the exact location today. Hamilton spent the rest of his life working on quaternions, which became the first non-commutative algebra to be studied. Quaternion Algebra The set of quaternions, together with the two operations of addition and multiplication, form a non-commutative ring. 1 The standard orthonormal basis for R 3 is given by three unit vectors Appendices are optional for reading unless specifically required. Sections.1,., 3, and 4 are based on Chapters 3 6 of the book [9] by J. B. Kuipers, Sections 1 and 6 are partially based on the essay by S. Oldenburger [10] who took the course, and Section 5 is based on [6]. 1 For the purpose of this course, you don t really need to know what a ring is although it can be found in a standard algebra text such as the one by Hungerford [7] or Jacobson [8]. 1

2 î 1,0,0), ĵ 0,1,0), ˆk 0,0,1). A quaternion q is defined as the sum of a scalar q 0 and a vector q q 1,q,q 3 ); namely,.1 Addition and Multiplication q q 0 +q q 0 +q 1 î+q ĵ +q 3ˆk. 1) Addition of two quaternions acts component-wise. More specifically, consider the quaternion q above and another quaternion p p 0 +p 1 î+p ĵ +p 3ˆk. ) Then we have p+q p 0 +q 0 )+p 1 +q 1 )î+p +q )ĵ +p 3 +q 3 )ˆk. Every quaternion q has a negative q with components q i, i 0,1,,3. The product of two quaternions satisfies these fundamental rules introduced by Hamilton: î ĵ ˆk îĵˆk 1, îĵ ˆk ĵî, ĵˆk î ˆkĵ, ˆkî ĵ îˆk. Now we can give the product of two quaternions p and q: pq p 0 +p 1 î+p ĵ +p 3ˆk)q0 +q 1 î+q ĵ +q 3ˆk) p 0 q 0 p 1 q 1 +p q +p 3 q 3 )+p 0 q 1 î+q ĵ +q 3ˆk)+q0 p 1 î+p ĵ +p 3ˆk) +p q 3 p 3 q )î+p 3q 1 p 1 q 3 )ĵ +p 1q p q 1 )ˆk. Whew! It is too long to remember or even to understand what is going on. Fortunately, we can utilize the inner product and cross product of two vectors in R 3 to write the above quaternion product in a more concise form: pq p 0 q 0 p q+p 0 q+q 0 p+p q. 3) In the above, p p 1,p,p 3 ) and q q 1,q,q 3 ) are the vector parts of p and q, respectively. Example 1. Suppose the two vectors are given as follows: p 3+î ĵ + ˆk, q î+ĵ +3ˆk. We singleout their vectorparts p 1,,1)and q 1,,3)and calculate their inner and crossproducts: p q, î ĵ ˆk p q î 4ĵ.

3 By 3) the quaternion product is then pq 6 )+3 î+ĵ +3ˆk)+î ĵ + ˆk)+ 8î 4ĵ) 8 9î ĵ +11ˆk. We see that the product of two quaternions is still a quaternion with scalar part p 0 q 0 p q and vector part p 0 q+q 0 p+p q. The set of quaternions is closed under multiplication and addition. It is not difficult to verify that multiplication of quaternions is distributive over addition. The identity quaternion has real part 1 and vector part 0.. Conjugate, Norm, and Inverse Let q q 0 +q q 0 +q 1 î+q ĵ+q 3ˆk be a quaternion. The conjugate of q, denoted q, is defined as From the definition we immediately have q ) q 0 q) q, q +q q 0, q q q 0 q)q 0 +q) q q 0 q q 0 q 1 î q ĵ q 3ˆk. q 0 q 0 q) q+q 0 q + q)q 0 + q) q by 3) q 0 +q q q 0 +q 1 +q +q 3 qq. Given two quaternions p and q, we can easily verify that pq) q p. 4) The norm of a quaternion q, denoted by q, is the scalar q q q. A quaternion is called a unit quaternion if its norm is 1. The norm of the product of two quaternions p and q is the product of the individual norms, for we have The inverse of a quaternion q is defined as pq pq)pq) pqq p p q p pp q p q. q 1 q q. We can easily verify that q 1 q qq 1 1. In the case q is a unit quaternion, the inverse is its conjugate q. 3

4 3 Quaternion Rotation Operator How can a quaternion, which lives in R 4, operate on a vector, which lives in R 3? First, we note that a vector v R 3 is a pure quaternion whose real part is zero. Pure Quaternions R 3 v 0 + v R 4 v Quaternions Figure 1: R 3 is viewed as the space of pure quaternions. Using the unit quaternion q we define an operator on vectors v R 3 : L q v) qvq q 0 q )v +q v)q +q 0 q v). 5) Here we make two observations. First, the quaternion operator 5) does not change the length of the vector v for L q v) qvq q v q v. Second, the direction of v, if along q, is left unchanged by the operator L q. To verify this, we let v kq and have qvq qkq)q q 0 q )kq)+q kq)q +q 0 q kq) kq 0 + q )q kq. Essentially, any vector along q is thus not changed under L q. This makes us guess that the operator L q acts like a rotation about q, which will be made precise by the next theorem. Before proceeding with the theorem, we remark that the operator L q is linear over R 3. For any two vectors v 1,v R 3 and any a 1,a R we can show that Theorem 1 For any unit quaternion L q a 1 v 1 +a v ) a 1 L q v 1 )+a L q v ). q q 0 +q cos θ +ûsin θ, 6) 4

5 and for any vector v R 3 the action of the operator L q v) qvq on v is equivalent to a rotation of the vector through an angle θ about û as the axis of rotation. Proof Given a vector v R 3, we decompose it as v a+n, where a is the component along the vector q and n is the component normal to q. Then we show that under the operator L q, a is invariant, while n is rotated about q through an angle θ. Since the operator is linear, this shows that the image qvq is indeed interpreted as a rotation of v about q through an angle θ. We know from an early reasoning that a is invariant under L q. So let us focus on the effect of L q on the orthogonal component n. We have L q n) q 0 q )n+q n)q +q 0 q n) q 0 q )n+q 0 q n) q 0 q )n+q 0 q û n), where in the last step above we introduced û q/ q. Denote n û n. So the last equation becomes L q n) q 0 q )n+q 0 q n. 7) Note that n and n have the same length: n n û n û sin π n. Finally, we rewrite 7) into the form L q n) cos θ θ ) sin n+ cos θ sin θ ) n cosθn+sinθn. Namely, the resulting vector is a rotation of n through an angle θ in the plane defined by n and n. See the figure below. This vector is clearly orthogonal to the rotation axis. Note that the quaternion negation q cos π+θ + ûsin π+θ, when applied to v, will result in the same vector: L q q)v q) qvq. It represents the rotation about the same axis through the angle π + θ, essentially the same rotation. The redundancy ratio of quaternions in describing rotations is thus two, dimensionally six less than that of orthogonal matrices. We substitute the unit quaternion form 6) into 5) to obtain the resulting vector from rotating a vector v about the axis û through θ: L q v) cos θ θ ) sin v + ûsin θ ) v ûsin θ +cos θ ûsin θ ) v cosθ v +1 cosθ)û v)û+sinθ û v). 8) Let us rewrite the right hand side of equation 5) as a matrix product: q L q v) 0 q ) ) I 3 +qq T +q 0 q v, 5

6 n L q n) θ q n Figure : Quaternion acts as rotation. where I 3 is the 3 3 identity matrix, and the matrix 0 q 3 q q q 3 0 q 1 q q 1 0 carries out the cross product. Given that v is an arbitrary vector, the rotation matrix corresponding to q is then R q 0 q ) I 3 +qq T +q 0 q. Conversely, given a rotation matrix R, we can use the method described in the notes Rotations in the Space to recover the axis and angle of the rotation, and subsequently construct the quaternion. Example. Consider a rotation about an axis defined by 1,1,1) through an angle of π/3. About this axis, the basis vectors î,ĵ, and ˆk generate the same cone when rotated through π. We define a unit vector û 1 3 1,1,1). Let the rotation angle θ π/3. The quaternion q defining the rotation is then given as v q cos θ +ûsin θ î+ 1 ĵ + 1 ˆk. Let us compute the effect of rotation on the basis vector î 1,0,0). We obtain the resulting vector using 8): 1+ 1 ) ĵ

7 The rotation of v under the operator L q can also be interpreted from the perspective of an observer attached to the vector v. What he sees happening is that the coordinate frame rotates through the angle θ about the same axis defined by the quaternion. Theorem For any unit quaternion q q 0 +q cos θ +ûsin θ, and for any vector v R 3 the action of the operator L q v) q vq ) q vq is a rotation of the coordinate frame about the axis û through an angle θ while v is not rotated. Equivalently, the operator L q rotates the vector v with respect to the coordinate frame through an angle θ about q. The quaternion operator L q v) qvq may be interpreted as a point or vector rotation with respect to the fixed) coordinate frame. Thequaternion operator L q v) q vq may be interpreted as a coordinate frame rotation with respect to the fixed) space of points. 4 Quaternion Operator Sequences Let p and q be two unit quaternions. We first apply the operator L p to the vector u and obtain the vector v. To v we then apply the operator L q and obtain the vector w. Equivalently, we apply the composition L q L p of the two operators: w L q v) qvq qpup )q qp)uqp) L qp u). Because p and q are unit quaternions, so is the product qp. Hence the above equation describes a rotation operator whose defining quaternion is the product of the two quaternions p and q. The axis and angle of the composite rotation is given by the product qp. Similarly, consider the quaternion operators L p u) p up and L q v) q vq which carry out rotations of the coordinate system determined by quaternions p and q, respectively. Then the quaternion product pq defines an operator L pq), which represents a sequence of operators L p followed by L q. The axis and angle of rotation of L pq) are those represented by the quaternion product pq. Example 3. We now use the quaternion method to find the axis and angle of the composite rotation in the Satellite tracking example from the notes titled Rotations in the Space. Recall that the tracking application takes a rotation about the z-axis through a bearing angle α followed by a rotation about the new 7

8 y-axis through an elevation angle β. After these two rotations, the new x-axis points toward the satellite. The two rotations are respectively described by the two quaternions below: p cos α +sin α ˆk, q cos β +sin β ĵ. Since we are rotating the coordinate frame, the two operators L p and L q are applied sequentially. The composite rotation operator is L pq), which transforms coordinates in the station frame to those in the tracking frame. And the quaternion describing the composition rotation is the product pq which is as follows. pq cos α +sin α ˆk) cos β +sin β ) ĵ cos α cos β +cos α sin β ĵ +sin α cos β ˆk+sin α sin β ˆk ĵ) cos α cos β sin α sin β î+cos α sin β ĵ +sin α cos β ˆk. The axis of the composite rotation is defined by the vector v sin α sin β, cos α sin β, sin α cos β ). 9) And the angle of rotation θ satisfies cos θ sin θ cos α cos β, v. The cosine is same as obtained in Section 4 of the handouts titled Rotation in the Space for we have cosθ cos θ 1 cos α cos β 1 cosα+1 cosβ +1 1 cosαcosβ +cosα+cosβ 1. Note that the rotation axis and angle in that section transforms coordinates in the tracking frame to those in the station frame. This explains why the axis v in 9) is opposite to the one obtained in that section while the angle is the same. 5 Application: 3-D Shape Registration An important problem in model-based recognition is to find the transformation of a set of data points that yields the best match of these points against a shape model. The process is often referred to as data registration. The data points are typically measured on a real object by range sensors, touch sensors, etc., and given in Cartesian coordinates. The quality of a match is often 8

9 rotation q 1 q 5 p 1 p 5 translation q 4 q 7 q 3 p 3 q p 4 p 7 p q 6 p 6 Data Model Figure 3: Matching two point sets p i and q j. described as the total squared distance from the data points to the model. When multiple shape models are possible, the one that results in the least total distance is then recognized as the shape of the object. Quaternions are very effective in solving the above least-squares-based registration problem. Let us begin with a formulation of the problem in 3D. Let {p 1,p,...,p n } be a set of data points. We assume that p 1,...,p n are to be matched against the points q 1,...,q n on a shape model. Namely, the correspondences between the data points and those on the model have been predetermined. Then the problem is to find a rotation, represented by an orthogonal matrix R with detr) 1, and a translation b as the solution to the following minimization: min R,b Rp i +b q i. 10) We begin by computing the centroids of the two sets of points: p 1 n q 1 n p i ; q i. The relative coordinates of all the points to their centroids are obtained as, for 1 i n, p i p i p; q i q i q. 9

10 Clearly, we have p i q i p i n p q i n q p i n 1 n q i n 1 n Let us rewrite the objective function in 10) in terms of p, q,p i,q i : Rp i +b q i Rp i q i +R p q +b p i 0; 11) q i 0. 1) Rp i q i +R p q +b) Rp i q i +R p q +b) Rp i q i + ) Rp i q i) R p q +b)+n R p q +b Rp i q i + R p i q i ) R p q +b)+n R p q+b Rp i q i +n R p q +b, by 11) and 1). The minimizing translation b should make the second term in the last equation above zero, yielding: b q R p. 13) Thus we have decomposed the problem of data registration into two phases: the first of which determines its optimal translation, as given by equation 13), and the second of which determines the optimal rotation of the set {p i }. Note that every point p i is transformed into Rp i p) + q before matching against q i. Equivalently, to find the best match of the two point sets {p i } and {q i }, we first translate {p i } to let their centroid coincide with that of {q i }, and then rotate about the common centroid. By the reasoning so far, the optimal rotation can be solved from the formulation below: min R Rp i q i. 14) Here we present an exact solution to 14) as described in [6] using quaternions. An equivalent quaternion-based solution is given in [4]. The version of matching two curves or surfaces), also assuming pointwise correspondences, is solved exactly in [1] in a somewhat similar manner without the use of quaternions. First, we rewrite the summation in 14) as follows: Rp i q i Rp i Rp i) Rp i q i)+ q i q i p i + q i ) 10 Rp i q i.

11 The first summand in the last equation above does not depend on the rotation, so we need only minimize the second summand. Equivalently, this can be done through a maximization: max R Rp i q i. 15) The rotation matrix R has nine entries, only four of which are independent due to the orthogonality and unit determinant of R. Instead, we represent rotations using unit quaternions. Essentially, we find the unit quaternion q that maximizes qp i q ) q i. 16) Here we view quaternions as vectors in R 4. Let q q 0,q 1,q,q 3 ) T and q q 0, q 1, q, q 3 ) T. Also, the points p 1,...,p n and q 1,...,q n are viewed as 4-tuples with p i 0,p i1,p i,p i3 )T and q i 0,q i1,q i,q i3 )T by a slight abuse of notation. Applying the definition of quaternion product, it is not difficult to show that qp i q ) q i qp i ) q iq). 17) Next, we intend to rewrite the summands in 16) as matrix products. For this purpose, we define matrices 0 p i1 p i p i3 0 q P i p i1 0 p i3 p i1 q i q i3 i p i p i3 0 p and Q i q i1 0 q i3 q i i1 q p i3 p i p i q i3 0 q i1, i1 0 q i3 q i q i1 0 for 1 i n. Then the quaternion products qp i and q iq are equivalent to the matrix products P i q and Q i q. We thus have qp iq ) q i qp i) q iq) by 17)) P i q) Q i q) q T P T i Q iq q T P T i Q i )q. It is easy to verify that each matrix P T i Q i is symmetric, so is the 4 4 matrix M P T i Q i. 11

12 Thus M has real eigenvalues only, say, λ 1,λ,λ 3,λ 4 with λ 1 λ λ 3 λ 4. Let v 1,v,v 3,v 4 be the corresponding orthogonal unit eigenvectors. Eigenvectors corresponding to different eigenvalues must be orthogonal to each other. Multiple eigenvectors corresponding to the same eigenvalue are chosen to be orthogonal to each other. The quaternion q is a linear combination of these eigenvectors: q α 1 v 1 +α v +α 3 v 3 +α 4 v 4. Therefore we have q T Mq α 1 v 1 +α v +α 3 v 3 +α 4 v 4 ) T Mα 1 v 1 +α v +α 3 v 3 +α 4 v 4 ) α 1 v 1 +α v +α 3 v 3 +α 4 v 4 ) λ 1 α 1 v 1 +λ α v +λ 3 α 3 v 3 +λ 4 α 4 v 4 ) λ 1 α 1 +λ α +λ 3α 3 +λ 4α 4. The product q T Mq achieves its maximum when α 1 1 and α α 3 α 4 0. Therefore, the unit quaternion q that maximizes 16) is the eigenvector that corresponds to the largest eigenvalue of the matrix M. It describes the optimal rotation for 14), i.e, for data registration. When the corresponding points q 1,...,q n are unknown, a well-known method called the Iterative Closest Point ICP) [1] solves the registration problem. Given a set of data points {p 1,...,p n }, the ICP algorithm finds the initial corresponding points q 0) 1,...,q0) n as the closest points on the surface model to p 0) 1 p 1,...,p 0) n p n, respectively. Then it applies the introduced quaternionbased method to determine the rotation and translation that best match {p 0) i } with {q 0) i }. The second iteration applies the just found transformation to every p 0) i, obtaining p 1) i, and then determines its new corresponding point q 1) i on the model as the closest point to p 1) i. Recompute the best rotation and translation using quaternions, and so on. The algorithm stops when the change in the new transformation becomes small enough. 6 Discussion In physics, quaternions are correlated to the nature of the universe at the level of quantum mechanics. They lead to elegant expressions of the Lorentz transformations, which form the basis of the modern theory of relativity. In signal processing, Quaternion Fourier Transform QFT) is a powerful tool. The QFT restores the lost commutative property at the cost of no longer being a division algebra. It can be used, for instance, to embed a watermark in a color image. Other applications of QFT include face recognition jointly with Quaternion Wavelet Transform) and voice recognition [10]. Homogeneous coordinates are introduced to make translation multiplicative, along with scaling and rotation. They are convenient in representing points, lines, and planes, and fundamental for studying projections. Like quaternions, homogeneous coordinates are 4-tuples. This suggests that there might be a way of doing scaling and translation using some sort of quaternion operator. As of now, no such way has been found as quaternions and their rotation operators are algebraically incompatible with homogeneous coordinates. In 1873, quaternions were extended to dual quaternions by Clifford [] to represent both rotations and translations. Dual quaternions have found applications in kinematics, robotics, motion estimation, and computer graphics. Multiplicities of the eigenvalues are counted. 1

13 A Power, Exponential, and Logarithm Let us first look at a unit quaternion q q 0 +q. That q 0 + q 1 implies that there exists a unique θ [0,π] such that cosθ q 0 and sinθ q. The quaternion can thus be rewritten in terms of θ and the unit vector û q/ q : q cosθ+ûsinθ. A general quaternion q q 0 +q can be represented as a unit quaternion scaled by the norm q : q q cosθ+ûsinθ), 18) where û q/ q and θ arccosq 0 / q ). Euler s identity for a complex number a+bi a +b e iφ, where i 1 and φ atanb,a), generalizes to the quaternion q in a way that 18) can be rewritten as q q e uθ. This allows us to define the power of q as q ρ q ρ e uθ) ρ q ρ cosρθ)+ûsinρθ)), ρ R. 19) Intuitively, the power is taken over the norm of the quaternion while a scaling is performed on its phase angle. An exponential of q makes use of the Taylor expansion that treats q just as an ordinary variable: e q i0 q i i!. The sum on the right hand side has a closed form that transforms the above into The logarithm of q is accordingly defined as e q expq 0 +û q ) e q 0 cos q +ûsin q ). 0) lnq ln q +ûarccos The two operations are inverses of each other as we can verify e lnq e ln q +ûarccosq 0/ q ) q eûarccosq 0/ q ) q q. ) q0 q +û q q ) q0. 1) q 13

14 B Quaternion Differentiation and Integration Suppose the quaternion q given in 1) is a function of some variable, say, time t. We can write the derivative of qt) as q q 0 + q q 0 + q 1 î+ q ĵ + q 3ˆk. Let p given in ) be another function of t. It is easy to verify from 3) that the product rule over differentiation carries over, namely, d pq) ṗq +p q. dt Integration is carried over the four components of a quaternion. Differentiation gets more complicated when qt) is a unit quaternion that requires the devotion of the rest of this section. In this case, the quaternion function qt) describes how the orientation of some moving object, represented by its body frame, varies relative to a fixedworld) frame. Let ωt) be the angular velocity of the body frame with respect to the world frame. The angular velocity can be determined from Newton s equations for dynamics. How to characterize the changing rate of qt), that is, its derivative qt)? Theorem 3 Let qt) be a unit quaternion function, and ωt) the angular velocity determined by qt). The derivative of qt) is q 1 ωq. ) Proof At t+ t, the rotation is described by qt+ t). This is after some extra rotation during t performed on the frame that has already undergone a rotation described by qt). This extra rotation is about the instantaneous axis ˆω ω/ ω through the angle θ ω t. It can be described by a quaternion: q cos θ cos ω t + ˆωsin θ + ˆωsin ω t. 3) The rotation at t+ t is thus described by the quaternion sequence qt), q, implying qt+ t) qqt). 4) We are now ready to derive qt). First, let us obtain the difference qt+ t) qt) cos ω t + ˆωsin ω t ) qt) qt) by 3) and 4)) sin ω t 4 qt)+ ˆωsin ω t qt). The first term in the last equation above is of higher order than t, thus its ratio to t goes to zero as the latter does. Hence qt+ t) qt) qt) lim t 0 t 14

15 ˆω lim t 0 ˆω d dt sin ω t ˆω ω qt) sin ω t/) qt) t ) qt) 5) t0 1 ωt)qt). 6) In mechanics, the angular velocity is often in terms of the rotated frame which is the body frame of a moving object). Denote this angular velocity by ω. Thus, ω q ωq. Substituting the expression ω qω q into ), we obtain q 1 qω 7) If q is known, we can recover the angular velocity from ) by right multiplying its both sides with q : ω qq. 8) The second derivative of the quaternion follows from differentiating ): q 1 ωq +ω q) 9) 1 ωq + 1 ωωq by )) 4 14 ω + 1 ) ω q. We can also recover the angular acceleration if the first and second derivatives of q are both known. This is done by right multiplying 9) with q : ω qq ω qq qq qq qq by 8)) qq qq ) ). Let ω be the angular velocity of the rotating frame with respect to a fixed frame that instantaneously coincides with it. It is obtained from ω by rotating the world frame to coincide with the rotating frame according to q. This establishes ω q ωq. Combining ) with the above, we have another expression of the quaternion derivative: q 1 q ω. 15

16 The differential equation ) can be solved via numerical integration. Let h be the time step size, and denote by q k and ω k the quaternion and angular velocity at the time kh. Euler s method approximates the quaternion at the next time step by q k+1 q k + 1 hω kq k. Due to the increment, the length of q k+1 will be different from unity. It is then normalized: q k+1 q k+1 q k+1. Euler s method is of first order and known to be inaccurate due to the truncation error, which will propagate to the subsequent normalization. Standard integration methods of higher order such as Adams-Bashforth and Runge-Kutta [11] can be employed. Special integration methods for quaternions have also been developed, and shown to be more effective. We refer to [14] for a survey of these methods with performance comparisons. C Quaternion Interpolation In computer graphics and animation, there is often a need to interpolate between an object s initial orientation i.e., a rotation of the body frame with respect to the world frame) and final orientation to generate a smooth rotating motion. Let the the two rotations be represented respectively by the following two unit quaternions: r 1 cos θ 1 +û 1sin θ 1, r cos θ +û sin θ, wherefor i 1,, û i is aunitvector representstheaxis oftheith rotation, andθ i thecorresponding rotation angle. For interpolation to be meaningful, r 1 r must hold. C.1 Constant Change Rates in Rotation Axis and Angle It is easy to interpolate the rotation angle linearly as θτ) 1 τ)θ 1 +τθ, 30) where τ [0,1]. However, linear interpolation between the unit vectors û 1 and û would yield the vector v 1 τ)û 1 +τû that is not unit. If we simply normalize it as w v/ v, the resulting curve wτ) is not constant speed in terms of τ. This is often not desired or visually appealing as the object may seem to be rotating unstably from û 1 to û. Since û 1 and û lie on the unitsphere, it is natural to interpolate them usingtheir shortest path on the sphere. This is the shorter one of the two great arcs connecting û 1 and û, as illustrated in the figure below. 16

17 n O φ uτ) u u 1 Picture a point ûτ) moving at constant speed on this great arc from û 1 to û as τ increases from 0 to 1. Essentially, ûτ) is a constant speed parametrization of the arc over [0,1]. To derive it, we first construct the normal to the plane: ˆn û1 û û 1 û. 31) In the case û 1 û, we may simply pick the vertical plane containing them. Denoting û 1 u x,u y,u z ), the vertical plane has the normal ˆn u y,u x,0) u x +u y if u x +u y 0, and otherwise ˆn 1,0,0) by choice. Due to the choice of ˆn, the rotation angle φ from û 1 to û about ˆn is in 0,π]. It can be easily obtained that φ arccosû 1 û ). 3) Then the vector ûτ) is determined from a rotation of û 1 about ˆn through the angle τφ, as a quaternion product: ûτ) cos τφ + ˆnsin τφ )û 1 cos τφ ˆnsin τφ ). In fact, û has a simpler form not involving quaternion multiplications: ûτ) sin1 τ)φ) û 1 + sinτφ) sinφ sinφ û. 33) The correctness of the above expression can be first established for the case that û 1 and û lie in the xy-plane, and ˆn is along the z-direction. Let û 1 cosθ 1,sinθ 1 ). Then û cosθ 1 + φ),sinθ 1 +φ)). We have sin1 τ)φ) û 1 + sinτφ) sinφ sinφ û 17

18 sin1 τ)φ)cosθ1 +sinτφ)cosθ 1 +φ), sin1 τ)φ)sinθ ) 1 +sinτφ)sinθ 1 +φ) sinφ sinφ sinφcosτφ)cosθ1 sinτφ)sinθ 1 ), sinφcosτφ)sinθ ) 1 +sinτφ)cosθ 1 ) sinφ sinφ cosθ 1 +τφ),sinθ 1 +τφ)) ûτ). If û 1 and û do not lie in the xy-plane, we rotate ˆn to coincide with the z-axis. Let R be the corresponding rotation matrix. Then ûτ) R 1 Rû) sin1 τ)φ) R 1 Rû 1 )+ sinτφ) ) sinφ sinφ Rû ) sin1 τ)φ) û 1 + sinτφ) sinφ sinφ û. Finally, we can interpolate between r 1 and r over [0,1]: rτ) cos θτ) cos 1 τ)θ 1 +τθ θτ) +ûτ)sin sin1 τ)φ) + sinφ û 1 + sinτφ) ) sinφ û sin 1 τ)θ 1 +τθ, 34) by 30) and 33), where φ is given in 3). The interpolation has constant change rates in both the rotation angle and the axis. C. Spherical Linear Interpolation In computer graphics, the widely used algorithm Slerp spherical linear interpolation) [13] takes the following form rτ) r 1 r 1 r ) τ, τ [0,1], 35) where the power of a unit quaternion is given by 19). It has been shown [3] that rτ) parametrizes the shortest path connecting r 1 and r on the 3D unit quaternion sphere in the 4D space. A major appeal is that interpolation is carried out as a rotation about a fixed axis at constant angular velocity. D Differentiation With Respect to a Quaternion Sometimes we need to perform differentiation with respect to a quaternion q q 0 + q, where q q 1,q,q 3 ). In this context, the quaternion shall be viewed as a column vector q 0,q 1,q,q 3 ) T, just like all other vectors unless specifically mentioned to be row vectors). For a vector u u 1,u,u 3 ) T, we denote by u the following 3 3 anti-symmetric matrix whose product with a vector v yields the cross product û v: u 0 u 3 u u 3 0 u 1 u u

19 It easily follows that u v) v u v) u u, v u) u v We start with the product of two quaternions p p 0 +p and q q 0 +q, given in 3). These quaternions are now viewed as column vectors p 0,p 1,p,p 3 ) T and q 0,q 1,q,q 3 ) T, respectively. The derivative of pq with respect to p is a 4 4 matrix: pq) p ) p 0 q 0 p q p p 0 q +q 0 p+p q q0 q T q q 0 I 3 q ), 36) where I 3 is the 3 3 identity matrix. The partial derivative of pq with respect to p is derived from replacing q with q in the above: pq ) q0 q T ). 37) p q q 0 I 3 +q Similarly, the partial derivative of the product pq with respect to q is given below: pq) p0 p T ) q p p 0 I 3 +p Also, the partial derivative of the product pq with respect to q is pq ) ) p 0 q 0 +p q q q p 0 q +q 0 p p q p0 p T ). 39) p p 0 I 3 p In each of the derivatives 36) and 38), let the non-differentiated quaternion be a pure quaternion v, that is, a vector, and name the other quaternion q always. Then the derivatives reduce to the following: 0 v T qv) q vq) q v v 0 v T v v 38) ), 40) ). 41) Alternatively, in 36) and 38), we let the differentiated quaternion be a vector. The derivatives becomes two 4 3 matrices: vq) q T ), 4) v q 0 I 3 q qv) q T ). 43) v q 0 I 3 +q 19

20 At last, we look at the derivatives of the product qvq respectively with respect to the unit quaternion q and the vector v. The product gives the vector that results from performing a rotation represented by q on v. The form is given in 5). Differentiation with respect to v is straightforward since the product is linear in v: and qvq ) v q vq) v q 0 q ) I 3 +qq T +q 0 q, 44) q vq ) ) 45) v q0 q ) I 3 +qq T q 0 q. 46) Meanwhile, the product is quadratic in q. Let us first obtain the following derivatives: q v) vq T q ) q q q v)q) q vq T, v T q)q ) q v T qi 3 +qv T. Now, differentiate 5) and substitute the above derivatives in. After some cleanup, the derivative of the rotated vector with respect to the rotation is as below: qvq ) q q 0 v +q v, vq T +v q)i 3 +qv T q 0 v ). 47) References [1] P. J. Besl and N. D. McKay. A method for registration of 3-D shapes. IEEE Transactions on pattern analysis and machine intelligence, 14):39 56, 199. [] W. K. Clifford. Preliminary sketch of bi-quaternions. Proceedings of the London Mathematical Society, s1 41): , [3] E. B. Dam, M. Koch, and M. Lillholm. Quaternions, interpolation, and animation. [4] O. D. Faugeras and M. Hebert. The representation, recognition, and locating of 3-D objects. International Journal of Robotics Research, 53):7 5, [5] W. R. Hamilton. On quaternions; or on a new system of imagniaries in algebra. London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 53): , [6] B. K. P. Horn. Closed-form solution of absolute orientation using unit quaternions. Journal of Optical Society of America A, 44):69 64, [7] T. W. Hungerford. Algebra. Springer-Verlag,

21 [8] N. Jacobson. Basic Algebra. W. H. Freeman & Co.,1985. [9] J. B. Kuipers. Quaternions and Rotation Sequences. Princeton University Press, [10] S. Oldenburger. Applications of Quaternions. Written project of the course Problem Solving Techniques in Applied Computer Science Com S 477/577), Department of Computer Science, Iowa State University, 005. [11] W. H. Press, S. A. Teukolsky, W. T.Vetterling, and B. P. Flannery. Numerical Recipies in C, nd edition. Cambridge University Press, Inc., 00. [1] J. T. Schwartz and M. Sharir. Identification of partially obscured objects in two and three dimensions by matching noisy characteristic curves. International Journal of Robotics Research, 6):9 44, [13] K. Shoemake. Animating rotation with quaternion curves. Computer Graphics, 193):45 54, [14] F. Zhao and B. G. M. van Wachem. A novel quaternion integration approach for describing the behaviour of non-spherical particles. Acta Mechanica, 4: ,

Quaternions and their applications

Quaternions and their applications Quaternions and their applications Ramachandran Subramanian February 20, 2014 Jack B. Kuipers. Quaternions and Rotation Sequences. university press, New Jersey, 1998 Princeton Outline 1 Background 2 Introduction

More information

Quaternions. R. J. Renka 11/09/2015. Department of Computer Science & Engineering University of North Texas. R. J.

Quaternions. R. J. Renka 11/09/2015. Department of Computer Science & Engineering University of North Texas. R. J. Quaternions R. J. Renka Department of Computer Science & Engineering University of North Texas 11/09/2015 Definition A quaternion is an element of R 4 with three operations: addition, scalar multiplication,

More information

Rotational motion of a rigid body spinning around a rotational axis ˆn;

Rotational motion of a rigid body spinning around a rotational axis ˆn; Physics 106a, Caltech 15 November, 2018 Lecture 14: Rotations The motion of solid bodies So far, we have been studying the motion of point particles, which are essentially just translational. Bodies with

More information

The VQM-Group and its Applications

The VQM-Group and its Applications International Journal of Algebra, Vol. 2, 2008, no. 19, 905-918 The VQM-Group and its Applications Michael Aristidou Digipen Institute of Technology Department of Mathematics 5001, 150th Ave., NE Redmond,

More information

SPLIT QUATERNIONS and CANAL SURFACES. in MINKOWSKI 3-SPACE

SPLIT QUATERNIONS and CANAL SURFACES. in MINKOWSKI 3-SPACE INTERNATIONAL JOURNAL OF GEOMETRY Vol. 5 (016, No., 51-61 SPLIT QUATERNIONS and CANAL SURFACES in MINKOWSKI 3-SPACE SELAHATTIN ASLAN and YUSUF YAYLI Abstract. A canal surface is the envelope of a one-parameter

More information

Quaternions 2 AUI Course Denbigh Starkey

Quaternions 2 AUI Course Denbigh Starkey Quaternions 2 AUI Course Denbigh Starkey 1. Background 2 2. Some Basic Quaternion Math 4 3. The Justification of the Quaternion Rotation Formula 5 4. Interpolation between two Unit Quaternions SLERP vs.

More information

8 Velocity Kinematics

8 Velocity Kinematics 8 Velocity Kinematics Velocity analysis of a robot is divided into forward and inverse velocity kinematics. Having the time rate of joint variables and determination of the Cartesian velocity of end-effector

More information

Vectors. September 2, 2015

Vectors. September 2, 2015 Vectors September 2, 2015 Our basic notion of a vector is as a displacement, directed from one point of Euclidean space to another, and therefore having direction and magnitude. We will write vectors in

More information

Quaternions. Basilio Bona. Semester 1, DAUIN Politecnico di Torino. B. Bona (DAUIN) Quaternions Semester 1, / 40

Quaternions. Basilio Bona. Semester 1, DAUIN Politecnico di Torino. B. Bona (DAUIN) Quaternions Semester 1, / 40 Quaternions Basilio Bona DAUIN Politecnico di Torino Semester 1, 2016-2017 B. Bona (DAUIN) Quaternions Semester 1, 2016-2017 1 / 40 Introduction Complex numbers with unit norm can be used as rotation operators

More information

Introduction to quaternions

Introduction to quaternions . Introduction Introduction to uaternions Invented and developed by William Hamilton in 843, uaternions are essentially a generalization of complex numbers to four dimensions (one real dimension, three

More information

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I Physics 342 Lecture 2 Linear Algebra I Lecture 2 Physics 342 Quantum Mechanics I Wednesday, January 3th, 28 From separation of variables, we move to linear algebra Roughly speaking, this is the study of

More information

ECS 178 Course Notes QUATERNIONS

ECS 178 Course Notes QUATERNIONS ECS 178 Course Notes QUATERNIONS Kenneth I. Joy Institute for Data Analysis and Visualization Department of Computer Science University of California, Davis Overview The quaternion number system was discovered

More information

QM and Angular Momentum

QM and Angular Momentum Chapter 5 QM and Angular Momentum 5. Angular Momentum Operators In your Introductory Quantum Mechanics (QM) course you learned about the basic properties of low spin systems. Here we want to review that

More information

Classical Mechanics. Luis Anchordoqui

Classical Mechanics. Luis Anchordoqui 1 Rigid Body Motion Inertia Tensor Rotational Kinetic Energy Principal Axes of Rotation Steiner s Theorem Euler s Equations for a Rigid Body Eulerian Angles Review of Fundamental Equations 2 Rigid body

More information

Vector Operations. Vector Operations. Graphical Operations. Component Operations. ( ) ˆk

Vector Operations. Vector Operations. Graphical Operations. Component Operations. ( ) ˆk Vector Operations Vector Operations ME 202 Multiplication by a scalar Addition/subtraction Scalar multiplication (dot product) Vector multiplication (cross product) 1 2 Graphical Operations Component Operations

More information

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I

Physics 342 Lecture 2. Linear Algebra I. Lecture 2. Physics 342 Quantum Mechanics I Physics 342 Lecture 2 Linear Algebra I Lecture 2 Physics 342 Quantum Mechanics I Wednesday, January 27th, 21 From separation of variables, we move to linear algebra Roughly speaking, this is the study

More information

(3.1) a 2nd-order vector differential equation, as the two 1st-order vector differential equations (3.3)

(3.1) a 2nd-order vector differential equation, as the two 1st-order vector differential equations (3.3) Chapter 3 Kinematics As noted in the Introduction, the study of dynamics can be decomposed into the study of kinematics and kinetics. For the translational motion of a particle of mass m, this decomposition

More information

Interpolation of Rigid Motions in 3D

Interpolation of Rigid Motions in 3D Interpolation of Rigid Motions in 3D David Eberly, Geometric Tools, Redmond WA 98052 https://www.geometrictools.com/ This work is licensed under the Creative Commons Attribution 4.0 International License.

More information

Course Notes Math 275 Boise State University. Shari Ultman

Course Notes Math 275 Boise State University. Shari Ultman Course Notes Math 275 Boise State University Shari Ultman Fall 2017 Contents 1 Vectors 1 1.1 Introduction to 3-Space & Vectors.............. 3 1.2 Working With Vectors.................... 7 1.3 Introduction

More information

sin(α + θ) = sin α cos θ + cos α sin θ cos(α + θ) = cos α cos θ sin α sin θ

sin(α + θ) = sin α cos θ + cos α sin θ cos(α + θ) = cos α cos θ sin α sin θ Rotations in the 2D Plane Trigonometric addition formulas: sin(α + θ) = sin α cos θ + cos α sin θ cos(α + θ) = cos α cos θ sin α sin θ Rotate coordinates by angle θ: 1. Start with x = r cos α y = r sin

More information

NOTES ON LINEAR ALGEBRA CLASS HANDOUT

NOTES ON LINEAR ALGEBRA CLASS HANDOUT NOTES ON LINEAR ALGEBRA CLASS HANDOUT ANTHONY S. MAIDA CONTENTS 1. Introduction 2 2. Basis Vectors 2 3. Linear Transformations 2 3.1. Example: Rotation Transformation 3 4. Matrix Multiplication and Function

More information

Quaternion Algebra and Calculus

Quaternion Algebra and Calculus Quaternion Algebra and Calculus David Eberly, Geometric Tools, Redmond WA 98052 https://www.geometrictools.com/ This work is licensed under the Creative Commons Attribution 4.0 International License. To

More information

QUATERNIONS AND ROTATIONS

QUATERNIONS AND ROTATIONS QUATERNIONS AND ROTATIONS SVANTE JANSON 1. Introduction The purpose of this note is to show some well-known relations between quaternions and the Lie groups SO(3) and SO(4) (rotations in R 3 and R 4 )

More information

Linear Algebra. Min Yan

Linear Algebra. Min Yan Linear Algebra Min Yan January 2, 2018 2 Contents 1 Vector Space 7 1.1 Definition................................. 7 1.1.1 Axioms of Vector Space..................... 7 1.1.2 Consequence of Axiom......................

More information

MODEL ANSWERS TO HWK #7. 1. Suppose that F is a field and that a and b are in F. Suppose that. Thus a = 0. It follows that F is an integral domain.

MODEL ANSWERS TO HWK #7. 1. Suppose that F is a field and that a and b are in F. Suppose that. Thus a = 0. It follows that F is an integral domain. MODEL ANSWERS TO HWK #7 1. Suppose that F is a field and that a and b are in F. Suppose that a b = 0, and that b 0. Let c be the inverse of b. Multiplying the equation above by c on the left, we get 0

More information

Clifford Algebras and Spin Groups

Clifford Algebras and Spin Groups Clifford Algebras and Spin Groups Math G4344, Spring 2012 We ll now turn from the general theory to examine a specific class class of groups: the orthogonal groups. Recall that O(n, R) is the group of

More information

MODEL ANSWERS TO THE FIRST HOMEWORK

MODEL ANSWERS TO THE FIRST HOMEWORK MODEL ANSWERS TO THE FIRST HOMEWORK 1. Chapter 4, 1: 2. Suppose that F is a field and that a and b are in F. Suppose that a b = 0, and that b 0. Let c be the inverse of b. Multiplying the equation above

More information

Dr. Allen Back. Sep. 8, 2014

Dr. Allen Back. Sep. 8, 2014 in R 3 Dr. Allen Back Sep. 8, 2014 in R 3 in R 3 Def: For f (x, y), the partial derivative with respect to x at p 0 = (x 0, y 0 ) is f x = lim f (x 0 + h, y 0 ) f (x 0, y 0 ) h 0 h or f x = lim f (p 0

More information

MATH PROBLEM SET 6

MATH PROBLEM SET 6 MATH 431-2018 PROBLEM SET 6 DECEMBER 2, 2018 DUE TUESDAY 11 DECEMBER 2018 1. Rotations and quaternions Consider the line l through p 0 := (1, 0, 0) and parallel to the vector v := 1 1, 1 that is, defined

More information

MATH 583A REVIEW SESSION #1

MATH 583A REVIEW SESSION #1 MATH 583A REVIEW SESSION #1 BOJAN DURICKOVIC 1. Vector Spaces Very quick review of the basic linear algebra concepts (see any linear algebra textbook): (finite dimensional) vector space (or linear space),

More information

Understanding Quaternions: Rotations, Reflections, and Perspective Projections. Ron Goldman Department of Computer Science Rice University

Understanding Quaternions: Rotations, Reflections, and Perspective Projections. Ron Goldman Department of Computer Science Rice University Understanding Quaternions: Rotations, Reflections, and Perspective Projections Ron Goldman Department of Computer Science Rice University The invention of the calculus of quaternions is a step towards

More information

REVIEW - Vectors. Vectors. Vector Algebra. Multiplication by a scalar

REVIEW - Vectors. Vectors. Vector Algebra. Multiplication by a scalar J. Peraire Dynamics 16.07 Fall 2004 Version 1.1 REVIEW - Vectors By using vectors and defining appropriate operations between them, physical laws can often be written in a simple form. Since we will making

More information

Lie Algebra of Unit Tangent Bundle in Minkowski 3-Space

Lie Algebra of Unit Tangent Bundle in Minkowski 3-Space INTERNATIONAL ELECTRONIC JOURNAL OF GEOMETRY VOLUME 12 NO. 1 PAGE 1 (2019) Lie Algebra of Unit Tangent Bundle in Minkowski 3-Space Murat Bekar (Communicated by Levent Kula ) ABSTRACT In this paper, a one-to-one

More information

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication.

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication. This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication. Copyright Pearson Canada Inc. All rights reserved. Copyright Pearson

More information

Ridig Body Motion Homogeneous Transformations

Ridig Body Motion Homogeneous Transformations Ridig Body Motion Homogeneous Transformations Claudio Melchiorri Dipartimento di Elettronica, Informatica e Sistemistica (DEIS) Università di Bologna email: claudio.melchiorri@unibo.it C. Melchiorri (DEIS)

More information

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti Mobile Robotics 1 A Compact Course on Linear Algebra Giorgio Grisetti SA-1 Vectors Arrays of numbers They represent a point in a n dimensional space 2 Vectors: Scalar Product Scalar-Vector Product Changes

More information

7.6 Additional Problems

7.6 Additional Problems 7in x 10in Felder c07_online.tex V3 - January 21, 2015 10:11 A.M. Page 26 26 Chapter 7 Linear Algebra II (nline) 7.6 Additional Problems 7.137 The picture below shows a rubber sheet with three small stones

More information

32 +( 2) ( 4) ( 2)

32 +( 2) ( 4) ( 2) Math 241 Exam 1 Sample 2 Solutions 1. (a) If ā = 3î 2ĵ+1ˆk and b = 4î+0ĵ 2ˆk, find the sine and cosine of the angle θ between [10 pts] ā and b. We know that ā b = ā b cosθ and so cosθ = ā b ā b = (3)(

More information

Principal Component Analysis

Principal Component Analysis Principal Component Analysis Laurenz Wiskott Institute for Theoretical Biology Humboldt-University Berlin Invalidenstraße 43 D-10115 Berlin, Germany 11 March 2004 1 Intuition Problem Statement Experimental

More information

A Primer on Three Vectors

A Primer on Three Vectors Michael Dine Department of Physics University of California, Santa Cruz September 2010 What makes E&M hard, more than anything else, is the problem that the electric and magnetic fields are vectors, and

More information

MATH 205C: STATIONARY PHASE LEMMA

MATH 205C: STATIONARY PHASE LEMMA MATH 205C: STATIONARY PHASE LEMMA For ω, consider an integral of the form I(ω) = e iωf(x) u(x) dx, where u Cc (R n ) complex valued, with support in a compact set K, and f C (R n ) real valued. Thus, I(ω)

More information

Chapter 6: Vector Analysis

Chapter 6: Vector Analysis Chapter 6: Vector Analysis We use derivatives and various products of vectors in all areas of physics. For example, Newton s 2nd law is F = m d2 r. In electricity dt 2 and magnetism, we need surface and

More information

Lecture 7. Quaternions

Lecture 7. Quaternions Matthew T. Mason Mechanics of Manipulation Spring 2012 Today s outline Motivation Motivation have nice geometrical interpretation. have advantages in representing rotation. are cool. Even if you don t

More information

Why Transforms? Want to animate objects and camera Translations Rotations Shears And more.. Want to be able to use projection transforms

Why Transforms? Want to animate objects and camera Translations Rotations Shears And more.. Want to be able to use projection transforms Why Transforms? Want to animate objects and camera Translations Rotations Shears And more.. Want to be able to use projection transforms ITCS 3050:Game Engine Programming 1 Geometric Transformations Implementing

More information

Chapter 8. Rigid transformations

Chapter 8. Rigid transformations Chapter 8. Rigid transformations We are about to start drawing figures in 3D. There are no built-in routines for this purpose in PostScript, and we shall have to start more or less from scratch in extending

More information

Quaternion kinematics for the error-state Kalman filter

Quaternion kinematics for the error-state Kalman filter Quaternion kinematics for the error-state Kalman filter Joan Solà October 12, 2017 Contents 1 Quaternion definition and properties 4 1.1 Definition of quaternion............................ 4 1.1.1 Alternative

More information

The Quaternions & Octonions: A Basic introduction to Their Algebras. By: Kyle McAllister. Boise State University

The Quaternions & Octonions: A Basic introduction to Their Algebras. By: Kyle McAllister. Boise State University The Quaternions & Octonions: A Basic introduction to Their Algebras By: Kyle McAllister Boise State University McAllister The Quaternions and Octonions have a storied history, one with a restless supporter,

More information

The Cross Product The cross product of v = (v 1,v 2,v 3 ) and w = (w 1,w 2,w 3 ) is

The Cross Product The cross product of v = (v 1,v 2,v 3 ) and w = (w 1,w 2,w 3 ) is The Cross Product 1-1-2018 The cross product of v = (v 1,v 2,v 3 ) and w = (w 1,w 2,w 3 ) is v w = (v 2 w 3 v 3 w 2 )î+(v 3 w 1 v 1 w 3 )ĵ+(v 1 w 2 v 2 w 1 )ˆk = v 1 v 2 v 3 w 1 w 2 w 3. Strictly speaking,

More information

October 25, 2013 INNER PRODUCT SPACES

October 25, 2013 INNER PRODUCT SPACES October 25, 2013 INNER PRODUCT SPACES RODICA D. COSTIN Contents 1. Inner product 2 1.1. Inner product 2 1.2. Inner product spaces 4 2. Orthogonal bases 5 2.1. Existence of an orthogonal basis 7 2.2. Orthogonal

More information

Linear Algebra: Matrix Eigenvalue Problems

Linear Algebra: Matrix Eigenvalue Problems CHAPTER8 Linear Algebra: Matrix Eigenvalue Problems Chapter 8 p1 A matrix eigenvalue problem considers the vector equation (1) Ax = λx. 8.0 Linear Algebra: Matrix Eigenvalue Problems Here A is a given

More information

The groups SO(3) and SU(2) and their representations

The groups SO(3) and SU(2) and their representations CHAPTER VI The groups SO(3) and SU() and their representations Two continuous groups of transformations that play an important role in physics are the special orthogonal group of order 3, SO(3), and the

More information

Vector calculus background

Vector calculus background Vector calculus background Jiří Lebl January 18, 2017 This class is really the vector calculus that you haven t really gotten to in Calc III. Let us start with a very quick review of the concepts from

More information

Lie Groups for 2D and 3D Transformations

Lie Groups for 2D and 3D Transformations Lie Groups for 2D and 3D Transformations Ethan Eade Updated May 20, 2017 * 1 Introduction This document derives useful formulae for working with the Lie groups that represent transformations in 2D and

More information

Chapter 2 Math Fundamentals

Chapter 2 Math Fundamentals Chapter 2 Math Fundamentals Part 5 2.8 Quaternions 1 Outline 2.8.1 Representations and Notation 2.7.2 Quaternion Multiplication 2.7.3 Other Quaternion Operations 2.7.4 Representing 3D Rotations 2.7.5 Attitude

More information

Kinematics of fluid motion

Kinematics of fluid motion Chapter 4 Kinematics of fluid motion 4.1 Elementary flow patterns Recall the discussion of flow patterns in Chapter 1. The equations for particle paths in a three-dimensional, steady fluid flow are dx

More information

2. Signal Space Concepts

2. Signal Space Concepts 2. Signal Space Concepts R.G. Gallager The signal-space viewpoint is one of the foundations of modern digital communications. Credit for popularizing this viewpoint is often given to the classic text of

More information

Nonlinear Optimization

Nonlinear Optimization Nonlinear Optimization (Com S 477/577 Notes) Yan-Bin Jia Nov 7, 2017 1 Introduction Given a single function f that depends on one or more independent variable, we want to find the values of those variables

More information

A Lie Group. These notes introduce SU(2) as an example of a compact Lie group. SU(2) = { A A a 2 2 complex matrix,deta = 1,AA = A A = 1l }

A Lie Group. These notes introduce SU(2) as an example of a compact Lie group. SU(2) = { A A a 2 2 complex matrix,deta = 1,AA = A A = 1l } A Lie Group The Definition These notes introduce SU2) as an example of a compact Lie group. The definition of SU2) is SU2) { A A 2 complex matrixdeta 1AA A A 1l } In the name SU2) the S stands for special

More information

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124 Matrices Math 220 Copyright 2016 Pinaki Das This document is freely redistributable under the terms of the GNU Free Documentation License For more information, visit http://wwwgnuorg/copyleft/fdlhtml Contents

More information

Practical Linear Algebra: A Geometry Toolbox

Practical Linear Algebra: A Geometry Toolbox Practical Linear Algebra: A Geometry Toolbox Third edition Chapter 12: Gauss for Linear Systems Gerald Farin & Dianne Hansford CRC Press, Taylor & Francis Group, An A K Peters Book www.farinhansford.com/books/pla

More information

Appendix A. Vector addition: - The sum of two vectors is another vector that also lie in the space:

Appendix A. Vector addition: - The sum of two vectors is another vector that also lie in the space: Tor Kjellsson Stockholm University Appendix A A.1 Q. Consider the ordinary vectors in 3 dimensions (a x î+a y ĵ+a zˆk), with complex components. Do the following subsets constitute a vector space? If so,

More information

COMP 558 lecture 18 Nov. 15, 2010

COMP 558 lecture 18 Nov. 15, 2010 Least squares We have seen several least squares problems thus far, and we will see more in the upcoming lectures. For this reason it is good to have a more general picture of these problems and how to

More information

Solution of Linear Equations

Solution of Linear Equations Solution of Linear Equations (Com S 477/577 Notes) Yan-Bin Jia Sep 7, 07 We have discussed general methods for solving arbitrary equations, and looked at the special class of polynomial equations A subclass

More information

Motion in Three Dimensions

Motion in Three Dimensions Motion in Three Dimensions We ve learned about the relationship between position, velocity and acceleration in one dimension Now we need to extend those ideas to the three-dimensional world In the 1-D

More information

2. Preliminaries. x 2 + y 2 + z 2 = a 2 ( 1 )

2. Preliminaries. x 2 + y 2 + z 2 = a 2 ( 1 ) x 2 + y 2 + z 2 = a 2 ( 1 ) V. Kumar 2. Preliminaries 2.1 Homogeneous coordinates When writing algebraic equations for such geometric objects as planes and circles, we are used to writing equations that

More information

(arrows denote positive direction)

(arrows denote positive direction) 12 Chapter 12 12.1 3-dimensional Coordinate System The 3-dimensional coordinate system we use are coordinates on R 3. The coordinate is presented as a triple of numbers: (a,b,c). In the Cartesian coordinate

More information

Curves in the configuration space Q or in the velocity phase space Ω satisfying the Euler-Lagrange (EL) equations,

Curves in the configuration space Q or in the velocity phase space Ω satisfying the Euler-Lagrange (EL) equations, Physics 6010, Fall 2010 Hamiltonian Formalism: Hamilton s equations. Conservation laws. Reduction. Poisson Brackets. Relevant Sections in Text: 8.1 8.3, 9.5 The Hamiltonian Formalism We now return to formal

More information

Vectors Coordinate frames 2D implicit curves 2D parametric curves. Graphics 2008/2009, period 1. Lecture 2: vectors, curves, and surfaces

Vectors Coordinate frames 2D implicit curves 2D parametric curves. Graphics 2008/2009, period 1. Lecture 2: vectors, curves, and surfaces Graphics 2008/2009, period 1 Lecture 2 Vectors, curves, and surfaces Computer graphics example: Pixar (source: http://www.pixar.com) Computer graphics example: Pixar (source: http://www.pixar.com) Computer

More information

Attitude Estimation Version 1.0

Attitude Estimation Version 1.0 Attitude Estimation Version 1. Francesco Farina May 23, 216 Contents 1 Introduction 2 2 Mathematical background 2 2.1 Reference frames and coordinate systems............. 2 2.2 Euler angles..............................

More information

Rotation outline of talk

Rotation outline of talk Rotation outline of talk Properties Representations Hamilton s Quaternions Rotation as Unit Quaternion The Space of Rotations Photogrammetry Closed Form Solution of Absolute Orientation Division Algebras,

More information

Complex Numbers. Rich Schwartz. September 25, 2014

Complex Numbers. Rich Schwartz. September 25, 2014 Complex Numbers Rich Schwartz September 25, 2014 1 From Natural Numbers to Reals You can think of each successive number system as arising so as to fill some deficits associated with the previous one.

More information

Euclidean Spaces. Euclidean Spaces. Chapter 10 -S&B

Euclidean Spaces. Euclidean Spaces. Chapter 10 -S&B Chapter 10 -S&B The Real Line: every real number is represented by exactly one point on the line. The plane (i.e., consumption bundles): Pairs of numbers have a geometric representation Cartesian plane

More information

Kinematics. Chapter Multi-Body Systems

Kinematics. Chapter Multi-Body Systems Chapter 2 Kinematics This chapter first introduces multi-body systems in conceptual terms. It then describes the concept of a Euclidean frame in the material world, following the concept of a Euclidean

More information

Introduction and Vectors Lecture 1

Introduction and Vectors Lecture 1 1 Introduction Introduction and Vectors Lecture 1 This is a course on classical Electromagnetism. It is the foundation for more advanced courses in modern physics. All physics of the modern era, from quantum

More information

Lecture 1 Complex Numbers. 1 The field of complex numbers. 1.1 Arithmetic operations. 1.2 Field structure of C. MATH-GA Complex Variables

Lecture 1 Complex Numbers. 1 The field of complex numbers. 1.1 Arithmetic operations. 1.2 Field structure of C. MATH-GA Complex Variables Lecture Complex Numbers MATH-GA 245.00 Complex Variables The field of complex numbers. Arithmetic operations The field C of complex numbers is obtained by adjoining the imaginary unit i to the field R

More information

Physics 110. Electricity and Magnetism. Professor Dine. Spring, Handout: Vectors and Tensors: Everything You Need to Know

Physics 110. Electricity and Magnetism. Professor Dine. Spring, Handout: Vectors and Tensors: Everything You Need to Know Physics 110. Electricity and Magnetism. Professor Dine Spring, 2008. Handout: Vectors and Tensors: Everything You Need to Know What makes E&M hard, more than anything else, is the problem that the electric

More information

1 Polarization of Light

1 Polarization of Light J. Rothberg April, 014 Outline: Introduction to Quantum Mechanics 1 Polarization of Light 1.1 Classical Description Light polarized in the x direction has an electric field vector E = E 0 ˆx cos(kz ωt)

More information

Lecture Notes - Modeling of Mechanical Systems

Lecture Notes - Modeling of Mechanical Systems Thomas Bak Lecture Notes - Modeling of Mechanical Systems February 19, 2002 Aalborg University Department of Control Engineering Fredrik Bajers Vej 7C DK-9220 Aalborg Denmark 2 Table of Contents Table

More information

Topics in linear algebra

Topics in linear algebra Chapter 6 Topics in linear algebra 6.1 Change of basis I want to remind you of one of the basic ideas in linear algebra: change of basis. Let F be a field, V and W be finite dimensional vector spaces over

More information

1 Euclidean geometry. 1.1 The metric on R n

1 Euclidean geometry. 1.1 The metric on R n 1 Euclidean geometry This chapter discusses the geometry of n-dimensional Euclidean space E n, together with its distance function. The distance gives rise to other notions such as angles and congruent

More information

Math 302 Outcome Statements Winter 2013

Math 302 Outcome Statements Winter 2013 Math 302 Outcome Statements Winter 2013 1 Rectangular Space Coordinates; Vectors in the Three-Dimensional Space (a) Cartesian coordinates of a point (b) sphere (c) symmetry about a point, a line, and a

More information

The Calculus of Vec- tors

The Calculus of Vec- tors Physics 2460 Electricity and Magnetism I, Fall 2007, Lecture 3 1 The Calculus of Vec- Summary: tors 1. Calculus of Vectors: Limits and Derivatives 2. Parametric representation of Curves r(t) = [x(t), y(t),

More information

Complex Numbers and Quaternions for Calc III

Complex Numbers and Quaternions for Calc III Complex Numbers and Quaternions for Calc III Taylor Dupuy September, 009 Contents 1 Introduction 1 Two Ways of Looking at Complex Numbers 1 3 Geometry of Complex Numbers 4 Quaternions 5 4.1 Connection

More information

Noether s Theorem. 4.1 Ignorable Coordinates

Noether s Theorem. 4.1 Ignorable Coordinates 4 Noether s Theorem 4.1 Ignorable Coordinates A central recurring theme in mathematical physics is the connection between symmetries and conservation laws, in particular the connection between the symmetries

More information

Contents. D. R. Wilkins. Copyright c David R. Wilkins

Contents. D. R. Wilkins. Copyright c David R. Wilkins MA232A Euclidean and Non-Euclidean Geometry School of Mathematics, Trinity College Michaelmas Term 2017 Section 5: Vector Algebra and Spherical Trigonometry D. R. Wilkins Copyright c David R. Wilkins 2015

More information

CSE 554 Lecture 7: Alignment

CSE 554 Lecture 7: Alignment CSE 554 Lecture 7: Alignment Fall 2012 CSE554 Alignment Slide 1 Review Fairing (smoothing) Relocating vertices to achieve a smoother appearance Method: centroid averaging Simplification Reducing vertex

More information

The quantum state as a vector

The quantum state as a vector The quantum state as a vector February 6, 27 Wave mechanics In our review of the development of wave mechanics, we have established several basic properties of the quantum description of nature:. A particle

More information

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra. DS-GA 1002 Lecture notes 0 Fall 2016 Linear Algebra These notes provide a review of basic concepts in linear algebra. 1 Vector spaces You are no doubt familiar with vectors in R 2 or R 3, i.e. [ ] 1.1

More information

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2. APPENDIX A Background Mathematics A. Linear Algebra A.. Vector algebra Let x denote the n-dimensional column vector with components 0 x x 2 B C @. A x n Definition 6 (scalar product). The scalar product

More information

Geodesics. (Com S 477/577 Notes) Yan-Bin Jia. Nov 2, 2017

Geodesics. (Com S 477/577 Notes) Yan-Bin Jia. Nov 2, 2017 Geodesics (om S 477/577 Notes Yan-Bin Jia Nov 2, 2017 Geodesics are the curves in a surface that make turns just to stay on the surface and never move sideways. A bug living in the surface and following

More information

Chapter 2. Linear Algebra. rather simple and learning them will eventually allow us to explain the strange results of

Chapter 2. Linear Algebra. rather simple and learning them will eventually allow us to explain the strange results of Chapter 2 Linear Algebra In this chapter, we study the formal structure that provides the background for quantum mechanics. The basic ideas of the mathematical machinery, linear algebra, are rather simple

More information

Vectors and Matrices

Vectors and Matrices Vectors and Matrices Scalars We often employ a single number to represent quantities that we use in our daily lives such as weight, height etc. The magnitude of this number depends on our age and whether

More information

Hongbing Zhang October 2018

Hongbing Zhang October 2018 Exact and Intuitive Geometry Explanation: Why Does a Half-angle-rotation in Spin or Quaternion Space Correspond to the Whole-angle-rotation in Normal 3D Space? Hongbing Zhang October 2018 Abstract Why

More information

Notes on multivariable calculus

Notes on multivariable calculus Notes on multivariable calculus Jonathan Wise February 2, 2010 1 Review of trigonometry Trigonometry is essentially the study of the relationship between polar coordinates and Cartesian coordinates in

More information

Closed-Form Solution Of Absolute Orientation Using Unit Quaternions

Closed-Form Solution Of Absolute Orientation Using Unit Quaternions Closed-Form Solution Of Absolute Orientation Using Unit Berthold K. P. Horn Department of Computer and Information Sciences November 11, 2004 Outline 1 Introduction 2 3 The Problem Given: two sets of corresponding

More information

A Tutorial on Euler Angles and Quaternions

A Tutorial on Euler Angles and Quaternions A Tutorial on Euler Angles and Quaternions Moti Ben-Ari Department of Science Teaching Weimann Institute of Science http://www.weimann.ac.il/sci-tea/benari/ Version.0.1 c 01 17 b Moti Ben-Ari. This work

More information

ENGINEERING MATHEMATICS I. CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 PART-A

ENGINEERING MATHEMATICS I. CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 PART-A ENGINEERING MATHEMATICS I CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 Total Hrs: 52 Exam Marks:100 PART-A Unit-I: DIFFERENTIAL CALCULUS - 1 Determination of n th derivative of standard functions-illustrative

More information

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 21

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 21 EECS 16A Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 21 21.1 Module Goals In this module, we introduce a family of ideas that are connected to optimization and machine learning,

More information

Course MA2C02, Hilary Term 2010 Section 4: Vectors and Quaternions

Course MA2C02, Hilary Term 2010 Section 4: Vectors and Quaternions Course MA2C02, Hilary Term 2010 Section 4: Vectors and Quaternions David R. Wilkins Copyright c David R. Wilkins 2000 2010 Contents 4 Vectors and Quaternions 47 4.1 Vectors...............................

More information

Geometric Fundamentals in Robotics Quaternions

Geometric Fundamentals in Robotics Quaternions Geometric Fundamentals in Robotics Quaternions Basilio Bona DAUIN-Politecnico di Torino July 2009 Basilio Bona (DAUIN-Politecnico di Torino) Quaternions July 2009 1 / 47 Introduction Quaternions were discovered

More information