Second-Order Circuit Problems


Second-Order Circuit Problems

Anna
Today we’re looking at basic circuit problems modeled by second-order differential equations. If you’ve studied spring-mass systems, the mathematics will feel familiar: both use many of the same solution methods. The main difference is what the solution represents. In a circuit, we track charge over time; in a spring-mass system, we track displacement from equilibrium.

Michael
Let’s set up the circuit variables. We’ll call charge q of t and current i of t. Their key relationship is that the current is the rate at which charge changes: q prime of t equals i of t. So if we know the current, we can find the charge by integrating it over time.

Anna
The circuit also has resistance R, inductance L, and capacitance C. In this model, they’re positive constants. An electromotive force, or EMF, is represented by a function of time, often something like a cosine. It acts as an external input that supplies energy to the circuit.

Michael
With those quantities, the circuit equation is L times q double prime, plus R times q prime, plus one over C times q, equals the EMF function f of t. Dividing through by L puts it in standard form: q double prime, plus R over L times q prime, plus one over L C times q, equals f of t over L.

Anna
That form makes the analogy with a forced spring-mass equation clear. If there’s no EMF, the right-hand side is zero, and we have a homogeneous equation. If there is an EMF, the equation is nonhomogeneous. To specify a particular circuit problem, we also give initial charge q of zero and initial current i of zero—which is the same as q prime of zero.

Michael
For the no-EMF equation, we solve the homogeneous constant-coefficient equation using its characteristic, or auxiliary, polynomial. The roots tell us the form of the charge over time and, in particular, whether the circuit is overdamped, critically damped, or underdamped.

Anna
The characteristic equation is m squared plus R over L times m plus one over L C equals zero. Its discriminant has the same sign as R squared minus four L over C. That expression tells us what kind of roots we’ll get: distinct real roots, a repeated real root, or complex roots.

Michael
First, overdamping: when R squared minus four L over C is positive, there are two distinct real roots. The solution is a sum of two exponential terms, each with its own root. With positive R, L, and C, both roots are negative, so the charge decays toward zero without oscillating.

Anna
For critical damping, the discriminant is zero, so the characteristic equation has a repeated root. The solution has the form c one e to the m t plus c two t e to the m t. It still decays toward zero, but the repeated-root form includes that extra factor of t.

Michael
And if the discriminant is negative, the roots are complex. The solution can be written as an exponentially scaled combination of cosine and sine: e to the a t times c one cosine b t plus c two sine b t. The real part a is negative in this circuit model with positive resistance, so the oscillations shrink over time. That’s underdamping.

Anna
There’s a useful phase-shift version of that same solution. Starting with c one cosine b t plus c two sine b t, set the amplitude a naught equal to the square root of c one squared plus c two squared, and set phi to the angle whose tangent is c two over c one, with the quadrant chosen to match the signs of the constants.

Michael
Then c one is a naught cosine phi and c two is a naught sine phi. Using the cosine difference identity, the solution becomes e to the a t times a naught cosine of b t minus phi. This makes the amplitude and phase shift easier to see. The oscillation’s period is two pi over b; the exponential factor changes its size over time.

Anna
Let’s apply that to a circuit with resistance 30 ohms, inductance 5 henries, capacitance one seventy-fifth of a farad, and no EMF. Suppose the initial charge is 5 coulombs and the initial current is 3 amperes. Substitution into the equation gives q double prime plus 6 q prime plus 15 q equals zero.

Michael
The characteristic equation is m squared plus 6m plus 15 equals zero, with roots negative 3 plus or minus i times the square root of 6. The roots are complex, so we know the system is underdamped. The charge has the form e to the negative 3t times c one cosine of the square root of 6 t plus c two sine of the square root of 6 t.

Anna
Use the initial charge first: q of zero equals 5, so c one is 5. Then differentiate and use q prime of zero equals 3. That gives negative 3 times c one plus the square root of 6 times c two equals 3, so c two is 3 times the square root of 6.

Michael
The amplitude is therefore the square root of 5 squared plus the quantity 3 root 6 squared, which is root 79. The phase angle is arctangent of 3 root 6 over 5. So the phase-shift form is e to the negative 3t times root 79 times cosine of root 6 t minus that phase angle. The oscillations fade because of the exponential factor.

Anna
Now let’s add an EMF. Take resistance zero, inductance one-half henry, and capacitance one-half farad. Let the EMF be 4 cosine 2t, with initial charge 8 coulombs and initial current 12 amperes. Dividing the circuit equation by the inductance gives q double prime plus 4q equals 8 cosine 2t.

Michael
The homogeneous equation is q double prime plus 4q equals zero, with solutions cosine 2t and sine 2t. The forcing has the same frequency as those homogeneous oscillations, so the usual trial of A cosine 2t plus B sine 2t overlaps with the homogeneous solution. For this resonance case, multiply that trial by t.

Anna
Substituting a trial of t times A cosine 2t plus B sine 2t into the equation gives A equals zero and B equals 2. A particular solution is therefore 2t sine 2t. The full solution is c one cosine 2t plus c two sine 2t plus 2t sine 2t.

Michael
Apply the initial conditions. Since q of zero is 8, c one is 8. Differentiating and using q prime of zero equals 12 gives 2c two equals 12, so c two is 6. The solution is 8 cosine 2t plus 6 sine 2t plus 2t sine 2t.

Anna
The first two terms can be combined into phase form. Their amplitude is the square root of 8 squared plus 6 squared, or 10, and their phase is arctangent of 6 over 8, about 0.6435 radians. So we can write the full solution as 10 cosine of 2t minus 0.6435, plus 2t sine 2t.

Michael
That example also highlights an important consequence of having no resistance: there’s no exponential decay factor to damp the oscillations. And because the forcing frequency matches the natural frequency, the particular solution grows in amplitude through the factor t. So this resonant response doesn’t settle into a bounded, repeating oscillation.

Anna
That brings us to transient and forced, or steady-state, responses. The complementary solution, usually written q c, comes from the homogeneous equation. With resistance, its decaying part becomes negligible over time, so it’s called the transient response. A particular solution q p represents the response associated with the EMF.

Michael
One subtle point: a periodic particular solution doesn’t necessarily have a literal limit as time approaches infinity. For example, cosine 4t keeps oscillating, so it has no single limit. In many circuit discussions, ‘steady state’ means the ongoing forced response after the transient has faded—not necessarily a constant limit. And in the undamped resonance example, the response grows rather than settling down.

Anna
So the overall strategy is: write the circuit equation, use the initial charge and current, solve the homogeneous equation through its characteristic roots, and add a particular solution if there’s an EMF. Then interpret the result: real roots give nonoscillating decay, a repeated root gives critical damping, and complex roots give decaying oscillations when resistance is positive.

Michael
And the bridge to spring-mass systems is the same core differential-equation toolkit. What changes is the physical interpretation: charge and current for circuits, displacement and its motion for springs. Once you can identify the equation, its roots, and any forcing, you have a clear path from the mathematics to what the system is doing.

Ask anything
We've read this whole study set, so questions about it get the best answers.