Vector potential in magnetostatics
We can always assume the Coulomb gauge $$ \begin{align*} ∇\cdot \v A = 0 \end{align*} $$ for the magnetic vector potential $\v A$ by making a gauge transformation $\v A = \tilde {\v A} + ∇χ$ with $χ$ the solution of the Poisson equation $-∇^2χ = ∇\cdot \tilde {\v A}$.
Then using the identity $∇\times (∇\times \v A) = ∇(∇\cdot \v A) - ∇^2 \v A$, (M4') becomes the Poisson equation $$ \begin{align*} -∇^2 \v A = μ_0 \v J. \end{align*} $$
The solution to the Poisson equation governing $\v A$ is (assuming $\v A \to \v 0$ as $|\v x|\to \infty$) $$ \begin{align*} \v A(\v x) = \frac{μ_0}{4π} \int_{\R^3} \frac{\v J(\v x')}{|\v x-\v x'|} \d^3 \v x', \end{align*} $$ which satisfies the Coulomb gauge condition (Derivation).
The magnetic field is given by the Biot-Savart law $$ \begin{align*} \v B(\v x) = \frac{μ_0}{4π} \int_{\R^3} \frac{\v J(\v x')\times (\v x - \v x')}{|\v x - \v x'|^3} \d^3 \v x'. \end{align*} $$