So, we've got the vector of position of a point charge $q$
$\vec{r}_0(t)=(A\sin(\omega t),0,0)$
We can easily determine the charge and current density
$\rho=q\,\delta^3(\vec{r}-\vec{r}_0(t))$
$\vec{j}=(qA\omega\cos(\omega t)\,\delta^3(\vec{r}-\vec{r}_0(t)),0,0)$
Using Maxwell equation in potentials for Lorentz gauge
$\square\varphi = \frac{\rho}{\varepsilon_0}$
If all of my assumptions are right
$\varphi=\frac{q}{4\pi\varepsilon_0|\vec{r}-\vec{r}_0(t)|}$
Same for magnetic potential for x coordinate (for y and z it's obviously $A_y=A_z=0$)
$\square A_x = \mu_0 qA\omega\cos(\omega t)\,\delta^3(\vec{r}-\vec{r}_0(t))$
Can I do by the same logic?
$A_x=\frac{\mu_0 qA\omega\cos(\omega t)}{4\pi|\vec{r}-\vec{r}_0(t)|}$
If not, how do I define the field?