

These two expressions are from two different laws.
∫B.dl= μo I
here, dl= line integral of the magnetic field.
This is from Amperes circuital law, which is for a closed circuit.
Whereas, dB= μo/4π.I dl sinΘ/r2
Is the expression from biot-savart law, here dl is current element.
