Transforming Product of Trigonometric Functions into Sum or Difference