Introduction to quaternions

Size: px
Start display at page:

Download "Introduction to quaternions"

Transcription

1 . 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 imaginary). Quaternions have important, desirable properties when used to represent rotations, and, as such, are worthy of study in this course, where rotations between coordinate frames will occupy much of our attention, especially early on. This document gives a brief introduction on uaternions and follows closely the notation in [, which offers a much more exhaustive treatment. 2. Basic definition A uaternion consists of a scalar part s, s R, and a vector part v ( xyz,, ), v R 3. We will use several different forms to denote uaternions. These are given in euations () through (3) below: [ s, v [ s, ( xyz,, ) s+ ix + jy + kz In definition (3) above, the imaginary number i, j and k have the following properties: i 2 j 2 k 2 () (2) (3) (4) ij k (5) ji k From (4) through (6) the following additional properties can be derived: ijk (6) (7) jk i (8) kj ik i j (9) (0) ki j 3. Basic properties () A. Addition Let, and, ' Then, [ s, v [ s, ( x, yz, ), (2) [ s', v' [ s',( x', y', z' ). (3) + ' [ s + s', v+ v' ( s + s' ) + i( x+ x' ) + j( y+ y' ) + k( z + z' ) Clearly, uaternion addition is associative and commutative. (4) B. Multiplication With definitions (2) and (3), the product of two uaternions and ' is given by, - -

2 ' [ ss' v v', v v' + sv' + s'v Euation (5) can be verified by writing, (5) ' [ s, v [ s', v' ( s + ix + jy + kz) ( s' + ix' + jy' + kz' ) expanding the product in euation (6), applying properties (4) through (), and grouping terms accordingly. As a reminder, note that for two vectors a ( a x, a y, a z ) and b ( b x, b y, b z ), the dot and cross products are defined as, (6) a b a x b x + a y b y + a z b z b a (7) a b ( a y b z a z b y, a z b x a x b z, a x b y a y b x ) b a (8) respectively. Note that two purely scalar uaternions, [ s, 0 and [ s', 0, result in a scalar product, while two purely vector uaternions, [ 0, v and [ 0, v', yield both the dot product (albeit negative), and the cross product, [ 0, v [ 0, v' [ v v', v v'. (9) It can be easily verified that multiplication is associative, but not commutative; that is, in general, the order of multiplication does matter. One case of multiplication that is commutative is multiplication of a general uaternion by a scalar uaternion: C. Conjugate [ r, 0 [ s, v [ s, v [ r, 0 [ rs, rv. (20) The conjugate of a uaternion [ s, v is denoted as and is defined as, D. Norm [ s, v. (2) The norm (or length) of a uaternion [as defined in euation (2) is given by, (22) Since, [ s 2 ( v ( ), v ( + sv + s( [ s 2 + v v, 0 euation (22) can be expanded to, (23) Note the similarity of euation (24) to the computation of the length of a vector. A unit uaternion is any uaternion of unit length such that. E. Inversion s 2 + x 2 + y 2 + z 2 The inverse of a uaternion [as defined in euation (2) is given by, 2. (25) This can be easily verified by computing : [, 0. (26) (24) - 2 -

3 4. Rotations through uaternions A. Basics Below we will show that every unit uaternion represents a uniue rotation in space. It is easy to show that any unit uaternion can be expressed as, where kˆ ( k x, k y, k z ) denotes an arbitrary unit vector. Such a unit uaternion represents a rotation of θ about the vector kˆ. Now, let p ( p x, p y, p z ) denote the Cartesian coordinates of a point in space. Let us assume that we wish to rotate p by θ about the vector kˆ to. Let, Then, [ cos( θ 2), sin( θ 2) kˆ p [ 0, p, and, (28) [ 0,. (29) p In words, rotation by an angle θ about a unit vector kˆ can be achieved by pre- and post-multiplying the uaternion representation p of the vector p by the uaternion [as given by (27) and its conjugate, respectively. Let us show that euation (30) results in the same rotation matrix R ( θ) as previously derived in class kˆ through an argument of composite rotations (as demonstrated in Mathematica). p (27) (30) (3) [ s, v [ 0, p [ s, v (32) [ v p, v p+ sp [ s, v (33) Now, expression (34) can be significantly simplified. Note that the scalar part of (34) reduces to zero, since the dot products s( v and s( p cancel each other, and, which can be verified by inserting definitions (7) and (8) for the dot and cross products, respectively, into (35). For the vector part, and, so that, [ s( v + ( v v + s( p, ( v v s( p + s( v + s 2 p + v( v ( v v 0 s( p + s( v 2s( v ( v v ( v p ( v v [easily verified through (7) and (8) (37) (34) (35) (36) [ 0, ( s 2 v p + 2s( v + 2( v v or, euivalently, (38) ( s 2 v p + 2s( v + 2( v v. (39) We are now ready to substitute (27) into (39): [ cos 2 ( θ 2) sin 2 ( θ 2) p + 2cos( θ 2) sin( θ 2) kˆ p + 2sin 2 ( θ 2) ( kˆ kˆ (40) - 3 -

4 Applying the following trigonometric half-angle identities, cosθ cos 2 ( θ 2) sin 2 ( θ 2) sinθ 2cos( θ 2) sin( θ 2) ( cosθ) ( cos 2 ( θ 2) + sin 2 ( θ 2) ) 2sin 2 ( θ 2) (4) (42) [from (4) and (42) (43) euation (40) simplifies even further to: ( cosθ)p + ( sinθ)kˆ p + ( cosθ) ( kˆ kˆ (44) ( cθ)p + ( sθ)kˆ p + ( vθ) ( kˆ kˆ, (45) where cθ cosθ, sθ sinθ and vθ cosθ. Euation (44) is an important result known as Rodrigues formula. When we expand euation (45) by component terms, we get (after a lot of math best left to Mathematica), R ( θ)p kˆ (46) R ( θ) kˆ ( k 2 x vθ + cθ) ( k x k y vθ k z sθ) ( k x k z vθ + k y sθ) ( k x k y vθ + k z sθ) ( k 2 y vθ + cθ) ( k y k z vθ k x sθ) ( k x k z vθ k y sθ) ( k y k z vθ + k x sθ) ( k 2 y vθ + cθ) (47) which is exactly the same result as obtained in class through an argument of composite rotations. The two most important euations in this section are (3) and (45), which are reprinted below to emphasize their importance: p [rotation through uaternions (48) ( cθ)p + ( sθ)kˆ p + ( vθ) ( kˆ kˆ [Rodrigues formula (49) B. Composite uaternion rotations Assume two rotations: o followed by. The result of the first rotation is given by, 0 p 0 (50) while the result ' after both rotations is given by, ' (5) ' ( 0 p 0 ) (52) ' ( 0 )p ( 0 ) ' ( 0 )p ( 0 ) (53) (54) Note that from (53) to (54) we used the following fact: 0 ( 0 ) (55) for unit uaternions, which can be readily shown through the definition of uaternion multiplication. Euation (55) is important in that it shows that composite rotations can be computed through simple unit uaternion multiplication

5 C. Quaternion to axis-angle representation For any uaternion, [ s, v (56) we can readily compute the euivalent axis-angle representation. From (27), [ cos( θ 2), sin( θ 2) kˆ we can compute θ and kˆ as: θ 2atan( v, s) kˆ v v (57) (58) (59) Note that when rotation. θ 0 D. Quaternion to rotation matrix Suppose we have a uaternion,, the axis of rotation becomes ill-conditioned, since any axis is euivalent for a null [ s, ( xyz,, ). (60) and would like to identify the corresponding 3 3 rotation matrix R. We start by expanding euation (39) into the components of v ( xyz,, ): ( s 2 v p + 2s( v + 2( v v (6) ( s 2 x 2 y 2 z 2 ) z y + 2s z 0 x + 2 y x 0 x 2 xy xz xy y 2 yz p xz yz z 2 (62) 2( y 2 + z 2 ) 2( xy sz) 2( xz + sy) 2( xy + sz) 2( x 2 + z 2 ) 2( yz sx) 2( xz sy) 2( yz + sx) 2( x 2 + y 2 ) p (63) Note that in (62), we used the following matrix representation of the cross product: ( v 0 z y z 0 x y x 0 p (64) which is easily verified by doing a component-by-component comparison of both sides of euation (64). Thus, R is given by, R 2( y 2 + z 2 ) 2( xy sz) 2( xz + sy) 2( xy + sz) 2( x 2 + z 2 ) 2( yz sx) 2( xz sy) 2( yz + sx) 2( x 2 + y 2 ) (65) E. Rotation matrix to uaternion Suppose we have a rotation matrix R, - 5 -

6 r r 2 r 3 R r 2 r 22 r 23 (66) r 3 r 32 r 33 such that, Rp, (67) and would like to identify the corresponding uaternion, [ s, ( xyz,, ). (68) From the result of the previous section in (65), we can write down the following 0 convenient euations relating r ij to [ s, ( x, yz, ): s 2 -- ( + r 4 + r 22 + r 33 ) x 2 -- ( + r 4 r 22 r 33 ) y 2 -- ( r 4 + r 22 r 33 ) z 2 -- ( r 4 r 22 + r 33 ) (69) (70) (7) (72) and, sx 4 32 r 23 ) (73) sy 4 3 r 3 ) (74) sz 4 2 r 2 ) (75) xy r 2 ) (76) xz r 3 ) (77) yz r 32 ) (78) Now, to solve for the parameters [ s, ( x, yz, ) robustly, use the first four euations [(69) through (72), to solve for the largest valued parameter in { s 2, x 2, y 2, z 2 }. Then, solve for the remaining three parameters using three of the six remaining euations [(73) through (78). 5. Rotation trajectories through uaternions A. Linear interpolation (Ler Suppose you wish to generate a trajectory of orientations between two rotations represented by unit uaternions 0 and respectively. One method of achieving this is called Linear Interpolation (Ler, which is given by, - 6 -

7 where, Lerp( 0,, h) f ( 0,, h) , h [ 0,, (79) f ( 0,, h) f ( 0,, h) 0 ( h) + h. (80) Note that the normalization in euation (79) is reuired since f ( 0,, h) is not guaranteed to be a unit vector. It is easy to verify that, Lerp( 0,, 0) 0, and, (8) Lerp( 0,, ). (82) See [ for much more detail. B. Spherical linear interpolation (Sler One of the main objections to the Lerp trajectory is that the resulting trajectory is not constant velocity. Another method, called Spherical Linear Interpolation (Sler, achieves the shortest possible interpolation path between 0 and (or 0 and, whichever is shorter) along the four-dimensional unit sphere at constant velocity. The Slerp interpolation is given by, Slerp( 0,, h) ( 0 ) h 0, h [ 0,, (83) or euivalently as, Slerp( 0,, h) ( 0 ) h 0, h [ 0,. (84) Note that as was the case for Lerp, Slerp( 0,, 0) ( 0 ) , and, (85) Slerp( 0,, ) ( 0 ) (86) The main difference between the Lerp and the Slerp interpolation is that the Lerp interpolation cuts through the unit uaternion sphere (before being projected back onto it through normalization), while the Slerp interpolation moves at constant velocity on the surface on the unit uaternion sphere. (see Figure 6.4 on page 42 in [). In order to compute (83) [or (84) for uaternion of the form, where kˆ is a unit vector, we define, h ( 0, ), we need a little more uaternion math. First, given a unit log( ) [ 0, Ωkˆ. (88) Second, for a uaternion of the form, we define, [ cosω, sinωkˆ [ 0, Ωkˆ exp( ) [ cosω, sinωkˆ. (90) Now, we define, (87) (89) h exp[ h log( ) (9) - 7 -

8 These definitions have some familiar (with respect to scalars) properties, such as: log( [ 0, ) [ 00,, (92), (93) A word of caution, though; not all properties scale from scalars to uaternions; for example, for uaternions p,. Now, we are ready to give a formula for computing the Slerp interpolation. Let, so that, 0 [ s 0, v 0, and, (96) [ s, v. (97) 0 [ s s 0 + ( v v 0 ), v v 0 + s 0 v s v 0. (98) If we let, a b a+ b ab ( a ) b. (94) log( p) log( + log( ) (95) 0 [ cosω, sinωkˆ [as in assumption (87), (99) then, cosω 0 s s 0 + ( v v 0 ) (00) Ω acos( 0 ), and, (0) k v 0 v + s 0 v s v 0, and, (02) kˆ k/ k 0 k 0 k 0 (03) Finally [from definition (9), ( 0 ) exp[ h log( 0 ) ( 0 ) exp( [ 0, hωkˆ ) (04) (05) ( 0 ) h [ cos( hω), sin( hω) kˆ. (06) Euation (06), together with (00) through (03), allows computation of Slerp( 0,, h) ( 0 ) h 0, h [ 0,. From (06), note that ( 0 ) 0 [, 0 and ( 0 ) 0. For much greater detail, see [. 6. Conclusions Unit uaternions represent rotations. They have several advantages over three-angle representations (both fixed axis and Euler angles) and rotation matrices:. Unit uaternions do not suffer from singularities, as three-angle conventions do. 2. Unit uaternions represent the most compact way of representing rotations without redundancy or singularity (unlike rotation matrices themselves). One can visualize unit uaternions populating the surface of a sphere in four-dimensional Euclidean space, where each uaternion and its antipode represent a uniue rotation in three dimensions

9 References 3. The unit uaternion representation allows us to define and compute a distance metric between two rotations. This is not, in general possible or easy with three-angle conventions or rotation matrices. 4. In finite-precision computations, ensuring proper rotations through freuent re-normalization is easy for unit uaternions, but significantly trickier for rotation matrices. 5. For simulation purposes, it is easy to generate a uniformly random distribution of rotations in uaternion space. 6. Unit uaternions allow for the computation of shortest-path, smooth, continuous-velocity trajectories between two rotations (represented as unit uaternions). Three-angle conventions make this very difficult, if not impossible. [ E. B. Dam, M. Koch and M. Lillholm, Quaternions, Interpolation and Animation, DIKU-TR-98/5, Technical Report, Department of Computer Science, University of Copenhagen, 998 ( research/published/98-5.ps.gz)

Course 2BA1: Hilary Term 2007 Section 8: Quaternions and Rotations

Course 2BA1: Hilary Term 2007 Section 8: Quaternions and Rotations Course BA1: Hilary Term 007 Section 8: Quaternions and Rotations David R. Wilkins Copyright c David R. Wilkins 005 Contents 8 Quaternions and Rotations 1 8.1 Quaternions............................ 1 8.

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

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

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

EEL6667: Homework #1 Solutions

EEL6667: Homework #1 Solutions EEL6667: Homework #1 Solutions Problem 1: Note: homework1.nb is a Mathematica notebook that solves many of the problems in this homework. (a) See homework1.nb. (b) See homework1.nb. Problem :[raig, Exercise.14

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

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

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

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

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

Group, Rings, and Fields Rahul Pandharipande. I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S,

Group, Rings, and Fields Rahul Pandharipande. I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, Group, Rings, and Fields Rahul Pandharipande I. Sets Let S be a set. The Cartesian product S S is the set of ordered pairs of elements of S, A binary operation φ is a function, S S = {(x, y) x, y S}. φ

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

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

Texture, Microstructure & Anisotropy A.D. (Tony) Rollett

Texture, Microstructure & Anisotropy A.D. (Tony) Rollett 1 Carnegie Mellon MRSEC 27-750 Texture, Microstructure & Anisotropy A.D. (Tony) Rollett Last revised: 5 th Sep. 2011 2 Show how to convert from a description of a crystal orientation based on Miller indices

More information

Lecture «Robot Dynamics»: Kinematics 2

Lecture «Robot Dynamics»: Kinematics 2 Lecture «Robot Dynamics»: Kinematics 2 151-0851-00 V lecture: CAB G11 Tuesday 10:15 12:00, every week exercise: HG E1.2 Wednesday 8:15 10:00, according to schedule (about every 2nd week) Marco Hutter,

More information

DUAL SPLIT QUATERNIONS AND SCREW MOTION IN MINKOWSKI 3-SPACE * L. KULA AND Y. YAYLI **

DUAL SPLIT QUATERNIONS AND SCREW MOTION IN MINKOWSKI 3-SPACE * L. KULA AND Y. YAYLI ** Iranian Journal of Science & echnology, ransaction A, Vol, No A Printed in he Islamic Republic of Iran, 6 Shiraz University DUAL SPLI UAERNIONS AND SCREW MOION IN MINKOWSKI -SPACE L KULA AND Y YAYLI Ankara

More information

Rotations. sin θ cos θ 0. a a 2

Rotations. sin θ cos θ 0. a a 2 Rotations Ari Grant Sugih Jamin EECS 487 Winter 010 1. rotation of a vector around an arbitrary axis Given a vector b, an axis a, and an angle α the goal is to find a formula (or function or operator)

More information

We are already familiar with the concept of a scalar and vector. are unit vectors in the x and y directions respectively with

We are already familiar with the concept of a scalar and vector. are unit vectors in the x and y directions respectively with Math Review We are already familiar with the concept of a scalar and vector. Example: Position (x, y) in two dimensions 1 2 2 2 s ( x y ) where s is the length of x ( xy, ) xi yj And i, j ii 1 j j 1 i

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

Physically Based Rendering ( ) Geometry and Transformations

Physically Based Rendering ( ) Geometry and Transformations Phsicall Based Rendering (6.657) Geometr and Transformations 3D Point Specifies a location Origin 3D Point Specifies a location Represented b three coordinates Infinitel small class Point3D { public: Coordinate

More information

Position and orientation of rigid bodies

Position and orientation of rigid bodies Robotics 1 Position and orientation of rigid bodies Prof. Alessandro De Luca Robotics 1 1 Position and orientation right-handed orthogonal Reference Frames RF A A z A p AB B RF B z B x B y A rigid body

More information

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

BSc (Hons) in Computer Games Development. vi Calculate the components a, b and c of a non-zero vector that is orthogonal to

BSc (Hons) in Computer Games Development. vi Calculate the components a, b and c of a non-zero vector that is orthogonal to 1 APPLIED MATHEMATICS INSTRUCTIONS Full marks will be awarded for the correct solutions to ANY FIVE QUESTIONS. This paper will be marked out of a TOTAL MAXIMUM MARK OF 100. Credit will be given for clearly

More information

= a. a = Let us now study what is a? c ( a A a )

= a. a = Let us now study what is a? c ( a A a ) 7636S ADVANCED QUANTUM MECHANICS Solutions 1 Spring 010 1 Warm up a Show that the eigenvalues of a Hermitian operator A are real and that the eigenkets of A corresponding to dierent eigenvalues are orthogonal

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

Unit Generalized Quaternions in Spatial Kinematics

Unit Generalized Quaternions in Spatial Kinematics Vol (07) - Pages 7-4 Unit Generalized Quaternions in Spatial Kinematics Mehdi Jafari, echnical Vocational University, Urmia, Iran, mj_msc@yahoo.com Abstract- After a review of some fundamental properties

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

Interpolation of Transformation

Interpolation of Transformation Spatial Rotation Interpolation of Transformation I 3,0 U 12 K v V -1 1 11 11-1 Kv B 2 U 11 B 1 Interpolation of Transformation I 3,0 R,t U 12 K v V -1 1 11 11-1 Kv B 2 U 11 B 1 Interpolation of Transformation

More information

The Matrix Representation of a Three-Dimensional Rotation Revisited

The Matrix Representation of a Three-Dimensional Rotation Revisited Physics 116A Winter 2010 The Matrix Representation of a Three-Dimensional Rotation Revisited In a handout entitled The Matrix Representation of a Three-Dimensional Rotation, I provided a derivation of

More information

11.1 Three-Dimensional Coordinate System

11.1 Three-Dimensional Coordinate System 11.1 Three-Dimensional Coordinate System In three dimensions, a point has three coordinates: (x,y,z). The normal orientation of the x, y, and z-axes is shown below. The three axes divide the region into

More information

PHYS 705: Classical Mechanics. Rigid Body Motion Introduction + Math Review

PHYS 705: Classical Mechanics. Rigid Body Motion Introduction + Math Review 1 PHYS 705: Classical Mechanics Rigid Body Motion Introduction + Math Review 2 How to describe a rigid body? Rigid Body - a system of point particles fixed in space i r ij j subject to a holonomic constraint:

More information

arxiv: v1 [math.ds] 18 Nov 2008

arxiv: v1 [math.ds] 18 Nov 2008 arxiv:0811.2889v1 [math.ds] 18 Nov 2008 Abstract Quaternions And Dynamics Basile Graf basile.graf@epfl.ch February, 2007 We give a simple and self contained introduction to quaternions and their practical

More information

THE COMPLEXITY OF THE QUATERNION PROD- UCT*

THE COMPLEXITY OF THE QUATERNION PROD- UCT* 1 THE COMPLEXITY OF THE QUATERNION PROD- UCT* Thomas D. Howell Jean-Claude Lafon 1 ** TR 75-245 June 1975 2 Department of Computer Science, Cornell University, Ithaca, N.Y. * This research was supported

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

Lecture 10: A (Brief) Introduction to Group Theory (See Chapter 3.13 in Boas, 3rd Edition)

Lecture 10: A (Brief) Introduction to Group Theory (See Chapter 3.13 in Boas, 3rd Edition) Lecture 0: A (Brief) Introduction to Group heory (See Chapter 3.3 in Boas, 3rd Edition) Having gained some new experience with matrices, which provide us with representations of groups, and because symmetries

More information

Mathematics for Graphics and Vision

Mathematics for Graphics and Vision Mathematics for Graphics and Vision Steven Mills March 3, 06 Contents Introduction 5 Scalars 6. Visualising Scalars........................ 6. Operations on Scalars...................... 6.3 A Note on

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 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

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

Kinematics of a UR5. Rasmus Skovgaard Andersen Aalborg University

Kinematics of a UR5. Rasmus Skovgaard Andersen Aalborg University Kinematics of a UR5 May 3, 28 Rasmus Skovgaard Andersen Aalborg University Contents Introduction.................................... Notation.................................. 2 Forward Kinematics for

More information

Mathematical Preliminaries

Mathematical Preliminaries Mathematical Preliminaries Introductory Course on Multiphysics Modelling TOMAZ G. ZIELIŃKI bluebox.ippt.pan.pl/ tzielins/ Table of Contents Vectors, tensors, and index notation. Generalization of the concept

More information

On complexified quantum mechanics and space-time

On complexified quantum mechanics and space-time On complexified quantum mechanics and space-time Dorje C. Brody Mathematical Sciences Brunel University, Uxbridge UB8 3PH dorje.brody@brunel.ac.uk Quantum Physics with Non-Hermitian Operators Dresden:

More information

GEOMETRY AND VECTORS

GEOMETRY AND VECTORS GEOMETRY AND VECTORS Distinguishing Between Points in Space One Approach Names: ( Fred, Steve, Alice...) Problem: distance & direction must be defined point-by-point More elegant take advantage of geometry

More information

Math review. Math review

Math review. Math review Math review 1 Math review 3 1 series approximations 3 Taylor s Theorem 3 Binomial approximation 3 sin(x), for x in radians and x close to zero 4 cos(x), for x in radians and x close to zero 5 2 some geometry

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

ON A NEW SPECIES OF IMAGINARY QUANTITIES CONNECTED WITH A THEORY OF QUATERNIONS. William Rowan Hamilton

ON A NEW SPECIES OF IMAGINARY QUANTITIES CONNECTED WITH A THEORY OF QUATERNIONS. William Rowan Hamilton ON A NEW SPECIES OF IMAGINARY QUANTITIES CONNECTED WITH A THEORY OF QUATERNIONS By William Rowan Hamilton (Proceedings of the Royal Irish Academy, 2 (1844), 424 434.) Edited by David R. Wilkins 1999 On

More information

Matrix Representation

Matrix Representation Matrix Representation Matrix Rep. Same basics as introduced already. Convenient method of working with vectors. Superposition Complete set of vectors can be used to express any other vector. Complete set

More information

Matrices and Vectors

Matrices and Vectors Matrices and Vectors James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 11, 2013 Outline 1 Matrices and Vectors 2 Vector Details 3 Matrix

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

Lecture 1.2 Pose in 2D and 3D. Thomas Opsahl

Lecture 1.2 Pose in 2D and 3D. Thomas Opsahl Lecture 1.2 Pose in 2D and 3D Thomas Osahl Motivation For the inhole camera, the corresondence between observed 3D oints in the world and 2D oints in the catured image is given by straight lines through

More information

X-MA2C01-1: Partial Worked Solutions

X-MA2C01-1: Partial Worked Solutions X-MAC01-1: Partial Worked Solutions David R. Wilkins May 013 1. (a) Let A, B and C be sets. Prove that (A \ (B C)) (B \ C) = (A B) \ C. [Venn Diagrams, by themselves without an accompanying logical argument,

More information

An eightfold path to E 8

An eightfold path to E 8 An eightfold path to E 8 Robert A. Wilson First draft 17th November 2008; this version 29th April 2012 Introduction Finite-dimensional real reflection groups were classified by Coxeter [2]. In two dimensions,

More information

Computer Graphics II

Computer Graphics II Computer Graphics II Autumn 2017-2018 Outline 1 3-D Rotations (contd.) Outline 3-D Rotations (contd.) 1 3-D Rotations (contd.) Amalgamating Steps 2, 3 & 4 Quaternions are a more compact way of solving

More information

Quaternions. Mike Bailey. Computer Graphics Quaternions.pptx

Quaternions. Mike Bailey. Computer Graphics Quaternions.pptx 1 Quaternions This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License Mike Bailey mjb@cs.oregonstate.edu Quaternions.pptx A Useful Concept: Spherical

More information

CS 354R: Computer Game Technology

CS 354R: Computer Game Technology CS 354R: Computer Game Technolog Transformations Fall 207 Universit of Teas at Austin CS 354R Game Technolog S. Abraham Transformations What are the? Wh should we care? Universit of Teas at Austin CS 354R

More information

Contravariant and Covariant as Transforms

Contravariant and Covariant as Transforms Contravariant and Covariant as Transforms There is a lot more behind the concepts of contravariant and covariant tensors (of any rank) than the fact that their basis vectors are mutually orthogonal to

More information

Subalgebras of the Split Octonions

Subalgebras of the Split Octonions Subalgebras of the Split Octonions Lida Bentz July 27, 2017 CONTENTS CONTENTS Contents 1 Introduction 3 1.1 Complex numbers......................... 3 1.2 Quaternions............................ 3 1.3

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

Be fruitful and multiply Genesis 1:28

Be fruitful and multiply Genesis 1:28 Lecture 15: Quaternions: Multiplication in the Space of Mass-Points Be fruitful and multiply Genesis 1:8 15.1 Vector Spaces and Division Algebras The space of mass-points is a 4-dimensional vector space:

More information

Assignment 10. Arfken Show that Stirling s formula is an asymptotic expansion. The remainder term is. B 2n 2n(2n 1) x1 2n.

Assignment 10. Arfken Show that Stirling s formula is an asymptotic expansion. The remainder term is. B 2n 2n(2n 1) x1 2n. Assignment Arfken 5.. Show that Stirling s formula is an asymptotic expansion. The remainder term is R N (x nn+ for some N. The condition for an asymptotic series, lim x xn R N lim x nn+ B n n(n x n B

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

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 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

UNIVERSITY OF DUBLIN

UNIVERSITY OF DUBLIN UNIVERSITY OF DUBLIN TRINITY COLLEGE JS & SS Mathematics SS Theoretical Physics SS TSM Mathematics Faculty of Engineering, Mathematics and Science school of mathematics Trinity Term 2015 Module MA3429

More information

NIELINIOWA OPTYKA MOLEKULARNA

NIELINIOWA OPTYKA MOLEKULARNA NIELINIOWA OPTYKA MOLEKULARNA chapter 1 by Stanisław Kielich translated by:tadeusz Bancewicz http://zon8.physd.amu.edu.pl/~tbancewi Poznan,luty 2008 ELEMENTS OF THE VECTOR AND TENSOR ANALYSIS Reference

More information

Problem Solving 1: Line Integrals and Surface Integrals

Problem Solving 1: Line Integrals and Surface Integrals A. Line Integrals MASSACHUSETTS INSTITUTE OF TECHNOLOY Department of Physics Problem Solving 1: Line Integrals and Surface Integrals The line integral of a scalar function f ( xyz),, along a path C is

More information

Linear Algebra March 16, 2019

Linear Algebra March 16, 2019 Linear Algebra March 16, 2019 2 Contents 0.1 Notation................................ 4 1 Systems of linear equations, and matrices 5 1.1 Systems of linear equations..................... 5 1.2 Augmented

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

1 Geometry of R Conic Sections Parametric Equations More Parametric Equations Polar Coordinates...

1 Geometry of R Conic Sections Parametric Equations More Parametric Equations Polar Coordinates... Contents 1 Geometry of R 1.1 Conic Sections............................................ 1. Parametric Equations........................................ 3 1.3 More Parametric Equations.....................................

More information

Introduction to Group Theory

Introduction to Group Theory Chapter 10 Introduction to Group Theory Since symmetries described by groups play such an important role in modern physics, we will take a little time to introduce the basic structure (as seen by a physicist)

More information

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

More information

Vector Multiplication. Directional Derivatives and the Gradient

Vector Multiplication. Directional Derivatives and the Gradient Vector Multiplication - 1 Unit # : Goals: Directional Derivatives and the Gradient To learn about dot and scalar products of vectors. To introduce the directional derivative and the gradient vector. To

More information

Math 147, Homework 1 Solutions Due: April 10, 2012

Math 147, Homework 1 Solutions Due: April 10, 2012 1. For what values of a is the set: Math 147, Homework 1 Solutions Due: April 10, 2012 M a = { (x, y, z) : x 2 + y 2 z 2 = a } a smooth manifold? Give explicit parametrizations for open sets covering M

More information

REFRESHER. William Stallings

REFRESHER. William Stallings BASIC MATH REFRESHER William Stallings Trigonometric Identities...2 Logarithms and Exponentials...4 Log Scales...5 Vectors, Matrices, and Determinants...7 Arithmetic...7 Determinants...8 Inverse of a Matrix...9

More information

Leandra Vicci. Microelectronic Systems Laboratory. Department of Computer Science. University of North Carolina at Chapel Hill. 27 April 2001.

Leandra Vicci. Microelectronic Systems Laboratory. Department of Computer Science. University of North Carolina at Chapel Hill. 27 April 2001. Quaternions and Rotations in 3-Space: The Algebra and its Geometric Interpretation Leandra Vicci Microelectronic Systems Laboratory Department of Computer Science University of North Carolina at Chapel

More information

Curvilinear Coordinates

Curvilinear Coordinates University of Alabama Department of Physics and Astronomy PH 106-4 / LeClair Fall 2008 Curvilinear Coordinates Note that we use the convention that the cartesian unit vectors are ˆx, ŷ, and ẑ, rather than

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

Systems of Linear Equations and Matrices

Systems of Linear Equations and Matrices Chapter 1 Systems of Linear Equations and Matrices System of linear algebraic equations and their solution constitute one of the major topics studied in the course known as linear algebra. In the first

More information

REPRESENTATION OF THE LORENTZ TRANSFORMATIONS IN 6-DIMENSIONAL SPACE-TIME

REPRESENTATION OF THE LORENTZ TRANSFORMATIONS IN 6-DIMENSIONAL SPACE-TIME Kragujevac Journal of Mathematics Volume 35 Number 2 (2011), Pages 327 340. EPESENTATION OF THE LOENTZ TANSFOMATIONS IN 6-DIMENSIONAL SPACE-TIME KOSTADIN TENČEVSKI Abstract. In this paper we consider first

More information

Tensors, and differential forms - Lecture 2

Tensors, and differential forms - Lecture 2 Tensors, and differential forms - Lecture 2 1 Introduction The concept of a tensor is derived from considering the properties of a function under a transformation of the coordinate system. A description

More information

Directional Derivatives and the Gradient

Directional Derivatives and the Gradient Unit #20 : Directional Derivatives and the Gradient Goals: To learn about dot and scalar products of vectors. To introduce the directional derivative and the gradient vector. To learn how to compute the

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

9 th AAS/AIAA Astrodynamics Specialist Conference Breckenridge, CO February 7 10, 1999

9 th AAS/AIAA Astrodynamics Specialist Conference Breckenridge, CO February 7 10, 1999 AAS 99-139 American Institute of Aeronautics and Astronautics MATLAB TOOLBOX FOR RIGID BODY KINEMATICS Hanspeter Schaub and John L. Junkins 9 th AAS/AIAA Astrodynamics Specialist Conference Breckenridge,

More information

ROTATIONS OF THE RIEMANN SPHERE

ROTATIONS OF THE RIEMANN SPHERE ROTATIONS OF THE RIEMANN SPHERE A rotation of the sphere S is a map r = r p,α described by spinning the sphere (actually, spinning the ambient space R 3 ) about the line through the origin and the point

More information

Robotics I. February 6, 2014

Robotics I. February 6, 2014 Robotics I February 6, 214 Exercise 1 A pan-tilt 1 camera sensor, such as the commercial webcams in Fig. 1, is mounted on the fixed base of a robot manipulator and is used for pointing at a (point-wise)

More information

Principal Rotation Representations of Proper NxN Orthogonal Matrices

Principal Rotation Representations of Proper NxN Orthogonal Matrices Principal Rotation Representations of Proper NxN Orthogonal Matrices Hanspeter Schaub, Panagiotis siotras and John L. Junkins Simulated Reprint from International Journal of Engineering Science Vol., No.,

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

16.333: Lecture #3. Frame Rotations. Euler Angles. Quaternions

16.333: Lecture #3. Frame Rotations. Euler Angles. Quaternions 16.333: Lecture #3 Frame Rotations Euler Angles Quaternions Fall 2004 16.333 3 1 Euler Angles For general applications in 3D, often need to perform 3 separate rotations to relate our inertial frame to

More information

Math 3c Solutions: Exam 1 Fall Graph by eliiminating the parameter; be sure to write the equation you get when you eliminate the parameter.

Math 3c Solutions: Exam 1 Fall Graph by eliiminating the parameter; be sure to write the equation you get when you eliminate the parameter. Math c Solutions: Exam 1 Fall 16 1. Graph by eliiminating the parameter; be sure to write the equation you get when you eliminate the parameter. x tan t x tan t y sec t y sec t t π 4 To eliminate the parameter,

More information

Crystallographic orienta1on representa1ons

Crystallographic orienta1on representa1ons Crystallographic orienta1on representa1ons -- Euler Angles -- Axis-Angle -- Rodrigues-Frank Vectors -- Unit Quaternions Tugce Ozturk, Anthony Rolle4 7-750 Texture, Microstructure & Anisotropy April 1,

More information

ON QUATERNIONS. William Rowan Hamilton. (Proceedings of the Royal Irish Academy, 3 (1847), pp ) Edited by David R. Wilkins

ON QUATERNIONS. William Rowan Hamilton. (Proceedings of the Royal Irish Academy, 3 (1847), pp ) Edited by David R. Wilkins ON QUATERNIONS By William Rowan Hamilton (Proceedings of the Royal Irish Academy, 3 (1847), pp. 1 16.) Edited by David R. Wilkins 1999 On Quaternions. By Sir William R. Hamilton. Read November 11, 1844.

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

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field.

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. Vector space A vector space is a set V equipped with two operations, addition V V

More information

Robotics & Automation. Lecture 03. Representation of SO(3) John T. Wen. September 3, 2008

Robotics & Automation. Lecture 03. Representation of SO(3) John T. Wen. September 3, 2008 Robotics & Automation Lecture 03 Representation of SO(3) John T. Wen September 3, 2008 Last Time Transformation of vectors: v a = R ab v b Transformation of linear transforms: L a = R ab L b R ba R SO(3)

More information

Math 370 Homework 2, Fall 2009

Math 370 Homework 2, Fall 2009 Math 370 Homework 2, Fall 2009 (1a) Prove that every natural number N is congurent to the sum of its decimal digits mod 9. PROOF: Let the decimal representation of N be n d n d 1... n 1 n 0 so that N =

More information

The Complex Numbers c ). (1.1)

The Complex Numbers c ). (1.1) The Complex Numbers In this chapter, we will study the basic properties of the field of complex numbers. We will begin with a brief historic sketch of how the study of complex numbers came to be and then

More information

A matrix over a field F is a rectangular array of elements from F. The symbol

A matrix over a field F is a rectangular array of elements from F. The symbol Chapter MATRICES Matrix arithmetic A matrix over a field F is a rectangular array of elements from F The symbol M m n (F ) denotes the collection of all m n matrices over F Matrices will usually be denoted

More information

Lecture Note 4: General Rigid Body Motion

Lecture Note 4: General Rigid Body Motion ECE5463: Introduction to Robotics Lecture Note 4: General Rigid Body Motion Prof. Wei Zhang Department of Electrical and Computer Engineering Ohio State University Columbus, Ohio, USA Spring 2018 Lecture

More information

Position and orientation of rigid bodies

Position and orientation of rigid bodies Robotics 1 Position and orientation of rigid bodies Prof. Alessandro De Luca Robotics 1 1 Position and orientation right-handed orthogonal Reference Frames RF A A p AB B RF B rigid body position: A p AB

More information

5. Vector Algebra and Spherical Trigonometry (continued)

5. Vector Algebra and Spherical Trigonometry (continued) MA232A Euclidean and Non-Euclidean Geometry School of Mathematics, Trinity College Michaelmas Term 2017 Section 5: Vector Algebra and Spherical Trigonometry David R. Wilkins 5.1. Vectors in Three-Dimensional

More information