% Dynamic circuits and differential equations % Diego Trapero
Circuit solutions The solution of the differential equations that represent a circuit can be classified in three categories:
-
Steady state solutions. Steady state solutions are solutions that don't depend of time and that are reached when
$t -> \infty$ . Steady state solutions are reached after a time after the system is initiated and they are not time dependent.- Steady state solutions are the limit of the solutions of the differential equation when
$t \to \infty$ that satisfy$\frac{df(t)}{dt} = 0$ .
- Steady state solutions are the limit of the solutions of the differential equation when
-
Periodic steady state solutions. Periodic steady state are the limit of the solutions of a ODE where
$t -> \infty$ that are periodical functions of time. Steady state solutions are reached after a time after the system is initiated and they are periodical functions of time.- Periodic steady state solutions are the limit of the solutions of the differential equation when
$t \to \infty$ that are periodic functions.
- Periodic steady state solutions are the limit of the solutions of the differential equation when
-
Transient solutions. Transient solutions are solutions that depend on time.
Direct and alternating current
-
Direct Current (DC) is the unidirectional flow of electric charge.
- Constant current. The most strict definition of Direct Current is the case where current and voltage are constant in time.
- Constant polarity. A more relaxed definition of Direct Current is the case where polarity of components doesn't change in time.
- DC circuit. A DC circuit is a circuit composed only of constant current sources, constant current sources and resistors.
- DC powered circuits. The term DC is also used to refer to circuits powered by DC (constant) sources, even when they may not be DC cricuits; e.g. a DC rectifier.
-
Alternating Current (AC) is the flow of electric charge that periodically changes.
$$ \begin{circuitikz} \draw (0,0) to C, l_=$C$, v^<=$v(t)$, i>_=$i(t)$ ; \end{circuitikz} $$
The differential equation of the capacitor is
-
Continuity of the voltage
$v(t)$ and existance of a solution for the equation For the equation to have a solution in any time$t$ ,$\frac{dv(t)}{dt}$ , must exist in al the real domain. If$v(t)$ has a discontinuity or is not differentiable in a point of its domain, then$\frac{dv(t)}{dt}$ is undetermined and so is$i(t)$ . This doesn't means per se that$i(t)$ is infinite, it's just indetermined. -
Sudden changes in voltage If
$v(t)$ changes abruptly, then its derivative$\frac{dv(t)}{dt}$ is very big, and so is the current throught the capacitor,$i(t)$ . -
Voltage throught the capacitor should be continuous In a real circuit, the voltage function
$v(t)$ of a capacitor may not be discontinuous, but vary from one value to another in a very short period of time. This situation is often modelled by a discontinuity in the$v(t)$ function, althought in reality is a very step, almost vertical, part of the function (it is not vertical because voltage cannot take two different values in the same time, and in the real world, it can neither go from one value to another without passing through all the values inbetween [how this last thing be probed, if it can be proved?]). In this case,$\frac{dv(t)}{dt}$ is very big, what leads to a very large$i(t)$ current. A real capacitor can't withstand the very large current that such a sudden change drives through it, and the theoretical model has no solution if there is a discontinuity. This is the reason why, in this model, the voltage throught the capacitor is required to be continuous in time. -
Capacitor in DC steady state is an open circuit In DC steady state,
$\frac{dv(t)}{dt} = 0$ , so, using the capacitor equation,$i(t) = \frac{dv(t)}{dt} = 0$ . In DC steady state, the no current flows through the capacitor, it acts as an open circuit.
###Capacitor voltage equation
Solving the capacitor differential equation using separation of variables, we obtain the capacitor voltage equation:
###Charging a capacitor with a constant voltage source and resistor
$$ \begin{circuitikz}[scale=1.2] \draw (0,0)toV, i^>=$i(t)$ -- (0,2)toR, l=$R$ -- (2,2)toC, l^=$C$, v_<=$v_C$ -- (2,0)toshort ; \end{circuitikz} $$
-
$v_s(t)$ is a step function -
$v_c(t=0) = 0$ , the capacitor starts discharged
- Homogeneus solution
CP:
Root:
- Particular solution
We assume solutions of the form
- General solution
- Initial conditions
###Discharging a capacitor through a resistor
$$ \begin{circuitikz}[scale=1.2] \draw (0,0)toC, i^>=$i(t)$ (0,2)toshort -- (2,2)toR -- (2,0)toshort ; \end{circuitikz} $$
###Charging a capacitor with a constant current source
$$ \begin{circuitikz}[scale=1.2] \draw (0,0)toI, i^>=$i(t)$ -- (0,2)toshort -- (2,2)toC, l^=$C$, v_<=$v_C$ -- (2,0)toshort ; \end{circuitikz} $$
Charging a capacitor with a switched current source problem enuntiation Given the circuit represented above, with a switched current source connected in series to a capacitor of capacitance
- The current throught the capacitor
$i(t)$ is a step function: $$ i(t) = blah$$ - Initial condition:
$v_C (t = 0) = v_0$
Calculate the voltage across the capacitor
- for
$t>0$ ,$i(t)= I$ , constant, and the capacitor equation becomes
Solve the separated variables equation:
In this condition, a real capacitor would eventually break by "dielectric rupture"
-
for
$t<0$ , using the continuity of the voltage in a capacitor principle, the voltage is$v(t) = v(t = 0) = v_0$ -
if the value of the current source becomes 0 at time
$t_OFF$ , the differential equation is
This means that the voltage remains constant. Due to the continuity capacitor voltage, the voltage after
$$ \begin{circuitikz} \draw (0,0) to L, l_=$L$, v^<=$v(t)$, i>_=$i(t)$ ; \end{circuitikz} $$
The differential equation of the inductor is
Continuity of current in the inductor In an inductor,
- For inductors, the
$i-v$ characteristics equation$v(t) = \frac{di(t)}{dt}$ implies that if there were a dis- continuity in the current waveform, an infinite amount of voltage should appear across the inductor. Therefore, the current waveform in an inductor should be continuous. This means that if a switch is thrown at time$t_0$ , we should have$i(t_0^+) = i(t_0^-)$ . Note the inductor voltage waveform can have a discontinuity. # - Proof/Justification? if
$v(t)$ is not continuous in$t=t_0$ , then$dv(t)/dt$ doesn't exists, and neither$i(t)$ through the capacitor
Inductor in DC steady state In steady state,
###Charging an inductor with a constant voltage source (switched)
$$ \begin{circuitikz} \draw (0,0)toV=$v(t)$ -- (0,2)toshort -- (2,2)toL, l=$L$ -- (2,0)toshort ; \end{circuitikz} $$
\tabulinesep=2mm \begin{longtabu} to\linewidth{|X[1,m,c]|X[2,m,c]|X[2,m,c]|}
\hline
What & Capacitor & Inductor \\
\hline
Symbol
&
\begin{circuitikz}
\draw (0,0) to[C, l_=$C$, v^<=$v(t)$, i>_=$i(t)$](2,0);
\end{circuitikz}
&
\begin{circuitikz}
\draw
(0,0) to[L, l_=$L$, v^<=$v(t)$, i>_=$i(t)$](2,0)
;
\end{circuitikz}
\\
\hline
Differential equation
&
$$i(t) = C \frac{dv(t)}{dt} $$
&
$$v(t) = L \frac{di(t)}{dt} $$
\\
\hline
Hydraulic analogy
&
Hydraulic accumulator
\vspace{30mm}
&
Paddle wheel
\vspace{30mm}
\\
\hline
Voltage
&
$$
\begin{circuitikz}
\draw
(0,0) to[I, i^>=$i(t)$](0,2) --
(0,2) to[short](2,2) --
(2,2) to[C, l^=$C$, v_<=$v(t)$](2,0) --
(2,0) to[short](0,0)
;
\end{circuitikz}
$$
$$ v(t) = \frac{1}{C} \int^{t}_{t_0}{i(t) dt} + v(t_0) $$
&
$$
\begin{circuitikz}
\draw
(0,0) to[I, i^>=$i(t)$](0,2) --
(0,2) to[short](2,2) --
(2,2) to[L, l^=$L$, v_<=$v(t)$](2,0) --
(2,0) to[short](0,0)
;
\end{circuitikz}
$$
$$v(t) = L \frac{di(t)}{dt} $$
\\
\hline
Current
&
$$
\begin{circuitikz}
\draw
(0,0) to[V=$v(t)$](0,2)
(0,2) to[short](2,2)
(2,2) to[C, l^=$C$, i>_=$i(t)$](2,0)
(2,0) to[short](0,0)
;
\end{circuitikz}
$$
$$i(t) = C \frac{dv(t)}{dt} $$
&
$$
\begin{circuitikz}
\draw
(0,0) to[V=$v(t)$] (0,2)
(0,2) to[short](2,2)
(2,2) to[L, l^=$L$, i>_=$i(t)$](2,0)
(2,0) to[short](0,0)
;
\end{circuitikz}
$$
$$ i(t) = \frac{1}{L} \int^{t}_{t_0}{v(t) dt} + i(t_0) $$
\\
\hline
DC equivalent
&
open circuit
$$\frac{dv(t)}{dt} = 0 \rightarrow i(t) = 0 $$
&
short circuit
$$\frac{di(t)}{dt} = 0 \rightarrow v(t) = 0 $$
\\
\hline
Discontinuities
&
\begin{itemize}
\item $\frac{dv(t)}{dt}$ must exist for a solution (indeterminate in discontinuities)
\item Big changes in voltage ($\frac{dv(t)}{dt}$) led to high currents
\end{itemize}
Often, in the model no discontinuities in voltage signal are allowed because they represent very rapid changes in voltage in a real circuit, that could led to breaking the component due to a high current.
&
\begin{itemize}
\item $\frac{di(t)}{dt}$ must exist for a solution (indeterminate in discontinuities)
\item Big changes in current ($\frac{dv(t)}{dt}$) led to high voltages
\end{itemize}
Often, in the model no discontinuities in current signal are allowed because they represent very rapid changes in current in a real circuit, that could led to breaking the component due to a high voltage.
\\
\hline
Constant rate charge
&
\vspace{30mm}
&
\vspace{30mm}
\\
\hline
Discharge resistor
&
\begin{circuitikz}[scale=1.2]
\draw
(0,0) to[C, i^>=$i(t)$] (0,2)
(0,2) to[short] (2,2) --
(2,2) to[R] (2,0) --
(2,0) to[short] (0,0)
;
\end{circuitikz}
\vspace{30mm}
&
\begin{circuitikz}[scale=1.2]
\draw
(0,0) to[L, i^>=$i(t)$] (0,2)
(0,2) to[short] (2,2) --
(2,2) to[R] (2,0) --
(2,0) to[short] (0,0)
;
\end{circuitikz}
\vspace{30mm}
\\
\hline
???
&
\begin{circuitikz}
\draw
(0,0) to[V, i^>=$i(t)$](0,2) --
(0,2) to[R](2,2) --
(2,2) to[C, l^=$C$, v_<=$v(t)$](2,0) --
(2,0) to[short](0,0)
;
\end{circuitikz}
$$v(t) = V_s ( 1 - e^{-\frac{1}{RC}t} )$$
&
\begin{circuitikz}
\draw
(0,0) to[I=$i(t)$, i^>=$i(t)$] (0,2)
(0,2) to[R](2,2)
(2,2) to[L, l^=$L$, v_<=$v(t)$](2,0)
(2,0) to[short](0,0)
;
\end{circuitikz}
\vspace{30mm}
\\
\hline
???
&
\begin{circuitikz}
\draw
(0,0) to[I, i^>=$I$](0,2) --
(0,2) to[R](2,2) --
(2,2) to[C, l^=$C$, v_<=$v(t)$](2,0) --
(2,0) to[short](0,0)
;
\end{circuitikz}
\vspace{30mm}
&
\begin{circuitikz}
\draw
(0,0) to[V=$v(t)$, i^>=$i(t)$] (0,2)
(0,2) to[R](2,2)
(2,2) to[L, l^=$L$, v_<=$v(t)$](2,0)
(2,0) to[short](0,0)
;
\end{circuitikz}
\vspace{30mm}
\\
\hline
\vspace{30mm}
&
\vspace{30mm}
&
\vspace{30mm}
\\
\end{longtabu}
-
$x(t_0)$ , initial value of$x$ -
$x_\infty(t_0)$ , steady state value of$x$ -
$\tau$ , time constant- RC:
$\tau = RC$ - RL:
$\tau = \frac{L}{R }$
- RC:
RLC Circuit. An RLC circuit is is an electrical circuit consisting of a resistor, an inductor, and a capacitor, connected in different configurations.
The most common RLC circuits are the RLC series circuit and the RLC parallel circuit:
$$ \begin{circuitikz}[scale=1.2] \draw (0,0) toV=$v(t)$, i^>=$i(t)$ -- (0,2) toR=$R$ -- (2,2) toL=$L$ -- (2,0) toC=$C$ ; \end{circuitikz} $$
-
Differential equations of the components
1.1 Resistor:
$v(t) = i(t) \cdot R$ 1.2 Inductance:
$v(t) = L \frac{d i(t)}{dt}$ 1.3 Capacitor:
$i(t) = C \frac{d v(t)}{dt}$ Capacitor voltage equation $$ i(t) = C \frac{d v(t)}{dt} $$ $$ \frac{1}{C} i(t) = d v(t) $$ $$ \int^{v(t)}{v(t = - \infty)}{d v(t)} = \frac{1}{C} \int^{t}{t = - \infty}{i(t) dt} $$ $$ v(t) = \frac{1}{C} \int^{t}_{t = - \infty}{i(t) dt} + v(t = - \infty) $$
-
Kirchhoff Voltage Law
$$v_S(t) = v_R(t) + v_L(t) + v_C(t)$$ -
Substitute the component equations in the KVL equation
- If we differentiate both sides of the equation once, we obtain a linear differential equation
Differential equation of an RLC circuit (DERLCC). The differential equation of an RLC circuit is
which is a linear second-order equation with constant coefficients. It can be solved by different methods: Constant Coefficient Method, Laplace... $$ L i'' + R i' + \frac{1}{C} i = v_S' $$
The homogeneous differential equation of a RLC series circuit is the second order linear constant coefficient differential equation
This case arises when the voltage source is constant,
The characteristical polynomial of the equation is $$ L r^2 + R r + \frac{1}{C} = 0 $$
Being a second order linear equation, solutions depend on the roots of the characteristical polynomial, they can be
a) b) c)
Solving for a steady state, all therms other than constant or periodic functions can be discarded.
The most common signal in Electronics is the sinusoidal wave, and
If we make
The characteristical polynomial of the equation is $$ L r^2 + R r + \frac{1}{C} = 0 $$