Kirchhoff's second law, also known as the Kirchhoff's voltage law (KVL). By Kirchhoff's voltage law the algebraic sum of all the EMF's and potential difference across each resistor is equal to zero it means, in the above circuit,
−I2R2−E2+E3+I3R1=0 ⇒I2R2+E2−E3−I3R1=0.
