ExpandAll
Details and Options
- ExpandAll[expr] effectively maps Expand and ExpandDenominator onto every part of expr.
- ExpandAll automatically threads over lists in expr, as well as equations, inequalities and logic functions.
- ExpandAll takes the following options:
-
Modulus 0 modulus to assume for integers Trig False whether to do trigonometric as well as algebraic transformations
Examples
open all close allBasic Examples (1)
Scope (6)
Expand the numerator and the denominator of a rational expression:
ExpandAll[(x + z) ^ 2 / (x + y) ^ 2]ExpandAll[E ^ (I a (t - b))]ExpandAll goes into heads:
ExpandAll[((1 + a) (1 + b))[x]]Expand only subexpressions involving
:
ExpandAll[(f[(x + y) ^ 2] + g[(y + z) ^ 2]) ^ 2, x]Expand the expression over the integers modulo
:
ExpandAll[6z / (2x + 3y) ^ 6, Modulus -> 4]Expand the expression using expansion formulas for trigonometric functions:
ExpandAll[(a - b) ^ 2 / (Sin[2x] + 1), Trig -> True]Options (2)
Modulus (1)
Applications (1)
Verify that two expressions are equal:
expr1 = Sin[(x + 1) ^ 2] + 1 / (x ^ 2 - 1)expr2 = Sin[x ^ 2 + 2x + 1] + 1 / ((x - 1)(x + 1))Use ExpandAll to show that the expressions are equal:
ExpandAll[expr1] == ExpandAll[expr2]Expand is not sufficient to verify the equality:
Expand[expr1] == Expand[expr2]See Also
Related Guides
History
Introduced in 1988 (1.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1988), ExpandAll, Wolfram Language function, https://reference.wolfram.com/language/ref/ExpandAll.html (updated 2007).
CMS
Wolfram Language. 1988. "ExpandAll." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/ExpandAll.html.
APA
Wolfram Language. (1988). ExpandAll. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExpandAll.html
BibTeX
@misc{reference.wolfram_2026_expandall, author="Wolfram Research", title="{ExpandAll}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ExpandAll.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_expandall, organization={Wolfram Research}, title={ExpandAll}, year={2007}, url={https://reference.wolfram.com/language/ref/ExpandAll.html}, note=[Accessed: 13-June-2026]}