Mathematica can perform many of the most common transformations of algebraic expressions.
| Mathematica | result | example |
|---|---|---|
| Expand[algebraic product] | expands out products and powers | Expand[(x^2+1)(x-1)^2] |
| Factor[algebraic sum] | factors sums into products and powers | Factor[x^2-3x+2] |
| Together[sum of fractions] | gives the sum of algebraic fractions | Together[x+1/x+1/(x+1)] |
| Simplify[algebraic fraction] | simplifies an algebraic fraction | Simplify[(x^2+2x+1)/(x^2-1)] |
| Apart[algebraic fraction] | write an algebraic fraction with minimum denominator | Apart[(x^2+1)/(x-1)] |
| TrigExpand[trigonometric expression] | expands expressions on circular or hyperbolic functions | TrigExpand[Cos[x+y]] |
| TrigFactor[trigonometric expression] | factors expressions on circular or hyperbolic functions | TrigFactor[Sin[x]Cos[y]+Sin[y]Cos[x]] |
Example: Expand

Other examples.