Expand
[expr]Expand[(x + y) ^ 3]
Expand[(a + b) (a + c + d)]
Expand[(a + b) (a + c + d) (e + f) + e a a]
Expand[(a + b) ^ 2 * (c + d)]
Expand[(x + y) ^ 2 + x y]
Expand[((a + b) (c + d)) ^ 2 + b (1 + a)]
Expand
expands items in lists and rules:
Expand[{4 (x + y), 2 (x + y) -> 4 (x + y)}]
Expand
expands trigonometric identities
Expand[Sin[x + y], Trig -> True]
Expand[Tanh[x + y], Trig -> True]
Expand
does not change any other expression.
Expand[Sin[x (1 + y)]]
Using the second argument, the expression only
expands those subexpressions containing pat:
Expand[(x+a)^2+(y+a)^2+(x+y)(x+a), y]
Expand
also works in Galois fields
Expand[(1 + a)^12, Modulus -> 3]
Expand[(1 + a)^12, Modulus -> 4]