32

What exactly are electrical circuits as mathematical objects?

It seems quite intuitive to me, that they are geometric realization of some graph with some additional structure.

Another thing I notice is that application of KVL and KCL together turns this graph to a system of linear equations.

$$\text{circuit} \to^{KVL}_{KCL} \to \text{linear eqtns}$$

All sites I look online eg: Wikipedia give me undetailed answers.


Edit: I see that many people are like there is no singular view.... sure that's understandable... but sometimes it is very clear that some matters are much more clearer and understandable in certain views than others. For example, consider how differential forms give clarity on the whole bunch of vector calculus theorems, and whose mathematical properties quite directly suggest effects like that of Aharonov-Bohm, which would have been otherwise difficult to arrive at mathematically with standard theories of vector calculus.

Also, for the camp of people there who say it's just differential equations and see the right side of the above equation. I think they've not seen circuits enough. There are very many cases where the circuit itself offers quick ways to arrive at simplified equations.

Consider for example things like the Source Transformation Theorem's or simplifying complicated circuits using symmetry arguements

Trunk
  • 385

9 Answers9

26

The current-voltage relation between the three common circuit elements (resistor, capacitor, inductor) are, $$V=IR,\quad I=C\frac{\mathrm{d}V}{\mathrm{d}t},\quad V=L\frac{\mathrm{d}I}{\mathrm{d}t}\tag{1}$$ which suggests that mathematically, circuits are differential equations. The KVL and KCL rules you indicate then provide you with addition rules for the series and parallel circuits to generate the differential equations needed to be solved to determine the voltage or current as a function of time.

As an example, if you combine a resistor and an inductor in series, you obtain, $$RI+L\frac{\mathrm{d}I}{\mathrm{d}t}=V\to I(t)=\frac{V}{R}\left(1-\mathrm{e}^{-Rt/L}\right).$$ Replacing the inductor or resistor with the capacitor should be straight-forward.

When you start adding more complex circuit elements, I think some of the simple linear ODE features of circuits vanish, but it's been a while since I've had a circuits course.

Kyle Kanos
  • 29,127
22

If you only allow resistors and voltage sources, then you get a resistor network. The latter are equivalent to reversible Markov chains and have thus been studied in detail by probabilists. In particular, current and voltage acquire natural probabilistic interpretations. A highly pedagogical, elementary introduction can be found in the book Random Walks and Electric Networks by Doyle and Snell. You can find a lot of additional information in many books on Markov chains, for instance:

Yvan Velenik
  • 11,352
19

A better Wikipedia page to address the graph theoretic concepts might be https://en.wikipedia.org/wiki/Circuit_topology_(electrical)

What exactly are electrical circuits as mathematical objects?

An "exact" answer likely depends on how deep into the subject you wish to look.


You might find these resources useful:

robphy
  • 12,829
6

There is no single answer to this question, but of course make note: circuits aren't anything mathematical, they are abstractions, and thus the appropriate mathematical representation is one which represents the behavior of the desired system. This is just a small remark, in response to anyone tempted into saying "circuits are differential equations" or "circuits are signal flow graphs."

A very good treatment which combines practical circuit analysis with rigorous mathematical foundations is Chua, Kuh, and Desoer's Linear and Nonlinear Circuits (excerpts online). This book is notable for explicitly handling time-dependent, nonlinear, and distributed behavior (finite propagation delay), and uses digraphs and linear algebra to represent linearized circuits. You will find an excellent practical treatment of the graph-theoretic approach (the graph model being perhaps the most intuitively satisfying abstract model of a circuit) in the first chapter of Linear and Nonlinear Circuits.

To answer the question, then, in one sense we can represent a network as a collection of nodes $\mathcal N$ and a collection of directed, weighted edges $\mathcal E$ between those nodes, where the direction defines the reference direction for the current between the nodes (where current is taken as a fundamental concept which obeys KVL and KCL, the axioms of this theory). Further, in a connected network (i.e. one where every node is reachable from any other via edges) we define a potential $e$ at each node relative to an arbitrary reference node $n$ such that $e_n = 0$ and $e_a = 0$ iff $a$ and $n$ are the same node; for all lumped connected circuits for all times $t$ and any pairs of nodes $a,b$, for all choices of reference node $n$, the difference in potential is always well-defined and given by $$ v_{ab} = e_a - e_b \qquad\qquad\text{(KVL)} $$ The second axiom of this theory is the node law, which states that for all lumped circuits, for all times $t$, the algebraic sum of currents leaving any node is equal to zero (where leaving is defined in relation to the direction of each edge connected to the node).

The definitions and axioms given above are clearly not enough to uniquely determine the voltage and currents of a given network, for which we must specify the role of the weights of the edges as regards the voltages and currents in the network. A familiar example is a linear two-terminal resistor which applies the constraint $v_{ab} = r i$ where $i$ is the current through an edge of weight $r$ connected between nodes $a$ and $b$. This weight is independent of time and is independent of the voltages and currents in any other part of the circuit. Other components impose different constraints, e.g. sources act as negative resistances, inductors and capacitors impose time-dependent constraints (via differential equations), nonlinear components impose nonlinear constraints, etc.

5

Perhaps the use of electrical impedance may be managed in a graph. Specifically, a weighted graph containing complex-valued weights, where each edge is an electrical component and each node is a split in the circuit. In the model, you could specify the rules for merging nodes and edges as they exist normally for electrical impedance (adding for two in a row, inverse of sum of inverses for two in parallel).

I'm not sure if this sort of graph-with-rules has a name, but a weighted graph is certainly a thing.

Remeraze
  • 125
  • 9
5

Google 'signal-flow graph'

"A signal-flow graph is a diagram that represents a set of simultaneous algebraic equations. When applying the signal flow graph method to analysis of control systems, we must first transform linear differential equations into algebraic equations in [the Laplace transform variable] s."

They are most commonly use in control system analysis but can be used for circuits in general.

What exactly are eletrical circuits as mathematical objects?

So circuits can be a graphical representation of differential equations.

user45664
  • 3,136
4

The resistors, capacitors, and inductors, are associated with vector quantities that capture their respective electrical properties. These vectors give relationships between voltage, current, and charge, serving as elemental building blocks for the circuit's mathematical description.

Volts and amps manifest as coefficients within the Kirchhoff equations. The electrons, encapsulating the physical flow of charge, contribute to the matrix of coefficients that defines the system of linear equations. The currents, guided by Kirchhoff's laws, determine the relationships between voltages and currents.

Solving this system of equations furnishes a comprehensive quantitative depiction of voltage distributions and current magnitudes across the circuit's intricate topography.

Other fields to represent circuit maths are:

Complex Impedances: In alternating current (AC) analysis, components are characterized using complex impedances. Circuits are analyzed using phasors, complex numbers that incorporate both magnitude and phase information, simplifying AC analysis.

Matrix Formulation: Circuits can be represented using matrices, where nodes and branches are defined as rows and columns. The matrix equations encapsulate the relationships between voltages and currents, allowing for systematic analysis using matrix manipulation techniques.

Graph Theory: Graph theory provides a structural representation of circuits, with nodes and edges corresponding to circuit elements. This graph-based approach aids in understanding connectivity, paths, and loops within the circuit, facilitating analysis and optimization.

State-Space Modeling: State-space representation captures the dynamic behavior of circuits using differential equations. Circuits are described in terms of state variables, inputs, outputs, and matrices representing component relationships. This method is particularly suited for systems with energy storage elements.

Mesh and Nodal Analysis: These techniques involve formulating equations based on loop currents (mesh analysis) or node voltages (nodal analysis). These methods provide a systematic approach to solving circuits, particularly when the number of components is significant.

Transfer Function Representation: Common in control systems analysis, this representation uses Laplace transforms to analyze circuits in the frequency domain. Transfer functions relate input and output signals, aiding in stability and response analysis.

Network Analysis Software: Advanced software tools can automatically generate and solve circuit equations, providing rapid analysis and design capabilities. https://electronicsguruji.com/best-circuit-simulation-software/

bandybabboon
  • 1,479
4

Also, for the camp of people there who say it's just differential equations and see the right side of the above equation. I think they've not seen circuits enough. There are very many cases where the circuit itself offers quick ways to arrive at simplified equations.

The section I bolded out of your question (actually, and edit to your question) is probably the most useful for understanding the variety of answers you are receiving. You ask "What exactly are electrical circuits as mathematical objects?" On its own, this is a easy question to answer in the negative. Electrical circuits are not mathematical objects. They're physical objects. But most likely what you're really asking is what mathematical objects are used to model electrical circuits. And when we come to modeling, it's all about intended use. A model cannot be applied meaningfully to a real system unless one considers the intent behind using the model.

Some would like a model which truly captures the behavior of any electronic circuit. For those people, Maxwell's Equations are the definitive model of electronic circuits. And I use "definitive" properly here -- we define electronic circuits to be a subset of the things governed by Maxwell's Equations. So in that sense, differential equations over a field is the best mathematical object to model a circuit.

But "there are very much cases where the circuit in itself gives quick ways to arrive at simplified equations." This is absolutely true. In many cases, we are comfortable assuming some details don't matter. In the hierarchy of mathematical objects used to model electronic systems, the "distributed element model" is the next most common model. In this model, we assume that many of the interactions between parts of the field do not matter. In particular, we assume that electrical fields closely follow conductors, and magnetic fields do not "leak." For instance, if we have two inductors side by side, Maxwell's equations says that they will magnetically couple, affecting each other. But, in practice, we can often design circuits where this effect is negligible.

This is the first model where Kirchoff's laws apply, because we can speak to "wires" as individual discrete entities, rather than regions with a given permittivity and permeability. This is the first point where a "graph" is a meaningful model. However, it is an infinite graph. When modeling systems as distributed elements, we come across interesting concepts like transmission lines, which are modeled as an infinite series of infinitesimal inductors, resistors and capacitors, and we apply calculus to it.

The next most common big leap in modeling assumptions is to assume that some properties are evenly distributed across regions. For example, we can assume that the capacitance of all points in a capacitor can be treated as "the same." This is the lumped element model., another very well accepted way of modeling electronic circuits. Once we accept these assumptions we can develop the finite graphs that you are most likely familiar with, which are solved directly via KVL and KCL (rather than having to apply those laws over infinite sums using calculus).

Beyond this, many circuits admit even more useful models. Consider linear circuits. Not all circuits are linear -- circuits with transistors in particular are famously non-linear. But those using just resistors, capacitors, and inductors are linear. For these, the most useful models are often the Laplace transformation of the circuit's behavior. The Laplace transform has the wonderful property of converting all linear systems (including linear differential equations) into algebraic objects. If you work in control theory, these are the bees' knees because it is so much easier to work with algebra than differential equations!

And some non-linear circuits admit convenient mathematical models too. By far the most famous is that of saturated transistors, which form the basis of every computer you've ever seen. These are extremely well modeled by boolean logic. I find this interesting because it shows that this series of models isn't even a simple progression from complex to simple. There are many branches of intended uses for electronic circuits, each of which has their own mathematical objects which are most convenient for modeling.

And sometimes its not even the circuit that matters, but your intended use for the circuit. Amplifiers involve decidedly non-linear circuits (large transistors), but we drive them in such a way that we find a "linearized" model is applicable. This is the so called small-signal model, which does not fully characterize the circuit's behavior, but it does characterize the part of the behavior we care about (the amplification of an input signal).

So every one of these models is applied to electronic circuits on a regular basis. Which model one uses depends on the intended use of the model, and the assumptions one is willing to bake in. One will find this is true for all modeling, not just that of circuits. So pick your mathematical objects wisely. Consider the intended use of the model, and go from there.

Trunk
  • 385
Cort Ammon
  • 53,814
  • 6
  • 103
  • 176
3

Electrical circuits are not mathematical objects, as Sam Gallagher points out. They are instead real physical processes - with all the imperfections that this implies. We can however use mathematics to generally model the behavior of such things.

Electrical circuits are an example of an energy dissipation system involving 3 modifier elements, i.e. resistors, capacitors and inductors, whose steady state (as opposed to transient) behavior is generally modellable via a second order ordinary differential equation.

In the case of a circuit with the 3 modifiers connected in series:

$ $

$$ E_{app}(t) = L \frac{d^2q(t)}{dt^2} + R \frac{dq(t)}{dt} + \frac{q(t)}{C}$$

where:

$E_{app}(t)$ is the applied e.m.f.;

$L$ is the inductance of the circuit;

$R$ is its resistance; and

$C$ is the capacitance.

$ $

Putting it the other way round, second order ordinary differential equations can describe the steady-state behavior of energy dissipation systems in the case of electrical energy.

Analogous behavior and modelling may be done in the case of hydraulic and mechanical energy dissipation systems.

Obviously the above 3 modifiers in series circuit is an unrealistically simple situation. In real circuits you may well have other RCL subcircuits across or in series with each of the modifiers shown, further subcircuits off each of the subcircuit modifiers and so on and on.

Alternate means of analysis to differential equations may be used, e.g. those employing phasor diagrams to add the separate but out of phase sub-voltage/sub-current components.

I think I am getting at what your original question really is. You want to know if a system such as a complex electric power dissapation system (or indeed its mechanical, hydraulic, structural, tranportational, etc analogues) can be abstracted so as to be viewed as a mathematical object in itself and its behavior explored so as to get a clear understanding of its strengths and limits ? I should think so. Engineers of all types are great believers in using existing knowledge - the do-it-once or keep-it-simple-stupid principle: it saves repetitive work.

Read into here.

Trunk
  • 385