I don't know if this has already been discussed.
Integrate[BesselJ[2 m + 1, x], {x, 0, ∞}, Assumptions -> m ϵ Integers]
ConditionalExpression[1, Re[m] > -1]
Integrate[BesselJ[2 m, x], {x, 0, ∞}, Assumptions -> m ϵ Integers]
ConditionalExpression[1, Re[m] > -(1/2)]
Assuming[m ∈ Integers, Integrate[BesselJ[2 m + 1, x], {x, 0, ∞}]]
ConditionalExpression[1, m > -1]
Assuming[m ∈ Integers, Integrate[BesselJ[2 m, x], {x, 0, ∞}]]
ConditionalExpression[1, m > -(1/2)]
Why doesn't Mathematica consider the evenness or oddness of the 1st argument (i.e., 2 m
or 2 m + 1
)?
Assuming[{k ∈ Integers}, Integrate[ Exp[ I k t], {t, -π, π}]]
returns an incorrect result whereasIntegrate[ Exp[ I k t], {t, -π, π},Assumptions->k ∈ Integers]
returns the correct one. Here it seams that Integrate simply ignores (or cannot take into account) theAssumptions
and proceed to its evaluation of the integrand without anyAssumptions
for both of the cases. $\endgroup$Simplify[Integrate[Exp[I k t], {t, -\[Pi], \[Pi]}, Assumptions -> k \[Element] Integers], k \[Element] Integers]
. $\endgroup$