Main content

## Electrical engineering

### Course: Electrical engineering > Unit 2

Lesson 4: Natural and forced response- Capacitor i-v equations
- A capacitor integrates current
- Capacitor i-v equation in action
- Inductor equations
- Inductor kickback (1 of 2)
- Inductor kickback (2 of 2)
- Inductor i-v equation in action
- RC natural response - intuition
- RC natural response - derivation
- RC natural response - example
- RC natural response
- RC step response - intuition
- RC step response setup (1 of 3)
- RC step response solve (2 of 3)
- RC step response example (3 of 3)
- RC step response
- RL natural response
- Sketching exponentials
- Sketching exponentials - examples
- LC natural response intuition 1
- LC natural response intuition 2
- LC natural response derivation 1
- LC natural response derivation 2
- LC natural response derivation 3
- LC natural response derivation 4
- LC natural response example
- LC natural response
- LC natural response - derivation
- RLC natural response - intuition
- RLC natural response - derivation
- RLC natural response - variations

© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# LC natural response - derivation

Formal derivation of the LC natural response, where we discover the frequency of oscillation. Written by Willy McAllister.

We derive the natural response of the inductor-capacitor, start text, L, C, end text, circuit.

*This is where sine waves are born.*

### Background

This article walks you step-by-step through the solution to a 2nd-order differential equation. I don't assume you have previous experience with this type of equation. Sal has videos on 2nd-order equations, too. 1st-order differential equations are solved step-by-step in the articles on start underline, start text, R, C, end text, end underline and start underline, start text, R, L, end text, end underline natural response. You can also check out Sal's videos on 1st-order differential equations.

### What we're building to

The natural response of an start text, L, C, end text circuit is described by this homogeneous second-order differential equation:

The solution for the current is:

Where omega, start subscript, circle, end subscript, equals, square root of, start fraction, 1, divided by, start text, L, C, end text, end fraction, end square root is the

*natural frequency*of the start text, L, C, end text circuit and start text, V, end text, start subscript, 0, end subscript is the starting voltage on the capacitor.In electrical engineering, we use the letter j as the square root of, minus, 1, end square root.

(The letter i is already taken for current.)

(The letter i is already taken for current.)

## Introduction

### First-order systems

start underline, start text, R, C, end text, end underline and start underline, start text, R, L, end text, end underline, that have one energy-storage element, start text, C, end text or start text, L, end text. The natural response of first-order circuits has an exponential shape that "slumps" to its final value. The energy in its storage element is dissipated by the resistor.

Up to now we've looked at first-order circuits, ### Second-order systems

Now we look at a circuit with two energy-storage elements and no resistor. Circuits with two storage elements are

*second-order systems*, because they produce equations with second derivatives.This article covers the start text, L, C, end text circuit, one of the last two circuits we will solve with full differential equation treatment. The last circuit to get this treatment is the start text, R, L, C, end text (in the next article). The mathematics of differential equations keeps getting harder. Fortunately, after we are done with the start text, L, C, end text and start text, R, L, C, end text, we learn a really nice shortcut to make our lives simpler.

We stick with differential equations instead of going straight to the shortcut because I want to show you where sine waves come from in electronics. Sine waves emerge from the solution to second-order equations. Sine waves are important. They are

*the*building block for*all*other types of signals.Second-order systems are the first systems that rock back and forth in time, or

*oscillate*. The classic example of a mechanical second-order system is a clock with a pendulum. In electronics, the classic second-order system is the start text, L, C, end text circuit.## Natural response

We want to find the

*natural response*of the start text, L, C, end text circuit. The natural response is what a circuit does when there is no external driving force. Natural response is always an important part of the total response of a circuit.## Natural response of a 2nd-order circuit

To get going on a precise answer for the natural response, let's set up the circuit with some initial energy. The components are labeled with careful attention to the sign convention for passive components. The inductor has an initial current of 0, start text, A, end text because the switch starts in the open position. We assume the capacitor has an initial voltage before the switch closes, v, start subscript, start text, C, end text, end subscript, equals, minus, start text, V, end text, start subscript, 0, end subscript. (
Notice how v, start subscript, start text, C, end text, end subscript has its plus sign at the bottom.) We let the switch close at t, equals, 0.

As with every circuit analysis, we begin by writing one of Kirchhoff's Laws. In this case, we'll go with Kirchhoff's Voltage Law (KVL) around the loop, starting at the lower left and going around clockwise.

This KVL equation contains an integral, which is awkward to deal with. The way to get rid of an integral (also known as an anti-derivative) is to take its derivative. We take the derivative of every term in the equation.

This gives us the second derivative of the start text, L, end text term, gets rid of the integral in the 1, slash, start text, C, end text term, and still leaves us with 0 on the right side.

The equation is tidier if the first term has no coefficient, so we divide through by start text, L, end text. This second-order differential equation captures the essence of our circuit.

### Propose a solution

When we solved the first-order start text, R, C, end text and start text, R, L, end text circuits, we guessed at an exponential solution for i, left parenthesis, t, right parenthesis. Guessing works with second-order equations, too. Our second-order equation has similar requirements: we want the function and its derivatives to look like each other so they can all add up to 0. The exponential function fits the description. We propose an exponential function with some adjustable parameters:

K is an amplitude factor that scales the current big or small.

s is up in the exponent sitting next to time t. Since exponents don't have dimensions, s has to have units of 1, slash, t, which is also known as

*frequency*. Since we are solving a natural response, s is called the*natural frequency*.Now we substitute our proposed function into the differential equation and check to see if it makes the equation true.

Let's work on the first term by taking two derivatives. The first derivative is:

And now the second derivative:

We plug our new second derivative back into the equation:

And do some factoring to pull K, e, start superscript, s, t, end superscript to the side:

How many ways can we make this equation true?

K, equals, 0 is pretty boring. 0, equals, 0, who cares?

e, start superscript, s, t, end superscript never becomes zero for a finite amount of time.

That leaves the interesting solution when the (s, plus, 1, slash, start text, L, C, right parenthesis, end text term equals 0:

This equation is called the

*characteristic equation*of our circuit. We want to find the*roots*of the characteristic equation (the value(s) of s that make left side equal zero).Whoa, look what's about to happen. We're about to take the square root of a negative number. We are about to generate an imaginary number.

s has two possible values:

Electrical engineers use the letter j to indicate the imaginary unit, square root of, minus, 1, end square root, since we already use i for current.

As a shorthand, we give a name to the square root term:

The roots of the characteristic equation can be expressed in terms of omega, start subscript, start text, o, end text, end subscript as:

How about that! The start text, L, C, end text circuit produces two complex natural frequencies, s, start subscript, 1, end subscript and s, start subscript, 2, end subscript. And one of the natural frequencies is negative. So curious. This will turn out to be very interesting.

Either s, start subscript, 1, end subscript or s, start subscript, 2, end subscript by itself is a root of the equation. For our proposed solution we allow the possibility of both natural frequencies, s, start subscript, 1, end subscript and s, start subscript, 2, end subscript. So we write a general solution as a linear combination of two terms, with two adjustable K constants.

At this point you might be thinking, "Complex exponents? Negative frequency? Is this really happening?" The answer is, yes. So please hang in there while we work with these expressions.

## Euler's identities

To work with these complex exponents, we resort to an important identity.

Using Maclaurin series expansions for e, start superscript, j, x, end superscript, sine, j, x, and cosine, j, x, it is possible to derive these

*Euler identities*:In the linked video, anytime Sal says i, we will say j.

These identities let us turn the strange e, start superscript, i, m, a, g, i, n, a, r, y, end superscript thing to a normal complex number. The real and imaginary parts come from a cosine or sine function, so both the real and imaginary components are somewhere in the range minus, 1 to plus, 1.

## Use Euler's identities

We can use Euler's identities in our proposed solution.

Multiply through the constants:

and gather the cosine terms and sine terms together:

We don't know K, start subscript, 1, end subscript or K, start subscript, 2, end subscript, or their sum or difference. It seems perfectly ok to replace the unknown K's with different unknown A's, just to make things appear a bit simpler.

If we let A, start subscript, 1, end subscript, equals, left parenthesis, K, start subscript, 1, end subscript, plus, K, start subscript, 2, end subscript, right parenthesis, and A, start subscript, 2, end subscript, equals, j, left parenthesis, K, start subscript, 1, end subscript, minus, K, start subscript, 2, end subscript), then i, left parenthesis, t, right parenthesis is:

We used Euler's identities to rearrange the complex exponentials into a sum of trig functions. This equation is the very first time in electronics we see a sine or cosine as a function of time (a

*sinusoidal waveform*).(Notice how we defined A, start subscript, 2, end subscript to include j, left parenthesis, K, start subscript, 1, end subscript, minus, K, start subscript, 2, end subscript, right parenthesis, so j no longer directly appears in the proposed solution.)

## Test the proposed solution

Next, we check our proposed solution by plugging it into the second-order differential equation. If we can come up with values for the constants that make the differential equation true, the proposed solution is a winner.

### Figure out the initial conditions

The initial conditions needed for a second-order circuit are a little more involved than for a first-order circuit.
When we did this for first-order circuits, start text, R, C, end text or start text, R, L, end text, we had to know a single value, a starting current or voltage. With a second-order start text, L, C, end text circuit, we need to know

*two*things: the current*and*the derivative of the current when the switch closes.We write down everything we know about t, equals, 0, start superscript, minus, end superscript (the moment just before the switch closes):

- The switch is open, so i, left parenthesis, 0, start superscript, minus, end superscript, right parenthesis, equals, 0
- The starting capacitor voltage is specified: v, start subscript, start text, C, end text, end subscript, left parenthesis, 0, start superscript, minus, end superscript, right parenthesis, equals, minus, start text, V, end text, start subscript, 0, end subscript.

If t, equals, 0, start superscript, plus, end superscript is the moment just after the switch closes, our goal is to find i, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis and d, i, slash, d, t, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis.

We know some properties of inductors and capacitors that will take us from t, equals, 0, start superscript, minus, end superscript to t, equals, 0, start superscript, plus, end superscript:

- Inductor current cannot change instantly, so

i, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis, equals, i, left parenthesis, 0, start superscript, minus, end superscript, right parenthesis, equals, 0 - Capacitor voltage cannot change instantly, so

v, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis, equals, v, left parenthesis, 0, start superscript, minus, end superscript, right parenthesis, equals, start text, V, end text, start subscript, 0, end subscript

(After the switch closes there is only one v, so we'll just call it v from now on.)

Now we have i, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis, but not d, i, slash, d, t, left parenthesis, 0, start superscript, plus, end superscript, right parenthesis, yet. Where can we get this derivative? How about from the inductor's i-v equation?

Now we have our second initial condition. This says the moment just after the switch closes, the current in the inductor starts changing with a slope of start text, V, end text, start subscript, 0, end subscript, slash, start text, L, end text amperes every second.

### Summary of the initial conditions

### Use the initial conditions to find A, start subscript, 1, end subscript and A, start subscript, 2, end subscript

We use our initial conditions one at a time to solve for the constants. The first initial condition is i, equals, 0 at t, equals, 0, start superscript, plus, end superscript. Let's plug it into the proposed solution and see where it takes us:

A, start subscript, 1, end subscript is 0, so the proposed cosine term drops out of the solution. Our proposed solution now looks like:

Now we go after A, start subscript, 2, end subscript using the second initial condition. The derivative of i at t, equals, 0, start superscript, plus, end superscript is:

Take the derivative of the proposed i, left parenthesis, t, right parenthesis:

Evaluating this expression at t, equals, 0:

We can expand omega, start subscript, circle, end subscript into start text, L, end text and start text, C, end text to get:

And finally, after a lot of hard work, the solution for the current is:

## Real component values

To demonstrate what the solution looks like, we assign component values start text, L, end text, equals, 1 henry and start text, C, end text, equals, 1, slash, 4 farad, and a starting voltage on the capacitor of 10, start text, V, end text.

The natural frequency, omega, start subscript, circle, end subscript is:

The current as a function of time is:

The current starts up the moment the switch closes:

The current takes off in a sine wave pattern that continues forever. (There is no resistor in this ideal circuit, so the energy never dissipates. In a real-world circuit there would be small resistances that eventually dissipate the energy.)

The natural frequency of the sine wave is omega, start subscript, circle, end subscript, equals, 2, start text, r, a, d, i, a, n, s, end text, slash, start text, s, e, c, end text. We can convert from radians per second to cycles per second, (also known as hertz, or start text, H, z, end text) knowing that 1 full cycle of a sine function corresponds to 2, pi radians. We usually use the symbol f for cycles per second. The conversion is:

The natural frequency of the circuit in cycles per second, hertz, start text, H, z, end text, is:

or equivalently, the current completes a full cycle every pi seconds.

### A quick look back at the initial conditions

We can look in close to the origin to see how the solution accounted for the initial conditions. The sine wave starts at the origin, i, equals, 0. And notice how the slope of the blue sine wave near the origin matches the slope of the straight black line, i, equals, 10, start text, A, end text, slash, start text, s, e, c, end text.

## Voltage, v, left parenthesis, t, right parenthesis

At this point we have solved the current. If you want to press on a little further, have a go at solving for the voltage, v, left parenthesis, t, right parenthesis.

**Find an expression for v, left parenthesis, t, right parenthesis after the switch closes.**

Probably the quickest route is to use the inductor i-v equation to solve for v in terms of d, i, slash, d, t.

## Summary

We derived the natural response of an start text, L, C, end text circuit by first creating this homogeneous second-order differential equation:

Then we assumed a solution of the form K, e, start superscript, s, t, end superscript, which gave us the

*characteristic equation*for the circuit:When computing the roots of the characteristic equation we ran head on into a

*very*strange expression: e, start superscript, j, omega, start subscript, circle, end subscript, t, end superscript, an exponential with complex exponent. We reached deep into our bag of tricks and pulled out:Euler's identities

e, start superscript, plus, j, x, end superscript, equals, cosine, x, plus, j, sine, x

e, start superscript, minus, j, x, end superscript, equals, cosine, x, minus, j, sine, x

e, start superscript, minus, j, x, end superscript, equals, cosine, x, minus, j, sine, x

These identities let us express the complex exponential as a combination of sine and cosine functions. (In electrical engineering, we use the letter j as the name for square root of, minus, 1, end square root, point)

Then we looked carefully at the circuit to find the initial conditions. For a second-order system, we found an initial i and an initial d, i, slash, d, t.

We found a function for i, left parenthesis, t, right parenthesis that satisfied the differential equation:

omega, start subscript, circle, end subscript, \equiv, square root of, start fraction, 1, divided by, start text, L, C, end text, end fraction, end square root is the

*natural frequency*of the start text, L, C, end text circuit. start text, V, end text, start subscript, 0, end subscript is the starting voltage on the capacitor.

(This solution applies when the starting current in the inductor is 0.)

## Want to join the conversation?

- Under First Order Systems in the Introduction, would it be right to call the natural response of a first order an exponential decay in terms of the graph? Thank you!(2 votes)
- Correct. All RC and RL circuits follow this curve. Don't forget there is another related curve to describe charging.(2 votes)

- After solving quadratic, we concluded that two roots are S1 and S2. But why did we are both to get general solution ? Isn't answer supposed to be one of the roots ?(1 vote)
- You can't decide ahead of time what the answer is 'supposed' to be. You have to see what the math tells you. We proposed a very general solution, with terms that included S1 and S2. Then we proceeded to test the proposed solution by plugging it into the differential equation and testing to see if the equation came out true. Along the way we computed the leading constants. In the end we got a true solution, which makes us very happy and also makes us love the proposed solution.

What would have happened to the math if our fancy 2-term proposed solution was too fancy? The derivation would cause one of the terms to drop out. This would happen for example if K2 turned out to be 0. That didn't happen, did it?(2 votes)

- Its stated that capacitor voltage can't change instantly, so v(0-) = v(0+) = Vo. But v(0-) is -Vo. Why were signs changed ?(1 vote)
- Sorry for the confusion. I could have been clearer. The capacitor voltage has its positive sign at the bottom of the capacitor (to respect the passive sign convention). In the section on Figure out the Initial Conditions I started with this definition, but then in the second circuit diagram where the switch is closed I change over to calling the voltage just "v" and flipped it to be positive at the top. I mentioned "v" before showing you what it is. Sorry.

There's an improved version of this article at https://spinningnumbers.org/a/lc-natural-response-derivation.html.(2 votes)

- Why can we write i(t) = K1 * e^jwt + K2 * e^-jwt? I would expect that we work out i(t) separately for each of s. Do I miss something?(1 vote)
- If you go down two parallel branches solving separately for each complex exponential term you eliminate solutions where both K's are non-zero at the same time. In fact, both K's can be non-zero, which results in the most interesting solutions.(2 votes)

- I think there is a typo in the last sentence.(1 vote)
- How did the imaginary j in A2 disappear after we solved for it? Does that mean (K1 - K2) is an imaginary number?(1 vote)
- The j is simply a component of A2. Since A2=j(K1-K2), and A2 is a real number, then (K1-K2) is also imaginary. We can try and solve for K1 and K2, but there is no need as K1 and K2 are not actually part of the solution that we need for i.(1 vote)

- Wouldn't it have been simpler to just use i=Ksin(st) as the initial guess for solving the 2nd order ODE? Since we know that the double derivative of a sine function ends up as a -sine function, you would always have some +sine + -sine = 0. Which fulfils the ODE.

Then you wouldn't have to mess around with complex numbers and Euler's formulae to get to the same answer. I tried it out on paper from i=Ksin(st) when I first saw you going with exponentials and got to the same result much faster.

Is there any reason to use exponentials other than trying to keep the same pattern as the derivations from the previous circuits?(1 vote)- If you are a great guesser then yes, you could go for a sine guess. Your last point is the main reason for walking through the complex exponential. You will see it again when you visit the RLC derivation.

I did a pretty good rewrite of this article here: https://spinningnumbers.org/t/topic-natural-and-forced-response.html#lc(1 vote)