Tarvittavat Mathematican funktiot ovat Expand ja Factor.