combine terms into a single term - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Expression Manipulation : Combining : combine

combine - combine terms into a single term

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 ==> fac1+bc2,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

combine∫abxⅆx∫abx2ⅆx

∫abx2+xⅆx

(1)

combinelimx→axlimx→ax2+c

limx→ax3+c

(2)

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

combinelimx→01xlimx→0x

limx→01

(3)

combinelimx→01xlimx→0x

undefined

(4)

combinex2y+1,abs

x2y+1

(5)

f1:=32+yx21

f1:=32+yx21

(6)

combinef1,radical

6+yx21

(7)

combinef1,radical,symbolic

6+yx21

(8)

combine4sinx3,trig

sin3x+3sinx

(9)

combineⅇx2ⅇy,exp

ⅇ2x+y

(10)

combineⅇsinacosbⅇcosasinb,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&Psi;x&plus;&Psi;x&comma;&Psi;

2&Psi;x&plus;&pi;cotx&pi;&plus;1x

(15)

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

combine4sinx3&plus;&ExponentialE;y&ExponentialE;x

sin3x&plus;3sinx&plus;&ExponentialE;y~&plus;x

(16)

combine4sinx3&plus;&ExponentialE;y&ExponentialE;x&comma;trig

sin3x&plus;3sinx&plus;&ExponentialE;y~&ExponentialE;x

(17)

combine4sinx3&plus;&ExponentialE;y&ExponentialE;x&comma;exp

4sinx3&plus;&ExponentialE;y~&plus;x

(18)

See Also

convert, expand, factor, Student


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam