I want to find the currents in blue, and also their directions.
I gave it a try and redrew the diagram like this. The arrows next to the currents represent the directions I assumed them to have at first.
My process is this:
KVL
V1 = R1 * I1;
R1 = 4ohm;
24 - V1 = 0 -> 24 = V1 -> 24 = 4 * I1;
I1 = 6A.
V3 = R3 * I3;
R3 = 10ohm;
8 - V3 = 0 -> 8 = V3 -> 8 = 10 * I3;
I3 = 0.8A.
V2 = -(R2 * I2); I set V2 as a negative value cause it's supposed to be a voltage drop from R2.
R2 = 2ohm;
V1 = R1 * I1;
8 + V2 - V1 = 0 -> (R2 * I2) = 8 - R1*I1 -> R2 * I2 = 8 - 24;
I2 = -8A.
With KCL I obtained the current I
Using the node right above R1 (in the second image) I obtained:
-I2 + I - I1 = 0 -> I = I1 + I2 = -2A
I understand that the negative sign tells that the currents actually go in the opposite direction I assumed.
The problem is that the book I have says that I = 14A and not -2A.
This difference of results happens because I'm setting V2 as a negative value (V2 = -R2 * I2 ). Cause if I set V2 as positive, then I get those 14A. But for other problems I've found I had to set the voltage drops (like V2), from resistors, as negative values to get the right answer. But in this case setting V2 as negative is giving a wrong answer.
My rule of thumb is that whenever the direction I assume, for the current when using KVL, tells me that a voltage source is causing a voltage rise (from - to +), then the voltage across any resistor must be negative. Thus if the signs of the voltage across the resistor are from + to -, (a voltage drop), then I include a negative sign next to the voltage (Vr) of the resistor, and thus the expression for Vr (resistance*current) must be positive. So that -Vr is negative.
The same for when the signs go from - to + for a resistor (according to the current direction I chose for KVL). This represents a voltage rise, and thus I include a + sign next to Vr. Thus the expression for Vr must be itself negative so that +Vr is negative.
But this is not working when I apply this to V2 from the first diagram.
Notice how in this case I have to set V0 as a negative value (V0 = -5i) because the answers are Vx = 10v and V0 = -5v. And the same happens for other problems. But I don't know why it doesn't work for the first diagram.