Equivalence transformations carried out by specialized Mathematica functions
General remarks
Almost everybody prefers using instead of . Mathematica automatically transforms the second expression into the first one. The automatic application of transformation rules to mathematical expressions can give overly complicated results. Compact expressions like should not be automatically expanded into the more complicated expression . Mathematica has special commands that produce these types of expansions. Some of them are demonstrated in the next section.
TrigExpand
The function TrigExpand expands out trigonometric and hyperbolic functions. In more detail, it splits up sums and integer multiples that appear in the arguments of trigonometric and hyperbolic functions, and then expands out the products of the trigonometric and hyperbolic functions into sums of powers, using the trigonometric and hyperbolic identities where possible. Here are some examples.
TrigFactor
The function TrigFactor factors trigonometric and hyperbolic functions. In more detail, it splits up sums and integer multiples that appear in the arguments of trigonometric and hyperbolic functions, and then factors the resulting polynomials in the trigonometric and hyperbolic functions, using the corresponding identities where possible. Here are some examples.
TrigReduce
The function TrigReduce rewrites products and powers of trigonometric and hyperbolic functions in terms of those functions with combined arguments. In more detail, it typically yields a linear expression involving trigonometric and hyperbolic functions with more complicated arguments. TrigReduce is approximately inverse to TrigExpand and TrigFactor. Here are some examples.
TrigToExp
The function TrigToExp converts direct and inverse trigonometric and hyperbolic functions to exponential or logarithmic functions. It tries, where possible, to give results that do not involve explicit complex numbers. Here are some examples.
ExpToTrig
The function ExpToTrig converts exponentials to trigonometric or hyperbolic functions. It tries, where possible, to give results that do not involve explicit complex numbers. It is approximately inverse to TrigToExp. Here are some examples.
ComplexExpand
The function ComplexExpand expands expressions assuming that all the occurring variables are real. The value option TargetFunctions is a list of functions from the set {Re, Im, Abs, Arg, Conjugate, Sign}. ComplexExpand tries to give results in terms of the specified functions. Here are some examples
Simplify
The function Simplify performs a sequence of algebraic transformations on its argument, and returns the simplest form it finds. Here are two examples.
Here is a large collection of trigonometric identities. All are written as one large logical conjunction.
The function Simplify has the Assumption option. For example, Mathematica knows that for all real , and uses the periodicity of trigonometric functions for the symbolic integer coefficient of .
Mathematica also knows that the composition of inverse and direct trigonometric functions produces the value of the inner argument under the appropriate restriction. Here are some examples.
FunctionExpand (and Together)
While the trigonometric functions auto‐evaluate for simple fractions of , for more complicated cases they stay as trigonometric functions to avoid the build up of large expressions. Using the function FunctionExpand, such expressions can be transformed into explicit radicals.
If the denominator contains squares of integers other than 2, the results always contain complex numbers (meaning that the imaginary number appears unavoidably).
Here the function RootReduce is used to express the previous algebraic numbers as numbered roots of polynomial equations.
The function FunctionExpand also reduces trigonometric expressions with compound arguments or compositions, including hyperbolic functions, to simpler ones. Here are some examples.
Applying Simplify to the last expression gives a more compact result.
Here are some similar examples.
FullSimplify
The function FullSimplify tries a wider range of transformations than Simplify and returns the simplest form it finds. Here are some examples that contrast the results of applying these functions to the same expressions.
|