Cooking on induction works with magnetism. The cooktop contains coils, which generate a magnetic field the moment a current passes through them. The magnetic field causes an eddy current to flow through the pan. The resistance of the bottom causes the pan to heat up. This happens very quickly, which takes some getting used to when you switch to induction.