I'm interested in the following definite integral: $$\int_0^\infty\big(2J_0(2x)^2-J_0(x)^2+2Y_0(2x)^2-Y_0(x)^2\big)\,dx,\tag1$$ where $J_\nu$ and $Y_\nu$ are the Bessel functions of the first and the second kind.
Mathematica evaluates this integral symbolically to $\frac{\ln2}\pi$, but the result of a numerical integration looks more like $\frac{\ln4}\pi$, so I suspect the symbolic result is incorrect.
Moreover, it looks like both components converge and make equal contribution: $$\int_0^\infty\big(2J_0(2x)^2-J_0(x)^2\big)\,dx\stackrel?=\int_0^\infty\big(2Y_0(2x)^2-Y_0(x)^2\big)\,dx\stackrel?=\frac{\ln2}\pi,\tag2$$ but it is more difficult to check numerically, because both integrands here are oscillating (unlike $(1)$ where the integrand looks monotonic).
How can we find values of these integrals and prove them correct? Can we generalize results for values of the index $\nu$ other than $0$?
I stated an interesting thing in the comments (wisely explored by Random Variable), but it is definitely not the fastest way to go.
For the glory of Italian mathematicians, Frullani's theorem is the way (again):
The wide tilde-limit has to be intended as a Cesàro mean: $$\underset{x\to+\infty}{\widetilde{\lim}}f(x) = \lim_{x\to +\infty}\frac{1}{x}\int_{x}^{2x}f(z)\,dz.$$
Moreover, provided that the integral converges, the previous result holds unchanged also by replacing $J_0$ with $J_\nu$ for any $\nu\geq 0$, since: $$ J_\nu(z) = \sqrt{\frac{2}{\pi z}}\left(\cos \left(z-\frac{\nu\pi}{2}-\frac{\pi}{4}\right)+O\left(\frac{1}{z}\right)\right) $$ for any large $z\in\mathbb{R}^+$.