

Expand
Examples
open all close allBasic Examples (3)
Scope (16)
Basic Uses (9)
Expand expressions involving arbitrary functions:
Expand does not go into subexpressions; ExpandAll does:
Expand applies to the numerator only:
ExpandAll applies to both the numerator and denominator:
Verify the equality of an expanded polynomial and its factored form:
Expand accepts polynomials with real or complex coefficients as inputs:
Expand threads over lists:
Expand threads over equations and inequalities:
Advanced Uses (7)
Options (3)
Applications (3)
Calculate the characteristic polynomial of a diagonal matrix:
The characteristic polynomial is the determinant of the following matrix:
Expand the product of diagonal elements to get the characteristic polynomial:
This can be directly computed using the CharacteristicPolynomial function:
Cyclotomic polynomials are monic, with integer coefficients, and are irreducible over the rational numbers.
The 16th cyclotomic polynomial is given below:
Use Expand to show that it has integer coefficients:
These polynomials can be directly computed using the Cyclotomic function:
Expand can be used to verify that two expressions are equal:
Properties & Relations (4)
Many functions give results in unexpanded form:
Factor is essentially the inverse of Expand:
When no powers are involved, Distribute gives the same results as Expand:
Direct application of the distributive law often generates far more terms than are needed:
Use NonCommutativeExpand to expand noncommutative polynomials:
Related Links
History
Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2007 (6.0) ▪ 2023 (13.3)
Text
Wolfram Research (1988), Expand, Wolfram Language function, https://reference.wolfram.com/language/ref/Expand.html (updated 2023).
CMS
Wolfram Language. 1988. "Expand." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/Expand.html.
APA
Wolfram Language. (1988). Expand. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Expand.html
BibTeX
@misc{reference.wolfram_2025_expand, author="Wolfram Research", title="{Expand}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/Expand.html}", note=[Accessed: 07-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_expand, organization={Wolfram Research}, title={Expand}, year={2023}, url={https://reference.wolfram.com/language/ref/Expand.html}, note=[Accessed: 07-August-2025]}