I am having an issue (in Mathematica 11.2.0.0) where the following integral evaluates to zero:
Integrate[E^(-(1/4) (2 π q + a t)^2 σx2^2) Sqrt[π] σx2 DiracDelta[5 kL - π (p - q)], {q, -∞, ∞}, Assumptions -> {kL ∈ Reals, a ∈ Reals, σx2 ∈ Reals, t ∈ Reals, p ∈ Reals}]
When all of the variables are real, as I've tried to make it assume, then the Dirac delta should make this integral equivalent to evaluating the exponential at $q=(-5k_L+p\pi)/\pi$, which would be a nonzero result. But when I try to evaluate this (as the very first thing evaluated in the kernel, so I know no other assumptions are acting), I get zero.
Of course I can do this by hand, but the actual integral I want to evaluate has over fifty terms of this form, and all but one evaluates to zero individually, when none of them should. (The one that survives has the same exponential, but the Dirac delta is simply $\delta(p-q)$.) So it'd be nice to figure out what the problem is with Mathematica.
What could be going wrong here?
EDIT:
This integral (without the $a t$ term in the exponential) works fine:
Integrate[E^(-(1/4) (2 π q)^2 σx2^2) Sqrt[π] σx2 DiracDelta[5 kL - π (p - q)], {q, -∞, ∞}, Assumptions -> {kL ∈ Reals, a ∈ Reals, σx2 ∈ Reals, t ∈ Reals, p ∈ Reals}]
I can in fact replace $a t$ with any number, and it evaluates correctly. But any variable other than $q$ there results in zero. What is this apparent madness?