trigonometric - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


combine/trig

combine trigonometric terms

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

combine(f, trig);

Parameters

f

-

any expression

Description

• 

Products and powers of trigonometric terms involving sin, cos, sinh and cosh are combined into a sum of trigonometric terms by repeated application of the transformations

sin⁡a⁢sin⁡b→12⁢cos⁡a−b−12⁢cos⁡a+b

sin⁡a⁢cos⁡b→12⁢sin⁡a−b+12⁢sin⁡a+b

cos⁡a⁢cos⁡b→12⁢cos⁡a−b+12⁢cos⁡a+b

• 

where  sin⁡a2  and  cos⁡b2  are special cases of the above. The form of the result is a sum of trigonometric terms whose arguments are integral linear combinations of the original arguments.

• 

An important special case is when the input is a polynomial in sin⁡x and cos⁡x over a field, in which case the result is a canonical form; namely,

∑i=−nn⁡ai⁢sin⁡i⁢x+∑i=−nn⁡bi⁢cos⁡i⁢x

• 

where ai, bi are in the field and n is bounded by the total degree of the input polynomial in sin⁡x and cos⁡x.

Examples

> 

combine⁡sin⁡x2,trig

12−cos⁡2⁢x2

(1)
> 

combine⁡sinh⁡x⁢cosh⁡x,trig

sinh⁡2⁢x2

(2)
> 

combine⁡2⁢sin⁡x⁢cos⁡y,trig

sin⁡x+y+sin⁡x−y

(3)
> 

f≔sin⁡x2⁢cos⁡x+3⁢cos⁡x3+2⁢sin⁡x⁢cos⁡x

f≔sin⁡x2⁢cos⁡x+3⁢cos⁡x3+2⁢sin⁡x⁢cos⁡x

(4)
> 

combine⁡f,trig

5⁢cos⁡x2+cos⁡3⁢x2+sin⁡2⁢x

(5)
> 

f≔512⁢sin⁡x5⁢cos⁡x5

f≔512⁢sin⁡x5⁢cos⁡x5

(6)
> 

combine⁡f,trig

sin⁡10⁢x+10⁢sin⁡2⁢x−5⁢sin⁡6⁢x

(7)

See Also

simplify/trig