I want for the product (a+b)(a-b) to have a^2-b^2. Which function should I write before the product?
The command you want is expand.
expand
expand( (a+b) * (a-b) );