Where the integral sums over the wire length where vector is the vector line element with direction in the same sense as the current, is the magnetic constant, is the distance between the location of and the location where the magnetic field is calculated, and is a unit vector in the direction of.