Distributive property
The distributive property is an idea in mathematics about how certain operations work together. It is a more general form of the distributive law, which says that x⋅(y+z) = x⋅y+x⋅z is always true in elementary algebra. You may also see this word written as "distributivity," but do not confuse it with Distributivism.
Here is a simple example from elementary arithmetic. If you calculate 2⋅(1+3), you get the same answer as (2⋅1)+(2⋅3). Because of this, mathematicians say that multiplication distributes over addition.
This basic property of numbers is part of the rules for many algebraic structures. These are systems that have two operations, called addition and multiplication. Examples include complex numbers, polynomials, matrices, rings, and fields.
The distributive property also appears in Boolean algebra and mathematical logic. In these areas, the logical and (written as ∧) and the logical or (written as ∨) each distribute over the other.
Definition
Given a set S and two binary operators, ∗ and +, the operation ∗ is left-distributive over + if, given any elements x, y, and z of S, x∗(y+z) = (x∗y)+(x∗z). It is right-distributive over + if, for any elements x, y, and z of S, (y+z)∗x = (y∗x)+(z∗x). If ∗ is both left- and right-distributive, it is simply called distributive over +.
When ∗ is commutative, the three conditions above are logically equivalent.
Meaning
The examples in this section use the usual addition + and multiplication ⋅. When the multiplication is not commutative, there are two versions of the rule: left-distributive, a⋅(b±c)=a⋅b±a⋅c, and right-distributive, (a±b)⋅c=a⋅c±b⋅c. To multiply a sum (or difference) by a factor, you multiply each part (or the minuend and subtrahend) by that factor, then add (or subtract) the products. When the outside operation is commutative, the two versions match, and we simply call it distributivity. Division is an example of an operation that is only right-distributive, because a÷(b±c) is not the same as a÷b±a÷c.
The distributive laws are rules for rings, such as the ring of integers, and for fields, such as the field of rational numbers. In these, multiplication distributes over addition, but addition does not distribute over multiplication. Some structures, such as Boolean algebras like the algebra of sets or the switching algebra, have two operations that each distribute over the other. When two sums are multiplied, you multiply each part of one sum by each part of the other, keeping track of signs, and then add all the products.
Examples
The distributive law works for real numbers, and in elementary mathematics, multiplication usually refers to this kind of multiplication. For example, 6 × 16 can be worked out in your head by calculating 6 × 10 and 6 × 6 and adding the results to get 96. Written multiplication also uses this law. The law also works for matrix multiplication, but the order matters, since the commutative property does not hold for matrices, so the two versions are different laws.
The idea appears in many other places. For sets, union and intersection distribute over each other, and logical disjunction ("or") distributes over logical conjunction ("and"). For real numbers and any totally ordered set, the maximum and minimum operations distribute over each other. For integers, the greatest common divisor and least common multiple do the same. Multiplication of ordinal numbers is only left-distributive, and the cross product distributes over vector addition but is not commutative. In all semirings, including complex numbers, quaternions, polynomials, and matrices, multiplication distributes over addition, and the same is true in all algebras over a field, including octonions and other non-associative algebras.
Propositional logic
In propositional logic, distribution is a way to rewrite statements. Two valid rules of replacement let us spread certain logical connectives inside a formula across its parts. For example, P and (Q or R) can be replaced with (P and Q) or (P and R), and P or (Q and R) can be replaced with (P or Q) and (P or R). The symbol ⇔, which can also be written ≡, is a metalogical symbol meaning "can be replaced in a proof with" or "is logically equivalent to."
Distributivity is a property of some connectives in truth-functional logic. Many equivalences show this, and they are tautologies, meaning they are always true. The rules work for "and" over "or," "or" over "and," "and" over "and," "or" over "or," and several forms involving implication and equivalence. There are also double distribution forms that spread connectives in both directions.
Distributivity and rounding
When calculations are approximate, such as in floating-point arithmetic, the distributive property of multiplication (and division) over addition may fail. This happens because of the limits of arithmetic precision. For example, 1/3 + 1/3 + 1/3 = (1+1+1)/3 does not work in decimal arithmetic, no matter how many significant digits are used.
Some methods, such as banker's rounding, may help in some cases. Using more precision may also help. However, some calculation errors cannot be avoided.
In rings and other structures
Distributivity is most often found in semirings, especially in the special cases of rings and distributive lattices. A semiring has two operations, usually written + and ∗, and ∗ must distribute over +. A ring is a semiring that also has additive inverses. A lattice is another kind of algebraic structure with two operations, ∧ and ∨. If one of these operations distributes over the other, then the reverse also holds, and the lattice is called distributive. See also Distributivity (order theory).
A Boolean algebra can be seen as a special kind of ring, called a Boolean ring, or as a special kind of distributive lattice, called a Boolean lattice. Each view has its own distributive laws. In any semiring, distributivity can be used to show that a product of sums is a sum of products, though not every sum of products is a product of sums. Structures without two-sided distributive laws are near-rings and near-fields. They are usually distributive on the right but not on the left.
Generalizations
Mathematicians study many versions of the distributive rule. Some weaken the original conditions, and others extend it to operations with more than two inputs. In order theory there are many important variations. Some use infinite operations, such as the infinite distributive law. Others are defined with only one binary operation, as explained in the article distributivity (order theory). This also includes the idea of a completely distributive lattice. When a number ordering exists, the equals sign can be replaced by ≤ or ≥, which gives "sub-distributivity" and "super-distributivity." In category theory, a distributive law is a natural transformation that connects two monads and works with a colax map of monads. A generalized distributive law has also been proposed in information theory.
The identity that relates inverses to the operation in any group, (xy)⁻¹ = y⁻¹x⁻¹, is sometimes called an "antidistributive property" of inversion as a unary operation. It is taken as an axiom in a semigroup with involution. In a near-ring, some elements are called "antidistributive" because they reverse the order of addition. In propositional logic and Boolean algebra, the term "antidistributive law" is sometimes used for swapping "and" and "or" when implication works over them: (a∨b)⇒c ≡ (a⇒c)∧(b⇒c) and (a∧b)⇒c ≡ (a⇒c)∨(b⇒c). These two tautologies follow directly from De Morgan's laws.

Quiz time!
5 questions about Distributive property
Which example from the article shows that multiplication distributes over addition?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Distributive property, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.