I am new to mathematica and I hope this is a simple problem. I have two identical functions that only differ by the variable names:
PolarInverseFT[f_, p_, u_, r_, t_] :=
Integrate[
p f Exp[-I 2 π r p Cos[u - t]], {p , 0, ∞}, {u, 0, 2 π} ]
PolarInverseFT2[f_, r_, t_, p_, u_] :=
Integrate[
r f Exp[-I 2 π p r Cos[t - u]], {r, 0, ∞}, {t, 0, 2 π} ]
I would expect them to behave identically. However,
PolarInverseFT[λ^2/(λ^2 + 4 π^2 p^2), p, u, r, t]
returns the error
-I Sin[2 p π r #1] is not a valid variable
But
PolarInverseFT2[λ^2/(λ^2 + 4 π^2 r^2), r, t, p, u]
gives the correct answer. For other f_ both can return an answer without failing, but the answers differ!
Any help would be greatly appreciated.

Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Mar 06 '15 at 11:20{}button above the edit window. The edit window help button?is also useful for learning how to format your questions and answers. – Michael E2 Mar 06 '15 at 11:34Cosargument is the distinction here. Interestingly changing toCos[u+t]fixes it. – george2079 Mar 06 '15 at 18:49FullForm@Cos[u - t] == FullForm@Cos[t - u]– Dr. belisarius Mar 06 '15 at 19:31Integrate[Exp[-I Cos[u - t]], {u, 0, 2*Pi}]. The result from this Integrate is correct, but the messages shouldn't be there. – Szabolcs Apr 05 '15 at 19:03p_andu_from the arguments toPolarInverseFTas they are used as limit variables for the integration. Similarly remover_andt_from the arguments toPolarInverseFT2. I don't think this will fix your problem but I think the code is better. – Jack LaVigne Oct 02 '15 at 21:47