# Homework Help: Nodal analysis problem

1. May 24, 2012

### asgerbj

I need to solve this circuit using nodal analysis (find the voltage in all nodes), but i need the actual equations used to solve it.
http://dl.dropbox.com/u/202411/p2/circuit328.png [Broken]
All supplied information is there.

What I've done is to create 2 supernodes, like this
http://dl.dropbox.com/u/202411/p2/circuit328-calc.png [Broken]

And write the following equations for the three nodes that i have left.
$\frac{V1}{2k}+\frac{V1-V2+6}{2k}= 9mA$
$\frac{V2}{1k}+ 9mA +\frac{V2+6-V1}{2k}+\frac{V2+6-V3}{1k}= 2mA$
$\frac{V3-V2+6}{1k}+\frac{V3}{1k}+\frac{V3+89}{1k}+2mA = 0$

When i try to solve these equations i get V1 = -5.8V, V2=-23V, V3=-40V
I tried to draw the circuit in LTSpice, and the result should be V1=2V, V2=-20V, V3=-35V

What did i do wrong? I've been trying to redo the circuit several times for more than 1½ hour now, but don't get the right answer.

Last edited by a moderator: May 6, 2017
2. May 24, 2012

### Staff: Mentor

It's a good idea to get into the habit of putting parentheses around the terms corresponding to supernode sub-nodes. That way mathematical operation ordering is maintained when you write your expressions. In your first node equation, for example, note that V1 - V2 + 6 is not the same as V1 - (V2 + 6)

3. May 24, 2012

### asgerbj

oh god... i can't believe i spend so much time on this.... .. thanks, that solved it :)