expand
Expand expressions and simplify inputs of functions by using identities
Description
expand(
multiplies all parentheses in
S
)S
, and simplifies inputs to functions such as cos(x +
y)
by applying standard identities.
expand(
uses
additional options specified by one or more name-value pair arguments. For example,
specifying S
,Name,Value
)'IgnoreAnalyticConstraints'
as true
uses
convenient identities to simplify the input.
Examples
Input Arguments
Algorithms
When you use 'IgnoreAnalyticConstraints'
, expand
applies some of these rules.
log(a) + log(b) = log(a·b) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(a·b)c = ac·bc.
log(ab) = b·log(a) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(ab)c = ab·c.
If f and g are standard mathematical functions and f(g(x)) = x for all small positive numbers, f(g(x)) = x is assumed to be valid for all complex x.
log(ex) = x
asin(sin(x)) = x, acos(cos(x)) = x, atan(tan(x)) = x
asinh(sinh(x)) = x, acosh(cosh(x)) = x, atanh(tanh(x)) = x
Wk(x·ex) = x for all values of k
Version History
Introduced before R2006a