Discovered the link between electricity and magnetism. A current-carrying wire deflects a magnetic compass needle.
Conclusion: Moving charges (current) produce a magnetic field in the surrounding space.
Direction given by Fleming's Left Hand Rule or Right Hand Cross Product.
Force in presence of both E and B fields:
$$ \vec{F} = q\vec{E} + q(\vec{v} \times \vec{B}) $$
A wire carrying current $I$ in a magnetic field experiences a force:
$$ \vec{F} = I(\vec{l} \times \vec{B}) $$ $$ F = IlB \sin\theta $$
Magnetic field due to a small current element $Id\vec{l}$:
$$ d\vec{B} = \frac{\mu_0}{4\pi} \frac{I(d\vec{l} \times \hat{r})}{r^2} $$
Magnetic field on the axis of a circular loop of radius $R$ at distance $x$:
$$ B = \frac{\mu_0 I R^2}{2(x^2 + R^2)^{3/2}} $$
At center ($x=0$): $B = \frac{\mu_0 I}{2R}$
Line integral of magnetic field around a closed loop equals $\mu_0$ times total current enclosed.
$$ \oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enclosed} $$
Inside a long straight solenoid:
$$ B = \mu_0 n I $$where $n$ = number of turns per unit length.
Force per unit length between two parallel wires separated by $d$:
$$ \frac{F}{l} = \frac{\mu_0 I_1 I_2}{2\pi d} $$
A current loop in a uniform magnetic field experiences a torque:
$$ \vec{\tau} = \vec{m} \times \vec{B} $$$\vec{m} = NIA$ (Magnetic Dipole Moment)
Current loop in radial magnetic field experiences deflecting torque: $NIAB$. Restoring torque: $k\phi$.
$$ \phi = \left(\frac{NAB}{k}\right) I $$