This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Distribute

Distribute
distributes f over Plus appearing in any of the .
Distribute
distributes over g.
Distribute
performs the distribution only if the head of expr is f.
  • Distribute effectively implements the distributive law for operators f and g.
  • Distribute explicitly constructs the complete result of a distribution; Expand, on the other hand, builds up results iteratively, simplifying at each stage.
  • Distribute gives gp and fp in place of g and f respectively in the result of the distribution. »
Apply the distributive law:
Distribute over Plus:
Distribute over :
Apply the distributive law:
In[1]:=
Click for copyable input
Out[1]=
 
Distribute over Plus:
In[1]:=
Click for copyable input
Out[1]=
 
Distribute over :
In[1]:=
Click for copyable input
Out[1]=
By default, distribute over Plus:
Distribute only a product of sums:
Distributive laws for logical operators:
Apply the distributive law to arbitrary operators:
Distribute over to give and :
Expand symbolic matrix and vector expressions:
Apply the distributive law with any operator:
Find the list of all possible combinations of elements:
Generate a powerset:
Find intermediate terms from a direct application of the distributive law:
For pure products, Distribute gives the same results as Expand:
PowerExpand corresponds to distribution over Times:
Outer forms the same combinations of all elements, but in a nested structure:
Find all possible sums of sublists of a list:
New in 1