
simulate this circuit – Schematic created using CircuitLab
In my book the KVL for the above circuit is written as: Vss+Ri+vD=0. I really don't understand why all the signs are positive. I would go around the loop and write Vss-Ri-Vout=0 or Vss-Ri+vD=0.

