First, we need to find the magnetic field created by the infinite wire at a distance x from it. We can use Ampere's Law for this purpose. The magnetic field B at a distance x from an infinite wire carrying current I is given by:
$$B = \frac{\mu_0 I}{2 \pi
Show more…