In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the distributive property of
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
s is a generalization of the distributive law, which asserts that the equality
is always true in
elementary algebra
Elementary algebra, also known as high school algebra or college algebra, encompasses the basic concepts of algebra. It is often contrasted with arithmetic: arithmetic deals with specified numbers, whilst algebra introduces variable (mathematics ...
.
For example, in
elementary arithmetic
Elementary arithmetic is a branch of mathematics involving addition, subtraction, multiplication, and Division (mathematics), division. Due to its low level of abstraction, broad range of application, and position as the foundation of all mathema ...
, one has
Therefore, one would say that
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
''distributes'' over
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
.
This basic property of numbers is part of the definition of most
algebraic structure
In mathematics, an algebraic structure or algebraic system consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplicatio ...
s that have two operations called addition and multiplication, such as
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s,
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s,
matrices,
rings, and
fields. It is also encountered in
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
and
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
, where each of the
logical and (denoted
) and the
logical or
In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language, English language ...
(denoted
) distributes over the other.
Definition
Given a
set and two
binary operators
and
on
*the operation
is over (or with respect to)
if,
given any
In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any", "for all", "for every", or "given an arbitrary element". It expresses that a predicate can be satisfied by e ...
elements
of
*the operation
is over
if, given any elements
of
*and the operation
is over
if it is left- and right-distributive.
When
is
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
, the three conditions above are
logically equivalent.
Meaning
The operators used for examples in this section are those of the usual
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
and
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
If the operation denoted
is not commutative, there is a distinction between left-distributivity and right-distributivity:
In either case, the distributive property can be described in words as:
To multiply a
sum (or
difference) by a factor, each summand (or
minuend and
subtrahend) is multiplied by this factor and the resulting products are added (or subtracted).
If the operation outside the parentheses (in this case, the multiplication) is commutative, then left-distributivity implies right-distributivity and vice versa, and one talks simply of .
One example of an operation that is "only" right-distributive is division, which is not commutative:
In this case, left-distributivity does not apply:
The distributive laws are among the axioms for
rings (like the ring of
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s) and
fields (like the field of
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s). Here multiplication is distributive over addition, but addition is not distributive over multiplication. Examples of structures with two operations that are each distributive over the other are
Boolean algebras such as the
algebra of sets or the
switching algebra.
Multiplying sums can be put into words as follows: When a sum is multiplied by a sum, multiply each summand of a sum with each summand of the other sum (keeping track of signs) then add up all of the resulting products.
Examples
Real numbers
In the following examples, the use of the distributive law on the set of real numbers
is illustrated. When multiplication is mentioned in elementary mathematics, it usually refers to this kind of multiplication. From the point of view of algebra, the real numbers form a
field, which ensures the validity of the distributive law.
Matrices
The distributive law is valid for
matrix multiplication. More precisely,
for all
-matrices
and
-matrices
as well as
for all
-matrices
and
-matrices
Because the commutative property does not hold for matrix multiplication, the second law does not follow from the first law. In this case, they are two different laws.
Other examples
*
Multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
of
ordinal number
In set theory, an ordinal number, or ordinal, is a generalization of ordinal numerals (first, second, th, etc.) aimed to extend enumeration to infinite sets.
A finite set can be enumerated by successively labeling each element with the leas ...
s, in contrast, is only left-distributive, not right-distributive.
* The
cross product
In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
is left- and right-distributive over
vector addition, though not commutative.
* The
union of sets is distributive over
intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
, and intersection is distributive over union.
*
Logical disjunction
In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is ...
("or") is distributive over
logical conjunction
In logic, mathematics and linguistics, ''and'' (\wedge) is the Truth function, truth-functional operator of conjunction or logical conjunction. The logical connective of this operator is typically represented as \wedge or \& or K (prefix) or ...
("and"), and vice versa.
* For
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 for any
totally ordered set), the
maximum operation is distributive over the
minimum operation, and vice versa:
* For
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s, the
greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
is distributive over the
least common multiple, and vice versa:
* For real numbers, addition distributes over the maximum operation, and also over the minimum operation:
* For
binomial multiplication, distribution is sometimes referred to as the
FOIL Method (First terms
Outer
Inner
and Last
) such as:
* In all
semirings, including the
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s, the
quaternion
In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. The algebra of quater ...
s,
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s, and
matrices, multiplication distributes over addition:
* In all
algebras over a field, including the
octonions and other
non-associative algebra
A non-associative algebra (or distributive algebra) is an algebra over a field where the binary operation, binary multiplication operation is not assumed to be associative operation, associative. That is, an algebraic structure ''A'' is a non-ass ...
s, multiplication distributes over addition.
Propositional logic
Rule of replacement
In standard truth-functional propositional logic, in logical proofs uses two valid
rules of replacement to expand individual occurrences of certain
logical connectives, within some
formula
In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
, into separate applications of those connectives across subformulas of the given formula. The rules are
where "
", also written
is a
metalogical
symbol
A symbol is a mark, Sign (semiotics), sign, or word that indicates, signifies, or is understood as representing an idea, physical object, object, or wikt:relationship, relationship. Symbols allow people to go beyond what is known or seen by cr ...
representing "can be replaced in a proof with" or "is
logically equivalent to".
Truth functional connectives
is a property of some logical connectives of truth-functional
propositional logic
The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
. The following logical equivalences demonstrate that distributivity is a property of particular connectives. The following are truth-functional
tautologies.
;Double distribution:
Distributivity and rounding
In approximate arithmetic, such as
floating-point arithmetic
In computing, floating-point arithmetic (FP) is arithmetic on subsets of real numbers formed by a ''significand'' (a Sign (mathematics), signed sequence of a fixed number of digits in some Radix, base) multiplied by an integer power of that ba ...
, the distributive property of multiplication (and division) over addition may fail because of the limitations of
arithmetic precision. For example, the identity
fails in
decimal arithmetic
The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of the ...
, regardless of the number of
significant digit
Significant figures, also referred to as significant digits, are specific Numerical digit, digits within a number that is written in positional notation that carry both reliability and necessity in conveying a particular quantity. When presen ...
s. Methods such as
banker's rounding may help in some cases, as may increasing the precision used, but ultimately some calculation errors are inevitable.
In rings and other structures
Distributivity is most commonly found in
semiring
In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
s, notably the particular cases of
rings and
distributive lattice
In mathematics, a distributive lattice is a lattice (order), lattice in which the operations of join and meet distributivity, distribute over each other. The prototypical examples of such structures are collections of sets for which the lattice o ...
s.
A semiring has two binary operations, commonly denoted
and
and requires that
must distribute over
A ring is a semiring with additive inverses.
A
lattice is another kind of
algebraic structure
In mathematics, an algebraic structure or algebraic system consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplicatio ...
with two binary operations,
If either of these operations distributes over the other (say
distributes over
), then the reverse also holds (
distributes over
), and the lattice is called distributive. See also .
A
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
can be interpreted either as a special kind of ring (a
Boolean ring) or a special kind of distributive lattice (a
Boolean lattice). Each interpretation is responsible for different distributive laws in the Boolean algebra.
Similar structures without distributive laws are
near-rings and
near-fields instead of rings and
division rings. The operations are usually defined to be distributive on the right but not on the left.
Generalizations
In several mathematical areas, generalized distributivity laws are considered. This may involve the weakening of the above conditions or the extension to infinitary operations. Especially in
order theory
Order theory is a branch of mathematics that investigates the intuitive notion of order using binary relations. It provides a formal framework for describing statements such as "this is less than that" or "this precedes that". This article intr ...
one finds numerous important variants of distributivity, some of which include infinitary operations, such as the
infinite distributive law; others being defined in the presence of only binary operation, such as the according definitions and their relations are given in the article
distributivity (order theory). This also includes the notion of a
completely distributive lattice.
In the presence of an ordering relation, one can also weaken the above equalities by replacing
by either
or
Naturally, this will lead to meaningful concepts only in some situations. An application of this principle is the notion of sub-distributivity as explained in the article on
interval arithmetic.
In
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
, if
and
are
monads on a
category a distributive law
is a
natural transformation
In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natur ...
such that
is a
lax map of monads and
is a
colax map of monads This is exactly the data needed to define a monad structure on
: the multiplication map is
and the unit map is
See:
distributive law between monads.
A
generalized distributive law has also been proposed in the area of
information theory
Information theory is the mathematical study of the quantification (science), quantification, Data storage, storage, and telecommunications, communication of information. The field was established and formalized by Claude Shannon in the 1940s, ...
.
Antidistributivity
The ubiquitous
identity that relates inverses to the binary operation in any
group, namely
which is taken as an axiom in the more general context of a
semigroup with involution, has sometimes been called an antidistributive property (of inversion as a
unary operation).
In the context of a
near-ring, which removes the commutativity of the additively written group and assumes only one-sided distributivity, one can speak of (two-sided) distributive elements but also of antidistributive elements. The latter reverse the order of (the non-commutative) addition; assuming a left-nearring (i.e. one which all elements distribute when multiplied on the left), then an antidistributive element
reverses the order of addition when multiplied to the right:
In the study of
propositional logic
The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
and
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
, the term antidistributive law is sometimes used to denote the interchange between conjunction and disjunction when implication factors over them:
These two
tautologies are a direct consequence of the duality in
De Morgan's laws.
Notes
External links
{{Wiktionary, distributivity
A demonstration of the Distributive Lawfor integer arithmetic (from
cut-the-knot
Alexander Bogomolny (January 4, 1948 July 7, 2018) was a Soviet Union, Soviet-born Israeli Americans, Israeli-American mathematician. He was Professor Emeritus of Mathematics at the University of Iowa, and formerly research fellow at the Moscow ...
)
Properties of binary operations
Elementary algebra
Rules of inference
Theorems in propositional logic