To find field due to infinitely long straight wire

The magnetic field due to an infinitely long straight wire can be calculated using Ampere’s law, which states that the magnetic field around a closed loop is proportional to the current passing through the loop. The formula for the magnetic field due to an infinitely long straight wire is: B = (μ0I)/(2π*r) where B is…