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[(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多項式は最高次の係数(整数)が1次で,有理数上で既約である:
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を使って2つの式が等しいことが確かめられる:
Cos[3x] == 4Cos[x] ^ 3 - 3Cos[x]Expand[%, Trig -> True]特性と関係 (4)
prod = Product[x + i, {i, 6}]Expandを適用する:
Expand[prod]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 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_2026_expand, author="Wolfram Research", title="{Expand}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/Expand.html}", note=[Accessed: 15-October-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: 15-October-2026]}