combine
combine terms into a single term
Calling Sequence
Parameters
Description
Examples
combine(f)
combine(f, n)
combine(f, n, opt1, opt2, ...)
f
-
any expression, or set or list of expressions
n
name or a list or set of names
opt1, opt2, ...
(optional) names of options
The combine function applies transformations which combine terms in sums, products, and powers into a single term. This function is applied recursively to the components of lists, sets, and relations; that is, f and n may be lists (or sets) of expressions and names, respectively.
For many functions, the transformations applied by combine are the inverse of the transformations that are applied by expand. For example, consider the well-known identity
sin⁡a+b=sin⁡a⁢cos⁡b+cos⁡a⁢sin⁡b
The combine function applies the identity from right to left, whereas the expand function does the reverse.
Subexpressions involving Int, Sum, and Limit are combined into one expression where possible using linearity; that is, c1⁢f⁡a,range+c2⁢f⁡b,range ==> f⁡c1⁢a+c2⁢b,range.
A specific set of transformations is obtained by specifying a second (optional) argument n (a name) which is one or a list of the following:
@@
abs
arctan
conjugate
errors
exp
icombine
ln
piecewise
polylog
power
product
Psi
radical
range
signum
trig
units
For additional information and examples about the transformations applied by each of these, see combine[n] where n is an argument (a name) from the above list.
The symbolic option can be included to specify that formal symbolic manipulation of expressions is allowed without regard to the analytical issue of branches for multi-valued functions. For example, the expression sqrt(x)*sqrt(y) simplifies to sqrt(x*y) under the symbolic option. Without this option, the simplified result must take into account the different possible values of the (complex) sign of x and y.
Note: When the symbolic option is specified, any branch of a multi-valued function can be chosen during the simplification process. The result of such an operation is in general not valid over the whole complex plane and can lead to incorrect results if you assume the expressions represent analytical functions.
The combine function maps over functions. Therefore combine(f(a)) is the same as map(combine,f(a)).
combine⁡Int⁡x,x=a..b−Int⁡x2,x=a..b
∫ab−x2+xⅆx
combine⁡Limit⁡x,x=a⁢Limit⁡x2,x=a+c
limx→a⁡x3+c
The use of the inert Limit function can lead to errors.
combine⁡Limit⁡1x,x=0⁢Limit⁡x,x=0
limx→0⁡1
combine⁡limit⁡1x,x=0⁢limit⁡x,x=0
undefined
combine⁡abs⁡x2⁢abs⁡y+1,abs
x2⁢y+1
f1≔sqrt⁡3⁢sqrt⁡2+sqrt⁡y⁢sqrt⁡x2−1
f1≔3⁢2+y⁢x2−1
combine⁡f1,radical
6+y⁢x2−1
combine⁡f1,radical,symbolic
combine⁡4⁢sin⁡x3,trig
−sin⁡3⁢x+3⁢sin⁡x
combine⁡exp⁡x2⁢exp⁡y,exp
ⅇ2⁢x+y
combine⁡exp⁡sin⁡a⁢cos⁡b⁢exp⁡cos⁡a⁢sin⁡b,trig,exp
ⅇsin⁡a+b
combine⁡2⁢sin⁡x⁢cos⁡x,2⁢cos⁡x2−1,trig
sin⁡2⁢x,cos⁡2⁢x
assume⁡0<y,0<z
combine⁡2⁢ln⁡y−ln⁡z,ln
ln⁡y~2z~
combine⁡xa2,power
x2⁢a
combine⁡Ψ⁡−x+Ψ⁡x,Ψ
2⁢Ψ⁡x+cot⁡π⁢x⁢π+1x
Compare the following examples. The extra arguments restrict the combining transformations.
combine⁡4⁢sin⁡x3+exp⁡y⁢exp⁡x
ⅇy~+x−sin⁡3⁢x+3⁢sin⁡x
combine⁡4⁢sin⁡x3+exp⁡y⁢exp⁡x,trig
ⅇy~⁢ⅇx−sin⁡3⁢x+3⁢sin⁡x
combine⁡4⁢sin⁡x3+exp⁡y⁢exp⁡x,exp
4⁢sin⁡x3+ⅇy~+x
See Also
convert
expand
factor
Student
Download Help Document