explain ionic basis membrane potential its relationship ionic equilibrium potential and nern

Explain the ionic basis of the membrane potential, its relationship to ionic equilibrium potential and the Nernst equation