According to Ampere’s law, the magnetic field \( \vec{B} \) due to a current-carrying conductor can be derived using the following equation:
\[ \oint_C \vec{B} \cdot d\vec{l} = \mu_0 I \]
Where:
By symmetry, the magnetic field at every point on the loop is tangent to the circle, and the magnitude of \( \vec{B} \) is constant at all points on the loop. Hence, the line integral becomes:
\[ \oint_C \vec{B} \cdot d\vec{l} = B \oint_C dl = B (2 \pi r) \]
Using Ampere’s law:
\[ B (2 \pi r) = \mu_0 I \]
Solving for \( B \):
\[ B = \frac{\mu_0 I}{2 \pi r} \]
Final Answer: Thus, the magnetic field at a distance \( r \) from an infinitely long straight wire carrying a current \( I \) is:
\[ B = \frac{\mu_0 I}{2 \pi r} \]