# Gradient of magnetic field B

• I
The force on a magnetic dipole in a magnetic field is the dot product of the magnetic moment and the gradient of the field B, but gradients are operations done on scalar fields to produce vector fields. How does one calculate the gradient of a vector field if field gradients are only defined for scalar fields?