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
0you needSimplify[%, (m | mp) ∈ Integers], orAssumingor$Assumptionsetc. Take a look at closely related post: How to specify assumptions before evaluation? – Artes Oct 06 '13 at 13:22