simplify/trig
simplify trigonometric expressions
Calling Sequence
Parameters
Description
Examples
simplify(expr, trig)
expr
-
any expression
trig
literal name; trig
The simplify(expr,trig) calling sequence simplifies trigonometric expressions by applying the trigonometric identities sinx2+cosx2=1 and coshx2−sinhx2=1.
If the input is a polynomial in sinx and cosx then simplify/trig factors out powers of sinx and cosx and applies the identity sinx2+cosx2=1 to what is left so that the degree of what is left in sinx is at most 1. Thus the result is of the form:
sinxicosxjAsinx+B
where A and B are polynomials in cosx. If the input is a polynomial in sinhx and coshx then simplify/trig yields a similar result using the identity coshx2−sinhx2=1.
To apply the identity to reduce the polynomial so that the degree in sinx is at most 1, use the command
simplifyexpr,sinx2+cosx2−1,sinx
If the input involves multiple angles that are integer multiples of each other, for example, sinx, sin2x, and cosx2 then the trigonometric functions are expressed in terms of a common angle, in this case x2.
If the input is a rational expression in sinx and cosx then an algorithm is used to put it in the form ND and reduce N and D to lowest terms such that the total degree of the numerator N (in sinx and cosx) plus the total degree of the denominator is minimized. In particular, any common factor between N and D has been cancelled out.
Note: Maple does not rationalize the denominator, that is, write the expression in the form ABsinx+CD for polynomials A, B, C, and D in cosx because this form usually leads to a result that is larger in total degree.
simplifysinx2+cosx2,trig
1
simplifycoshx2−sinhx2,trig
simplifycos2x+sinx2,trig
cosx2
f≔sinxcosx2−cosx3+cosx
simplifyf,trig
cosxsinxsinx+cosx
r≔1−cosx2+sinxcosxsinxcosx+cosx2
r≔sinxcosx−cosx2+1sinxcosx+cosx2
simplifyr,trig
tanx
simplifysinx3,sinx4,trig
sinx3,sinx4
simplifysinx3,sinx4,sinx2+cosx2−1,sinx
−sinxcosx2+sinx,cosx4−2cosx2+1
expandsin4x
8sinxcosx3−4sinxcosx
combinesinx4,trig
38+cos4x8−cos2x2
See Also
combine/trig
expand
simplify
Download Help Document