Problem:
An infinitely long wire, located on the z-axis, carries a current along the
-direction and produces the magnetic field
. The magnitude of the line integral
along a straight line from the point
to
is given by:
(A) (B)
(C) (D)
A straight infinitely long wire lies along the z-axis and carries a steady current in the +z-direction. This current creates a magnetic field
in the surrounding space. The magnetic field at a point in the xy-plane due to such a wire is tangential (circular around the wire) and its magnitude depends inversely on the radial distance
from the wire.
The problem asks to compute the magnitude of the line integral along a straight line path from point
to point
, both of which lie in the xy-plane. The integral represents the component of magnetic field along the path due to the wire.
You may also like to solve: An electron is moving around an infinite linear charge in a circular path of diameter . If linear charge density is
, then calculate the speed of an electron. (
)
Explanation:
The magnetic field due to an infinite straight current-carrying wire is given by:
where is the perpendicular distance from the wire, and
is the azimuthal direction (tangential to the circle centered on the wire). The field circles around the wire in planes perpendicular to it.
For a line integral , the result depends on how the path traverses the circular magnetic field lines. The wire lies on the z-axis, so the path from
to
is in the xy-plane, not enclosing the wire completely, but subtending some angle at the wire.
In this case, we need the angle subtended at the z-axis (the location of the wire) by the straight line joining the two points. This is the same as the angular sweep from vector
to
as seen from the origin.
Solution:
Step 1: Determine the angle subtended at the origin

From the diagram:
- The angle between the position vector to point
and the x-axis is
(or 30°).
- The angle between the position vector to point
and the x-axis is
(or 45°).
Since the total angle subtended is from clockwise to
, the net angular difference is:
Convert to common denominator:
Step 2: Use the line integral formula for magnetic field
Substitute :
Answer:
Final Answer: