
I will choose the bottom node as the reference node and assign node voltages VA, VB, VC, and VD to the remaining nodes.
Define vD (used to define the dependent current source) in terms of node voltages.
vD = VC - VB
Define if (used to define the dependent voltage source) in terms of node voltages.
if = VC / 40
Node B forms a supernode with the reference node due to the 20 V source (shown with a dotted outline):
VB = 20
Nodes A and D also form a supernode due to the dependent voltage source (shown with a dotted outline):
VA - VD = 35 if = 35 VC / 40
40 VA - 35 VC - 40 VD = 0 (Eq. 1)
KCL at supernode A-D:
Simplify and collect terms (LCD = 80)
- 4 VA + 40 VB - 40 VA + 20 VC - 20 VD - VD -250 VD = 0
- 4 VA + 40 (20) - 40 VA + 20 VC - 20 VD - VD -250 (VC - 20) = 0
- 44 VA - 230 VC - 21 VD = - 5800 (Eq. 2)
KCL at node C:
Simplify and collect terms (LCD = 40)
40 VB - 40 VC + 10 VD - 10 VC - VC = 0
40 (20) - 40 VC + 10 VD - 10 VC - VC = 0
- 51 VC + 10 VD = - 800 (Eq. 3)
Solving Equations 1 and 2 yields:
VA = 29.54 V
VB = 20 V
VC = 18.33 V
VD = 13.5 V
To find the power developed by the 20 V source, find the current leaving the + reference of that source. By KCL, this current is equal to the sum of the currents leaving node B through the 2 W and 1 W resistors. Thus the current up through the 20 V source is
Is = 10 - 14.77 + 20 - 18.33 = - 3.1 A
So power developed is
P = 20 Is = 20 (-3.1) = - 62 W
Thus the 20 V source is actually absorbing power.