1

I am trying to solve this simple integral:

Integrate[Cos[m*x]*Cos[mp*x], {x, 0, 2 \[Pi]}, 
 Assumptions ->  
  Element[m - mp, Integers] && Element[m + mp, Integers] && 
   m - mp != 0 && m + mp != 0]

which is zero. However, Mathematica gives:

1/2 (Sin[2 (m - mp) \[Pi]]/(m - mp) + Sin[2 (m + mp) \[Pi]]/(m + mp))

Why?, any tip?

Thanks

1 Answers1

2
Assuming[(Element[m - mp, Integers] && Element[m + mp, Integers] && 
   m - mp != 0 && m + mp != 0), 
 Integrate[Cos[m*x]*Cos[mp*x], {x, 0, 2 \[Pi]}]]

yields 0. It seems that functions of the parameters in assumptions are not interpreted,

ubpdqn
  • 60,617
  • 3
  • 59
  • 148