Cosine functions or Expansion and Simplification