Addition and subtraction Addition and subtraction of octonions is done by adding and subtracting corresponding terms and hence their coefficients, like quaternions.
Multiplication Multiplication of octonions is more complex. Multiplication is
distributive over addition, so the product of two octonions can be calculated by summing the products of all the terms, again like quaternions. The product of each pair of terms can be given by multiplication of the coefficients and a
multiplication table of the unit octonions, like this one (given both by
Arthur Cayley in 1845 and
John T. Graves in 1843): Most off-diagonal elements of the table are antisymmetric, making it almost a
skew-symmetric matrix except for the elements on the main diagonal, as well as the row and column for which is an operand. The table can be summarized as follows: : e_\ell e_m = \begin{cases} e_m , & \text{if }\ell = 0 \\ e_\ell , & \text{if }m = 0 \\ - \delta_{\ell m}e_0 + \varepsilon _{\ell m n} e_n, & \text{otherwise} \end{cases} where is the
Kronecker delta (equal to if , and for ), and is a
completely antisymmetric tensor with value when , and any even number of
permutations of the indices, but for any odd
permutations of the listed triples (e.g. but , however, again). Whenever any two of the three indices are the same, . The above definition is not unique, however; it is only one of 480 possible definitions for octonion multiplication with . The others can be obtained by permuting and changing the signs of the non-scalar basis elements {{math|{{big|{}}
e1,
e2,
e3,
e4,
e5,
e6,
e7{{big|}}}}}. The 480 different algebras are
isomorphic, and there is rarely a need to consider which particular multiplication rule is used. Each of these 480 definitions is invariant up to signs under some 7 cycle of the points , and for each 7 cycle there are four definitions, differing by signs and reversal of order. A common choice is to use the definition invariant under the 7 cycle with by using the triangular multiplication diagram, or Fano plane below that also shows the sorted list of based 7-cycle triads and its associated multiplication matrices in both and format. : A variant of this sometimes used is to label the elements of the basis by the elements , 0, 1, 2, ..., 6, of the
projective line over the
finite field of order 7. The multiplication is then given by and , and all equations obtained from this one by adding a constant (
modulo 7) to all subscripts: In other words using the seven triples , , , , , , . These are the nonzero codewords of the
quadratic residue code of length 7 over the
Galois field of two elements, . There is a symmetry of order 7 given by adding a constant
mod 7 to all subscripts, and also a symmetry of order 3 given by multiplying, modulo 7, all subscripts by one of the quadratic residues 1, 2, and 4. These seven triples can also be considered as the seven translates of the set of non-zero squares forming a cyclic (7,3,1)-
difference set in the finite field of seven elements. The Fano plane shown above with e_n and multiplication matrices also includes the
geometric algebra basis with signature and is given in terms of the following 7
quaternionic triples (omitting the scalar identity element): : (I, j, k), (i, J, k), (i, j, K), (I, J, K), (\bigstar I, i, l), (\bigstar J, j, l), (\bigstar K, k, l) or alternatively : (\sigma_1, j, k), (i, \sigma_2, k), (i, j, \sigma_3), (\sigma_1, \sigma_2, \sigma_3), (\bigstar \sigma_1, i, l), (\bigstar \sigma_2, j, l), (\bigstar \sigma_3, k, l) in which the lower case items {} are
vectors (e.g. {\gamma_{0},\gamma_{1},\gamma_{2},\gamma_{3}}, respectively) and the upper case ones {} = {\sigma_1, \sigma_2, \sigma_3} are
bivectors (e.g. \gamma_{\{1,2,3\}}\gamma_{0}, respectively) and the
Hodge star operator is the pseudo-scalar element. If the is forced to be equal to the identity, then the multiplication ceases to be associative, but the may be removed from the multiplication table resulting in an octonion multiplication table. In keeping associative and thus not reducing the 4-dimensional geometric algebra to an octonion one, the whole multiplication table can be derived from the equation for . Consider the
gamma matrices in the examples given above. The formula defining the fifth gamma matrix (\gamma_{5}) shows that it is the of a four-dimensional geometric algebra of the gamma matrices.
Fano plane mnemonic s through the real () vertex of the octonion example given above This diagram with seven points and seven lines (the circle through 1, 2, and 3 is considered a line) is called the
Fano plane. The lines are directional. The seven points correspond to the seven standard basis elements of \operatorname\mathcal{I_m}\bigl[\mathbb{O}\bigr] (see definition under '''' below). Each pair of distinct points lies on a unique line and each line runs through exactly three points. Let be an ordered triple of points lying on a given line with the order specified by the direction of the arrow. Then multiplication is given by and together with
cyclic permutations. These rules together with • is the multiplicative identity, • {e_i}^2 = -1\ for each point in the diagram completely defines the multiplicative structure of the octonions. Each of the seven lines generates a
subalgebra of \mathbb{O} isomorphic to the quaternions .
Conjugate, norm, and inverse The
conjugate of an octonion : x = x_0 e_0 + x_1 e_1 + x_2 e_2 + x_3 e_3 + x_4 e_4 + x_5 e_5 + x_6 e_6 + x_7 e_7 is given by : Conjugation is an
involution of \ \mathbb{O}\ and satisfies (note the change in order). The
real part of is given by : \frac{x + x^*}{2} = x_0e_0 and the
imaginary part (sometimes called the
pure part) by : {{nowrap|\frac{x - x^*}{2} = x_1e_1 + x_2e_2 + x_3e_3 + x_4e_4 + x_5e_5 + x_6e_6 + x_7e_7.}} The set of all purely imaginary octonions
spans a 7-
dimensional subspace of \mathbb{O}, denoted \operatorname\mathcal{I_m}\bigl[\mathbb{O}\bigr]. Conjugation of octonions satisfies the equation : The product of an octonion with its conjugate, is always a nonnegative real number: : {{nowrap|x^*x = {x_0}^2 + {x_1}^2 + {x_2}^2 + {x_3}^2 + {x_4}^2 + {x_5}^2 + {x_6}^2 + {x_7}^2.}} Using this, the norm of an octonion is defined as : {{nowrap|\|x\| = \sqrt{x^*x}.}} This norm agrees with the standard 8-dimensional
Euclidean norm on . The existence of a norm on \mathbb{O} implies the existence of
inverses for every nonzero element of \mathbb{O}. The inverse of , which is the unique octonion satisfying , is given by : {{nowrap|x^{-1} = \frac {x^*}{\|x\|^2}.}}
Exponentiation and polar form Any octonion can be decomposed into its real part and imaginary part: : x=\mathfrak{R}(x)+\mathfrak{I}(x) also sometimes called scalar and vector parts. We define the
unit vector corresponding to as : {{nowrap|u=\frac{\mathfrak{I}(x)}{\|\mathfrak{I}(x)\|}.}} It is a pure octonion of norm 1. It can be proved that any non-zero octonion can be written as: : o=\|o\|(\cos\theta+u\sin\theta)=\|o\|e^{u\theta} thus providing a polar form. == Properties ==