simplify
apply simplification rules to an expression
Calling Sequence
Parameters
Basic Information
Details
Examples
simplify(expr)
expr
-
any expression
Description
The simplify command is used to apply simplification rules to an expression.
Output
The simplify routine searches the expression for function calls, square roots, radicals, and powers and invokes the appropriate simplification procedures.
For detailed information on the simplify command, see simplify/details.
Basic example
simplify⁡412+3
5
Simplifying exponentials and logarithms
simplify⁡exp⁡a+ln⁡b⁢exp⁡c
b⁢ⅇc+a
Controlling which simplification rules to use
simplify⁡sin⁡x2+ln⁡2⁢x+cos⁡x2
ln⁡2+ln⁡x+1
When trig is specified as the second argument, only the trigonometric expressions are simplified.
simplify⁡sin⁡x2+ln⁡2⁢x+cos⁡x2,trig
ln⁡2⁢x+1
Using the assume option
When you use the assume=property option as the last argument, all the indeterminate variables in expr are assumed to have the property when simplifying the expression. In the following example, x is assumed to be positive. For more information, see the simplify/details page.
simplify⁡sqrt⁡x2,assume=positive
x
Simplifying with respect to side relations
The command simplify can perform simplification with respect to side relations. For details, see simplify/siderels.
eqns≔sin⁡x2+cos⁡x2=1:
e≔sin⁡x3−11⁢sin⁡x2⁢cos⁡x+3⁢cos⁡x3−sin⁡x⁢cos⁡x+2
simplify⁡e,eqns
14⁢cos⁡x3−cos⁡x2⁢sin⁡x+−sin⁡x−11⁢cos⁡x+sin⁡x+2
simplify⁡e,eqns,sin⁡x,cos⁡x
Simplify with respect to cos(x) first.
simplify⁡e,eqns,cos⁡x,sin⁡x
−14⁢sin⁡x2−sin⁡x+3⁢cos⁡x+sin⁡x3+2
See Also
assume
assuming
collect
combine
convert
expand
factor
normal
RealDomain
RealRange
simplify[@]
simplify[Ei]
simplify[GAMMA]
simplify[hypergeom]
simplify[ln]
simplify[polar]
simplify[power]
simplify[radical]
simplify[RootOf]
simplify[rtable]
simplify[size]
simplify[sqrt]
simplify[trig]
Download Help Document