Expand
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (16)
基本用法 (9)
Expand[(x + y) ^ 2(x - y) ^ 2]Expand[(x + y) ^ 2 / (x - y) ^ 2]Expand[(Sin[x] + Cos[x]) ^ 2]Expand[(x ^ s + 2E ^ -x) ^ 3]Expand[(f[Subscript[x, 1]] + f[Subscript[x, 2]]) ^ 3]Expand 不能进入子表达式:
Expand[Sqrt[(1 + x) ^ 2]]但 ExpandAll 可以:
ExpandAll[Sqrt[(1 + x) ^ 2]]Expand 只应用于分子:
Expand[(x + y) ^ 2 / (z + y) ^ 2]ExpandAll 则同时应用于分子和分母:
ExpandAll[(x + y) ^ 2 / (z + y) ^ 2]1 + 5 x + 10 x^2 + 10 x^3 + 5 x^4 + x^5 == Expand[(x + 1) ^ 5]Expand 可接受含有实数或复数系数的多项式作为输入:
Expand[(x + I)(x - I)]Expand 逐项作用于列表的各个元素:
Expand[Table[(x + 1) ^ n, {n, 3}]]Expand 逐项作用于等式和不等式的各个元素:
Expand[1 < (x + y) ^ 2 < 2]高级用法 (7)
整数模数
上对多项式应用 Expand:
Expand[(2y + 3x) ^ 6, Modulus -> 4]ℱ = FiniteField[17, 3];Expand[(ℱ[123]x - ℱ[345])(ℱ[567]x - ℱ[789])]对三角函数表达式应用 Expand:
Expand[(Sin[2x] + x) ^ 2, Trig -> True]对含有高次幂的多项式高效应用 Expand:
Expand[(x + y + z) ^ 1000]//LengthExpand[(a + b) ^ 2(1 + x) ^ 2, x]Expand[(1 + x) ^ 2 + (2 + x) ^ 2, 1 + x]Expand[(a[1] + a[2])(x[1] + x[2]) ^ 2, x[_]]选项 (3)
应用 (3)
(matrix = DiagonalMatrix[{1, -1, 1, -1}])//MatrixFormmatrix - x * IdentityMatrix[4]//MatrixFormExpand[(1 - x)(-1 - x)(1 - x)(-1 - x)]可用 CharacteristicPolynomial 函数直接进行计算:
CharacteristicPolynomial[matrix , x]Cyclotomic 多项式是首一多项式,系数为整数,并且在有理数上不可约.
cyclo[n_] := Times@@Table[If[GCD[k, n] == 1, (x - (-1) ^ (2k / n)), 1], {k, 1, n}]cyclo[16]用 Expand 证明它的系数是整数:
Expand[%]可用 Cyclotomic 函数直接计算这些多项式:
Cyclotomic[16, x]Expand 可用于验证两个表达式是否相等:
Cos[3x] == 4Cos[x] ^ 3 - 3Cos[x]Expand[%, Trig -> True]属性和关系 (4)
Product[x + i, {i, 6}]应用 Expand:
Expand[Product[x + i, {i, 6}]]对多项式应用 Expand:
Expand[(1 + x + y)(2 - x) ^ 3]Factor[%]当不涉及幂,Distribute 给出与 Expand 相同的结果:
Distribute[(1 + x)(2 + x)(3 + x)] === Expand[(1 + x)(2 + x)(3 + x)]Distribute[Factor[x ^ 6 - 1], Plus, Times, List, Times]Total[%]用 NonCommutativeExpand 展开非交换多项式:
NonCommutativeExpand[(a + 2b)**(3a + 4b)]alg = NonCommutativeAlgebra[<|"Multiplication" -> mult, "Addition" -> add|>];NonCommutativeExpand[mult[add[a, 2b], add[3a, 4b]], alg]技术笔记
-
▪
- 变换代数表达式 ▪
- 以不同形式表示表达式 ▪
- 有理式的结构运算 ▪
- 多项式的结构运算 ▪
- 多项式模素数
历史
1988年引入 (1.0) | 在以下年份被更新:1996 (3.0) ▪ 2007 (6.0) ▪ 2023 (13.3)
文本
Wolfram Research (1988),Expand,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Expand.html (更新于 2023 年).
CMS
Wolfram 语言. 1988. "Expand." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2023. https://reference.wolfram.com/language/ref/Expand.html.
APA
Wolfram 语言. (1988). Expand. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Expand.html 年
BibTeX
@misc{reference.wolfram_2026_expand, author="Wolfram Research", title="{Expand}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/Expand.html}", note=[Accessed: 08-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_expand, organization={Wolfram Research}, title={Expand}, year={2023}, url={https://reference.wolfram.com/language/ref/Expand.html}, note=[Accessed: 08-September-2026]}