

Consider two short dipoles separated by a distance r. There are two possibilities. If the dipoles are parallel to each other.

As the force is positive, it is repulsive. if
the
force is attractive.
If the dipoles are on the same axis.
