Electrical Engineering‹›⌂ 0:00 studied

Module 1 · 11 min read · Free chapter

Node and mesh analysis

In short

Nodal analysis writes KCL at each node using node voltages as unknowns, while mesh analysis writes KVL round each window using mesh currents. A voltage source between two nodes forms a supernode, and a current source shared by two meshes forms a supermesh. Choose the method that gives fewer equations.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: why we need a method

With one source and a few resistors, series and parallel rules are enough. Real networks are not so kind. A bridge circuit, a ladder or a circuit with two sources cannot be reduced to one simple path. Writing KCL and KVL everywhere works, but it gives far more equations than needed and many of them repeat each other.

Two systematic methods fix this. Nodal analysis uses node voltages as the unknowns and writes only KCL. Mesh analysis uses loop currents as the unknowns and writes only KVL. Each gives the smallest set of independent equations, which is exactly what a computer or an exam candidate wants.

Think of it like describing a city. You can give the height above sea level of every crossing (node voltages), and then every street's slope follows. Or you can give the traffic going round each block (mesh currents), and every street's traffic follows. Both descriptions carry the full picture.

Why it matters. Circuit simulators such as SPICE are built on an extended form of nodal analysis. JE papers ask small node or mesh problems directly, and GATE uses them inside almost every circuits question.

Nodal analysis

Step 1: pick a reference node. Choose one node as ground (0 V), usually the one with the most branches. Every other node voltage is measured from it.

Step 2: name the unknowns. Label the remaining node voltages V₁, V₂ and so on. A circuit with n nodes has n − 1 unknowns.

Step 3: write KCL at each node. Express every branch current with Ohm's law as (voltage at this node − voltage at the other end)/R, taking all currents as leaving the node. Add any source currents. The sum is zero.

Step 4: solve. Solve the n − 1 linear equations by substitution, elimination or Cramer's rule. Then find any branch current from the node voltages.

Worked example. Node 1 connects to a 10 V source through 2 Ω, to ground through 4 Ω, and to node 2 through 2 Ω. Node 2 connects to ground through 4 Ω and receives a 2 A source current from ground.

At node 1: V1−102+V14+V1−V22=0\dfrac{V_{1} - 10}{2} + \dfrac{V_{1}}{4} + \dfrac{V_{1} - V_{2}}{2} = 0. Multiplying by 4 gives 5V1−2V2=205V_{1} - 2V_{2} = 20.

At node 2: V2−V12+V24−2=0\dfrac{V_{2} - V_{1}}{2} + \dfrac{V_{2}}{4} - 2 = 0. Multiplying by 4 gives −2V1+3V2=8-2V_{1} + 3V_{2} = 8.

Solving, V1=7611≈6.91V_{1} = \dfrac{76}{11} \approx 6.91 V and V2=8011≈7.27V_{2} = \dfrac{80}{11} \approx 7.27 V. The current from node 2 to node 1 is 7.27−6.912≈0.18\dfrac{7.27 - 6.91}{2} \approx 0.18 A. Notice that node 2 sits higher than node 1 because the current source pushes charge into it.

Writing by inspection. If the circuit has only resistors and independent current sources, the equations can be written straight from the diagram as [G][V] = [I]. Each diagonal entry Gₖₖ is the sum of all conductances touching node k. Each off-diagonal entry Gₖⱼ is minus the conductance between nodes k and j. The right side holds the source current flowing into each node.

The matrix is symmetric, which is a quick check on your work.

Why it matters. Nodal analysis needs only as many equations as there are nodes minus one, however many loops the circuit has. Power-system load flow uses the same idea on a huge scale, with the bus admittance matrix in place of [G].

The supernode

Nodal analysis writes currents through elements as voltage difference over resistance. A voltage source between two non-reference nodes breaks this, because its current cannot be found from its voltage: an ideal source can carry any current.

The fix is to draw a boundary round both nodes and the source, called a supernode. KCL holds for any closed boundary, so the sum of currents leaving the whole boundary is zero. This gives one equation. The second equation is the constraint set by the source itself: V1−V2=VsV_{1} - V_{2} = V_{s}.

Worked example. Nodes 1 and 2 are joined by a 6 V source, with node 1 at the + end. Node 1 goes to ground through 3 Ω, node 2 goes to ground through 6 Ω, and a 3 A source feeds node 1 from ground.

Supernode KCL: V13+V26−3=0\dfrac{V_{1}}{3} + \dfrac{V_{2}}{6} - 3 = 0, which gives 2V1+V2=182V_{1} + V_{2} = 18. Constraint: V1−V2=6V_{1} - V_{2} = 6. Adding the two gives 3V1=243V_{1} = 24, so V1=8V_{1} = 8 V and V2=2V_{2} = 2 V. Check: the 3 Ω takes 8/3 A and the 6 Ω takes 1/3 A, which together equal the 3 A supplied.

Dependent sources in nodal analysis. Write the dependent source's value in terms of the node voltages, then treat it like an independent source while writing KCL. The [G] matrix is then usually not symmetric, so the inspection shortcut no longer applies.

Why it matters. Electronic circuits such as amplifiers are full of voltage sources between nodes and controlled sources. The supernode is the step that lets nodal analysis handle them without converting anything first.

Mesh analysis and the supermesh

Mesh analysis looks at the circuit the other way round. Imagine a current circulating round each window of a planar circuit, all drawn clockwise. These mesh currents are the unknowns. A branch on the outside carries one mesh current, and a branch shared by two meshes carries their difference.

Steps. First, check the circuit is planar (it can be drawn flat with no crossing wires). Second, assign clockwise mesh currents I₁, I₂ and so on. Third, write KVL round each mesh, writing the drop across a shared resistor as R(Iₖ − Iⱼ). Fourth, solve the b − n + 1 equations.

Worked example. Mesh 1 has a 10 V source, 2 Ω on its own and 4 Ω shared with mesh 2. Mesh 2 has the shared 4 Ω, 6 Ω on its own and a 5 V source opposing I₂.

Mesh 1: 10 = 2I₁ + 4(I₁ − I₂), which gives 6I₁ − 4I₂ = 10. Mesh 2: −5 = 6I₂ + 4(I₂ − I₁), which gives −4I₁ + 10I₂ = −5.

Solving: I₁ = 1.82 A and I₂ = 0.23 A, so the shared 4 Ω carries I₁ − I₂ ≈ 1.59 A downwards. Check KVL on mesh 1: 2 × 1.82 + 4 × 1.59 ≈ 10 V. Note that the mesh matrix, like the node matrix, is symmetric when there are no dependent sources.

The supermesh. A current source in a shared branch is the mirror of the supernode problem. Its voltage is unknown, so KVL cannot be written through it. Instead, write KVL round the larger loop that goes round both meshes and avoids the source. Then add the constraint I₁ − I₂ = Iₛ, with the sign fixed by the source arrow.

A current source on the outer edge of a mesh is even simpler. It fixes that mesh current directly, which removes one unknown.

Which method to choose. Count first. If the circuit has fewer independent nodes (n − 1) than meshes (b − n + 1), use nodal analysis, and the reverse for mesh analysis. Current sources favour nodal analysis and voltage sources favour mesh analysis. Mesh analysis also fails for non-planar circuits, where nodal analysis still works.

Why it matters. The choice can halve the work. A ladder network with many rungs has few meshes but many nodes, while a star of branches from one hub has few nodes. Choosing well is half the speed in an objective paper.

Network topology: the graph behind every circuit

Draw every element as a simple line and every node as a dot, and you get the graph of the network. The graph forgets what each element is and keeps only how things connect. That is enough to count equations and to organise them for a computer.

A tree is a set of branches that connects every node with no closed loop. A tree of a graph with n nodes always has n − 1 branches, called twigs. The remaining b − n + 1 branches are links. Adding any one link to the tree closes exactly one loop, called a fundamental loop or tie-set.

Removing a twig splits the tree into two parts. The set of branches that crosses between those parts is a fundamental cut-set. There are n − 1 of them, one for each twig.

These ideas give three matrices. The incidence matrix A records which branch touches which node, and KCL becomes A⋅i=0A \cdot i = 0. The tie-set matrix B records which branch lies in which fundamental loop, and KVL becomes B⋅v=0B \cdot v = 0. The cut-set matrix Q groups branches by cut-set for a general form of KCL.

Why it was developed. By the 1950s networks had grown too large to solve by hand, and engineers needed a method a computer could follow without judgement. Graph theory supplied rules that generate exactly the right independent equations for any network. The same rules count the variables that nodal and mesh analysis need.

Why it matters. ESE and some state AE papers ask for the number of trees of a small graph, or ask the candidate to write the incidence or tie-set matrix. Load-flow programs for national grids use the incidence matrix to build the bus admittance matrix.

Descriptive lens: how this topic is asked in written papers

Written papers test node and mesh analysis in four ways:

  1. Explain a method: list the steps of nodal or mesh analysis, or explain the supernode and supermesh with a sketch.
  2. Compare: state when nodal analysis is better than mesh analysis and why mesh analysis needs a planar circuit.
  3. Solve: find node voltages or mesh currents in a three- or four-node network, often with a dependent source.
  4. Topology: draw the graph and a tree, find twigs, links and fundamental loops, or write the incidence matrix.

Practice questions (our own, not previous-year questions).

  1. Explain the concept of a supernode with an example. How many equations does a circuit with five nodes and one floating voltage source need in nodal analysis? (10 marks)
  2. Compare nodal and mesh analysis. Give one circuit where each is clearly the better choice. (10 marks)
  3. In a circuit, node 1 is joined to a 12 V source through 4 Ω, to ground through 4 Ω and to node 2 through 2 Ω. Node 2 is joined to ground through 2 Ω and has a dependent current source of 0.5V₁ flowing from ground into it. Find V₁ and V₂. (15 marks)

Answer plan for question 3.

  • At node 1: V1−124+V14+V1−V22=0\dfrac{V_{1} - 12}{4} + \dfrac{V_{1}}{4} + \dfrac{V_{1} - V_{2}}{2} = 0. Multiplying by 4 gives 4V1−2V2=124V_{1} - 2V_{2} = 12, so 2V1−V2=62V_{1} - V_{2} = 6.
  • At node 2: V2−V12+V22−0.5V1=0\dfrac{V_{2} - V_{1}}{2} + \dfrac{V_{2}}{2} - 0.5V_{1} = 0. Multiplying by 2 gives −2V1+2V2=0-2V_{1} + 2V_{2} = 0, so V2=V1V_{2} = V_{1}.
  • Substituting: 2V1−V1=62V_{1} - V_{1} = 6, so V1=V2=6V_{1} = V_{2} = 6 V.
  • Check: no current flows in the 2 Ω between the nodes. The dependent source gives 3 A, which leaves through the 2 Ω to ground (6/2 = 3 A), so node 2 balances.
  • Conclude that the dependent source makes the [G] matrix unsymmetric, so the inspection method cannot be used here.

Quick revision

  • Nodal analysis takes n − 1 node voltages as unknowns and writes KCL at each node.
  • Mesh analysis takes b − n + 1 mesh currents as unknowns and writes KVL round each mesh.
  • A supernode encloses a floating voltage source and gives one KCL equation plus one constraint.
  • A supermesh goes round a shared current source and gives one KVL equation plus one constraint.
  • Without dependent sources, the [G] and mesh matrices are symmetric and can be written by inspection.
  • Use nodal analysis for many current sources or few nodes, and mesh analysis for many voltage sources or few meshes.
  • Mesh analysis works only for planar circuits.
  • A tree has n − 1 twigs, the links number b − n + 1, and each link makes one fundamental loop.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. A circuit has 5 nodes. The number of independent node-voltage equations in nodal analysis is:

  2. Nodal analysis is based mainly on:

  3. Node 1 is joined to a 10 V source through 5 Ω and to ground through 5 Ω. The voltage of node 1 is:

  4. A supernode is formed when:

  5. Mesh analysis is based on:

  6. In mesh analysis, a resistor shared by mesh currents I₁ and I₂ (both clockwise) carries:

  7. A planar network has 7 branches and 5 nodes. The number of mesh equations is:

  8. When a current source is common to two meshes, the analysis uses:

  9. In the nodal conductance matrix of a resistive network without dependent sources, an off-diagonal term Gₖⱼ equals:

  10. Mesh analysis cannot be applied directly to:

  11. For a connected graph with 6 nodes and 10 branches, the number of links is:

  12. The number of fundamental cut-sets of a graph equals the number of:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

When is nodal analysis better than mesh analysis?

When the circuit has fewer independent nodes than meshes, or has many current sources.

What is a supernode?

Two nodes joined by a voltage source, treated as one region for KCL plus one equation for the source voltage.

How many independent KVL equations does a network have?

b − n + 1, where b is the number of branches and n the number of nodes.

Can mesh analysis be used for every circuit?

Only for planar circuits that can be drawn without crossing branches; nodal analysis works for all.

More in this module: Electric circuits

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Electrical Engineering (EE) syllabus, IIT Guwahati
  2. NPTEL Basic Electric Circuits (IIT Kanpur, 108104139)
  3. NPTEL Network Analysis (IIT Kharagpur, 108105159)