1) SIMPLE CASE
We have the following equation:
$\nabla \times \mathbf{A} = K_{0}(|\mathbf{r}|) \hat{z}$
where $K_{0}$ is a Modified Bessel Function of the Second Kind. What is $\mathbf{A}$ ? This case is very simple. In polar coordinates we have that
$\mathbf{A}(r, \varphi)= \varphi r K_{0}(|\mathbf{r}|) \hat{r}$
does the job, since $(\nabla \times \mathbf{A})_z = \frac{1}{r} \Big ( \frac{\partial(r A_{\varphi})}{\partial r} - \frac{\partial A_r}{\partial \varphi} \Big )$.
2) COMPLICATED CASE
We have the following equation:
$\nabla \times \mathbf{A} = (K_{0}(|\mathbf{r}-\mathbf{a}|)+K_{0}(|\mathbf{r}-\mathbf{b}|)) \hat{z}$.
Polar coordinates do not seem to facilitate the task. So probably Cartesian coordinates is the way to go. Therefore we have:
$\partial_x A_y - \partial_y A_x=K_0 \Big (\sqrt{(x-a_x)^2 + (y-a_y)^2} \Big )+K_0 \Big (\sqrt{(x-b_x)^2 + (y-b_y)^2} \Big)$.
Let's choose $A_x =0$, then we end up with
$\partial_x A_y =K_0 \Big (\sqrt{(x-a_x)^2 + (y-a_y)^2} \Big )+K_0 \Big (\sqrt{(x-b_x)^2 + (y-b_y)^2} \Big)$.
Integrating both sides we get
$A_y (x,y) = \int dx \; \Big ( K_0 \Big (\sqrt{(x-a_x)^2 + (y-a_y)^2} \Big )+K_0 \Big (\sqrt{(x-b_x)^2 + (y-b_y)^2} \Big) \Big ) +f(y)$,
where $f(y)$ is any function of $y$. I am not able to continue, any help please?
Thank you.