I have the following type of integral
Integrate[ r BesselJ[n, a r] BesselJ[n, b r], {r, 0, Infinity}
(where a and b are real and $ n $ are integers) which Mathematica tells me it diverges.
We know that the result is actually
$$ \int_0^{\infty} J_\mu (a r) J_\mu (b r) \quad r \quad dr = \frac{\delta(a-b)}{a} $$
The problem is the Integrate function is unable to recognize a delta function.
I have tried a few options that were suggested as using FourierTransform (which does not work because the expression seems to complicated to Fourier transform it) and also the TagSetDelayed option (Teaching Mathematica more about DiracDelta and KroneckerDelta ).
In any case I did not manage to solve that. Is there any form of doing it?

n? – Ulrich Neumann Nov 04 '20 at 10:30\[Mu]. Where did you find this formula? – Ulrich Neumann Nov 04 '20 at 10:41Integrate[ t BesselJ[\[Nu], a t] BesselJ[\[Nu], b t], {t, 0, Infinity}] == (1/a) DiracDelta[a - b] /; Element[a, Reals] && Element[b, Reals] && Element[\[Nu], Reals]– Ulrich Neumann Nov 04 '20 at 11:08Integrate[BesselJ[1, 2*r]*BesselJ[1, 3*r]*r, {r, 0, Infinity}]says "Integrate::idiv: Integral of r BesselJ[1,2 r] BesselJ[1,3 r] does not converge on {0,[Infinity]}." andNIntegrate[BesselJ[1, 2*r]*BesselJ[1, 3*r]*r, {r, 0, Infinity}, WorkingPrecision -> 50, AccuracyGoal -> 3, PrecisionGoal -> 3, Method -> "ExtrapolatingOscillatory"]performs a warning "NumericalMathNSequenceLimit::seqlim: The general form of the sequence could not be determined, and the result may be incorrect." and0.096and the numeric integral over $(0,2000)$ confirms it. – user64494 Nov 04 '20 at 11:34Normal[Series[BesselJ[1, 2*r]^2*r, {r, Infinity, 2}]]results in(1/\[Pi] + 15/(256 \[Pi] r^2)) Cos[\[Pi]/4 + 2 r]^2 - ( 3 Cos[\[Pi]/4 + 2 r] Sin[\[Pi]/4 + 2 r])/(8 \[Pi] r) + ( 9 Sin[\[Pi]/4 + 2 r]^2)/(256 \[Pi] r^2)and this implies the diververgence (if I or Mathematica are not mistaken). – user64494 Nov 04 '20 at 14:37Normal[Series[r*BesselJ[1, 2*r]*BesselJ[1, 3*r], {r, Infinity, 2}]];Integrate[%, {r, 1, Infinity}]produces an error communication "Integrate::idiv: Integral of <<1>>/(1536 Sqrt[6] [Pi] r^2) does not converge on {1,[Infinity]}.". In view of it the formula under consideration does not seem to be true. Likely a typo. – user64494 Nov 04 '20 at 20:11r*BesselJ[1, 2*r]*BesselJ[1, 3*r]andNormal[Series[r*BesselJ[1, 2*r]*BesselJ[1, 3*r], {r, Infinity, 2}]]converge or diverge simultaneously. – user64494 Dec 04 '20 at 13:41rtor^(1-epsilon). So you can do e.g.regularizedDelta = Integrate[r^eps1*BesselJ[nu, a*r]*BesselJ[nu, b*r], {r, 0, Infinity}, Assumptions -> {a > b > 0, nu > 0, 0 < eps1 < 1}]. A plot will then confirm the delta-like result:Plot[Re[Evaluate[ regularizedDelB /. {nu -> 1, a -> 3, eps1 -> .99}]], {b, 2, 3}, PlotRange -> All]. To be sure it has the correct factor (which I would expect to be1/(a-b)ifa>bby the way), one might numerically integrate against test functions. – Daniel Lichtblau Dec 04 '20 at 23:58aneeds to be less than 0 rather than 1.. It still seems to work... – Daniel Lichtblau Dec 05 '20 at 00:12