Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Algebraic Computation / Basic Algebra  /
Expand

  • Expand[ expr ] expands out products and positive integer powers in expr.
  • Expand[ expr , patt ] leaves unexpanded any parts of expr that are free of the pattern patt.
  • Expand works only on positive integer powers.
  • Expand applies only to the top level in expr.
  • Expand[ expr , Modulus-> p ] expands expr reducing the result modulo p.
  • See the Mathematica book: Section 1.4.3, Section 1.4.5Section 3.3.1.
  • See also: Distribute, Apart, Series, Factor, LogicalExpand, TrigExpand, PowerExpand.

    Further Examples

    This multiplies out the polynomial first in the usual way and then over the integers modulo .

    In[1]:=

    Out[1]=

    This expands only the terms containing 1 + x.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.