WOLFRAM LANGUAGE TUTORIAL
Transforming Algebraic Expressions
There are often many different ways to write the same algebraic expression. As one example, the expression can be written as . The Wolfram System provides a large collection of functions for converting between different forms of algebraic expressions.
|Expand[expr]||multiply out products and powers, writing the result as a sum of terms|
|Factor[expr]||write expr as a product of minimal factors|
Two common functions for transforming algebraic expressions.
gives the "expanded form", with products and powers multiplied out.
recovers the original form.
It is easy to generate complicated expressions with Expand
often gives you simpler expressions.
There are some cases, though, where Factor
can give you more complicated expressions.
In this case, Expand
gives the "simpler" form.