Mesh analysis with dependent sources

Updated

Mesh analysis with dependent sources works almost exactly like it does with independent sources. You write a KVL equation around each mesh, treat each dependent source like any other source, and add one extra equation that writes its controlling voltage or current in terms of the mesh currents.

The circuit below is the first worked example on this page. You can edit it, or draw your own, then solve it step by step.

Example 1: a current-controlled voltage source
Example 1: a current-controlled voltage source Solve this circuit step by step →

Dependent sources, in brief

A dependent (or controlled) source is a voltage or current source whose value depends on a voltage or current somewhere else in the circuit. It's drawn as a diamond, and there are four kinds:

SourceIts valueIn mesh analysis
Current-controlled voltage source (CCVS)r ixr\,i_x voltsA voltage in a KVL equation. Usually the easiest kind.
Voltage-controlled voltage source (VCVS)μ vx\mu\,v_x voltsA voltage in a KVL equation.
Current-controlled current source (CCCS)β ix\beta\,i_x ampsSets a mesh current, or makes a supermesh.
Voltage-controlled current source (VCCS)g vxg\,v_x ampsSets a mesh current, or makes a supermesh.

Here ixi_x is the current through some component and vxv_x is the voltage across it. They are the controlling current and voltage. Mesh analysis already writes every current in terms of mesh currents, which is why current-controlled sources are especially easy with it.

How to do mesh analysis with dependent sources

  1. Label the mesh currents I1I_1, I2I_2, ..., all clockwise.
  2. Write the controlling quantity in terms of mesh currents. The current through a component in one mesh only is that mesh's current (or its negative). The current through a component shared by meshes aa and bb is Ia−IbI_a - I_b, in the direction IaI_a flows. The voltage across a resistor RR is RR times its current.
  3. For a dependent voltage source, include its voltage in the KVL equation of every mesh it's in, just like an independent voltage source, using the expression from step 2.
  4. For a dependent current source on the outside edge of the circuit, it sets that mesh's current. Shared by two meshes, it makes a supermesh: write one KVL equation around both meshes, and use the source as a constraint between their currents.
  5. Substitute and solve. Replace the controlling quantity in every equation, which leaves only mesh currents as unknowns, then solve the equations (by substitution, or as a matrix).
  6. Check your answer. Work out the controlling quantity and the dependent source's value, and make sure KVL holds around a loop you didn't use.

With dependent sources, the matrix of mesh equations usually isn't symmetric any more, so don't be surprised if the shortcut of writing it straight from the resistances doesn't work. Write the KVL equations out in full.

Example 1: a current-controlled voltage source

In the circuit at the top of the page, a 14 V14\,\text{V} source V1V1 is on the left, R1R1 (2 Ω2\,\Omega) is along the top of mesh 1, and R2R2 (4 Ω4\,\Omega) is shared by both meshes. Mesh 2 has R3R3 (2 Ω2\,\Omega) along the top and a dependent voltage source V2V2 of 3 ix3\,i_x volts down the right, + at the top, where ixi_x is the current down through R2R2. Find the mesh currents.

Step 1: label the mesh currents

I1I_1 flows clockwise around the left mesh and I2I_2 clockwise around the right one. Through R2R2, I1I_1 flows down and I2I_2 flows up.

Step 2: write the controlling current in terms of mesh currents

ix=I1−I2i_x = I_1 - I_2

Step 3: write KVL around each mesh

Around mesh 1, up through V1V1 and then through R1R1 and R2R2:

−14+2I1+4(I1−I2)=0-14 + 2I_1 + 4(I_1 - I_2) = 0

Around mesh 2, up through R2R2, along R3R3, then down through V2V2 from its + end to its − end, which is a drop of 3 ix3\,i_x:

4(I2−I1)+2I2+3 ix=04(I_2 - I_1) + 2I_2 + 3\,i_x = 0

Step 4: substitute and solve

Replace ixi_x with I1−I2I_1 - I_2 and simplify:

6I1−4I2=14−I1+3I2=0\begin{aligned} 6I_1 - 4I_2 &= 14 \\ -I_1 + 3I_2 &= 0 \end{aligned}

As a matrix (not symmetric, because of the dependent source):

[6−4−13][I1I2]=[140]\begin{bmatrix} 6 & -4 \\ -1 & 3 \end{bmatrix}\begin{bmatrix} I_1 \\ I_2 \end{bmatrix} = \begin{bmatrix} 14 \\ 0 \end{bmatrix}

The second equation gives I1=3I2I_1 = 3I_2, so 18I2−4I2=1418I_2 - 4I_2 = 14:

I1=3 A,I2=1 AI_1 = 3\,\text{A}, \qquad I_2 = 1\,\text{A}

Step 5: check

The controlling current is ix=3−1=2 Ai_x = 3 - 1 = 2\,\text{A}, so V2V2 is 3×2=6 V3 \times 2 = 6\,\text{V}. Around mesh 2: R2R2 has 8 V8\,\text{V} across it, which equals the 2 V2\,\text{V} across R3R3 plus the 6 V6\,\text{V} across V2V2.

Open Example 1 in Circuitsteps to see every step, including the branch currents and how the matrix is solved.

Example 2: a voltage-controlled current source between two meshes

Here a 12 V12\,\text{V} source V1V1 is on the left and R1R1 (2 Ω2\,\Omega) is along the top of mesh 1. In the middle branch, shared by both meshes, a dependent current source I1I1 pushes 0.5 vx0.5\,v_x amps upwards, where vxv_x is the voltage across R1R1, + at its left end. Mesh 2 has R2R2 (1 Ω1\,\Omega) along the top and R3R3 (2 Ω2\,\Omega) down the right.

Example 2: a voltage-controlled current source between two meshes
Example 2: a voltage-controlled current source between two meshes Solve this circuit step by step →

Step 1: spot the supermesh

The dependent current source is shared by meshes 1 and 2, so they form a supermesh. You can't write KVL around either mesh on its own, as the voltage across the current source is unknown.

Step 2: write the controlling voltage in terms of mesh currents

I1I_1 flows through R1R1 from its left (+) end to its right end, so

vx=2I1v_x = 2I_1

Step 3: write the constraint and the supermesh's KVL equation

In the middle branch, I2I_2 flows up and I1I_1 flows down, and the source pushes 0.5 vx0.5\,v_x up:

I2−I1=0.5 vx=I1⇒I2=2I1I_2 - I_1 = 0.5\,v_x = I_1 \quad\Rightarrow\quad I_2 = 2I_1

Around the outside of both meshes, leaving out the current source:

−12+2I1+1I2+2I2=0-12 + 2I_1 + 1I_2 + 2I_2 = 0

Step 4: substitute and solve

2I1+3(2I1)=12⇒I1=1.5 A,I2=3 A2I_1 + 3(2I_1) = 12 \quad\Rightarrow\quad I_1 = 1.5\,\text{A}, \quad I_2 = 3\,\text{A}

Step 5: check

The controlling voltage is vx=2×1.5=3 Vv_x = 2 \times 1.5 = 3\,\text{V}, so the source pushes 0.5×3=1.5 A0.5 \times 3 = 1.5\,\text{A}, which matches I2−I1=3−1.5I_2 - I_1 = 3 - 1.5. Around the outside, R1R1, R2R2 and R3R3 drop 3+3+6=12 V3 + 3 + 6 = 12\,\text{V}, the same as V1V1.

Open Example 2 in Circuitsteps to see it solved step by step.

Common mistakes

Mesh or nodal analysis?

Mesh analysis is usually easiest when the dependent sources are voltage sources, or when the controlling quantity is a current. Nodal analysis is usually easiest when they are current sources, or when the controlling quantity is a voltage. Either method gives the same answers. See nodal analysis with dependent sources for the same idea with node voltages, or solve your circuit both ways with the mesh analysis calculator and the nodal analysis calculator.

Frequently asked questions

How do you handle a dependent source in mesh analysis?

Treat it like an independent source when you write the KVL equations, then add one more equation that writes its controlling voltage or current in terms of the mesh currents. Substitute that equation in and solve as usual.

What do you do with a dependent current source between two meshes?

Join the two meshes into a supermesh. Write one KVL equation around the outside of both, leaving out the current source, and use the source as a constraint: the difference between the two mesh currents equals the source's value, written in terms of the mesh currents.

Why isn't my mesh matrix symmetric?

Dependent sources add terms that only appear in some equations, so the matrix of mesh equations usually isn't symmetric any more. That's expected. Write the KVL equations out in full rather than using the self- and mutual-resistance shortcut.

Can dependent sources be used with nodal analysis too?

Yes. With nodal analysis you write the controlling quantity in terms of the node voltages instead. Circuitsteps can solve a circuit with dependent sources using either method and shows every step.

Stuck on a circuit? Get the full step-by-step solution.Solve it now →