Quaternion

Quaternion multiplication table
1 i j k
1 1 i j k
i i −1 k −j
j j −k −1 i
k k j −i −1
Cayley Q8 graph showing the 6 cycles of multiplication by i, j and k. (In the SVG file, hover over or click a cycle to highlight it.)

In mathematics, the quaternion number system (represented using the symbol ℍ) extends the complex numbers into four dimensions. They were first described by Irish mathematician William Rowan Hamilton in 1843. They are often used in computer graphics to compute 3-dimensional rotations.

The eight-dimensional octonions come after the quaternions.

Definition

A quaternion is a number written like this:

a+b𝐢+c𝐣+d𝐤

where a,b,c,d are real numbers, and i,j,k are the symbols called imaginary units.

Multiplication

The square of every imaginary unit is equal to -1

i2=j2=k2=−1

When you multiply, changing the order of the numbers can give a different answer.

ij=−ji=k jk=−kj=i ki=−ik=j

Putting all those together,

ijk=−1