I am trying to solve this integral in Mathematica $$ I=\int_{0}^{1} d x e^{iax} K_{0}\left(\sqrt{\left[q x(1-x)+m\right] b}\right) $$ where $a$, $b$, $m$, and $q$ are real positive constants.
I want to solve it in the limit for small argument of $K_0$ i.e.
$K_0(x) \rightarrow -\ln{\frac{x}{2}} +$ finite terms.
So $$ I=-\int_{0}^{1} d x e^{iax} \ln\left(\frac{1}{2}\sqrt{\left[q x(1-x)+m\right] b}\right) $$
What I should obtain is this $I\approx\frac{1}{2}\ln{\frac{4}{mb}}$ but what I obtain is some complex functions. I have tried to use PrincipalValue->True but it doesn't evaluated the integral. Any suggestions on how to fix it?
Edit: $K_0$ is a modified Bessel function of the second kind. I am just using this
Integrate[Exp[I*a*x]*Log[Sqrt[(b (m + q (1 - x) x))]/2], {x, 0, 1}]
Edit: Say I want to evaluate
Integrate[Cos[a*x]*Log[Sqrt[(b (m + q (1 - x) x))]/2], {x, 0, 1}]
instead for non-zero $a$, $b$, $m$, and $q$. Mathematica does not give an answer for this, any help?
q=0
? $\endgroup$a
, I don't see why the result will have a non-zero imaginary part. E.g.,Block[{a = 1, m = 1, b = 1, q = 1}, NIntegrate[Exp[I*a*x]*Log[Sqrt[(b (m + q (1 - x) x))]/2], {x, 0, 1}] ]
$\endgroup$