Derivation (magnetic field due to long straight wire)

The set up is cylindrically symmetric and there is no azimuthal current, so the magnetic field is azimuthal.

Apply Ampere's law to a circle $C$ of radius $r>R$ with $S$ a disc.

Then $$ \begin{align*} μ_0I = \oint_{C} \v B\cdot \d \v x = B_ϕ(r) \cdot 2πr \end{align*} $$ so $$ \begin{align*} B_ϕ(r) = \frac{μ_0 I}{2πr}. \end{align*} $$