In algebra, the dual numbers are a quadratic algebra first introduced in the 19th century. They are expressions of the form a + bε, where a and b are real numbers, and ε is a symbol taken to satisfy ε2=0 with ε≠0. Dual numbers can be added component-wise, and multiplied by the formula
(a+bε)(c+dε)=ac+(ad+bc)ε, which follows from the property ε2 = 0 and the fact that multiplication is a bilinear operation. The dual numbers form a commutative algebra of dimension two over the reals, and also an Artinian local ring. They are one of the simplest examples of a ring that has nonzero nilpotent elements.
History Dual numbers were introduced in 1873 by William Clifford, and were used at the beginning of the twentieth century by the German mathematician Eduard Study, who used them to represent the dual angle which measures the relative position of two skew lines in space. Study defined a dual angle as θ + dε, where θ is the angle between the directions of two lines in three-dimensional space and d is a distance between them. The n-dimensional generalization, the Grassmann number, was introduced by Hermann Grassmann in the late 19th century.
Modern definition In modern algebra, the algebra of dual numbers is often defined as the quotient of a polynomial ring over the real numbers (ℝ) by the principal ideal generated by the square of the indeterminate, that is
ℝ[X]/⟨X2⟩. It may also be defined as the exterior algebra of a one-dimensional vector space with ε as its basis element.
Division Division of dual numbers is defined when the real part of the denominator (c in the equations below) is non-zero. The division process is analogous to complex division in that the denominator is multiplied by its conjugate in order to cancel the non-real parts. Therefore, to evaluate an expression of the form
a+bεc+dε we multiply the numerator and denominator by the conjugate of the denominator:
a+bεc+dε=(a+bε)(c−dε)(c+dε)(c−dε)=ac−adε+bcε−bdε2c2+cdε−cdε−d2ε2=ac−adε+bcε−0c2−0=ac+ε(bc−ad)c2=ac+bc−adc2ε If, on the other hand, c is zero while d is not, then the equation
a+bε=(x+yε)dε=xdε+0 has no solution if a is nonzero is otherwise solved by any dual number of the form b/d + yε. This means that the non-real part of the "quotient" is arbitrary and division is therefore not defined for purely nonreal dual numbers. Indeed, they are (trivially) zero divisors and clearly form an ideal of the associative algebra (and thus ring) of the dual numbers.
Matrix representation The dual number a+bε can be represented by the square matrix (ab0a). In this representation the matrix (0100) squares to the zero matrix, corresponding to the dual number ε. Generally, if ε is a nilpotent matrix, then B = {x I + y ε: x, y real} is a subalgebra isomorphic to the algebra of dual numbers. In the case of 2x2 real matrices M(2,R), ε can be taken as any matrix of the form (abc−a) with p = a2 + bc = 0. The dual numbers are one of three isomorphism classes of real 2-algebras in M(2,R). When p > 0 the subalgebra B is isomorphic to split-complex numbers, and when p < 0, B is isomorphic to the complex plane.
Automatic differentiation
One application of dual numbers is automatic differentiation. Any polynomial
P(x)=p0+p1x+p2x2+⋯+pnxn with real coefficients can be extended to a function of a dual-number-valued argument,
P(a+bε)=p0+p1(a+bε)+⋯+pn(a+bε)n=p0+p1a+p2a2+⋯+pnan+p1bε+2p2abε+⋯+npnan−1bε=p0+p1a+p2a2+⋯+pnan+b(p1+2p2a+⋯+npnan−1)ε=P(a)+bP′(a)ε, where P′ is the derivative of P. More generally, any (analytic) real function can be extended to the dual numbers via its Taylor series:
f(a+bε)=∑n=0∞f(n)(a)bnεnn!=f(a)+bf′(a)ε, since all terms involving ε2 or greater powers are trivially 0 by the definition of ε. By computing compositions of these functions over the dual numbers and examining the coefficient of ε in the result we find we have automatically computed the derivative of the composition. A similar method works for polynomials of n variables, using the exterior algebra of an n-dimensional vector space.
Geometry The "unit circle" of dual numbers consists of those with a = ±1 since these satisfy zz* = 1 where z* = a − bε. However, note that
ebε=∑n=0∞(bε)nn!=1+bε, so the exponential map applied to the ε-axis covers only half the "circle". Let z = a + bε. If a ≠ 0 and m = b/a, then z = a(1 + mε) is the polar decomposition of the dual number z, and the slope m is its angular part. The concept of a rotation in the dual number plane is equivalent to a vertical shear mapping since (1 + pε)(1 + qε) = 1 + (p + q)ε. In absolute space and time the Galilean transformation
(t′,x′)=(t,x)(1v01), that is
t′=t,x′=vt+x, relates the resting coordinates system to a moving frame of reference of velocity v. With dual numbers t + xε representing events along one space dimension and time, the same transformation is effected with multiplication by 1 + vε.
Cycles Given two dual numbers p and q, they determine the set of z such that the difference in slopes ("Galilean angle") between the lines from z to p and q is constant. This set is a cycle in the dual number plane; since the equation setting the difference in slopes of the lines to a constant is a quadratic equation in the real part of z, a cycle is a parabola. The "cyclic rotation" of the dual number plane occurs as a motion of its projective line. According to Isaak Yaglom, the cycle Z = {z : y = αx2} is invariant under the composition of the shear
x1=x,y1=vx+y with the translation
x′=x1=v2a,y′=y1+v24a.
Applications in mechanics Dual numbers find applications in mechanics, notably for kinematic synthesis. For example, the dual numbers make it possible to transform the input/output equations of a four-bar spherical linkage, which includes only rotoid joints, into a four-bar spatial mechanism (rotoid, rotoid, rotoid, cylindrical). The dualized angles are made of a primitive part, the angles, and a dual part, which has units of length. See screw theory for more.
… excerpt ends here. Continue reading the full article.