# Write the Magnetic Field of a dipole in coordinate-free form?

 P: 2 You can $$\TeX{}$$-ify your posts. It helps a *lot.* Here's the coordinate-free form: $$\vec{B}_{dip}(\vec{r}) = \frac{\mu_0}{4 \pi r^3}[3(\vec{m} \cdot \hat{r})\hat{r} - \vec{m}]$$ where $$\vec{m}$$ is the dipole moment, right? (I've always used $$\vec{p}$$.) Vector potential $$\vec{A}$$ is $$\vec{A}_{dip}(\vec{r}) = \frac{\mu_0}{4 \pi r^2} (m \sin \theta)$$ Magnetic field $$\vec{B}$$ is $$\vec{B}_{dip}(\vec{r}) = \vec{\nabla} \times \vec{A} = \frac{\mu_0 m}{4 \pi r^3} (2 \cos \theta \hat{r} + \sin \theta \hat{\theta})$$ To get coordinate-free form, you just need to express $$\vec{m}$$ in spherical coordinates and manipulate the properties of dot products in that coordinate system. If you assume your dipole is at the origin and points in the $$+\hat{z}$$ direction, then in spherical it would be $$\vec{m} = m \cos \theta \hat{r} - m \sin \theta \hat{\theta}$$. Now use dot products of $$\vec{m}$$ with the necessary spherical unit vectors in order to eliminate those pesky sine and cosine functions.