Unlike the other chapters in this book, which are all focused on a single topic, this chapter will introduce a mix of functions that are useful in all sorts of situations.
Quite often it is useful to put a mathematical expression into a different form. Perhaps looking at the expression in a different way will lend some critical insight. Mathematica has several functions that can help us do this. In Example 4.1.1, we use the Expand function to multiply out a product and name the result poly.
In:=( * expanding a polynomial* ) poly Expand [(1+x)3 (x-2y)]Out= x+3x2+3x3+x4-2y-6xy-6x2y-2x3y
We can perform the opposite of Expand by using the Factor function. In Example ...