A conductor that is conducting current generates a magnetic field everywhere around it. This magnetic field exerts force on the compass's magnetic needle, causing the needle to deviate.
Definition of Maxwell's rule
A current-conducting conductor creates a magnetic field everywhere around it. The magnetic needle of the compass experiences force from this magnetic field, which causes the needle to veer.
Equation for deflection
We have so far established that the total flux of electric field out of a closed surface is just the total enclosed charge multiplied by 1/ε0, ∫→E⋅d→A=q/ε0. This is Maxwell's first equation. It represents completely covering the surface with a large number of tiny patches having areas d→A.
To learn more about magnetic field refer : https://brainly.com/question/24761394
#SPJ4