Main content
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
© 2024 Khan AcademyTerms of usePrivacy PolicyCookie Notice
RC natural response
Natural response of an RC circuit. The product of R and C is called the time constant. Written by Willy McAllister.
The Resistor-Capacitor circuit is one of the first interesting circuits we can create and analyze. Understanding the behavior of this circuit is essential to learning electronics. Forms of this circuit can be found everywhere. Sometimes you will create this circuit on purpose, and other times it appears all on its own.
This is one of the first circuits we come across where we have to account for time. To develop a precise understanding requires methods from calculus. We use derivatives to describe the circuit.
We want to understand the natural response of this circuit.
What we're building to
A resistor-capacitor circuit, where the capacitor has an initial voltage , the voltage will diminish exponentially according to:
Where is the voltage at time .
This is called the natural response.
The time constant for an circuit is
The circuit we will study is a resistor in series with a capacitor. How does this circuit respond to an applied voltage?
First, use intuition to predict what happens
The circuit we explore in this section is:
We want to know what happens to , the capacitor voltage, when we flip the switch back and forth.
We’ll analyze these questions one at a time:
What is , the voltage across the capacitor,
- before the switch flips up?
- after the switch flips up?
- after the switch flips back down?
Before the switch flips up
We begin our analysis by determining the initial state of the circuit, before anything changes. With the switch in the down position we can draw the following equivalent circuit. is volts, and the left end of is connected to the bottom of .
Let's assume for the moment the circuit has been sitting in this state for a long time, so any charge that may have been stored on the capacitor in the past has long since drained away through the resistor, leaving . From this we know the voltage across the capacitor must be volts, because .
Since the capacitor has volts across it, so must the resistor, so the current through (and the current through the capacitor) must be amps. The circuit is said to be ‘in steady-state’ or ‘quiescent’ or ‘at an equilibrium’. We've answered the first question, "What is the voltage across before the switch flips."
After the switch flips up
Now flip the switch up. The voltage becomes , and something is about to change.
Current begins flowing out of the positive terminal of the battery, through and . Charge accumulates on the capacitor. The accumulating charge generates a rising voltage across the capacitor ( ). The time period where voltage is changing is called a transient period.
What keeps from rising forever? Charge accumulates on the capacitor until rises to the same value as the battery voltage: . At that point, the voltage across the resistor is volts, so current in the resistor stops flowing (Ohm's Law). That also means current (charge) stops flowing into the capacitor. The amount of charge on the capacitor stops changing and therefore the capacitor voltage becomes constant: . The transient period has ended.
We've answered the second question, "What is the voltage across after the switch flips up?" After a transient period, the circuit assumes a new steady state with . It remains there until something comes along to disturb its bliss.
After the switch flips back down
Now we’ll flip the switch again, returning it back to the negative terminal of the battery ( ). What happens now?
This is the same circuit we started with, but this time is storing some charge, so there's a starting voltage across it. Because of this, now has a voltage difference across its terminals. The voltage is at the moment the switch flips down. Therefore, a current must start to flow in (so says Ohm's Law). The charge providing this current comes from the charge stored in . Charge will continue to flow until all the charge originally stored in is depleted. gradually falls to zero volts. The voltage difference across also falls to zero. The circuit has returned to its original equilibrium state. And finally, we've answered the third question, "What is the voltage across after the switch flips back down?"
Summary
Using just our intuition, we know the capacitor voltage, , starts at volts, rises to , and then goes back to volts again. Said another way, goes from an initial steady state, through a transient to a new steady state, then through a second transient back to its original state. We know the exact starting and ending voltage of each transient. Not bad, but ... What do we not know? We don’t know how long the transients last or their shape. It’s time to break out some calculus to get a precise and useful solution.
Formal derivation of the natural response
We start with the simplest possible case. The circuit is just and connected together. By "find the response" we mean find and as a function of time.
To make the circuit do something (other than just sit there), we place an initial charge on the capacitor. This is done by an external unseen circuit. After adding this energy, we let go and see what the circuit does naturally. Imagine the capacitor was charged to some initial voltage by an external circuit, which was disconnected just a moment ago.
The result we are about to derive is called the natural response of an circuit. The natural response is what the circuit does when there is an initial condition, but nothing else is driving the circuit.
Model the components
The and components in the circuit can be described by their characteristic voltage-current equations.
For the resistor, we pick a form of Ohm’s Law:
The corresponding voltage-current relationship for the capacitor is:
Model the circuit
We can write an equation using Kirchhoff's Current Law for the two currents flowing out of the top node.
Solve the circuit
The previous equation is a first-order ordinary differential equation (ODE). We have the math skills to solve this kind of equation.
The solution to a differential equation is some sort of function, in our case, some function of voltage with respect to time, . is a solution if it makes the differential equation true.
(differential equation)
Where do ODE solutions come from? One way is to make an informed guess at a solution, and try it out.
While gazing at the differential equation, consult your mental trash bin of knowledge about functions.
The two terms in the equation have to add up to zero. This suggests the first derivative of the function needs to have the same form or shape as the function itself. Search your memory for any function whose first derivative looks just like the function itself. Hmm...
A function that fits the bill is some form of the exponential, , because the derivative of an exponential is another exponential.
To solve our differential equation, we are going to make a bold proposal for the form of the solution. (This part takes courage.) Then we will plug our solution into the equation and work out a few constants specific to the circuit. (This part takes math.) If we find constants that make the equation true, then the proposed function is a solution to the equation, and we win.
Our proposed solution is an exponential function decorated with adjustable parameters, and .
is time is voltage as a function of time and are constants we have to figure out is an amplitude factor that makes the voltage bigger or smaller. is in the exponent. It has to have units that cancel out time. So the units of are .
Let’s check to see if our proposed solution works...
Substitute , into the differential equation:
Work out the derivative in the first term
Put back into the differential equation:
Now we can factor out
This equation represents our specific circuit, with the proposed solution. Almost there. Next, we work out two constants and see if the equation is true.
How many ways can we make the left side equal zero? Three ways: any of the three terms could be zero, or or .
A trivial solution is . That’s equivalent to setting the initial charge on the capacitor to and the circuit just sits there doing nothing. That’s so boring.
Another trivial solution is to make . Set to any negative value and let go to . The exponential completely dies out, which means we sit around for infinity time waiting for the capacitor to fully discharge. Again, not too interesting.
A more thought-provoking solution comes from the third choice:
This equation is true if:
So far, our proposed solution looks like:
Nearly done. All that's left is to figure out . Examine the initial conditions of the circuit. Recall the capacitor was initially charged to voltage . If we call that moment , then
Which evaluates to .
We found an and to make the differential equation true. We are all done. Drum roll, please...
The general solution for the natural response of an circuit is,
Time Constant
An exponent cannot have units. This means the product in has to have units of time, to cancel time in the numerator. This means , something you might not have guessed.
The product of and is called the time constant of this circuit, and it usually has the Greek letter name (tau).
And we write the solution as:
When is equal to the time constant, the exponent of becomes , and the exponential term is equal to , or about . The time constant determines how fast the exponential curve comes down to zero. After time constant has passed, the voltage is down to of its initial value.
Example 1
For the natural response circuit,
let , , and .
let
a. Write the expression for
b. What is when ?
c. Plot
b. What is
c. Plot
Solution to example 1
a. Write the expression for
b. What is when ?
The product has units of seconds.
c. Plot
The shows the answer from part b: when .
A useful rule of thumb:
When time equals the time constant, , the voltage is down from its initial value by a factor of , or down to roughly of its starting value. This is true for any initial voltage, and any product.
Example 2
Let , , and .
a. Write the expression for v(t).
b. What is the time constant?
c. Plot .
d. How many times constants does it take the voltage to drop by from its initial value?
b. What is the time constant?
c. Plot
d. How many times constants does it take the voltage to drop by
Solution to example 2
a. Write the expression for v(t).
b. What is the time constant?
c. Plot .
The shows the answer for part d.
d. How many times constants does it take the voltage to drop by from its initial value?
Reading the plot above, we see the voltage falling to volts at around nsec, which corresponds to time constants. This point is marked by the .
Another rule of thumb
Any transient is just about finished after time constants. This is true for any initial voltage, and any product.
Summary
The natural response of an circuit is an exponential:
Where is the voltage at time .
The time constant for an circuit is
Epilogue
function
The function either grows ( ) or decays ( ) at some rate, depending on . There are plenty of other functions with this same general shape. Any function that looks like has the same curved shape. If we can get the same shape with different values of , like or , what's the big deal about this irrational number ? The reason we love more than any other choice is that is the one and only number for which the derivative of is the same as the function. That is, the slope of at any point equals the value of .
No muss, no fuss, exactly the same thing.
Exponentials occur in nature
The problem we just solved, the natural response of an RC circuit, is representative of things that occur often in nature. The exponential function is a very good mathematical model for describing how things grow or decay. Uranium decay, population growth, mortgage payments, heating and cooling, and other real-world processes. In the broadest terms: Exponentials arise in situations where the amount of change is proportional to the amount of stuff. For our RC circuit, the rate of change of voltage is proportional to the voltage. The curve is steep when the voltage is high, and shallows out as voltage drops.
Want to join the conversation?
- Are differential equations truly necessary? Couldn't this material become more accessible (to lower math backgrounds) if things were introduced in the frequency domain rather than the time domain? Then we would be using only algebra and not calculus. The transformations back to time domain could be introduced later.(21 votes)
- I like your style and thinking.Keep up the good thinking and you could be an amazing engineer!(12 votes)
- Why was the current in resistor and current in capacitor taken in opposite directions in derivation of RC natural response ?(6 votes)
- Good question. This is one of the tricky parts of the analysis that most textbooks skip over.
In the section titled "Model the components" I define two current arrows for the resistor and capacitor currents. I use two current arrows because I want to be sure I get the signs right when I use Ohm's Law for the resistor and i = Cdv/dt for the capacitor. Notice that these equations do not have a negative sign. That's because both of them respect the Sign Convention for Passive Components. (Resistor current flows into the positive voltage terminal of the resistor. Capacitor current flows into the positive voltage terminal of the capacitor.)
If I had defined a single current arrow, I would have to write one of those equations with a negative sign. I find it awkward to insert negative signs into i-v equations, so I did it the two-arrow way.
But now I have two current arrows I have to deal with... In the next section, "Model the circuit", the two currents participate in a KCL equation that gives us the differential equation to be solved. It is a pretty simple KCL equation. The signs on the two terms in the resulting equation came out correct, which is the reward for doing the two-current-arrows-then-KCL method.
You should try this: Define just a single current arrow named i. Then model the components with i-v equations, then model the circuit. This time you equate i in the resistor to i in the capacitor. When you derive the differential equation do you get the same thing? It takes some care to get this right. If it works for you, make that your favorite method.(11 votes)
- how many different parts of a circuit are there(7 votes)
- If we are asked to find the current in the resistor of Example 1 . What to do ?(4 votes)
- In example 1, we solved the voltage across the resistor, v(t). Since you know the voltage, and you know the resistor value, you can use Ohm's Law to get the current, i(t). Incidentally, that's also the answer for the current in the capacitor. The same current flows in both R and C.
Before t=0, the current in the resistor depends on the details of how the "helping" circuit (the switch) was operated. In the case of the specific circuit we started with, the current was 0 before the switch flipped.(6 votes)
- How to find equivalent resistance of a complex circuit(4 votes)
- There are several different ways to to do this. I would recommend that first you should convert any Inductors and capacitors in your circuit into impedances. For inductors use Z = jwl. (Where j represents the imaginary impedance, similar to i in mathematics). w is the angular frequency. l is the inductance. For capacitors use Z = 1/jwc (also, -j/wc which can be obtained by multiplying both the numerator and the denominator by j). c is the capacitance. Resistors stay the same (the ohms are purely real). Now combine all of these impedances as if they were a large resistor network. You will likely need a calculator that is capable of doing complex numbers. Good Luck and I hope that helps!(4 votes)
- In the first part of the lecture, we are asked what is Vc before the switch is flipped up, after the switch is flipped up, and finally after the switch is flipped back down, For the second part (What is Vc after the switch is flipped up) it states that the capacitor voltage(Vc) will rise to the same voltage as the battery. This is incorrect because there is also a voltage drop across the resistor so Vc would be Vbatt - Vr. KVL equation would be Vbatt - Vr - Vc = 0.(2 votes)
- As the capacitor is charging, current is flowing and there is some voltage drop across the resistor. But, the longer the current flows, the more charge accumulates on the capacitor. Eventually, the charge on the capacitor reaches the point where the voltage of the capacitor (q/C) is equal and opposite that of Vbatt. At that point (time), current stops flowing. There is no voltage drop across the resistor because there is no current when the capacitor is fully charged. Vr = IR, but I = 0. The charging behavior of capacitors is just the opposite of the discharging behavior that is illustrated so well in this lesson. Another good resource is Prof. Nave's Hyperphysics site. There are pages that show both the charge and discharge behavior of capacitors, along with the math.(3 votes)
- Regarding the circut with the battery (constant voltage source).
How can I calculate the time it takes to charge a capacitor? Just rearange the final RC response equation to find t? What about in a circuit without a resistor? What role does a resistor play when charging a capacitor, anyway (max. current perhaps)?
Thanks(1 vote)- Hello Nejc,
Yes, you can solve by manipulating the equation as you stated. You could use a rule of thumb and assume 66% charge in one time constant and fully charged in about 5 time constants.
In the real world there is no such thing as "no resistance." All wires have some resistance, the capacitor has an internal resistance, the voltage source (battery) has an internal resistance.
You are correct about the max current. As an example consider a lithium ion battery storage system connected to a DC to AC inverter. In many of these systems you will find a capacitor on the DC side between the battery and the inverter. Connecting this capacitor directly to the batter would cause an excessive current flow. A "current limiting resistor" is used to charge the capacitor. After the capacitor is fully charged to the DC batter voltage it can be directly connected to the battery.
Please leave a comment below if you would like to continue the conversation.
Regards,
APD(2 votes)
- 1.-Can we use an Euler formula to solve RC natural response?
2.-If a baterry chargig DC Vs,is feeding an C R C circuit,being capacitances,opposed or not opposed polarities,may the circuit starts Resonance?
3.-Any CAP plate metals in LC switches charges and polarity.
4.-Yesterday I wonder deriving Eulers formula,with Taylor or Maclaurinn series expansion.Thanks and regards Johann Wgmann(1 vote)- 1. Euler's Formula is not needed to solve an RC response. The exponents in the RC solution are all real numbers. You use Euler's Formula when there are complex or imaginary exponents, as in the LC or RLC natural response.
2. Resonant circuits are made with at least one capacitor and at least one inductor.(1 vote)
- So if I am not wrong, v(t) is voltage across resistor? Am I right or Am i missing something? v(t) is just mentioned as natural response. But I want to know whether this v(t) is voltage across resistor or capacitor? As voltage across capacitor is V(0) (V naught), so I believe v(t) is just voltage across resistor with changing time!(1 vote)
- Starting with the section "Formal derivation of the RC natural response", the variable "v" and "v(t)" represents the voltage across both the capacitor and resistor.
V_0 is the value of v(t) when t=0.(1 vote)
- can someone help me with this type of questions ?
Question 1 of EEE20002 Quiz 2 is on the analysis of the first order RL circuit in Figure 2.1, where R1 = R2 = R3 = 10 LaTeX: \Omega Ω and L is an inductor.
Figure21.png
Question 1 is to test students’ knowledge and problem solving in the natural response of the first order RL circuit. A possible question may like:
If L = 10 mH and the initial condition of the current I(t) at t = 0 is I(0) = 1.0 A, the current I1(t) at t = 1.0 ms is ______.(1 vote)- The steps for solving the RL natural response exactly follows the steps of the RC natural response. The difference is you replace the voltage source with a current source.(1 vote)