I need to take the derivative of the magnetic field from a magnetic dipole with respect to r for a project I'm working on:
B =[m[/0]/(4π) * (3rhat(μ dot rhat) - μ)/|r|^3
where rhat is the unit vector of the vector r (or r/|r|), |r| is the magnitude of the vector r, and μ is the magnetic...