The formula with a minus (-) is for the electromotive force (EMF). Without a minus, it's for the voltage drop (or potential difference).
The voltage drop uses the convention used in electronics that the current goes from + to - (using the flow of positive charges --> holes), so it's measured from the positive terminal (the one with more potential) to the negative one (the one with less potential).
In my understanding, the electromotive force does not use this convention (else, why would it be the contrary of the voltage drop which uses the positive charges convention?) --> it uses the electrons flow (negative charges), so it's measured from negative to positive terminal.
By the way, EMF is present only when the component is a generator. It's not just the opposite of the voltage drop --> it's only mentioned (so exists only) when the component is actually creating itself a difference in potential of its both terminals (hence its name, electromotive force). If the component is like a resistor, there's actually no EMF, since it's not producing no difference in potential on its terminals by itself (it's being subject to a difference of potential created by some generator, which has the EMF, or it wouldn't generate any difference in potential).
Therefore, for your example
Formula without a minus:
\${v_L} = L\frac{{di}}{{dt}}\$
The derivative of the current is positive, since current is rising (derivative and current in the same direction), so \$v_L\$ will be positive. \$v_L\$ is voltage drop (or potential difference), so it's measured from + to -. If it's positive and the current is going from up to down, then the + will be up and the - will be down.
Formula with a minus:
\$\epsilon =-L\frac{di}{dt}\$
Imagine for a second that the minus is not there. Then,
\$\epsilon =L\frac{di}{dt}\$
Again, the derivative is positive. The electromitive force is measured from negative to positive and the current is going from up to down. So, if the result is positive, that means the EMF is measured on the same direction as the current. Therefore, up would be a - and down would be a + (because it's measured with the flow of electrons, not holes).
But getting back to the actual formula with a minus, then what I just said is inverted --> + up and - down. And the idea still remains: the efm is measured from - to + (so down to up) and the voltage drop from + to - (so up to down, as in your drawing).
2 notes:
- In the first case, the inductor would be working as a load (which it partially is) - being energized. So the current is trying to go from the + to the - from inside the inductor, like with all passive components, like a resistor.
- In the second case, the inductor would be working as a generator (which it partially is) --> so the current is trying to go from the + to the - by outside of the inductor, like with all generators.
This doesn't happen in a resistor. There's no EMF generated on it (it doesn't create by itself a difference in potential on its terminals).
Related to these notes (even though I believe off-topic to the question): https://physics.stackexchange.com/questions/184541/if-induced-voltage-back-emf-is-equal-and-opposite-to-applied-voltage-what-dri.
There are already answers here and one was accepted, but I thought I'd write it, since I've been trying to understand how inductors and capacitors store energy (I'm a student), and I thought maybe this approach (hopefully correct) might help understanding as it did with me. If anything here is wrong please someone tell me.