Transformation of Product Into Sum or Difference