I have a rather curious problem. I’m trying to solve this integral:
step1 = Integrate[
Cos[q + ((k2 - k2 Cos[\[Theta]]) \[Rho] Cos[\[Phi]] -
k2 Sin[\[Theta]] \[Rho] Sin[\[Phi]])] \[Rho], {\[Phi], 0,
2 \[Pi]},
Assumptions -> {k2 > 0 && \[Theta] \[Element] Reals && \[Rho] > 0}]
The answer it gives me for that is
2 \[Pi] \[Rho] Cos[q]
This seems to be independent of Theta. However, if I plug in a value for Theta before doing the integral. For example Theta = Pi / 2 gives:
2 \[Pi] \[Rho] BesselJ[0, Sqrt[2] k2 \[Rho]] Cos[q]
And Theta = Pi gives
2 \[Pi] \[Rho] BesselJ[0, 2 k2 \[Rho]] Cos[q]
Obviously, the result does depend on Theta then, even though the initial answer has no theta dependence. Is this a bug I stumbled upon in Mathematica 8.0.1.0 for Linux or am I missing something fundamental here?