A long straight wire along the Z-axis carries a current I in the negative Z-direction. The magnetic vector field vecB at a point having coordinates (x,y) in the Z=0 plane is
Show Hint
Always determine direction of magnetic field using right-hand thumb rule before writing vector form.
Step 1: Magnetic field due to long straight wire:
B = (mu₀ I)/(2π r)
Step 2: Direction is given by right-hand thumb rule.
Since current is along negative z-axis, field circulates clockwise.
Step 3: Vector form:
B = (mu₀ I)/(2π(x²+y²))(yhati-xhatj)