During the course of a textbook problem, I obtain the following (simplified to keep only important elements) :
$$\int^{b}_{-b}dy\int^{b}_{-b}dy' \space exp\{A(y^{2}-y'^{2})\} \space \delta(y-y')$$
where the answer is $2b$
My instinct would be to treat the problem as such :
$$\int^{b}_{-b}dy\int^{b}_{-b}dy' \space f(y, y') \space \delta(y-y')$$
where $\space f(y, y') = exp\{A(y^{2}-y'^{2})\}$
computing the first integral would yield
$$\int^{b}_{-b}dy \space f(y=y'|-b\leq y \leq b) = \int^{b}_{-b}dy = 2b$$
I understand the dirac distribution if very often misused and that bad shortcuts are often taken, I apologise for writing what is probably horrible mathematics.
My question however is whether the first double integral is well-defined, and whether the Dirac delta function can ever make any sense under an integral whose limits aren't infinity, for example in the case :
$$\int^{a}_{b}dy\int^{c}_{d}dy' \space f(y, y') \space \delta(y-y')$$