Fundamentals / Numerical mathematics / Numerical linear algebra / Notebooks

Which resistor can carry its current through another path?

A short circuit diagram leads to a matrix that describes both voltage differences and sensitivity to losing an edge. Change one conductance and follow where the current goes.

Change parameters · Explore this notebook model

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

Ground a node and derive the electrical leverage

Nodes A, B and C form a triangular loop. Node D connects only to C. Every edge is an ideal linear resistor. Orient an edge from node \(i\) to node \(j\) and give it an incidence vector \(b_e\) with a +1 at \(i\) and a −1 at \(j\). Its current under nodal voltages \(v\) is \(g_e b_e^T v\), where conductance \(g_e\) is measured in siemens. Kirchhoff's current law sums all outgoing currents into the net injection \(f\). It gives

\[Lv=f,\]
\[L=\sum_e g_e b_eb_e^T.\]

Adding a constant to every potential preserves all currents. Fix the potential of D at zero and remove its row and column. For a connected network the resulting grounded matrix is positive definite. Inject one ampere at one end of an edge and withdraw it at the other. With grounded coordinates the voltage difference per unit current is the effective resistance \(R_e=b_e^T L_g^{-1} b_e\). The fraction of this test current that flows through the tested edge is \(\ell_e=g_eR_e\). A bridge carries the full ampere. A parallel path reduces its share.

There is also a global check on the calculation. The sum of all the leverages is \(\mathrm{tr}(L_g^{-1}\sum_e g_e b_e b_e^T)=n-1\) on a connected graph with \(n\) nodes. Each leverage depends only on the graph and its conductances. The actual current in a specified operating condition also depends on the chosen source and sink.

Solve the triangle by hand

With 1 S on every branch, the detour A–C–B consists of two 1 Ω resistors in series. Inject 1 A at A and extract it at B. The detour's 0.5 S combines with the direct 1 S, so the measured drop is \(1/1.5=2/3\) V. The direct current is 2/3 A. The dead-end C–D branch carries zero current in this experiment. When tested between its own endpoints, however, C–D carries the entire test current. The four leverages are consequently \(2/3,2/3,2/3,1\) and sum to three.

Double A–B's conductance to 2 S. Its leverage rises to \(2/2.5=0.8\), while the voltage needed for the same 1 A drops to 0.4 V. This is why the two traces in the experiment have opposite slopes. Rerun with a weaker bridge. Its resistance increases, yet its leverage stays equal to one.

Set the experimental inputs

Edit these values, then run the calculation and both figures again.

Each label gives the share of a separate one-ampere test between that edge's endpoints. The pendant branch remains at unity for any positive conductance.

The current-share curve tends to one as the direct branch dominates the detour. The voltage per ampere falls from two ohms toward zero.

Exercise · remove the direct branch

How much does the terminal resistance rise when the 1 S direct edge is removed? What changes if the bridge is removed instead?

For A and B the sole remaining connection consists of two 1 Ω resistors, so resistance rises from 2/3 Ω to 2 Ω, an increase of 4/3 Ω. Removing C–D instead isolates D. Measurements within the triangle remain finite, but a test injecting current at D and withdrawing it at C no longer has a finite DC voltage solution.

Exercise · differentiate the measured voltage

Under a fixed one-ampere A-to-B test, find the sensitivity of the terminal resistance to the direct conductance at 1 S.

For variable \(g\) the resistance is \(1/(g+0.5)\). Differentiation gives \(-1/(g+0.5)^2=-4/9\) Ω/S at the chosen point. The magnitude equals the square of the voltage drop per ampere across that branch. Differentiating \(L_gv=f\) at fixed injection gives the same result for any branch, \(\partial (f^Tv)/\partial g_e=-(b_e^Tv)^2\) for the unit test.