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 property 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
Suppose we have a set S and two operations, ∗ and +. The operation ∗ is left-distributive over + if, for any elements x, y, and z in S, x∗(y+z) = (x∗y)+(x∗z). It is right-distributive over + if, for any elements x, y, and z in 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
This section uses the usual addition + and multiplication ⋅. When multiplication does not work the same way in both orders, there are two versions of the rule. The left version is a⋅(b±c)=a⋅b±a⋅c, and the right version is (a±b)⋅c=a⋅c±b⋅c.
To multiply a sum (or difference) by a number, you multiply each part by that number. Then you add (or subtract) the answers. If the outside operation works the same in both orders, the two versions match, and we simply call it distributivity. Division is an example of an operation that only works in one direction, because a÷(b±c) is not the same as a÷b±a÷c.
The distributive rules are used for rings, such as the ring of integers, and for fields, such as the field of rational numbers. In these, multiplication spreads over addition, but addition does not spread over multiplication. Some structures, such as Boolean algebras like the algebra of sets or the switching algebra, have two operations that each spread over the other. When two sums are multiplied, you multiply each part of one sum by each part of the other, paying attention to signs, and then add all the answers.
Examples
The distributive law works for real numbers. In everyday math, multiplication usually means this kind of multiplication. For example, 6 × 16 can be worked out in your head. You can do 6 × 10 and 6 × 6, then add the results to get 96. Written multiplication also uses this law. The law also works for matrix multiplication, but the order matters. Matrices do not follow the commutative property, so the two versions are different laws.
The idea shows up in many other places. For sets, union and intersection distribute over each other. 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 only works from the left side. The cross product distributes over vector addition, but it is not commutative. In all semirings, multiplication distributes over addition. This includes complex numbers, quaternions, polynomials, and matrices. 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). Also, 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. It means "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, which means they are always true. The rules work for "and" over "or," "or" over "and," "and" over "and," and "or" over "or." They also work for several forms involving implication and equivalence. Some forms spread connectives in both directions.
Distributivity and rounding
When we do calculations that are not exact, such as in floating-point arithmetic, the distributive property may not work. This is because computers and calculators can only store numbers up to a certain level of 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, can help in some cases. Using more precision can 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 rules for distributing. In any semiring, distributivity can be used to show that a product of sums is a sum of products. However, not every sum of products is a product of sums. Some structures do not have distributive rules on both sides. These are near-rings and near-fields. They usually distribute on the right but not on the left.
Generalizations
Mathematicians study many versions of the distributive rule. Some change the original conditions, and others apply it to operations with more than two inputs. In order theory, there are many important versions. Some use infinite operations, such as the infinite distributive law. Others use 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 ≥. This 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.
In any group, the identity (xy)⁻¹ = y⁻¹x⁻¹ links inverses to the operation. It 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!
4 questions about Distributive property
The article shows a way to solve 6 × 16 in your head. What is it?
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.