take an example:
now,from this diagram,by applying kirchoff's law, -e + iR + Ldi/dt=0( i added the losses and
subtracted the gains) here current should be entering the inductor at the point having -ve
sign,as it has emf source property( current flows from -ve to +ve inside the inductor).
thus -(-Ldi/dt) is used. hope, now u cn analyse other cases also