combine/trig
combine trigonometric terms
Calling Sequence
Parameters
Description
Examples
combine(f, trig);
f
-
any expression
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.
combine⁡sin⁡x2,trig
12−cos⁡2⁢x2
combine⁡sinh⁡x⁢cosh⁡x,trig
sinh⁡2⁢x2
combine⁡2⁢sin⁡x⁢cos⁡y,trig
sin⁡x+y+sin⁡x−y
f≔sin⁡x2⁢cos⁡x+3⁢cos⁡x3+2⁢sin⁡x⁢cos⁡x
combine⁡f,trig
5⁢cos⁡x2+cos⁡3⁢x2+sin⁡2⁢x
f≔512⁢sin⁡x5⁢cos⁡x5
sin⁡10⁢x+10⁢sin⁡2⁢x−5⁢sin⁡6⁢x
See Also
simplify/trig
Download Help Document