Main content

## Electrical engineering

### Course: Electrical engineering > Unit 2

Lesson 3: DC circuit analysis- Circuit analysis overview
- Kirchhoff's current law
- Kirchhoff's voltage law
- Kirchhoff's laws
- Labeling voltages
- Application of the fundamental laws (setup)
- Application of the fundamental laws (solve)
- Application of the fundamental laws
- Node voltage method (steps 1 to 4)
- Node voltage method (step 5)
- Node voltage method
- Mesh current method (steps 1 to 3)
- Mesh current method (step 4)
- Mesh current method
- Loop current method
- Number of required equations
- Linearity
- Superposition

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Node voltage method

The Node Voltage Method solves circuits with the minimum number of KCL equations. Written by Willy McAllister.

The Node Voltage Method is an organized methods of analyzing a circuit. The Node Voltage Method is based on Kirchhoff's Current Law. This technique is embedded inside the popular circuit simulator, start text, S, P, I, C, E, end text.

What is the circuit analysis challenge? Solving any circuit means creating and solving 2, E independent equations, where E is the number of elements (components and sources). Half of the equations come from the individual element laws (like Ohm's Law), and the other half come from the connections between elements.

No matter what procedure we use to solve the circuit, there is no getting around the requirement to solve 2, E equations. Even for simple circuits, managing 2, E equations can be a lot of work. But, there are ways to organize the effort to make it very efficient. The Node Voltage Method is one of two very efficient procedures we have for solving circuits. (The other one is the Mesh Current Method.)

The Node Voltage Method is not new science. It processes the same amount of information contained in 2, E equations, but it is quite clever and efficient in how it organizes that information.

We will demonstrate the Node Voltage Method with the same circuit we solved using the fundamental laws:

## Definition: node voltage

We need to define a new term:

*node voltage*. Up to now, we've talked about the*element voltage*that appears across the terminals of a single element (also called a*branch voltage*). When we use the term*node voltage*, we are referring to the potential difference between two nodes of a circuit.We select one of the nodes in our circuit to be the

*reference node*. All the other node voltages are measured with respect to this one reference node. If node start color #1fab54, c, end color #1fab54 is assigned as the reference node, we establish two node voltages at nodes start color #1fab54, a, end color #1fab54 and start color #1fab54, b, end color #1fab54.The reference node is almost always called the

*ground node*, and it gets a ground symbol in the schematic, as shown above. The potential of the ground node is defined to be 0, start text, V, end text. The potentials of all the other nodes are measured relative to ground.## Node Voltage Method

The Node Voltage Method breaks down circuit analysis into this sequence of steps,

- Assign a reference node (ground).
- Assign node voltage names to the remaining nodes.
- Solve the easy nodes first, the ones with a voltage source connected to the reference node.
- Write Kirchhoff's Current Law for each node. Do Ohm's Law in your head.
- Solve the resulting system of equations for all node voltages.
- Solve for any currents you want to know using Ohm's Law.

### Assign a reference node and node voltages

We already did this above, but let's do it again. Our example circuit has three nodes, start color #1fab54, a, end color #1fab54, start color #1fab54, b, end color #1fab54, and start color #1fab54, c, end color #1fab54, so N, equals, 3. Node start color #1fab54, c, end color #1fab54 has a lot of connections, 4, and it connects directly to both sources. This makes it a good candidate to play the role of reference node. Node start color #1fab54, c, end color #1fab54 has been marked with the ground symbol to let everyone know our choice for reference node.

We also call out N, minus, 1, equals, 2 node voltages on the schematic, labeled in orange as v, start subscript, a, end subscript and v, start subscript, b, end subscript.

(There is an obvious opportunity here to simplify the two parallel resistors, 6, \Omega with 5, \Omega. We will not do that, because we want to study the Node Voltage Method procedure.)

### Node voltages control the current arrow

Notice something missing from the schematic. There is no orange label on the voltage across the 20, \Omega resistor. When we need to know that voltage, we express it in terms of the node voltages.

v, start subscript, start text, R, end text, end subscript, equals, v, start subscript, a, end subscript, minus, v, start subscript, b, end subscript or
v, start subscript, start text, R, end text, end subscript, equals, v, start subscript, b, end subscript, minus, v, start subscript, a, end subscript

#### First important Node Voltage skill - control the current arrow

The node voltages control the direction of the current arrow!

We can express the voltage across the 20, \Omega resistor as the difference between the two node voltages. This can be done two ways, with either v, start subscript, a, end subscript or v, start subscript, b, end subscript in the first position in the voltage difference equation. The first term in the equation is the one we consider the more positive of the two. Since we use the sign convention for passive components, the choice we make for voltage polarity determines the direction of the current arrow. The current arrow points

*into*the positive sign on the resistor voltage.Above left, v, start subscript, a, end subscript is the more positive voltage compared to v, start subscript, b, end subscript. The orange arrow representing v, start subscript, start text, R, end text, end subscript points in the direction of node start color #1fab54, a, end color #1fab54, and the current arrow points into the resistor from left to right.

Above right, v, start subscript, b, end subscript is now defined as the more positive voltage compared to v, start subscript, a, end subscript. The orange arrow representing v, start subscript, start text, R, end text, end subscript points towards node start color #1fab54, b, end color #1fab54, and the current arrow points into the positive end of the resistor.

We are going to use our new skill immediately, to control the direction of the current arrow in the first term of the KCL equation coming up next.

### Solve the easy nodes

The voltage v, start subscript, a, end subscript is easy to figure out. Node start color #1fab54, a, end color #1fab54 connects to a voltage source that connects to reference node start color #1fab54, c, end color #1fab54. That makes it an easy node. The voltage at node start color #1fab54, a, end color #1fab54 is v, start subscript, a, end subscript, equals, 140, start text, V, end text.

### Kirchhoff's Current Law at the remaining node

#### Second important Node Voltage skill - scribble on the schematic

The challenging part of circuit analysis is getting the signs right. Scribble on the schematic all you want. Drawing voltage signs and current arrows helps you get the signs in the KCL equation correct.

##### Third important Node Voltage skill - do Ohm's Law in your head as you write KCL

As you write each term in the KCL equation, do Ohm's Law in your head and immediately write the current in terms of node voltages divided by resistance.

We now write a KCL equation for the remaining unsolved node, start color #0d923f, b, end color #0d923f. Node voltage v, start subscript, b, end subscript is the independent variable.

The current (blue arrow) flowing

*into*node start color #0d923f, b, end color #0d923f from the 20, \Omega resistor can be written as plus, start fraction, left parenthesis, 140, minus, v, start subscript, b, end subscript, right parenthesis, divided by, 20, end fraction.The current in the 6, \Omega and 5, \Omega resistors instantly goes into the equation as minus, start fraction, v, start subscript, b, end subscript, divided by, 6, end fraction and minus, start fraction, v, start subscript, b, end subscript, divided by, 5, end fraction.

We have just one node to deal with, node start color #0d923f, b, end color #0d923f.
KCL says the sum of the currents flowing

*into*node start color #0d923f, b, end color #0d923f, equals, 0.This is pretty cool. Without too much effort, we have one equation with one unknown. When we did this in a previous article using just the fundamental laws, we had to manage 10 equations with 10 unknowns.

### Find the node voltages

Our system of equations happens to be just one equation. Let's solve it to find the node voltage.

### Solve for unknown currents using Ohm's Law

Now we have both node voltages, and we can solve for all the unknown currents using Ohm's Law.

Ta daaa! Done. The circuit is analyzed.

## Steps in the Node Voltage Method

- Assign a reference node (ground).
- Assign node voltage names to the remaining nodes.
- Solve the easy nodes first, the ones with a voltage source connected to the reference node.
- Write Kirchhoff's Current Law for each node. Do Ohm's Law in your head.
- Solve the resulting system of equations for all node voltages.
- Solve for any currents you want to know using Ohm's Law.

### Reflection: Is the Node Voltage Method magic?

The Node Voltage Method seems like a lot less work than creating, managing, and solving a system of 2, E independent equations with 2, E unknown voltages and currents. Is the Node Voltage Method magic?

No, there is no magic. The Node Voltage Method is simply a cleverly organized way to approach the same 2, E equations. The main innovations are,

- We convinced ourselves we can do Ohm's Law in our heads. We did this while writing the KCL equations. And as we finished up, we used Ohm's Law again to find element currents, which didn't seem like much of a chore. Telling ourselves Ohm's Law is simple makes half of the independent equations seem like not such a big deal.
- Using the concept of
*node voltage*instead of element voltage is a brilliant move that basically annotates the KVL equations right on the schematic, so we don't have to write KVL equations. - We recognize that a few node voltages have trivial solutions, the ones connected to a voltage source whose other terminal is ground. This knocks out one or two equations.
- What remains is the few KCL equations at the non-trivial nodes.

#### How did the Node Voltage Method get the KVL equations to "go away"?

With the Node Voltage Method, we don't even bother to write down the KVL equations. Let's write them anyway and see why.

Our circuit has three meshes, in the left, middle, and right 'windows' of the schematic.

KVL for the left mesh:

This left mesh equation really illustrates the point of node voltages. We express the voltage across the 20, \Omega resistor in terms of node voltages instead of its own element voltage. With this notation, the equation collapses to 0, equals, 0.

KVL for the middle mesh:

KVL for the right mesh:

All three mesh equations reduce to 0, equals, 0 and basically drop out of the procedure. This is what your textbook means if it says something like, "With the Node Voltage Method, the KVL equations are written implicitly on the schematic."

## Guided example

**Solve this circuit using the Node Voltage Method.**

If you want to work this problem on your own, go for it!. Copy this schematic and work through the steps of the Node Voltage Method listed above. Even if you don't intend to carry the computation all the way through, I encourage you to do the steps up to writing KCL. That will really help you understand the Node Voltage Method.

**Assign a reference node.**

**Assign node voltage names to the remaining nodes.**

**Solve the easy nodes first.**

**Write Kirchhoff's Current Law for each node. Do Ohm's Law in your head.**

**Solve the resulting system of equations for all node voltages.**

**Solve for any currents you want to know using Ohm's Law.**

## A twist - floating voltage source

Sometimes you come across a circuit where a voltage source does not have either of its terminals connected to the ground node. We say the voltage source is

*floating*. A floating source is a problem for the Node Voltage Method, but it is not too big of a challenge.In this circuit, battery start text, V, end text, start subscript, 2, end subscript is floating. Let's use the Node Voltage Method and see what happens.

- The reference node has been selected and marked with the ground symbol.
- The other three nodes have been named and assigned node voltages, v, start subscript, a, end subscript, v, start subscript, b, end subscript and v, start subscript, c, end subscript.
- The first analysis step is to solve the easy node, v, start subscript, a, end subscript. Since this node is connected to a voltage source that goes to ground, we immediately know v, start subscript, a, end subscript, equals, start text, V, end text, start subscript, 1, end subscript. One node down, two to go.

Next, let's write a KCL equation at node b,

Oops, what should we put in for the current in the floating battery, i, start subscript, start text, V, end text, 2, end subscript? The defining equation for the battery does not talk about current. Its defining equation is v, equals, start text, V, end text, start subscript, 2, end subscript, and there is no i term involved. Batteries don't tell us what their current is. That's up to the rest of the circuit. So what do we write for this term in the KVL equation if we don't know i in the battery?

At this point we break away from the standard script for Node Voltage Method, and resort to our own cleverness. It is okay to do this. Remember the Node Voltage script nothing more than an efficient way to create and solve simultaneous equations. The floating battery is giving us a little bit of trouble, but we have not forgotten the point is to create a set of independent equations.

Looking at the circuit, we can make two observations,

- The voltage at node c has a rigid relationship to the voltage at node b. Namely, v, start subscript, c, end subscript, equals, v, start subscript, b, end subscript, plus, start text, V, end text, start subscript, 2, end subscript. We can add this to our system of equations, and it makes up for not knowing the current in battery start text, V, end text, start subscript, 2, end subscript.
- We also see that the current in battery start text, V, end text, start subscript, 2, end subscript is the same as the current in resistor start text, R, end text, 1.

We can express the battery current in the Node Voltage style as start fraction, start text, V, end text, start subscript, 1, end subscript, minus, v, start subscript, c, end subscript, divided by, start text, R, end text, 1, end fraction.

Even better, we can write the battery current in terms of v, start subscript, b, end subscript as start fraction, start text, V, end text, start subscript, 1, end subscript, minus, left parenthesis, v, start subscript, b, end subscript, plus, start text, V, end text, start subscript, 2, end subscript, right parenthesis, divided by, start text, R, end text, 1, end fraction.

Now we can complete the KCL equation at node b.

This equation is a little more complicated than usual, but it is still a solvable one equation in one unknown, v, start subscript, b, end subscript.

Once we solve for v, start subscript, b, end subscript, we use our extra equation to immediately get v, start subscript, c, end subscript.

Done! We have all three node voltages. If you want to find currents, proceed with Ohm's Law as we did earlier.

The floating voltage source is a favorite for teachers to put on tests, to see how you respond to an unexpected circuit configuration. We got through the difficulty by being observant and remembering that it is alright to add an extra equation to the system if needed.

### Supernode

We used the rigid relationship between the two nodes of the floating battery to generate a term to put in the KVL equation, plus an extra equation. Some textbooks call this a

*supernode*. In the preceding discussion, we could have used that word, but we just resorted to our creativity to work through the puzzle.## Node Voltage Method summary

The Node Voltage Method is one of two well-ordered methods of solving a circuit. This technique is embedded inside the popular circuit simulator, start text, S, P, I, C, E, end text. The sequence of steps can be summarized as,

- Assign a reference node (ground).
- Assign node voltage names to the remaining nodes.
- Solve the easy nodes first, the ones with a voltage source connected to the reference node.
- Write Kirchhoff's Current Law for each node. Do Ohm's Law in your head.
- Solve the resulting system of equations for all node voltages.
- Solve for any currents you want to know using Ohm's Law.

If the circuit includes a floating source, add extra equations to account for otherwise missing current or voltage variables.

## Want to join the conversation?

- If super node could have been explained a little bit more, it would be really helpful!!

I didn't get that part clearly.(10 votes)- Hello Mahbuba,

The supernode is a construct we use to simplify the circuit analysis. We could make a supernode anywhere we choose but we usually do so around a floating voltage source when using nodal analysis. When we do this so we don't have to calculate the current flow through the voltage source...

For any circle we then evoke KCL and state that the sum of the currents equals zero. For example, if there are 7 wires penetrating the surface of the circle then:

sum of currents = 0 or we could say currents in = currents out

Regards,

APD(0 votes)

- In the Vb node equation of the floating voltage example, Why the current through the battery is positive even though the current will be entering to the node ?(6 votes)
- All the current that's entering to the node is positive and all the current going out the node have a - sign. As the current in R1 and R2 is entering to the node and the current in R3 is going out of the node so: Ir1 + Ir2=Ir3 or Ir2 - Ir3 +Ir1=0. By the Ohm's law we can write this equation in terms of V, then we have: (V1−vb)/R2 − vb/R3 + (V1−(vb+V2))/R1 = 0(1 vote)

- If current flows from higher(+) terminal to lower (-)terminal, then how come the direction of current in upper mesh (mesh with floating voltage source) is in anticlockwise direction? How does it satisfy the current flow from higher to lower potential concept?(4 votes)
- When you assign the direction of current arrows at the beginning of a problem (before you know the actual current directions), you can choose either direction. When you do this, you are counting on the subsequent analysis steps to produce the correct sign of the current by the time you get to the end. I did not assign resistor values in the Floating Voltage Source circuit, but if I did the current will probably end up with a negative sign. That means it is actually flowing in the opposite direction of the arrow. Given my confidence in the methods of analysis, I'm not going to worry at the beginning if I've assigned the current arrows "right". It all comes out correct at the end.(4 votes)

- In the guided example under Write KCL for each node, for the 10 Ohm resistor while considering Node B you pick voltage as (Vc - Vb) and for the same resistor while considering node C you pick voltage as (Vb - Vc). How does that not cause a discrepancy in calculations? Shouldn't the voltage through the resistor be the same regardless of which node is in question? And had I used the current arrows in the same direction for either side how would've that affected the equations?(5 votes)
- Hello Yash,

I have a challenge for you. Please solve this problem two different ways:

1) Assume all currents leave a node e.g.,

0 = (B-A)/25 + (B-0)/50 + (B-C)/10

2) Solve the problem with all currents entering a node.

If you do this very carefully you will find that it does not matter! It's all about KCL: 0 = Σ currents.

My recommendation is to keep thing as simple as possible. Be consistent and assume every current is leaving the node.

Please let us know if it worked. Also, leave a comment below if you get stuck.

Regards,

APD(1 vote)

- Stupid questionI am sure, but why do you multiply the first equation (node b) by 15/10 to get rid of Vc?(2 votes)
- I'm able to find where in the article you are seeing this. Perhaps give me a nearby text string to help locate the equation.(2 votes)

- Can someone please explain me the equations in
**Floating voltage**source problem:

I understand that in the**node b**according to**KCL**:

i(r2) + i(r3) + i(v2) = 0*as we don't know the signs of our currents yet*

but in the next equation shouldn't it be as follows:

- the current from R3 enters**node b**thus (+)ve sign

- the current from R2 enters**node b**thus (+)ve sign

- the current*leaves***node b**into V2 and into**node c**thus

(-)ve sign so the equations should be:

(Va-Vb)/R2 + Vb/R3 - i(V2) = 0

At the moment I find it a bit confusing and inconsistent how the directions of currents are determined. I just don't understand where I get it wrong.

Why is it we treat current i(r3) as leaving the**node b**(thus -Vb/R3)? It leaves the**reference node**, goes through R3 and enters**node b**, doesn't it?

P.S. Is there some kind of a rule that states that a current will**leave**a*node*and travel into a*reference node*if these nodes are linked together through an*element*(resistor R3 in this problem)?

Then why doesn't current travel into*V2*and into**node C**? In other words - current travels from**node a**into**node b**through*R2*and then splits into two currents: one goes from**node b**into**reference node**and another current travels into*V2*and then into**node c**(if it makes sense)? hence giving us*Vc = Vb + V2*

Thank you.(1 vote) - In general I thought I understood the node method but then I was looking at the text book Agarwal and Lang 2005 Foundations of Analog and Digital, Figure 3.41 where they show this example. I drew it below. There is just a current source.

ei----2ohm-------

| |

1ohm I ^ 1 amp

| |

| |

-----------------

_|_

There is a statement in the text:

" Then, since the 1-A current flows through each of the resistors, the voltage across the 1-ohm resistor is equal to ei. In other words ei = 1amp * 1ohm = 1"

That statement confuses me. If the current flows through each resistor, then ei is also equal to 2*1 isn't it?

Can't I use the node method for this circuit? With the node method, (I always assume the current flows away from the node, and the sign usually works itself out) I get:

ei/1 + ei/2 - 1 = 0

3/2 * ei = 1 => ei = ⅔ v, which of course is wrong, but I'm not sure why.

I am missing something, there is something I am not intuitively seeing. How would you write the node equation for this trivial circuit.(2 votes)- Lucky for me I have this exact text. The circuit in words is a single loop, with 1ohm on the left side, 2ohm across the top, and a 1A current source pointing up on the right side. Node voltage "ei" is the upper left corner, between the two resistors. The bottom edge of the circuit is ground.

Finding voltage ei is actually very easy. The current everywhere in the loop is 1A. The 1ohm resistor is connected between ei and ground. It has 1A flowing through it. Therefore the voltage at ei is 1V.

You want to apply Kirchhoff's Current Law at node ei, but you didn't get it quite right.

The currents flowing**out**of node ea are

- Down through the 1ohm resistor = 1A.

- Right through the 2ohm resistor = -1A.

The KCL equation at node ea is

+1A + (-1A) = 0

It is a common error to use the current of the current source (1A) as the voltage across the current source (which is not 1V). You don't know the voltage across a current source until you consider everything connected to it.

If you want to draw schematics, try this... https://spinningnumbers.org/circuit-sandbox/index.html

Draw what you want. Click on the link icon and copy/paste a text version of the circuit. Try out this huge URL,

https://spinningnumbers.org/circuit-sandbox/index.html?value=%5B%5B%22i%22%2C%5B256%2C128%2C2%5D%2C%7B%22value%22%3A%22dc(1)%22%2C%22_json_%22%3A0%7D%2C%5B%220%22%2C%222%22%5D%5D%2C%5B%22r%22%2C%5B144%2C80%2C0%5D%2C%7B%22r%22%3A%221%22%2C%22_json_%22%3A1%7D%2C%5B%221%22%2C%220%22%5D%5D%2C%5B%22r%22%2C%5B224%2C64%2C1%5D%2C%7B%22name%22%3A%22%22%2C%22r%22%3A%222%22%2C%22_json_%22%3A2%7D%2C%5B%222%22%2C%221%22%5D%5D%2C%5B%22w%22%2C%5B144%2C80%2C144%2C64%5D%5D%2C%5B%22w%22%2C%5B144%2C64%2C176%2C64%5D%5D%2C%5B%22w%22%2C%5B224%2C64%2C256%2C64%5D%5D%2C%5B%22w%22%2C%5B256%2C64%2C256%2C80%5D%5D%2C%5B%22g%22%2C%5B200%2C128%2C0%5D%2C%7B%22_json_%22%3A7%7D%2C%5B%220%22%5D%5D%2C%5B%22w%22%2C%5B144%2C128%2C200%2C128%5D%5D%2C%5B%22w%22%2C%5B256%2C128%2C200%2C128%5D%5D%2C%5B%22view%22%2C98.6424%2C40.20688%2C3.814697265625%2C%2250%22%2C%2210%22%2C%221G%22%2Cnull%2C%22100%22%2C%220.01%22%2C%221000%22%5D%5D(2 votes)

- Floating voltage source example - what if we remove the R1 resistor?

I assume we then eliminate node C. How do we determine the branch (V2) current? I'm guessing we can calculate it, but when trying to do so, I get somewhat counterintuitive results.

If someone bothers to check: Let A be the ref. node.

Why is there no current flowing through R3 (and subsequently V1) if**V1=V2**? What does that mean? Why is it so?(1 vote)- Congratulations on imagining a really goofy circuit. Last question first... If V1 = V2, the voltage across R3 is 0 volts. The two batteries combine to go up by V volts and down by the same V volts. So the top of R3 is at 0 volts, just like the bottom of R3.

That also means the current in R3, by Ohm's Law, is i = v/R = 0/R = 0. No current flows in R3.

That in turn means no current can flow in source V1.

Which then tells us the current in R2 ALL comes from source V2.

Here's a simulation. Copy and paste this entire URL into a browser.

http://spinningnumbers.org/circuit-sandbox/index.html?value=[["v",[232,24,1],{"name":"V2","value":"dc(1)","*json*":0},["2","1"]],["r",[128,104,0],{"name":"R3","r":"1000","*json*":1},["1","0"]],["v",[288,104,0],{"name":"V1","value":"dc(1)","*json*":2},["2","0"]],["r",[232,88,1],{"name":"R2","r":"100","*json*":3},["2","1"]],["g",[288,152,0],{"*json*":4},["0"]],["w",[128,152,288,152]],["w",[128,104,128,88]],["w",[128,88,184,88]],["w",[232,88,288,88]],["w",[288,88,288,104]],["w",[232,24,288,24]],["w",[288,24,288,88]],["w",[184,24,128,24]],["w",[128,24,128,88]],["view",47.66,-5.207999999999998,2.44140625,"50","10","1G",null,"100","0.01","1000"]](3 votes)

- In the guided example 'Write Kirchhoff's Current Law for each node. Do Ohm's Law in your head' section, current flows from node B to node C and node C to node B. Why is this not the same for nodes A and B, where current only flows from A to B?(2 votes)
- Good question, Katie. We didn't need to draw current arrows around node A because earlier in the process we decided A was an "easy node", and we solved for node voltage v_a without having to write a KCL equation. When we get over to nodes B and C, these are not "easy", so we had to give them each the full KCL treatment. That's why every branch leading into both B and C has a labeled current arrow.

My personal favorite form of KCL where all the arrows point into the node. I tend to make fewer sign errors when I do this. That's why there are two opposite current arrows in the 10 ohm resistor. Each arrow is part of an independent KCL equation, so I can point them however I want to make the equation-writing process as reliable as possible.(1 vote)

- I have several questions and I hope you could help me with it:

1. why is Vc=Vb+V2 and not Vb-V2, I don't understand what determines the addition or subtraction part here.

2. and I still don't get how Current of V2 = V1-Vc/R1

thank you in advance.(1 vote)- 1. Addition/subtraction of V2 is determined by the orientation of the V2 battery. The schematic symbol of a battery is a stack of short and long lines. The long lines represent the + side, and the short lines represent the - side of the battery. So if your are standing at node b looking up through the battery, node c is V2 volts above your head.

2. To get the current in battery V2 we look over at resistor R1 on the right. V2 and R1 are connected in series. Therefore, we know the current in V2 is identical to the current in R1. The expression you wrote is Ohm's Law for resistor R1.

i_V2 = (V1 - Vc) / R1

V1 goes first in the voltage expression because we defined the current arrow to flow UP through R1. (See the article on "Sign Convention for Passive Components to review this idea.(2 votes)