" />
(a)Ampere's circuital Law states that the circulation of the resultant magnetic field along a closed, plane curve is equal to μ₀ times the total current crossing the area bounded by the curve. ∮B⋅dl = μ₀Ienclosed
(b)(i) Inside a solenoid, magnetic field is given by μ₀nI. In the given scenario, B = μ₀I(n₁ - n₂) as the currents are in the opposite direction. Direction of magnetic field is parallel to the axis of the solenoid and depends on the sign of n₁ - n₂.
(ii) Outside a solenoid, magnetic field is zero.