In
algebra
Algebra () is one of the broad areas of mathematics. Roughly speaking, algebra is the study of mathematical symbols and the rules for manipulating these symbols in formulas; it is a unifying thread of almost all of mathematics.
Elementary a ...
, the dual numbers are a
hypercomplex number system first introduced in the 19th century. They are
expressions of the form , where and are
real number
In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every real ...
s, and is a symbol taken to satisfy
with
.
Dual numbers can be added component-wise, and multiplied by the formula
:
which follows from the property and the fact that multiplication is a
bilinear operation
In mathematics, a bilinear map is a function combining elements of two vector spaces to yield an element of a third vector space, and is linear in each of its arguments. Matrix multiplication is an example.
Definition
Vector spaces
Let V, W ...
.
The dual numbers form a
commutative algebra
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideals, and modules over such rings. Both algebraic geometry and algebraic number theory build on commutative algebra. Prom ...
of
dimension
In physics and mathematics, the dimension of a Space (mathematics), mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any Point (geometry), point within it. Thus, a Line (geometry), lin ...
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
Eduard Study ( ), more properly Christian Hugo Eduard Study (March 23, 1862 – January 6, 1930), was a German mathematician known for work on invariant theory of ternary forms (1889) and for the study of spherical trigonometry. He is also known f ...
, who used them to represent the dual angle which measures the relative position of two
skew lines
In three-dimensional geometry, skew lines are two lines that do not intersect and are not parallel. A simple example of a pair of skew lines is the pair of lines through opposite edges of a regular tetrahedron. Two lines that both lie in the sa ...
in space. Study defined a dual angle as , where is the angle between the directions of two lines in three-dimensional space and is a distance between them. The -dimensional generalization, the
Grassmann number
In mathematical physics, a Grassmann number, named after Hermann Grassmann (also called an anticommuting number or supernumber), is an element of the exterior algebra over the complex numbers. The special case of a 1-dimensional algebra is known as ...
, was introduced by
Hermann Grassmann
Hermann Günther Grassmann (german: link=no, Graßmann, ; 15 April 1809 – 26 September 1877) was a German polymath known in his day as a linguist and now also as a mathematician. He was also a physicist, general scholar, and publisher. His mat ...
in the late 19th century.
Definition in abstract algebra
In
abstract algebra
In mathematics, more specifically algebra, abstract algebra or modern algebra is the study of algebraic structures. Algebraic structures include groups, rings, fields, modules, vector spaces, lattices, and algebras over a field. The term ''a ...
, the algebra of dual numbers is often defined as the
quotient
In arithmetic, a quotient (from lat, quotiens 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics, and is commonly referred to as the integer part of a ...
of a
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables) ...
over the real numbers
by the
principal ideal
In mathematics, specifically ring theory, a principal ideal is an ideal I in a ring R that is generated by a single element a of R through multiplication by every element of R. The term also has another, similar meaning in order theory, where ...
generated by the
square
In Euclidean geometry, a square is a regular quadrilateral, which means that it has four equal sides and four equal angles (90- degree angles, π/2 radian angles, or right angles). It can also be defined as a rectangle with two equal-length a ...
of the
indeterminate, that is
:
Matrix representation
The dual number
can be represented by the
square matrix
In mathematics, a square matrix is a matrix with the same number of rows and columns. An ''n''-by-''n'' matrix is known as a square matrix of order Any two square matrices of the same order can be added and multiplied.
Square matrices are often ...
. In this representation the matrix
squares to the zero matrix, corresponding to the dual number
.
There are other ways to represent dual numbers as square matrices. They consist of representing the dual number
by the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere.
Terminology and notation
The identity matrix is often denoted by I_n, or simply by I if the size is immaterial o ...
, and
by any matrix whose square is the zero matrix; that is, in the case of matrices, any nonzero matrix of the form
:
with
Differentiation
One application of dual numbers is
automatic differentiation
In mathematics and computer algebra, automatic differentiation (AD), also called algorithmic differentiation, computational differentiation, auto-differentiation, or simply autodiff, is a set of techniques to evaluate the derivative of a function s ...
. Consider the real dual numbers above. Given any real polynomial , it is straightforward to extend the domain of this polynomial from the reals to the dual numbers. Then we have this result:
:
where is the derivative of .
More generally, we can extend any (analytic) real function to the dual numbers by looking at its
Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor serie ...
:
:
since all terms of involving or greater 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 variables, using the
exterior algebra
In mathematics, the exterior algebra, or Grassmann algebra, named after Hermann Grassmann, is an algebra that uses the exterior product or wedge product as its multiplication. In mathematics, the exterior product or wedge product of vectors is a ...
of an -dimensional vector space.
Geometry
The "unit circle" of dual numbers consists of those with since these satisfy where . However, note that
:
so the
exponential map applied to the -axis covers only half the "circle".
Let . If and , then is the
polar decomposition
In mathematics, the polar decomposition of a square real or complex matrix A is a factorization of the form A = U P, where U is an orthogonal matrix and P is a positive semi-definite symmetric matrix (U is a unitary matrix and P is a positive se ...
of the dual number , and the
slope
In mathematics, the slope or gradient of a line is a number that describes both the ''direction'' and the ''steepness'' of the line. Slope is often denoted by the letter ''m''; there is no clear answer to the question why the letter ''m'' is use ...
is its angular part. The concept of a ''rotation'' in the dual number plane is equivalent to a vertical
shear mapping
In plane geometry, a shear mapping is a linear map that displaces each point in a fixed direction, by an amount proportional to its signed distance from the line that is parallel to that direction and goes through the origin. This type of mappi ...
since .
In
absolute space and time
Absolute space and time is a concept in physics and philosophy about the properties of the universe. In physics, absolute space and time may be a preferred frame.
Before Newton
A version of the concept of absolute space (in the sense of a prefe ...
the
Galilean transformation
In physics, a Galilean transformation is used to transform between the coordinates of two reference frames which differ only by constant relative motion within the constructs of Newtonian physics. These transformations together with spatial rotatio ...
:
that is
:
relates the resting coordinates system to a moving frame of reference of
velocity
Velocity is the directional speed of an object in motion as an indication of its rate of change in position as observed from a particular frame of reference and as measured by a particular standard of time (e.g. northbound). Velocity is a ...
. With dual numbers representing
event
Event may refer to:
Gatherings of people
* Ceremony, an event of ritual significance, performed on a special occasion
* Convention (meeting), a gathering of individuals engaged in some common interest
* Event management, the organization of e ...
s along one space dimension and time, the same transformation is effected with multiplication by .
Cycles
Given two dual numbers and , they determine the set of such that the difference in slopes ("Galilean angle") between the lines from to and 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 algebra, a quadratic equation () is any equation that can be rearranged in standard form as
ax^2 + bx + c = 0\,,
where represents an unknown (mathematics), unknown value, and , , and represent known numbers, where . (If and then the equati ...
in the real part of , a cycle is a
parabola
In mathematics, a parabola is a plane curve which is mirror-symmetrical and is approximately U-shaped. It fits several superficially different mathematical descriptions, which can all be proved to define exactly the same curves.
One descript ...
. The "cyclic rotation" of the dual number plane occurs as a motion of
its projective line. According to
Isaak Yaglom
Isaak Moiseevich Yaglom (russian: Исаа́к Моисе́евич Ягло́м; 6 March 1921 – 17 April 1988) was a Soviet mathematician and author of popular mathematics books, some with his twin Akiva Yaglom.
Yaglom received a Ph.D. from M ...
,
the cycle is invariant under the composition of the shear
:
with the
translation
Translation is the communication of the Meaning (linguistic), meaning of a #Source and target languages, source-language text by means of an Dynamic and formal equivalence, equivalent #Source and target languages, target-language text. The ...
:
Division
Division of dual numbers is defined when the real part of the denominator 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 divide an equation of the form
:
we multiply the top and bottom by the conjugate of the denominator:
:
which is defined
when is non-zero.
If, on the other hand, is zero while is not, then the equation
:
# has no solution if is nonzero
# is otherwise solved by any dual number of the form .
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
In abstract algebra, an element of a ring is called a left zero divisor if there exists a nonzero in such that , or equivalently if the map from to that sends to is not injective. Similarly, an element of a ring is called a right zero ...
and clearly form an
ideal
Ideal may refer to:
Philosophy
* Ideal (ethics), values that one actively pursues as goals
* Platonic ideal, a philosophical idea of trueness of form, associated with Plato
Mathematics
* Ideal (ring theory), special subsets of a ring considere ...
of the associative
algebra
Algebra () is one of the broad areas of mathematics. Roughly speaking, algebra is the study of mathematical symbols and the rules for manipulating these symbols in formulas; it is a unifying thread of almost all of mathematics.
Elementary a ...
(and thus
ring
Ring may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
:(hence) to initiate a telephone connection
Arts, entertainment and media Film and ...
) of the dual numbers.
Applications in mechanics
Dual numbers find applications in
mechanics
Mechanics (from Ancient Greek: μηχανική, ''mēkhanikḗ'', "of machines") is the area of mathematics and physics concerned with the relationships between force, matter, and motion among physical objects. Forces applied to objects r ...
, 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
Screw theory is the algebraic calculation of pairs of vectors, such as forces and moments or angular and linear velocity, that arise in the kinematics and dynamics of rigid bodies. The mathematical framework was developed by Sir Robert Stawe ...
for more.
Generalizations
This construction can be carried out more generally: for a
commutative ring
In mathematics, a commutative ring is a ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring properties that are not sp ...
one can define the dual numbers over as the
quotient
In arithmetic, a quotient (from lat, quotiens 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics, and is commonly referred to as the integer part of a ...
of the
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variables) ...
by the
ideal
Ideal may refer to:
Philosophy
* Ideal (ethics), values that one actively pursues as goals
* Platonic ideal, a philosophical idea of trueness of form, associated with Plato
Mathematics
* Ideal (ring theory), special subsets of a ring considere ...
: the image of then has square equal to zero and corresponds to the element from above.
Arbitrary module of elements of zero square
There is a more general construction of the dual numbers. Given a
commutative ring
In mathematics, a commutative ring is a ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring properties that are not sp ...
and a module
, there is a ring