Equations for the membrane potential