| |
Field due to a straight wire carrying current
The direction of the field at P due to a current element is along , which is a vector normal to the page (figure on the left) and coming out of it.

We have,
where the plane of the figure is taken as the x-y plane and the direction of outward normal is parallel to z-axis. If be the distance of the oint P from the wire, |