combine terms - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


combine

combine terms into a single term

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

combine(f)

combine(f, n)

combine(f, n, opt1, opt2, ...)

Parameters

f

-

any expression, or set or list of expressions

n

-

name or a list or set of names

opt1, opt2, ...

-

(optional) names of options

Description

• 

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

sina+b=sinacosb+cosasinb

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,  c1fa,range+c2fb,range ==> fc1a+c2b,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)).

Examples

combineIntx,x=a..bIntx2,x=a..b

abx2+xⅆx

(1)

combineLimitx,x=aLimitx2,x=a+c

limxax3+c

(2)

The use of the inert Limit function can lead to errors.

combineLimit1x,x=0Limitx,x=0

limx01

(3)

combinelimit1x,x=0limitx,x=0

undefined

(4)

combineabsx2absy+1,abs

x2y+1

(5)

f1sqrt3sqrt2+sqrtysqrtx21

f132+yx21

(6)

combinef1,radical

6+yx21

(7)

combinef1,radical,symbolic

6+yx21

(8)

combine4sinx3,trig

sin3x+3sinx

(9)

combineexpx2expy,exp

ⅇ2x+y

(10)

combineexpsinacosbexpcosasinb,trig,exp

ⅇsina+b

(11)

combine2sinxcosx,2cosx21,trig

sin2x,cos2x

(12)

assume0<y&comma;0<z

combine2lnylnz&comma;ln

lny~2z~

(13)

combinexa2&comma;power

x2a

(14)

combineΨx+Ψx&comma;Ψ

2Ψx+cotπxπ+1x

(15)

Compare the following examples. The extra arguments restrict the combining transformations.

combine4sinx3+expyexpx

&ExponentialE;y~+xsin3x+3sinx

(16)

combine4sinx3+expyexpx&comma;trig

&ExponentialE;y~&ExponentialE;xsin3x+3sinx

(17)

combine4sinx3+expyexpx&comma;exp

4sinx3+&ExponentialE;y~+x

(18)

See Also

convert

expand

factor

Student