Ideal Diode Equation Derivation