Inductor Current Equation
It is used to connect a diode in parallel to the inductor.

It is needed since when the transistor is off all the energy accumulated by the inductor has to be dissipated by the equivalent capacitor of the diode.

Check the link below for more informations:

https://en.wikipedia.org/wiki/Flyback_diode