In
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, 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 duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
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.
The dual numbers form a
commutative algebra
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideal (ring theory), ideals, and module (mathematics), modules over such rings. Both algebraic geometry and algebraic number theo ...
of
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
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
Christian Hugo Eduard Study ( ; 23 March 1862 – 6 January 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 for contributions to space geome ...
, 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 Line (geometry), lines that do not Line-line intersection, intersect and are not Parallel (geometry), parallel. A simple example of a pair of skew lines is the pair of lines through opposite edges ...
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 of a complex vector space. The special case of a 1-dimensional algebra is known a ...
, was introduced by
Hermann Grassmann
Hermann Günther Grassmann (, ; 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 mathematical work was littl ...
in the late 19th century.
Modern definition
In modern
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, the algebra of dual numbers is often defined as the
quotient
In arithmetic, a quotient (from 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics. It has two definitions: either the integer part of a division (in th ...
of a
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring formed from the set of polynomials in one or more indeterminates (traditionally also called variables) with coefficients in another ring, ...
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 geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
of the
indeterminate, that is
:
It may also be defined as the
exterior algebra
In mathematics, the exterior algebra or Grassmann algebra of a vector space V is an associative algebra that contains V, which has a product, called exterior product or wedge product and denoted with \wedge, such that v\wedge v=0 for every vector ...
of a one-dimensional
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
with
as its basis element.
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 evaluate an expression of the form
:
we multiply the numerator and denominator 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 of the associative
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
(and thus
ring
(The) Ring(s) 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
Arts, entertainment, and media Film and TV
* ''The Ring'' (franchise), a ...
) of the dual numbers.
Matrix representation
The dual number
can be represented by the
square matrix
In mathematics, a square matrix is a Matrix (mathematics), 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.
Squ ...
. In this representation the matrix
squares to the zero matrix, corresponding to the dual number
.
Generally, if
is a
nilpotent
In mathematics, an element x of a ring (mathematics), ring R is called nilpotent if there exists some positive integer n, called the index (or sometimes the degree), such that x^n=0.
The term, along with its sister Idempotent (ring theory), idem ...
matrix, then ''B'' = is a
subalgebra In mathematics, a subalgebra is a subset of an algebra, closed under all its operations, and carrying the induced operations.
"Algebra", when referring to a structure, often means a vector space or module equipped with an additional bilinear opera ...
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
with ''p'' = ''a''
2 + ''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 number
In algebra, a split-complex number (or hyperbolic number, also perplex number, double number) is based on a hyperbolic unit satisfying j^2=1, where j \neq \pm 1. A split-complex number has two real number components and , and is written z=x+y ...
s, and when ''p'' < 0, ''B'' is isomorphic to the
complex plane
In mathematics, the complex plane is the plane (geometry), plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal -axis, called the real axis, is formed by the real numbers, and the vertical -axis, call ...
.
Automatic differentiation
One application of dual numbers is
automatic differentiation. Any polynomial
:
with real coefficients can be extended to a function of a dual-number-valued argument,
:
where
is the derivative of
More generally, any (analytic) real function can be extended to the dual numbers via 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 ser ...
:
:
since all terms involving or greater powers are trivially 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 of a vector space V is an associative algebra that contains V, which has a product, called exterior product or wedge product and denoted with \wedge, such that v\wedge v=0 for every vector ...
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 a unitary matrix, and P is a positive semi-definite Hermitian matrix (U is an orthogonal matrix, and P is a posit ...
of the dual number , and the
slope
In mathematics, the slope or gradient of a Line (mathematics), line is a number that describes the direction (geometry), direction of the line on a plane (geometry), plane. Often denoted by the letter ''m'', slope is calculated as the ratio of t ...
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 an affine transformation that displaces each point in a fixed direction by an amount proportional to its signed distance function, signed distance from a given straight line, line parallel (geometry), paral ...
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.
Early concept
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 rotati ...
:
that is
:
relates the resting coordinates system to a moving frame of reference of
velocity
Velocity is a measurement of speed in a certain direction of motion. It is a fundamental concept in kinematics, the branch of classical mechanics that describes the motion of physical objects. Velocity is a vector (geometry), vector Physical q ...
. With dual numbers representing
events 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 mathematics, a quadratic equation () is an equation that can be rearranged in standard form as
ax^2 + bx + c = 0\,,
where the variable (mathematics), variable represents an unknown number, and , , and represent known numbers, where . (If and ...
in the real part of , a cycle is a
parabola
In mathematics, a parabola is a plane curve which is Reflection symmetry, mirror-symmetrical and is approximately U-shaped. It fits several superficially different Mathematics, mathematical descriptions, which can all be proved to define exactl ...
. The "cyclic rotation" of the dual number plane occurs as a motion of
its projective line. According to
Isaak Yaglom,
the cycle is invariant under the composition of the shear
:
with the
translation
Translation is the communication of the semantics, 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 English la ...
:
Applications in mechanics
Dual numbers find applications in
mechanics
Mechanics () is the area of physics concerned with the relationships between force, matter, and motion among Physical object, physical objects. Forces applied to objects may result in Displacement (vector), displacements, which are changes of ...
, 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 Vector (mathematics and physics), vectors, also known as ''dual vectors'' – such as Angular velocity, angular and linear velocity, or forces and Moment (physics), moments – that arise in th ...
for more.
Algebraic geometry
In modern
algebraic geometry
Algebraic geometry is a branch of mathematics which uses abstract algebraic techniques, mainly from commutative algebra, to solve geometry, geometrical problems. Classically, it studies zero of a function, zeros of multivariate polynomials; th ...
, the dual numbers over a field
(by which we mean the ring
) may be used to define the
tangent vectors
In mathematics, a tangent vector is a vector that is tangent to a curve or surface at a given point. Tangent vectors are described in the differential geometry of curves in the context of curves in R''n''. More generally, tangent vectors are eleme ...
to the points of a
-
scheme.
Since the field
can be chosen intrinsically, it is possible to speak simply of the tangent vectors to a scheme. This allows notions from
differential geometry
Differential geometry is a Mathematics, mathematical discipline that studies the geometry of smooth shapes and smooth spaces, otherwise known as smooth manifolds. It uses the techniques of Calculus, single variable calculus, vector calculus, lin ...
to be imported into algebraic geometry.
In detail: The ring of dual numbers may be thought of as the ring of functions on the "first-order neighborhood of a point" – namely, the
-
scheme .
Then, given a
-scheme
,
-points of the scheme are in 1-1 correspondence with maps
, while tangent vectors are in 1-1 correspondence with maps
.
The field
above can be chosen intrinsically to be a
residue field
In mathematics, the residue field is a basic construction in commutative algebra. If R is a commutative ring and \mathfrak is a maximal ideal, then the residue field is the quotient ring k=R/\mathfrak, which is a field. Frequently, R is a local ri ...
. To wit: Given a point
on a scheme
, consider the
stalk . Observe that
is a
local ring
In mathematics, more specifically in ring theory, local rings are certain rings that are comparatively simple, and serve to describe what is called "local behaviour", in the sense of functions defined on algebraic varieties or manifolds, or of ...
with a unique
maximal ideal
In mathematics, more specifically in ring theory, a maximal ideal is an ideal that is maximal (with respect to set inclusion) amongst all ''proper'' ideals. In other words, ''I'' is a maximal ideal of a ring ''R'' if there are no other ideals ...
, which is denoted
. Then simply let
.
Generalizations
This construction can be carried out more generally: for a
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), 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 prope ...
one can define the dual numbers over as the
quotient
In arithmetic, a quotient (from 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics. It has two definitions: either the integer part of a division (in th ...
of the
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring formed from the set of polynomials in one or more indeterminates (traditionally also called variables) with coefficients in another ring, ...
by the
ideal : 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 (mathematics), 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 prope ...
and a module
, there is a ring