Distribute

Distribute[f[x1,x2,]]

distributes f over Plus appearing in any of the xi.

Distribute[expr,g]

distributes over g.

Distribute[expr,g,f]

performs the distribution only if the head of expr is f.

Details

  • 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[expr,g,f,gp,fp] gives gp and fp in place of g and f respectively in the result of the distribution. »

Examples

open allclose all

Basic Examples  (3)

Apply the distributive law:

In[1]:=
Click for copyable input
Out[1]=

Distribute f over Plus:

In[1]:=
Click for copyable input
Out[1]=

Distribute f over g:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Generalizations & Extensions  (1)

Applications  (5)

Properties & Relations  (3)

Possible Issues  (1)

Neat Examples  (1)

See Also

Expand  Thread  Outer  Inner  Tuples  Through

Tutorials

Introduced in 1988
(1.0)