Step 1: Apply Kirchhoff's Current Law (KCL) at Node V1.
Assume currents leaving the node are positive.
The current through the 2Ω resistor to ground is 2V1−0.
The current through the 4Ω resistor to V2 is 4V1−V2.
The 5A current source is directed from V1 to V2, meaning 5A is leaving V1.
So, KCL at V1:
2V1+4V1−V2+5=0
Multiply the entire equation by 4 to eliminate denominators:
2V1+(V1−V2)+20=0
3V1−V2+20=0
Equation (1):
3V1−V2=−20
Step 2: Apply Kirchhoff's Current Law (KCL) at Node V2.
Assume currents leaving the node are positive.
The current through the 4Ω resistor to V1 is 4V2−V1.
The current through the 6Ω resistor to ground is 6V2−0.
The 5A current source is directed from V1 to V2, meaning 5A is entering V2. So, the current leaving V2 due to this source is −5A.
The 10A current source is directed upwards into V2, meaning 10A is entering V2. So, the current leaving V2 due to this source is −10A.
So, KCL at V2:
4V2−V1+6V2−5−10=0
4V2−V1+6V2−15=0
Multiply the entire equation by 12 (the least common multiple of 4 and 6) to eliminate denominators:
3(V2−V1)+2V2−180=0
3V2−3V1+2V2−180=0
−3V1+5V2−180=0
Equation (2):
−3V1+5V2=180
Step 3: Solve the system of linear equations.
We have two equations:
- 3V1−V2=−20
- −3V1+5V2=180
Add Equation (1) and Equation (2):
(3V1−V2)+(−3V1+5V2)=−20+180
4V2=160
V2=4160
V2=40V
Substitute the value of V2 into Equation (1):
3V1−40=−20
3V1=−20+40
3V1=20
V1=320V
The node voltages are:
V_1 = \frac{20{3} V}
V2=40 V