In repulsion type instrument the force of repulsion is approximately proportional to