Example 34.56. Circuit With Two Voltage Sources.
Find current through each resistor in the circuit in Figure 34.57. The values are: \(R_1 = 10\ \Omega\text{,}\) \(R_2 = 20\ \Omega\text{,}\) \(R_1 = 30\ \Omega\text{,}\) \(V_1 = 10\ \text{V}\text{,}\) \(V_2 = 15\ \text{V}\text{.}\)

Answer.
\(I_1=\frac{1}{22}\, \text{ A},\ I_2=\frac{6}{22}\, \text{ A},\ I_3=\frac{7}{22}\, \text{ A}.\)
Solution.
First we pick currents in each branch and label the resistors with \(+\) and \(-\) across each resistor based on our choice of direction of current as shown in Figure 34.58. Note that, at this stage I do not know the directions of the currents, but I must pick these directions based on intuition or arbitrarily.
The directions are then used to assign \(+\) and \(-\) across each resistor. These will be used to assign pick up voltage or drop off voltage in the Kirkchoof’s loop equations. We also recognize nodes where potential values are unique. There are four such nodes, labeled, \(a\text{,}\) \(b\text{,}\) \(c\text{,}\) and \(d\text{.}\)

There are two junctions in the diagram where currents meets. We get the same KCL equation from them.
\begin{equation}
I_1 + I_2 - I_3 = 0.\tag{34.39}
\end{equation}
This gives us one equation in three unknowns. Therefore, we need to generate two other equations, which will come from KVL applied to two loops in the circuit.
Let’s apply KVL in loop \(a-b-c-a\text{.}\)
In the \(a-b\) step, we are going in the same direction in the math loop as the current in the resistor. Therefore, the potential will drop by \(I_3R_3\text{,}\) which is evident in going from \(+\text{ to }-\) of the element. Then, in step \(b-c\text{,}\) we go from \(-\text{ to }+\text{,}\) which will mean increase of potential by \(V_1\text{.}\)

Finally, in step \(c-a\text{,}\) we go from \(+\text{ to }-\text{,}\) therefore, there will be a drop of potential of magnitude \(I_1R_1\text{.}\) We get
\begin{equation*}
-I_3R_3 + V_1 - I_1R_1 = 0.
\end{equation*}
Using the numerical values we get
\begin{equation}
-30 I_3 + 10 - 10 I_1 = 0.\tag{34.40}
\end{equation}
Finally, we apply KVL to the outer loop \(a-d-b-c-a\text{.}\)
In step \(a-d\) we will have increase of \(I_2R_2\) since, in the loop, we are going against the direction of the current in the resistor, or equivalently, we are going from \(-\text{ to }+\) of the assigned signs to the resistor. In step \(a-d\text{,}\) the potential drops by \(V_2\text{.}\) In step \(b-c\text{,}\) potential goes up by \(V_1\) and in step \(c-a\text{,}\) potential drops by \(I_1R_1\text{.}\)

Therefore,
\begin{equation*}
+I_2R_2 -V_2 + V_1 - I_1R_1 = 0.
\end{equation*}
Using the numerical values we get
\begin{equation}
+20 I_2 -15 + 10 - 10 I_1 = 0.\tag{34.41}
\end{equation}
You can solve Eqs. (34.39), (34.40), and (34.41) by method of elimination or some other method you are more familiar with. It is very common to make mistakes in these calculations, so, you should pluc back your answer into these equations to check your answer. I used the command “Solve x+y=z, 10x+30z=10, 10x -20y=-5” at Wolfram Alpha website. My answers are
1
\begin{equation*}
I_1=\frac{1}{22}\, \text{ A},\ I_2=\frac{6}{22}\, \text{ A},\ I_3=\frac{7}{22}\, \text{ A}.
\end{equation*}
Since I got all of these current magnitude positive, my original directions were correct. If I had got any of them negative, it would tell me that the direction of the current I picked in the figure above should have been the oposite direction.