Alternating Current: Differential Equation Approach
Contents
Alternating Current: Differential Equation Approach#
Before moving to phasor analysis of resistive, capacitive, and inductive circuits, this chapter looks at analysis of such circuits using differential equations directly. The aim is to show that phasor analysis makes our lives much easier.
For an excellent review of the mathematics of solving linear, first order, constant coefficient differential equations, see Dawkins [2022].
Voltage Divider#
Example
Find v\(_O\)(t) given that \(v_I(t)=4 \cos(10000t+45^\circ)\) V
Solution using differential equations
First remember that
and that
Then, from Kirchhoff’s Voltage Law:
or
Now, we need to solve this linear, first order differential equation (Dawkins [2022]).
Note
Dawkins [2022] says to:
Put the differential equation in the correct initial form.
Find the integrating factor \(\mu(t)\) using
Multiply everything in the differential equation by \(\mu(t)\) and verify that the left side becomes the product rule \((\mu(t)y(t))^′\) and write it as such.
Integrate both sides, make sure you properly deal with the constant of integration.
Solve for the solution \(i(t)\).
To get the equation into the correct form, just swap sides and divide both sides by \(L\):
Then we can see that \(p(t) = \frac{R}{L}\) so that
Then
and integrating both sides we get
so that
Substituting \(L= 0.1\) and \(R = 1000\) we get
And after a long time (\(t > 5 \frac{L}{R} = 500 \mu s\))
So
Current Divider#
Example
Find \(i_O(t)\) given that \(i_I(t)=400 \cos(1000t-30^\circ)\) mA.
Solution using differential equations
Here
and applying Kirchhoff’s Current Law (KCL) to the top node we get
Rearranging this into Dawkins’ preferred format, we get
and noting that \(v_R(t) = v_C(t)\)
For this example, our integrating factor \(\mu(t)\) is now
and multiplying both sides of our differential equation by this factor yields
We can now integrate this as we did in the voltage divider example to give
And after a long time (\(t > 5 RC = 2.5 ms\)):
Then
Mesh Analysis#
Example
Solve for \(v_O(t)\) using mesh analysis where
and
Solution using differential equations
First, let’s define the mesh currents \(I_1\) and \(I_2\).
\(I_1\) Mesh
Then, the KVL equation for the \(I_1\) mesh is
yielding
\(I_2\) Mesh
Looking at the \(I_2\) mesh, we see that there is a current source and that \(I_2\) is in the same direction as \(i_S\).
This simplifies the analysis because it means
Combining the \(I_1\) and \(I_2\) equations
Substituting this expression for \(I_2\) into (19) gives
Then, to turn this into a differential equation, we can differentiate both sides with respect to \(t\) to get:
Again using our integrating factor \(\mu(t) = e^{t/0.009}\), we get
Integrating both sides with respect to \(t\) gives
Rearranging, we get
and then after more than \(t \gg 5 \times 0.009\) we get
Solving for \(v_O(t)\)
Then
Nodal Analysis#
Example
Find \(v_O(t)\) using nodal analysis where
and
Solution using differential equations
First, let’s define the nodes and the component current directions.
Inductor Current
The current in inductor \(L\) can be derived from
so
which is in terms of the node voltages.
Capacitor Current
The current in the capacitor \(C\) is
Resistor Current
The current in the resistor \(R\) is
Node \(\color{red}{\bf X}\) :
At node \(\color{red}{\text{X}}\) we can immediately see that
Node \(\color{green}{\bf Y}\) :
At node \(\color{green}{\text{Y}}\), the KCL equation is
Taking the derivative with respect to \(t\) gives
Node \(\color{blue}{\bf Z}\) :
At node \(\color{blue}{\text{Z}}\), the KCL equation is
Then, integrating the equation gives:
Substituting
Substitution of (21) into (20) then yields:
which gives
or
Taking the derivative of the equation with respect to \(t\) yields
We can then solve this using Dawkins [2022] to find the homogenous and particular solutions.
Homogenous Solution
The characteristic equation for the homogenous solutions is
which has solutions
So the homogenous solution is
where \(c_1\) and \(c_2\) are constants that need to be determined by initial or other conditions on \(v_{Z_h}(t)\).
Particular Solution
To find the particular solution, assume
Substituting this into the left-hand side of the differential equation gives
Equating the two sides of the equation
shows that
and
so that
Finding \(v_Y(t)\)
Then we can substitute \(v_{Z_p}(t)\) into (21) to get
Finding \(v_O(t)\)
Then
References#
- Daw22a(1,2,3)
Paul Dawkins. Differential Equations - Linear Equations. https://tutorial.math.lamar.edu/classes/de/Linear.aspx, 2022. [Online; accessed 14-March-2023].
- Daw22b
Paul Dawkins. Differential Equations - Second Order DEs. https://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx, 2022. [Online; accessed 28-June-2023].