logo back up home forward   further reading more topics »

Maths - Exponential Form of Quaternion

When we looked at complex numbers we saw that they could be represented in what is known as the polar form:

polar

r (cos(θ) + i sin(θ))

in other words replace:

we can use e = cos(θ) + i sin(θ) to give the exponential form:

r e

To combine the result of two rotations, for example rotate by θ1 then rotate by θ2, then we multiply the corresponding complex numbers because:

ei(θ1+θ2) = eiθ1 * eiθ2

Can we do the same with quaternions to represent rotations in 3D?

If we could it would be very useful! For instance, it would be very useful to use:

e(a i + b j + c k) = ea i * eb j * ec k

Unfortunately that doesn't work

e(a + b) = ea * eb

is valid when 'a' and 'b' are scalar numbers or complex numbers but it does not work when 'a' and 'b' are quaternions or bivectors (the imaginary part of quaternions). This is because bivectors do not commute for multiplication but they do commute for addition, therefore if we swap a and b in the above equation the left hand side will not change but the right hand will, therefore the equation cannot be true for bivectors.

The valid form of this equation for bivectors is:

ec = ea * eb

where:

c = a + b + a×b + 1/3(a×(a×b)+b×(b×a)) + ...

This is a series known as the Baker-Campbell-Hausdorff formula.

This shows that if when a and b become close to becoming parallel then a×b approaches zero and c approaches a + b so the rotation algebra approaches vector algebra.

An example of this might be living on the surface of the earth which, on the small scale, is like being on a flat surface.

 


metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

 

cover us uk de jp fr ca Quaternions and Rotation Sequences.

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

 

cover Dark Basic Professional Edition - It is better to get this professional edition

cover This is a version of basic designed for building games, for example to rotate a cube you might do the following:
make object cube 1,100
for x=1 to 360
rotate object 1,x,x,0
next x

cover Game Programming with Darkbasic - book for above software

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

Terminology and Notation

Specific to this page here:

 

program

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved - privacy policy.