a) Find the branch currents
ia through
ie.

Nodal Analysis:
Mesh Analysis:
Verdict:
Since the equations are not to be solved manually but with a calculator or computer, mesh analysis would probably be my choice despite the extra equation to avoid the additional algebra and the slight difficulty with id, but it is a close call. If I had to solve the equations manually, I would probably choose nodal analysis.
I have worked this problem by both methods. Look in the homework index under mesh analysis for the mesh solution or click here.
ib = (V2 - V1) / 5
As mentioned above, we will have to use KCL to determine an expression for id. Note that trying to write KCL at node 3 would be difficult since there is no easy way to express the current through the dependent voltage source in terms of the node voltages, thus I will write KCL at the reference node. This might seem to violate the rule about writing KCL at the reference node, but we are not trying to write our final set of equations, but merely defining a parameter used by a dependent source. It is, by the way, possible to write KCL at node 3 for this purpose; can you determine how?
id = 2 ib - V1 / 40 + 19
inserting ib from above gives
id = 2 (V2 - V1) / 5 - V1 / 40 + 19Cleaning this up a bit for later:
multiply by 40
40 id = 16 (V2 - V1) - V1 + 760
collect terms
40 id = 16 V2 - 17 V1 + 760
solve for idid = (16 V2 - 17 V1) / 40 + 19
Both voltage sources
directly connect two essential nodes, so express their values
in terms of the node volatges and form supernodes.
Independent source:
V3 = - 240 (equation 1)
Dependent source:
4 id = V3 - V1
Substituting for id from above
4 ( (16 V2 - 17 V1) / 40 + 19) = V3 - V1
Multiplying through by 4 on the left
(16 V2 - 17 V1) / 10 + 76 = V3 - V1
Multiplying through by 10
16 V2 - 17 V1) + 760 = 10 V3 - 10 V1
Collecting terms
7 V1 - 16 V2) + 10 V3 = 760
Substituting for V3 from above
7 V1 - 16 V2) - 2400 = 7607 V1 - 16 V2 = 3160 (equation 2)
Marking the supernode on the circuit diagram

Summing the currents into Node 2:
2 ib + (V1 - V2) / 5 + (V3 - V2) / 10 = 0
Substituting for ib from above
2 ((V2 - V1) / 5) + (V1 - V2) / 5 + (V3 - V2) / 10 = 0
Multiplying through by 10
4 (V2 - V1) + 2 (V1 - V2)+ V3 - V2 = 0
Collecting terms
- 2 V1 + V2 + V3 = 0
Substituting for V3 from above
- 2 V1 + V2 = 240 (equation 3)
V1 = - 280
V2 = - 320
V3 = - 240
ia = V1 / 40 = - 280 / 40
ia = - 7 Aib = (V2 - V1) / 5 = (- 320 + 280) / 5
ib = - 8 Aic = (V3 - V2) / 10 = (- 240 + 320)
ic = 8 Aid = (16 V2 - 17 V1) / 40 + 19 = (16 (-320) - 17 (-280)) / 40 + 19
id = 10 Aie = ic + id = 8 + 10
id = 18 A
Also, I calculated total power on the mesh analysis solution which also checked.