This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Algebraic Computation / Basic Algebra  /

  • 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 .



    This expands only the terms containing 1 + x.