Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

RLC circuits

Electrical circuits that contain a power source (voltage or current source) together with resistors (R), inductors (L), and capacitors (C) are known as RLC circuits.

RLC circuits are fundamental in electrical engineering and physics, as they can model a wide range of dynamic behaviors, including oscillations and transient responses. The interplay between resistance, inductance, and capacitance gives rise to rich dynamics that can be analyzed using differential equations.

Components and constitutive equations

Circuits are made of components connected by wires. Electric charge (qq) is measured in coulombs (C), and current (ii), the rate of flow of electric charge, is measured in amperes (A), which are coulombs per second. Current flows through a circuit much like water flows through pipes. In this analogy, water volume corresponds to electric charge, and water flow rate corresponds to electric current. The pipes are the wires and components of the circuit.

Current is caused by differences in electric potential, or voltage. Electric potential is analogous to pressure in a fluid system; just as water flows from high pressure to low pressure, electric charge flows from high potential to low potential. Voltage (vv) is measured in volts (V).

Each component in an RLC circuit has a specific relationship between the voltage drop across it and the current flowing through it, known as its constitutive equation. The following figure shows the components of an RLC circuit and their constitutive equations.

Components of an RLC circuit and their constitutive equations.

Figure 1:Components of an RLC circuit and their constitutive equations.

The wires connecting the components are assumed to be ideal conductors, meaning they have negligible resistance and do not affect the circuit’s behavior. This leads us to the notion of an open circuit and a short circuit.

Short circuit and open circuit conditions for ideal wires.

Figure 5:Short circuit and open circuit conditions for ideal wires.

So all points along a wire (short circuit) have the same electric potential.

Our final components are the voltage and current sources, which impose a specific voltage or current in the circuit, respectively. Here are the symbols we will use for these sources:

Voltage and current source symbols.

Figure 6:Voltage and current source symbols.

The ideal voltage source maintains a fixed voltage between its terminals, regardless of the current flowing through it. The ideal current source maintains a fixed current through it, regardless of the voltage across it. Note that the “+” and “–” signs on the voltage source indicate the polarity of the voltage (vBvAv_B - v_A), while the arrow on the current source indicates the direction of the current flow.

Analysis of RLC circuits

Analyzing a circuit involves finding differential equations that describe the dynamics of the circuit. The quantities of interest are typically the voltages at various nodes in the circuit or the currents through various components. As with mechanical systems, we will write vv and ii rather than v(t)v(t) and i(t)i(t) to keep the notation uncluttered.

First, a bit of terminology:

If you are familiar with graph theory, a circuit can be represented as a graph where nodes are vertices, branches are edges and meshes are cycles.

The main variables we care about in a circuit are:

  1. Node voltages. The electric potential at each node in the circuit.

  2. Branch currents. The current flowing through each branch (circuit element).

To analyze a circuit, we need to set up a system of equations that relate these variables to each other. We will describe one way to do this, but there are many others!

We will illustrate our methodology with an example circuit in the next section.

Example: series RLC circuit

Consider the following series RLC circuit with a voltage source shown in the figure below. Solve for an equation that describes the current i(t)i(t) flowing through the circuit when a voltage vin(t)v_\textsf{in}(t) is applied.

Simple RLC circuit with a voltage source. We labeled nodes A, B, P, Q and branch current i.

Figure 7:Simple RLC circuit with a voltage source. We labeled nodes AA, BB, PP, QQ and branch current ii.

We started by labeling the nodes AA, BB, PP, QQ. We chose QQ to be ground since it is at the base of the voltage source, but we could have picked any other node. Since the same current flows through all components in this series circuit, we only need to label one branch current, which we called ii, and indicated it with a clockwise arrow showing the direction.

Following our methodology, we write down the constitutive equation for each component.

vA=vin(voltage source)vAvB=Ri(resistor)vBvP=Ldidt(inductor)vP=1Cidt(capacitor)\begin{aligned} v_A &= v_\textsf{in} && \textsf{(voltage source)}\\ v_A - v_B &= R i && \textsf{(resistor)}\\ v_B - v_P &= L \frac{\dd i}{\dd t} && \textsf{(inductor)}\\ v_P &= \frac{1}{C} \int i \, \dd t && \textsf{(capacitor)} \end{aligned}

There are no junction nodes in this circuit, so we do not need to write any KCL equations. The first and last equation should actually be written as vAvQ=vinv_A - v_Q = v_\textsf{in} and vPvQ=1Cidtv_P - v_Q = \frac{1}{C} \int i \, \dd t, but since we set vQ=0v_Q = 0 V (ground), we can simplify them as shown above.

Examining Eq. (1), we see that we have four equations and four unknowns: vAv_A, vBv_B, vPv_P, ii. We do not treat the input voltage vinv_\textsf{in} as an unknown since it is specified by the voltage source (our solution will be in terms of vinv_\textsf{in}).

Since we are interested in finding a single equation for the current i(t)i(t), we can eliminate vBv_B, and vPv_P from the equations by summing the last three equations and eliminate vAv_A by substituting in the first equation. We obtain:

vin=Ri+Ldidt+1Cidtv_\textsf{in} = R i + L \frac{\dd i}{\dd t} + \frac{1}{C} \int i \, \dd t

We can take derivatives of both sides to obtain a second-order ordinary differential equation (ODE) for the current i(t)i(t):

Ld2idt2+Rdidt+1Ci=v˙in\boxed{L \frac{\dd^2 i}{\dd t^2} + R \frac{\dd i}{\dd t} + \frac{1}{C} i = \dot v_\textsf{in}}

We use the traditional notation for derivatives of current because the symbol ii for current already has a dot on it, so we want to avoid any confusion.

Another way to write this equation is in terms of the charge q(t)q(t) that has flowed through the circuit, where i(t)=q˙(t)i(t) = \dot q(t). Substituting this into Eq. (2), we get:

Lq¨+Rq˙+1Cq=vin\boxed{L \ddot q + R \dot q + \frac{1}{C} q = v_\textsf{in}}

Eqs. (3) and (4) describe the dynamics of the series RLC circuit in terms of either the current i(t)i(t) or the charge q(t)q(t). The form of Eq. (4) is analogous to the equation of motion for a spring-mass-damper, where LL corresponds to mass, RR to damping, and 1C\frac{1}{C} to stiffness.

Example: circuit with two loops

Here is a slightly more complex example with two loops. This time, we cannot assume that the current is the same through all components, so we label each branch current separately. Our goal this time is to find an equation that describes the node voltage vB(t)v_B(t) when a current iin(t)i_\textsf{in}(t) is applied at the current source.

Circuit with two loops. We labeled nodes A, B and branch currents i_1, i_2, i_3.

Figure 8:Circuit with two loops. We labeled nodes AA, BB and branch currents i1i_1, i2i_2, i3i_3.

This time, we could not use a single loop since some of the current flows through the inductor branch while some flows through the R2R_2 branch. Therefore, we labeled each branch current separately. We also labeled nodes AA and BB. The node at the bottom is ground, so no need to label it. Proceeding as before, we write the constitutive equations for each component. This time, we also have a junction (node BB) where three branches meet, so we will need to write a KCL equation as well.

iin=i1(current source)vAvB=R1i1(resistor R1)vB=R2i2(resistor R2)vB=Ldi3dt(inductor)i1=i2+i3(KCL at node B)\begin{aligned} i_\textsf{in} &= i_1 && \textsf{(current source)}\\ v_A - v_B &= R_1 i_1 && \textsf{(resistor } R_1\textsf{)}\\ v_B &= R_2 i_2 && \textsf{(resistor }R_2\textsf{)}\\ v_B &= L \frac{\dd i_3}{\dd t} && \textsf{(inductor)}\\ i_1 &= i_2 + i_3 && \textsf{(KCL at node } B\textsf{)} \end{aligned}

We have five equations and five unknowns: vAv_A, vBv_B, i1i_1, i2i_2, i3i_3. Since our goal is to have a single equation in terms of vBv_B, we will need to eliminate all the currents. The easiest way to do this is to solve for each current in the first, third, and fourth equation and substitute into the KCL equation. This produces:

iin=vBR2+1LvBdti_\textsf{in} = \frac{v_B}{R_2} + \frac{1}{L} \int v_B \, \dd t

We can differentiate both sides to obtain a first-order ODE for vB(t)v_B(t):

1R2v˙B+1LvB=diindt\boxed{\frac{1}{R_2}\dot v_B + \frac{1}{L} v_B = \frac{\dd i_\textsf{in}}{\dd t}}

Note that we didn’t use the second equation in (5) since it was not needed to eliminate the currents and obtain an equation for vBv_B. However, if we wanted to find vAv_A as well, we would need to use the second equation.


Test your knowledge

Solution to Exercise 1 #

Let’s start by labeling our diagram with node voltages and branch currents. The only node that needs to be labeled is the bottom one, since the top one will just be vinv_\textsf{in}. We will call the bottom node AA. We will also label the branch currents as shown below.

RLC circuit from  with labeled nodes and branch currents.

Figure 10:RLC circuit from Figure 9 with labeled nodes and branch currents.

Now we can write the constitutive equations for each component, along with the KCL equation at node AA and the definition of voutv_\textsf{out}.

vinvA=RiR(resistor)vinvA=LdiLdt(inductor)vA=1CiCdt(capacitor)iC=iR+iL(KCL at node A)vout=vinvA(definition of vout)\begin{aligned} v_\textsf{in} - v_A &= R i_R && \textsf{(resistor)}\\ v_\textsf{in} - v_A &= L \frac{\dd i_L}{\dd t} && \textsf{(inductor)}\\ v_A &= \frac{1}{C} \int i_C \, \dd t && \textsf{(capacitor)} \\ i_C &= i_R + i_L && \textsf{(KCL at node } A\textsf{)}\\ v_\textsf{out} &= v_\textsf{in} - v_A && \textsf{(definition of } v_\textsf{out}\textsf{)} \end{aligned}

We have five equations in five variables: vAv_A, iRi_R, iLi_L, iCi_C, and voutv_\textsf{out}. Our goal is to eliminate all variables except for voutv_\textsf{out} so we obtain a single ODE relating vinv_\textsf{in} to voutv_\textsf{out}.

Let’s start by eliminating vAv_A by rewriting the last equation as vA=vinvoutv_A = v_\textsf{in} - v_\textsf{out} and substituting it into the first three equations:

vout=RiRvout=LdiLdtvinvout=1CiCdtiC=iR+iL\begin{aligned} v_\textsf{out} &= R i_R \\ v_\textsf{out} &= L \frac{\dd i_L}{\dd t} \\ v_\textsf{in} - v_\textsf{out} &= \frac{1}{C} \int i_C \, \dd t \\ i_C &= i_R + i_L \end{aligned}

Solve for the current in the first three equations and substitute into the last equation:

C(v˙inv˙out)=voutR+1LvoutdtC(\dot v_\textsf{in}-\dot v_\textsf{out}) = \frac{v_\textsf{out}}{R} + \frac {1}{L} \int v_\textsf{out} \, \dd t

Now differentiate to get rid of the integral and rearrage to obtain the final answer:

LCv¨out+LRv˙out+vout=LCv¨in\boxed{LC \ddot v_\textsf{out} + \frac{L}{R} \dot v_\textsf{out} + v_\textsf{out} = LC \ddot v_\textsf{in}}