Recently, I found these two interesting integrals in Handbook of special functions page 141. $$\mathcal{I}=\int_{0}^{\infty }\frac{\sin(ax)}{\sqrt{x^{2}+z^{2}}}\ln\left ( x^{2}+z^{2} \right )\mathrm{d}x$$ $$\mathcal{J}=\int_{0}^{\infty }\frac{\cos(ax)}{\sqrt{x^{2}+z^{2}}}\ln\left ( x^{2}+z^{2} \right )\mathrm{d}x$$ In this book, it gives the answer below $$\mathcal{I}=\frac{\pi }{2}\left (\ln\frac{z}{2a}-\gamma \right )\left [ I_0\left ( az \right )- \mathbf{L}_0\left ( az \right )\right ]+\frac{1}{4\pi }G_{24}^{32}\left ( \frac{a^{2}z^{2}}{4}\middle|\begin{matrix} \dfrac{1}{2},\dfrac{1}{2} \\ 0,0,\dfrac{1}{2},\dfrac{1}{2} \end{matrix} \right )~~~,~~~\left (a,\Re z>0 \right )$$ $$\mathcal{J}=\left ( \ln\frac{z}{2a}-\gamma \right )K_0\left ( az \right )~~~,~~~\left ( a,\Re z>0 \right )$$ where $I_0(\cdot)$ is modified bessel function of the first kind, $\mathbf{L}_0(\cdot)$ is modified struve function, $G_{pq}^{mn}(\cdot)$ is meijer-G function and $K_0(\cdot)$ is bessel function of rhe second kind.
So, I tried to figure out how to get the answer.
My attempt: Let $x=z\tan t$, we have \begin{align*} \mathcal{I}&=2\int_{0}^{\frac{\pi }{2}}\sin\left ( az\tan t \right )\ln\left ( z\sec t \right )\sec t\, \mathrm{d}t\\ &=2\int_{0}^{\frac{\pi }{2}}\sin\left ( az\tan t \right )\ln\left ( \sec t \right )\sec t\, \mathrm{d}t+2\ln z\int_{0}^{\frac{\pi }{2}}\sin\left ( az\tan t \right )\sec t\, \mathrm{d}t \end{align*} Hence, define $$\mathcal{I}\left ( m \right )=\int_{0}^{\frac{\pi }{2}}\sin\left ( az\tan t \right )\sec^mt\, \mathrm{d}t$$ then using the taylor series of $\sin x$ we get \begin{align*} \mathcal{I}\left ( m \right )&=\sum_{k=0}^{\infty }\left ( -1 \right )^{k}\frac{\left ( az \right )^{2k+1}}{\left ( 2k+1 \right )!}\int_{0}^{\frac{\pi }{2}}\tan^{2k+1}t\sec^mt\, \mathrm{d}t \\ &=\sum_{k=0}^{\infty }\left ( -1 \right )^{k}\frac{\left ( az \right )^{2k+1}}{\left ( 2k+1 \right )!}\int_{0}^{\frac{\pi }{2}}\sin^{2k+1}t\cos^{-2k-m-1}t\, \mathrm{d}t \end{align*} By using the same way we get $$\begin{align*} \mathcal{J}\left ( m \right )&=\sum_{k=0}^{\infty }\left ( -1 \right )^{k}\frac{\left ( az \right )^{2k}}{\left ( 2k \right )!}\int_{0}^{\frac{\pi }{2}}\tan^{2k}t\sec^mt\, \mathrm{d}t \\ &=\sum_{k=0}^{\infty }\left ( -1 \right )^{k}\frac{\left ( az \right )^{2k}}{\left ( 2k \right )!}\int_{0}^{\frac{\pi }{2}}\sin^{2k}t\cos^{-2k-m}t\, \mathrm{d}t \end{align*}$$ But how to evaluate the last integral, it seems can't be expressed by Beta function.
If I'm doing the wrong way, is there another way to solve the problem.
Any help will be appreciated!