Quaternions

Chambers's Encyclopaedia, Volume 8: Peasant to Eoumelia, p. 522–523
Figure 1: A geometric diagram showing three vectors AB, BC, and AC. Vector AB is horizontal, BC is at an angle, and AC is the resultant vector from A to C, completing the triangle ABC.
Fig. 1.

Quaternions (or 'sets of four'), the name of a calculus of peculiar power and generality invented by Sir William Rowan Hamilton (q.v.) of Dublin. As a geometry, it primarily concerns itself with the operations by which one directed quantity or Vector (q.v.) is changed into another. Such an operation is called a quaternion, for reasons which will appear hereafter. From this point of view alone we shall discuss it here. We assume the law of vector addition, which asserts that the vector or directed line AC (see fig. 1) is equal to the sum of the vectors AB and BC—or any other directed lines parallel and equal to them. For example, the resultant of two velocities or coterminal forces is a vector equal to the vector sum of the components (see COMPOSITION). Quantities which do not involve the idea of direction or directedness are called Scalars; such are the quantities used in arithmetic and ordinary algebra. Parallel vectors can all be represented as scalar multiples of one another, or (better) of the parallel vector whose length is unity. By the latter representation, the scalar multiple gives the length or tensor of the vector. Thus any vector a may be factorised into its tensor and directed unit part. This is symbolised by the equation a = TaUa, where T and U appear as selective symbols of operation, separating out the length and direction respectively.

Figure 2: A diagram showing a vector i in the plane of the paper. A vector beta is drawn perpendicular to i, pointing to the right. A vector gamma is drawn perpendicular to beta, pointing upwards. The diagram illustrates the relationship i*beta = gamma.
Fig. 2.

The operation which simply rotates a vector into a new direction without changing its length is a particular kind of quaternion called a Versor. A second application of this versor produces an extra equal rotation in the same plane—i.e. about the same axis. With every versor, therefore, are associated an axis having a definite direction and an angle through which any vector perpendicular to this axis is rotated by the versor operating on it. A very important case is the quadrantal or right versor, which turns a perpendicular vector through a right angle. Let i represent the right versor whose axis is perpendicular to the plane of the paper. Then (fig. 2) if \beta is any vector in the plane of the paper, the quantity i\beta = \gamma gives a vector perpendicular to \beta and to the axis of i. A second operation gives

ii\beta = i^2\beta = i\gamma = -\beta,

or symbolically i^2 = -1. Thus the square of any right versor is negative unity. It is easy to show that ni, where n is a scalar, is an operator which still turns any appropriate vector through a right angle, but at the same time increases its tensor n times. Such an operator is a quadrantal quaternion, whose tensor is n and versor i. A quaternion can always be factorised into its tensor and versor parts.

Now let Oi, OI (fig. 3) be the axes of two right versors i and I, making angle \theta with each other. Describe the sphere of unit radius with O as centre, and draw the vector OA or a perpendicular to i and in the plane OiI. Draw OB or \beta perpendicular to i and a—i.e. upward from the plane of the paper; and finally draw OC or \gamma perpendicular to I and \beta. Then first i\alpha = \beta and secondly I\alpha = I\beta = \gamma; so that Ii (= \gamma/\alpha) is the versor which rotates a into the position \gamma. This versor has its axis parallel to OB, and its angle equal to the complement of \theta. Thus any versor can be represented by the product of two right versors perpendicular to it and making with each other the appropriate angle. If the two right versors are themselves at right angles, their product becomes the right versor perpendicular to both. We thus arrive at what is historically the basis of quaternions—viz. Hamilton's remarkable system of mutually perpendicular right versors, ijk. As operators (see fig. 4) they are connected by the equations

\begin{aligned} ij &= k = -ji \\ jk &= i = -kj \\ ki &= j = -ik \\ ijk &= -1 = i^2 = j^2 = k^2. \end{aligned}

The special point to notice is the non-commutative character of the process of multiplication, ij not being the same as ji.

Figure 3: A diagram of a sphere with center O. Two axes, i and I, are shown at an angle theta. A vector a is drawn in the plane of i and I. A vector beta is drawn perpendicular to the plane of i and I. A vector gamma is drawn perpendicular to I and beta. This illustrates the rotation of a vector a by a quaternion.
Fig. 3.

The discovery of the equation ij = -ji on October 16, 1843, was quickly followed by the development of the whole calculus of quaternions. Now, if j and k were vectors instead of right versors, the equation ij = k would still be true as an equation of operations. In fact, as is capable of easy proof, right versors obey the law of vector addition; and in the identification of unit vectors and right versors, or more generally of vectors and right quaternions, lies one of the great simplifications of the calculus. Thus the operator (i + j) is a right quaternion whose axis (see fig. 4) is along the diagonal of the square of which i and j are the sides, and whose tensor is equal to the length of this diagonal.

Figure 4: A diagram of a sphere with center O. Two axes, i and j, are shown at a right angle. A vector k is drawn perpendicular to both i and j. The diagram illustrates the multiplication of two right versors i and j to form a right quaternion k.
Fig. 4.

The following conclusions are readily come to. The square of every unit vector is negative unity; the product of two parallel vectors is minus the product of their tensors; the product of two perpendicular vectors is a third vector perpendicular to both and having its tensor equal to the product of the tensors of its factors; the product of any two unit vectors is in general a versor; the product of any two vectors is a quaternion whose tensor is the product of the tensors, and whose versor is as mentioned in the preceding sentence. The quaternion \alpha\beta transforms \beta^{-1} into the vector a; and \beta^{-1}, being itself that quaternion which undoes the effect of the right quaternion \beta, must also be a right quaternion—i.e. a vector. In fact, \beta^{-1} is always equal to a scalar multiple of -\beta. Hence the quaternion \alpha\beta is the operator which changes the vector \beta^{-1} into the vector a. This operation involves four numbers: first, the change of length; second, the angle through which the one vector must be rotated so as to bring it into parallelism with the other; and third and fourth, the two numbers necessary to fix the aspect of the plane in which the rotation takes place, or the direction of the axis about which rotation takes place. Thus a quaternion, in general, depends on four numbers, whence the name. A vector or quadrantal quaternion is a degenerate quaternion, involving only three numbers; while a scalar, which might be defined as the quaternion which changes one vector into a parallel one, is still more degenerate, involving only one number—viz. itself.

There is still one very important representation of a quaternion to consider. This is done most simply as follows: Let \alpha\beta be the two vectors OA, OB (fig. 5). Resolving \beta along and perpendicular to \alpha we get \beta = OM + ON; and hence \alpha\beta = OA \cdot OM + OA \cdot ON.

Figure 5: A geometric diagram showing vectors OA and OB originating from point O. Vector OA lies along the horizontal axis OM. Vector OB is at an angle theta to OA. A dashed line extends from B perpendicular to OM, meeting it at N. The angle between OA and OB is labeled theta.
Fig. 5.

But OA · OM, being the product of two parallel vectors, is minus the product of the lengths or tensors. On the other hand, the product OA · ON, being the product of two perpendicular vectors, is a vector perpendicular to the plane of the paper with tensor equal to twice the area of the triangle OAB. Thus the quaternion \alpha\beta is equal to the sum of a scalar and a vector; and generally for any quaternion (q) we have the relation

q = S \cdot q + V \cdot q,

where S selects the scalar part and V the vector part. The geometrical meanings of S and V operating on \alpha\beta are easily seen to be these—

S \cdot \alpha\beta = -T\alpha T\beta \cos \theta, \quad V \cdot \alpha\beta = i T\alpha T\beta \sin \theta,

where i is the unit vector perpendicular to \alpha and \beta.

We end with a few illustrations. Thus, if \alpha is a constant vector, and \rho a variable vector, the equation S \cdot \alpha\rho = c, \alpha a constant, means that the resolved part of \rho along the direction of \alpha is constant, and that therefore the extremity of \rho traces out a plane perpendicular to \alpha. The versor that turns any line through an angle \theta in a given plane has the form \cos \theta + i \sin \theta, where i is the right versor perpendicular to that plane. Demoivre's theorem (see DEMOIVRE) at once follows if we write i = \sqrt{-1}. Finally, if \beta represents a force acting at the extremity of \alpha, V \cdot \alpha\beta is the vector moment of the force about the origin; and in the almost self-evident equation

V \cdot \alpha (\beta + \beta^1) = V \cdot \alpha\beta + V \cdot \alpha\beta^1

we have a completely general demonstration of Varignon's theorem of moments. See MOMENT.

Hamilton's Lectures on Quaternions (1853) and his Elements of Quaternions (1866) are still the classical works on the subject. Tait's Elements of Quaternions (3d ed. 1890) is probably better fitted as a text-book for the student to work through, and contains some original applications of high physical interest. Kelland and Tait's Introduction to Quaternions (1874) may be recommended to the beginner. Tait's treatise has been translated into French and German.

Source scan(s): p. 0531, p. 0532