Given the potential $$ \vec{A}=\frac{\mu_{0}}{4 \pi} \int_{V}^{\prime} \frac{\vec{J}\left(r^{\prime}\right)}{R} d v^{\prime} $$ where $\vec{J}$ is the stationary current density vector. I want to show that $\vec{\nabla} \cdot \vec{A}= 0$. I already did this integrating by parts, but the author gave the following solution which i can't follow:
$$ \require{cancel} \begin{aligned} \vec{\nabla} \cdot \vec{A} &=\vec{\nabla} \cdot\left[\frac{\mu_{0}}{4 \pi} \int_{V}^{\prime} \frac{\vec{J}\left(r^{\prime}\right)}{R} d v^{\prime}\right] \\ &=\frac{\mu_{0}}{4 \pi} \int_{V}^{\prime} \vec{\nabla} \cdot\left(\frac{\vec{J}\left(r^{\prime}\right)}{R}\right) d v^{\prime} \\ &=\frac{\mu_{0}}{4 \pi} \int_{v}^{\prime} \vec{J} \cdot\left[\vec{\nabla}\left(\frac{1}{R}\right)\right]+\frac{1}{R}\cancelto{0}{(\vec{\nabla} \cdot \vec{J})} d v \\ &=\frac{\mu_{0}}{4 \pi} \int_{V}^{\prime} \cancelto{0}{\vec{J}\left(r^{\prime}\right) \cdot \vec{r}} d v \\ \vec{\nabla}\cdot \vec{A} &=0 \end{aligned} $$
The 4th line is confusing me. Why do we have $\cancelto{0}{\vec{J}\left(r^{\prime}\right) \cdot \vec{r}}$? Its like the author is saying the density current vector is always ortoghonal to the position vector which is not necessarily true. I am not sure if that expression is zero because a mathematical reason or a physical reason.
Also, I think there is a missing term $\left ( \dfrac{-1}{R^2} \right) $ in the integrand of the 4th line.
References:
- Wangsness, Electromagnetic Fields, Chap 16.