RC circuit: Difference between revisions

Content deleted Content added
RC discharge calculator: I forgot to add "per second", which is needed after radian cause this frequency is per that unit of time.
 
(494 intermediate revisions by more than 100 users not shown)
Line 1:
{{short description|Electric circuit composed of resistors and capacitors}}
A '''resistor-capacitor circuit''' '''(RC circuit)''', or '''RC filter''' or '''RC network''', is one of the simplest [[analog filter|analogue]] [[electronic filter]]s. It consists of a [[resistor]] and a [[capacitor]], either in [[series and parallel circuits#Series circuits|series]] or in [[series and parallel circuits#Parallel circuits|parallel]], driven by a [[voltage source|voltage]] or [[current source]].
{{more citations needed|date=March 2018}}
{{Linear analog electronic filter|filter1=hide|filter2=hide}}
A '''resistor–capacitor circuit''' ('''RC circuit'''), or '''RC filter''' or '''RC network''', is an [[electric circuit]] composed of [[resistor]]s and [[capacitor]]s. It may be driven by a [[voltage source|voltage]] or [[current source]] and these will produce different responses. A first order RC circuit is composed of one resistor and one capacitor and is the simplest type of RC circuit.
 
RC circuits can be used to filter a signal by blocking certain frequencies and passing others. The two most common RC filters are the [[high-pass filter]]s and [[low-pass filter]]s; [[band-pass filter]]s and [[band-stop filter]]s usually require [[RLC filter]]s, though crude ones can be made with RC filters.
==Introduction==
There are three basic, linear [[analog circuit|analog]] circuit components: the [[resistor]] (R), [[capacitor]] (C) and [[inductor]] (L). These may be combined in four important combinations: the RC circuit, the [[RL circuit]], the [[LC circuit]] and the [[RLC circuit]] with the abbreviations indicating which components are used. These circuits, between them, exhibit a large number of important types of behaviour that are fundamental to much of [[analog electronics]]. In particular, they are able to act as [[electronic filter#Passive filters|passive filters]]. This article considers the RC circuit, in both [[series and parallel circuits#Series circuits|series]] and [[series and parallel circuits#Parallel circuits|parallel]] as shown in the diagrams.
:''This article relies on knowledge of the complex [[Electrical impedance|impedance]] representation of [[capacitor#In electric circuits|capacitors]] and on knowledge of the [[frequency ___domain]] representation of signals''.
 
== Natural response ==
[[File:Discharging capacitor.svg|200px|thumb|right| Simplest RC circuit]]
The simplest RC circuit consists of a resistor with [[Electric resistance|resistance]] {{mvar|R}} and a charged capacitor with capacitance {{mvar|C}} connected to one another in a single loop, without an external voltage source. The capacitor will discharge its stored energy through the resistor. If {{Mvar|V(t)}} is taken to be the voltage of the capacitor's top plate relative to its bottom plate in the figure, then the [[Capacitor#Current–voltage relation|capacitor current–voltage relation]] says the current {{Mvar|I(t)}} ''exiting'' the capacitor's top plate will equal {{mvar|C}} multiplied by the ''negative'' time derivative of {{Mvar|V(t)}}. [[Kirchhoff's circuit laws#Kirchhoff's current law (KCL)|Kirchhoff's current law]] says this current is the same current entering the top side of the resistor, which per [[Ohm's law]] equals {{Mvar|V(t)/R}}. This yields a [[linear differential equation]]:
 
:<math>\overbrace{\Biggl(C\frac{-\mathrm{d}V(t)}{\mathrm{d}t}\Biggr)}^\text{capacitor current} = \overbrace{\Biggl(\frac{V(t)}{R}\Biggr)}^\text{resistor current} ,</math>
which can be rearranged according to the standard form for [[exponential decay]]:
:<math>\frac{\mathrm{d}V(t)}{\mathrm{d}t} = -\frac{1}{RC}V(t) \, .</math>
This means that the instantaneous rate of voltage decrease at any time is proportional to the voltage at that time. [[Exponential decay#Solution of the differential equation|Solving]] for {{mvar|V(t)}} yields an exponential decay curve that [[asymptotically]] approaches 0:
:<math>V(t)=V_0 \cdot e^{-\frac{t}{RC}} \,,</math>
 
where {{math|''V''<sub>0</sub>}} is the capacitor voltage at time {{math|''t'' {{=}} 0}} and '''''{{mvar|e}}''''' is [[E (mathematical constant)|Euler's number]].
== Complex impedance ==
The [[complex impedance]] ''Z''<sub>''C''</sub> (in [[ohm (unit)|ohms]]) of a capacitor with capacitance ''C'' (in [[farads]]) is
:<math>Z_C = \frac{1}{sC} </math>
 
The time required for the voltage to fall to {{math|{{sfrac|''V''<sub>0</sub>|''e''}}}} is called the [[RC time constant]] and is given by:<ref>Horowitz & Hill, p. 1.13</ref>
The [[angular frequency]] ''s'' is, in general, a [[complex number]],
:<math>s \ = \ \sigma + j \omega </math>
 
:<math>\tau = RC \,.</math>
where
 
When using the [[International System of Units]], {{mvar|R}} is in [[Ohm|ohms]] and {{mvar|C}} is in [[Farad|farads]], so {{mvar|τ}} will be in [[Second|seconds]]. At any time {{mvar|''N''·τ}}, the capacitor's charge or voltage will be {{Sfrac|1|{{Mvar|e}}<sup>N</sup>}} of its starting value. So if the capacitor's charge or voltage is said to start at 100%, then 36.8% remains at {{Math|1·τ}}, 13.5% remains at {{Math|2·τ}}, 5% remains at {{Math|3·τ}}, 1.8% remains at {{Math|4·τ}}, and less than 0.7% remains at {{Math|5·τ}} and later.
*''j'' represents the [[imaginary unit]]:
:<math> j^2 = -1</math>
*<math>\sigma \ </math> is the [[exponential decay]] constant (in [[radians per second]]), and
*<math>\omega \ </math> is the [[sinusoidal]] angular frequency (also in radians per second).
 
The [[half-life]] ({{math|'''''t''{{sub|{{frac|1|2}}}}'''}}) is the time that it takes for its charge or voltage to be reduced in half:<ref>{{Cite web |last=Hanks |first=Ann |last2=Luttermoser |first2=Donald |title=General Physics II Lab (PHYS-2021) Experiment ELEC-5: RC Circuits |url=https://faculty.etsu.edu/lutter/courses/phys2021/ELEC_5_RC_Circuit.pdf}}</ref>
Note: the identity <math>j^2=-1</math> is correctly written as such, and not as <math>j=\sqrt{-1}</math>. The second expression is usually avoided, since the right-hand side has two possible values, one the negative of the other, and it is not desirable for the constant ''j'' to have two values at once.
:<math>\tfrac{1}{2} {=} e^{-\tfrac{t_{1/2}}{\tau}} \longrightarrow t_{1/2} = \ln(2) \, \tau \approx \text{.693} \, \tau \, .</math>
For example, 50% of charge or voltage remains at time {{math|1·''t''{{sub|{{frac|1|2}}}}}}, then 25% remains at time {{math|2·''t''{{sub|{{frac|1|2}}}}}}, then 12.5% remains at time {{math|3·''t''{{sub|{{frac|1|2}}}}}}, and {{Sfrac|1|2<sup>N</sup>}} will remain at time {{math|''N''·''t''{{sub|{{frac|1|2}}}}}}.
 
=== RC discharge calculator ===
===Sinusoidal steady state===
{{calculator
Sinusoidal steady state is a special case in which the input voltage consists of a pure sinusoid (with no exponential decay). As a result,
|id=capacitance
:<math>
|formula=capacitance_number*pow(10,capacitance_unitlog10)
\sigma \ = \ 0
|type=hidden
</math>
|default=.000001
}}
 
{{calculator
and the evaluation of ''s'' becomes
|id=resistance
:<math>
|formula=resistance_number*pow(10,resistance_unitlog10)
s \ = \ j \omega
|type=hidden
</math>
|default=1000000
}}
 
{{calculator
==Series circuit==
|id=tau
[[image:series-RC.svg|thumb|right|250px|[[series and parallel circuits#Series circuits|Series]] RC circuit]]
|formula=resistance*capacitance
|type=hidden
|default=1
}}
 
{{calculator
By viewing the circuit as a [[voltage divider]], we see that the [[voltage]] across the capacitor is:
|id=tau_unitlog10div3floor
:<math>
|formula=min(max(floor(log10(tau)/3),-5),5)
V_C(s) = \frac{1/Cs}{R + 1/Cs}V_{in}(s) = \frac{1}{1 + RCs}V_{in}(s)
|type=hidden
</math>
|default=1
}}
 
{{calculator
and the voltage across the resistor is:
|id=tau_sigdigits
:<math>
|formula=round(tau/pow(10,tau_unitlog10div3floor*3),3)
V_R(s) = \frac{R}{R + 1/ Cs}V_{in}(s) = \frac{ RCs}{1 + RCs}V_{in}(s)
|type=hidden
</math>.
|default=1
}}
 
{{calculator
===Transfer functions===
|id=initialvoltage
The [[transfer function]] for the capacitor is
|formula=initialvoltage_number*pow(10,initialvoltage_unitlog10)
:<math>
|type=hidden
H_C(s) = { V_C(s) \over V_{in}(s) } = { 1 \over 1 + RCs } = G_C e^{j \phi_C}
|default=1
</math>.
}}
 
{{calculator
Similarly, the transfer function for the resistor is
|id=decaytime
|formula=decaytime_in_tau*tau
|type=hidden
|default=1
}}
 
{{calculator
:<math>
|id=decaytime_unitlog10div3floor
H_R(s) = { V_R(s) \over V_{in}(s) } = { RCs \over 1 + RCs } = G_R e^{j \phi_R}
|formula=min(max(ifzero(decaytime,0,floor(log10(abs(decaytime))/3)),-5),5)
</math>.
|type=hidden
|default=1
}}
 
{{calculator
====Poles and zeros====
|id=decaytime_sigdigits
Both transfer functions have a single [[pole (complex analysis) | pole]] located at
|formula=round(decaytime/pow(10,decaytime_unitlog10div3floor*3),3)
:<math>
|type=hidden
s = - {1 \over RC }
|default=1
</math> .
}}
 
{{calculator
In addition, the transfer function for the resistor has a [[zero (complex analysis) | zero]] located at the [[origin (mathematics) | origin]].
|id=fraction_of_initialvoltage
|default=.368
|type=hidden
|formula=exp(-decaytime_in_tau)
}}
 
{{calculator
===Gain and phase angle===
|id=percent_of_initialvoltage
The gains across the two components are:
|default=36.8
:<math>
|type=hidden
G_C = | H_C(s) | = \left|\frac{V_C(s)}{V_{in}(s)}\right| = \frac{1}{\sqrt{1 + \left(\omega RC\right)^2}}
|formula=round(fraction_of_initialvoltage*100,1)
</math>
}}
and
:<math>
G_R = | H_R(s) | = \left|\frac{V_R(s)}{V_{in}(s)}\right| = \frac{\omega RC}{\sqrt{1 + \left(\omega RC\right)^2}}
</math>,
 
{{calculator
and the phase angles are:
|id=initialvoltage
:<math>
|type=hidden
\phi_C = \angle H_C(s) = \tan^{-1}\left(-\omega RC\right)
|default=1
</math>
|formula=initialvoltage_number*pow(10,initialvoltage_unitlog10)
and
}}
:<math>
\phi_R = \angle H_R(s) = \tan^{-1}\left(\frac{1}{\omega RC}\right)
</math>.
 
{{calculator
These expressions together may be substituted into the usual expression for the [[phasor (electronics)|phasor]] representing the output:
|id=finalvoltage
:<math>
|type=hidden
V_C \ = \ G_{C}V_{in} e^{j\phi_C}
|size=4
</math>
|NaN-text=?
:<math>
|formula=initialvoltage*fraction_of_initialvoltage|default=0.368}}
V_R \ = \ G_{R}V_{in} e^{j\phi_R}
</math>.
 
{{calculator
===Current===
|id=finalvoltage_unitlog10div3floor
The current in the circuit is the same everywhere since the circuit is in series:
|formula=min(max(ifzero(decaytime,0,floor(log10(abs(finalvoltage))/3)),-5),5)
:<math>
|type=hidden
I(s) = \frac{V_{in}(s) }{R+1/ Cs} = { Cs \over 1 + RCs } V_{in}(s)
|default=1
</math>
}}
{{calculator
|id=finalvoltage_sigdigits
|formula=round(finalvoltage/pow(10,finalvoltage_unitlog10div3floor*3),3)
|type=hidden
|default=1
}}
 
{{calculator
===Impulse response===
|id=xpix
The [[impulse response]] for each voltage is the inverse [[Laplace transform]] of the corresponding transfer function. It represents the response of the circuit to an input voltage consisting of an impulse or [[delta function]].
|type=hidden
|formula=87.5+562*max(min(decaytime_in_tau,5.1),-0.1)/5
}}
 
{{calculator
The impulse response for the capacitor voltage is
|id=ypix
:<math>
|type=hidden
h_C(t) = {1 \over RC} e^{-t / RC} u(t) = { 1 \over \tau} e^{-t / \tau} u(t)
|formula=12+434.5*(1-max(min(percent_of_initialvoltage,101),0)/100)
</math>
}}
 
{{calculator
where ''u''(''t'') is the [[Heaviside step function]] and
|id=cutoff_angular
:<math>
|type=hidden
\tau \ = \ RC </math>
|size=4
|NaN-text=?
|formula=1/tau
|default=1
}}
 
{{calculator
is the [[time constant]].
|id=cutoff_ordinal
|type=hidden
|size=4
|NaN-text=?
|formula=cutoff_angular/(2*PI)
|default=0.159
}}
 
{{calculator
Similarly, the impulse response for the resistor voltage is
|id=cutoff_angular_unitlog10div3floor
:<math>
|formula=min(max(floor(log10(cutoff_angular)/3),-4),4)
h_R(t) = \delta (t) - {1 \over RC} e^{-t / RC} u(t) = \delta (t) - { 1 \over \tau} e^{-t / \tau} u(t)
|type=hidden
</math>
|default=1
}}
 
{{calculator
where ''δ''(''t'') is the [[Dirac delta function]]
|id=cutoff_angular_sigdigits
|formula=round(cutoff_angular/pow(10,cutoff_angular_unitlog10div3floor*3),3)
|type=hidden
|default=1
}}
 
{{calculator
===Frequency ___domain considerations===
|id=cutoff_ordinal_unitlog10div3floor
These are [[frequency ___domain]] expressions. Analysis of them will show which frequencies the circuits (or filters) pass and reject. This analysis rests on a consideration of what happens to these gains as the frequency becomes very large and very small.
|formula=min(max(floor(log10(cutoff_ordinal)/3),-4),4)
|type=hidden
|default=1
}}
 
{{calculator
As <math>\omega \to \infty</math>:
|id=cutoff_ordinal_sigdigits
:<math>G_C \to 0</math>
|formula=round(cutoff_ordinal/pow(10,cutoff_ordinal_unitlog10div3floor*3),3)
:<math>G_R \to 1</math>.
|type=hidden
|default=1
}}
 
For instance, {{nowrap|{{calculator|id=resistance_number|type=number|min=1|size=3|default=1|max=999|step=.1}}&nbsp;{{calculator|id=resistance_unitlog10|type=select|class=cdx-select|mapping={ "teraohms":12, "gigaohms":9, "megaohms":6, "kiloohms":3, "ohms":0, "milliohms":-3 }|style=min-width:1ch|value=6}}}} of resistance with {{nowrap|{{calculator|id=capacitance_number|type=number|min=1|size=3|default=1|max=999|step=.1}}&nbsp;{{calculator|id=capacitance_unitlog10|type=select|class=cdx-select|mapping={ "farads":0, "millifarads":-3, "microfarads":-6, "nanofarads":-9, "picofarads":-12}|style=min-width:1ch|value=-6}}}} of capacitance produces a time constant of approximately {{nowrap|{{calculator
As <math>\omega \to 0</math>:
|id=tau_sigdigits_label
:<math>G_C \to 1</math>
|type=plain
:<math>G_R \to 0</math>.
|size=4
|NaN-text=?
|formula=tau_sigdigits
|default=1
}} {{calculator
|id=tau_unit
|formula=tau_unitlog10div3floor
|type=plain
|default=seconds
|mapping={
"[unknown time unit]": "default",
"petaseconds": 5,
"teraseconds": 4,
"gigaseconds": 3,
"megaseconds": 2,
"kiloseconds": 1,
"seconds": 0,
"milliseconds": -1,
"microseconds": -2,
"nanoseconds": -3,
"picoseconds": -4,
"femtoseconds": -5
}
}}.}} This {{Mvar|τ}} corresponds to a [[cutoff frequency]] of approximately {{nowrap|{{calculator
|id=cutoff_ordinal_sigdigits_label
|type=plain
|size=4
|NaN-text=?
|formula=cutoff_ordinal_sigdigits
|default=159
}} {{calculator
|id=cutoff_ordinal_unit
|formula=cutoff_ordinal_unitlog10div3floor
|type=plain
|default=millihertz
|mapping={ "[unknown frequency unit]":"default", "terahertz":4, "gigahertz":3, "megahertz":2, "kilohertz":1, "hertz":0, "millihertz":-1, "microhertz":-2, "nanohertz":-3, "picohertz":-4}
}}}} or {{nowrap|{{calculator
|id=cutoff_angular_sigdigits_label
|type=plain
|size=4
|NaN-text=?
|formula=cutoff_angular_sigdigits
|default=1
}} {{calculator
|id=cutoff_angular_unit
|formula=cutoff_angular_unitlog10div3floor
|type=plain
|default=radians per second
|mapping={ "[unknown frequency unit]":"default", "teraradians per second":4, "gigaradians per second":3, "megaradians per second":2, "kiloradians per second":1, "radians per second":0, "milliradians per second":-1, "microradians per second":-2, "nanoradians per second":-3, "picoradians per second":-4}
}}.}} If the capacitor has an initial voltage {{Math|''V''<sub>0</sub>}} of {{nowrap|{{calculator
|id=initialvoltage_number
|type=number
|min=-999
|size=3
|default=1
|max=999
|step=.1
}} {{calculator
|id=initialvoltage_unitlog10
|type=select
|class=cdx-select
|mapping={ "teravolts":12, "gigavolts":9, "megavolts":6, "kilovolts":3, "volts":0, "millivolts":-3, "microvolts":-6, "nanovolts":-9, "picovolts":-12}
|style=min-width:1ch
|value=0
}}}}, then after {{nowrap|{{calculator
|id=decaytime_in_tau
|default=1
|type=number
|size=5
|step=.1
|min=0
}}&nbsp;{{Mvar|τ}}}} (approximately {{nowrap|{{calculator
|id=decaytime_sigdigits_label
|type=plain
|size=4
|NaN-text=?
|formula=decaytime_sigdigits
|default=1
}} {{calculator
|id=decaytime_unit
|formula=decaytime_unitlog10div3floor
|type=plain
|default=seconds
|mapping={
"[unknown time unit]": "default",
"petaseconds": 5,
"teraseconds": 4,
"gigaseconds": 3,
"megaseconds": 2,
"kiloseconds": 1,
"seconds": 0,
"milliseconds": -1,
"microseconds": -2,
"nanoseconds": -3,
"picoseconds": -4,
"femtoseconds": -5
}
}}}} or {{nowrap|{{calculator
|id=decaytime_in_halflives
|type=plain
|size=4
|NaN-text=?
|formula=round(decaytime_in_tau/log(2),3)
|default=1.443
}}&nbsp;[[half-lives]]),}} the capacitor's voltage will discharge to approximately {{nowrap|{{calculator
|id=finalvoltage_sigdigits_label
|type=plain
|size=4
|NaN-text=?
|formula=finalvoltage_sigdigits
|default=368
}} {{calculator
|id=finalvoltage_unit
|formula=finalvoltage_unitlog10div3floor
|type=plain
|default=millivolts
|mapping={
"[unknown voltage unit]": "default",
"petavolts": 5,
"teravolts": 4,
"gigavolts": 3,
"megavolts": 2,
"kilovolts": 1,
"volts": 0,
"millivolts": -1,
"microvolts": -2,
"nanovolts": -3,
"picovolts": -4,
"femtovolts": -5
}
}}:}}
 
<div class="floatnone noresize" style="position: relative; width: 900px; height: 550px;">
This shows that, if the output is taken across the capacitor, high frequencies are attenuated (rejected) and low frequencies are passed. Thus, the circuit behaves as a ''[[low-pass filter]]''. If, though, the output is taken across the resistor, high frequencies are passed and low frequencies are rejected. In this configuration, the circuit behaves as a ''[[high-pass filter]]''.
 
[[File:Series_RC_resistor_voltage_relabeled.svg|alt=|frameless|720x500px|class=skin-invert-image]]
The range of frequencies that the filter passes is called its [[bandwidth]]. The point at which the filter attenuates the signal to half its unfiltered power is termed its [[cutoff frequency]]. This requires that the gain of the circuit be reduced to
 
:<math>G_C = G_R = \frac{1}{\sqrt{2}}</math>.
<div style="position: absolute; left: calc( var( --calculator-xpix, 200)*1px ); top: calc( var( --calculator-ypix, 286.6)*1px ); padding: 0;">[[Image:Blue pog.svg|10px|link=|alt=|class=|]]</div>
 
<div style="position: absolute; left: calc( (var( --calculator-xpix, 200) + 10)*1px); top: calc( (var( --calculator-ypix, 286.6) - 10)*1px ); padding: 0; background-color: white; border: 3px solid blue; color: blue">&nbsp;{{Math|''V''<sub>C</sub>}}({{calculator|id=decaytime_in_tau_label|default=1|type=plain|formula=round(decaytime_in_tau,1)}}''τ'')&nbsp;≈&nbsp;{{calculator|default=36.8|type=plain|formula=percent_of_initialvoltage}}%&nbsp;of&nbsp;{{Math|''V''<sub>0</sub>}}&nbsp;</div>
 
</div>
 
== Complex impedance ==
The RC circuit's behavior is well-suited to be analyzed in the [[Laplace ___domain]], which the rest of this article requires a basic understanding of. The Laplace ___domain is a [[frequency ___domain]] representation using [[complex frequency]] {{mvar|s}}, which is (in general) a [[complex number]]:
:<math>s = \sigma + j \omega \,, </math>
 
where
 
*{{mvar|j}} represents the [[imaginary unit]]: {{math|''j''<sup>2</sup> {{=}} −1}},
*{{mvar|σ}} is the [[exponential decay]] constant, and
*{{mvar|ω}} is the [[sinusoidal]] [[angular frequency]].
 
When evaluating circuit equations in the Laplace ___domain, time-dependent circuit elements of capacitance and inductance can be treated like resistors with [[Complex impedance|complex-valued impedance]] instead of [[Real number|real]] resistance. While the complex impedance {{mvar|Z<sub>R</sub>}} of a resistor is simply a real value equal to its resistance {{mvar|R}}, the [[Electrical impedance#Generalised s-plane impedance|complex impedance of a capacitor]] {{mvar|C}} is instead:
:<math>Z_C = \frac{1}{C s} . </math>
 
== Series circuit ==
[[File:RC Series Filter (with V&I Labels).svg|thumb|right|[[series and parallel circuits#Series circuits|Series]] RC circuit]]
 
=== Current ===
Kirchhoff's current law means that the current in the series circuit is necessarily the same through both elements. Ohm's law says this current is equal to the input voltage <math>V_\mathrm{in} </math> divided by the sum of the complex impedance of the capacitor and resistor:
:<math>\begin{align}
I(s) &= \frac{V_\mathrm{in}(s) }{R + \frac{1}{Cs}} \\
&= \frac{ Cs }{ 1 + RCs } V_\mathrm{in}(s)\,.
\end{align}</math>
 
=== Voltage ===
By viewing the circuit as a [[voltage divider]], the [[voltage]] across the capacitor is:
:<math>\begin{align}
V_C(s) &= \frac{\frac{1}{Cs}}{R + \frac{1}{Cs}}V_\mathrm{in}(s) \\
&= \frac{1}{1 + RCs}V_\mathrm{in}(s)
\end{align}</math>
 
and the voltage across the resistor is:
:<math>\begin{align}
V_R(s) &= \frac{R}{R + \frac{1}{Cs}}V_\mathrm{in}(s) \\
&= \frac{RCs}{1 + RCs}V_\mathrm{in}(s)\,.
\end{align}</math>
 
===Transfer functions===
 
The [[transfer function]] from the input voltage to the voltage across the capacitor is
:<math>H_C(s) = \frac{ V_C(s) }{ V_\mathrm{in}(s) } = \frac{ 1 }{ 1 + RCs } \,.</math>
 
Similarly, the transfer function from the input to the voltage across the resistor is
 
:<math>H_R(s) = \frac{ V_R(s) }{ V_{\rm in}(s) } = \frac{ RCs }{ 1 + RCs } \,.</math>
 
====Poles and zeros====
 
Both transfer functions have a single [[pole (complex analysis)|pole]] located at
:<math>s = -\frac{1}{RC} \,.</math>
 
In addition, the transfer function for the voltage across the resistor has a [[zero (complex analysis)|zero]] located at the [[origin (mathematics)|origin]].
 
===Frequency-___domain considerations===
 
The sinusoidal steady state is a special case of complex frequency that considers the input to consist only of pure sinusoids. Hence, the exponential decay component represented by <math>\sigma </math> can be ignored in the complex frequency equation <math>s {=} \sigma {+} j \omega </math> when only the steady state is of interest. The simple substitution of <math>s \Rightarrow j \omega </math> into the previous transfer functions will thus provide the sinusoidal gain and phase response of the circuit.
 
==== Gain ====
[[Image:Passive_integrator_circuit_transfer_function.png|right|thumb|350px|Amplitude and phase transfer functions for a series RC circuit]]
The magnitude of the gains across the two components are
:<math>G_C = \big| H_C(j \omega) \big| = \left|\frac{V_C(j \omega)}{V_\mathrm{in}(j \omega)}\right| = \frac{1}{\sqrt{1 + \left(\omega RC\right)^2}}</math>
and
:<math>G_R = \big| H_R(j \omega) \big| = \left|\frac{V_R(j \omega)}{V_\mathrm{in}(j \omega)}\right| = \frac{\omega RC}{\sqrt{1 + \left(\omega RC\right)^2}}\,,</math>
As the frequency becomes very large ({{math|''ω'' → ∞}}), the capacitor acts like a short circuit, so:
:<math>G_C \to 0 \quad \mbox{and} \quad G_R \to 1 \,.</math>
 
As the frequency becomes very small ({{math|''ω'' → 0}}), the capacitor acts like an open circuit, so:
:<math>G_C \to 1 \quad \mbox{and} \quad G_R \to 0 \,.</math>
 
===== Operation as either a high-pass or a low-pass filter =====
The behavior at these extreme frequencies show that if the output is taken across the capacitor, high frequencies are attenuated and low frequencies are passed, so such a circuit configuration is a ''[[low-pass filter]]''. However, if the output is taken across the resistor, then high frequencies are passed and low frequencies are attenuated, so such a configuration is a ''[[high-pass filter]]''.
 
===== Cutoff frequency =====
The range of frequencies that the filter passes is called its [[Bandwidth (signal processing)|bandwidth]]. The frequency at which the filter attenuates the signal to half its unfiltered power is termed its [[cutoff frequency]]. This requires that the gain of the circuit be reduced to
:<math>G_C = G_R = \frac{1}{\sqrt 2}</math>.
 
Solving the above equation yields
:<math>\omega_\mathrm{c} = \frac{1}{RC} \quad \mbox{or} \quad f_\mathrm{rad/sc} = \frac{1}{2\pi RC}</math>
or
:<math>f_c = \frac{1}{2\pi RC} \ \mathrm{Hz}</math>
which is the frequency that the filter will attenuate to half its original power.
 
==== Phase ====
Clearly, the phases also depend on frequency, although this effect is less interesting generally than the gain variations.
The phase angles are
:<math>\phi_C = \angle H_C(j \omega) = \tan^{-1}\left(-\omega RC\right)</math>
and
:<math>\phi_R = \angle H_R(j \omega) = \tan^{-1}\left(\frac{1}{\omega RC}\right)\,.</math>
 
As <{{math>\omega|''ω'' \to 0</math>}}:
:<math>\phi_C \to 0 \quad \mbox{and} \quad \phi_R \to 90^{\circ} = \frac{\pi}{2}\mbox{ radians}\,.</math>
:<math>\phi_R \to 90^{\circ} = \pi/2^{c}</math>.
 
As <{{math>\omega|''ω'' \to \infty</math>∞}}:
:<math>\phi_C \to -90^{\circ} = -\frac{\pi/}{2^}\mbox{ radians} \quad \mbox{cand} \quad \phi_R \to 0\,.</math>
:<math>\phi_R \to 0</math>
 
SoWhile atthe output signal's phase shift relative to the input depends on frequency, this is generally less interesting than the gain variations. At [[Direct current|DC]] (0 &nbsp;[[Hertz|Hz]]), the capacitor voltage is in phase with the input signal voltage while the resistor voltage leads it by 90°. As frequency increases, the capacitor voltage comes to have a 90° lag relative to the input signal and the resistor voltage comes to be in-phase with the input signal.
 
===Time= ___domainPhasor considerationsrepresentation ====
The gain and phase expressions together may be combined into these [[phasor (sine waves)|phasor]] expressions representing the output:
:''This section relies on knowledge of ''e'', the [[E (number)|natural logarithmic constant]]''.
:<math>\begin{align} V_C &= G_C V_\mathrm{in} e^{j\phi_C} \\ V_R &= G_R V_\mathrm{in} e^{j\phi_R}\,. \end{align}</math>
 
===Impulse response===
The most straightforward way to derive the time ___domain behaviour is to use the [[Laplace transform]]s of the expressions for <math>V_C</math> and <math>V_R</math> given above. This effectively transforms <math>j\omega \to s</math>. Assuming a [[Heaviside step function|step input]] (i.e. <math>V_{in} = 0</math> before <math>t = 0</math> and then <math>V_{in} = V</math> afterwards):
[[Image:Passive_integrator_circuit_impulse_response_1.png|right|thumb|350px|The impulse response of a series RC circuit]]
:<math>
The [[impulse response]] for each voltage is the [[inverse Laplace transform]] of the corresponding transfer function. It represents the response of the circuit to an input voltage consisting of an impulse or [[Dirac delta function]].
V_{in}(s) = V\frac{1}{s}
 
</math>
The impulse response for the capacitor voltage is
:<math>
V_C:<math>h_C(st) = V\frac{1}{1RC} + sRCe^{-\frac{t}{RC}} u(t) = \frac{1}{s\tau} e^{-\frac{t}{\tau}} u(t)\,,</math>
 
</math>
where {{math|''u''(''t'')}} is the [[Heaviside step function]] and {{math|''τ'' {{=}} ''RC''}} is the [[time constant]].
and
 
:<math>
Similarly, the impulse response for the resistor voltage is
V_R(s) = V\frac{sRC}{1 + sRC}\frac{1}{s}
:<math>h_R(t) = \delta (t) - \frac{1}{RC} e^{-\frac{t}{RC}} u(t) = \delta (t) - \frac{1}{\tau} e^{-\frac{t}{\tau}} u(t)\,,</math>
</math>.
 
where {{math|''δ''(''t'')}} is the [[Dirac delta function]]
 
===Time-___domain considerations===
 
:''This section relies on knowledge of the [[Laplace transform]]''.
 
The most straightforward way to derive the time ___domain behaviour is to use the [[Laplace transform]]s of the expressions for {{mvar|V<sub>C</sub>}} and {{mvar|V<sub>R</sub>}} given above. Assuming a [[Heaviside step function|step input]] (i.e. {{math|''V''<sub>in</sub> {{=}} 0}} before {{math|''t'' {{=}} 0}} and then {{math|''V''<sub>in</sub> {{=}} ''V''<sub>1</sub>}} afterwards):
:<math>\begin{align}
V_\mathrm{in}(s) &= V_1\cdot\frac{1}{s} \\
V_C(s) &= V_1\cdot\frac{1}{1 + sRC}\cdot\frac{1}{s} \\
V_R(s) &= V_1\cdot\frac{sRC}{1 + sRC}\cdot\frac{1}{s} \,.
\end{align}</math>
 
[[Image:Series RC capacitor voltage.svg|thumb|right|230px|Capacitor voltage step-response.]]
[[Image:Series RC resistor voltage.svg|thumb|right|230px|Resistor voltage step-response.]]
 
[[Partial fraction]]s expansions and the inverse [[inverse Laplace transform]] yield:
:<math>\begin{align} V_C(t) &= V_1 \cdot \left(1 - e^{-\frac{t}{RC}}\right) \\ V_R(t) &= V_1 \cdot \left( e^{-\frac{t}{RC}} \right)\,. \end{align}</math>
:<math>
\,\!V_C(t) = V\left(1 - e^{-t/RC}\right)
</math>
:<math>
\,\!V_R(t) = Ve^{-t/RC}
</math>.
 
These equations are for calculating the voltage across the capacitor and resistor respectively while the capacitor is [[Electric charge|charging]]; for [[discharge|discharging]], the equations are vice- versa. TheThese equations can be modifiedrewritten forin [[current]]terms andof [[charge]] dueand tocurrent [[Ohm'susing Law]]the andrelationships {{math|''C'' {{=q/}} ''{{sfrac|Q|V,}}''}} and respectively.{{verificationmath|''V'' needed{{=}} ''IR''}} (see [[Ohm's law]]).
 
Thus, the voltage across the capacitor tends towards ''{{mvar|V''<sub>1</sub>}} as time passes, while the voltage across the resistor tends towards 0, as shown in the figures. This is in keeping with the intuitive point that the capacitor will be charging from the supply voltage as time passes, and will eventually be fully charged and form an [[open circuit]].
 
The product {{math|''RC''}} is both the time for {{mvar|V<sub>C</sub>}} and {{mvar|V<sub>R</sub>}} to reach within {{math|{{sfrac|1|''e''}}}} of their final value. In other words, {{math|''RC''}} is the time it takes for the voltage across the capacitor to rise to {{math|''V''<sub>1</sub>·(1 − {{sfrac|1|''e''}})}} or for the voltage across the resistor to fall to {{math|''V''<sub>1</sub>·({{sfrac|1|''e''}})}}. This [[RC time constant]] is labeled using the letter [[tau]] ({{math|''τ''}}).
These equations show that a series RC circuit has a [[RC time constant|time constant]], usually denoted <math>\tau = RC</math> being the time it takes the voltage across the component to either rise (across C) or fall (across R) to within <math>1/e</math> of its final value. That is, <math>\tau</math> is the time it takes <math>V_C</math> to reach <math>V(1 - 1/e)</math> and <math>V_R</math> to reach <math>V(1/e)</math>.
 
The rate of change is a ''fractional'' <{{math>\left(|1 - \frac{1}{sfrac|1|''e''}}}}\right)</math> per <math>\tau</math>{{mvar|τ}}. Thus, in going from <{{math>|''t'' {{=N\tau</math>}} ''Nτ''}} to <{{math>|''t'' {{=}} (''N'' + 1)\tau</math>''τ''}}, the voltage will have moved about 63.2 % of the way from its level at <{{math>|''t'' {{=N\tau</math>}} ''Nτ''}} toward its final value. So Cthe capacitor will be charged to about 63.2 % after <math>\tau</math>{{mvar|τ}}, and essentiallyis often considered fully charged (>99.3 %) after about <{{math>|5\tau</math>''τ''}}. When the voltage source is replaced with a short- circuit, with Cthe capacitor fully charged, the voltage across Cthe capacitor drops exponentially with ''{{mvar|t''}} from <math>{{mvar|V</math>}} towards 0. CThe capacitor will be discharged to about 36.8 % after <math>\tau</math>{{mvar|τ}}, and essentiallyis often considered fully discharged (<0.7 %) after about <{{math>|5\tau</math>''τ''}}. Note that the current, <math>{{mvar|I</math>}}, in the circuit behaves as the voltage across Rthe resistor does, via [[Ohm's law|Ohm's Law]].
 
These results may also be derived by solving the [[differential equation]]s describing the circuit:
:<math>\begin{align} \frac{V_\mathrm{in} - V_C}{R} &= C\frac{dV_C}{dt} \\ V_R &= V_\mathrm{in} - V_C \,. \end{align}</math>
:<math>
The first equation is solved by using an [[integrating factor]] and the second follows easily; the solutions are exactly the same as those obtained via Laplace transforms.
\frac{V_{in} - V_C}{R} = C\frac{dV_C}{dt}
</math>
and
:<math>
\,\!V_R = V_{in} - V_C
</math>.
The first equation is solved by using an [[integrating factor]] and the second follows easily; the solutions are exactly the same as those obtained via Laplace transforms.
 
====Integrator====
 
Consider the output across the capacitor at ''high'' frequency i.e.
Consider the output across the capacitor at ''high'' frequency, i.e.
:<math>\omega >> \frac{1}{RC}</math>.
:<math>\omega \gg \frac{1}{RC}\,.</math>
 
This means that the capacitor has insufficient time to charge up and so its voltage is very small. Thus the input voltage approximately equals the voltage across the resistor. To see this, consider the expression for <math>I</math> given above:
:<math>I = \frac{V_\mathrm{in}}{R+\frac{1}{j\omega C}}\,,</math>
:<math>
I = \frac{V_{in}}{R+1/j\omega C}
</math>
but note that the frequency condition described means that
:<math>\omega C \gg \frac{1}{R}\,,</math>
:<math>
\omega C \gg \frac{1}{R}
</math>
so
:<math>I \approx \frac{V_\mathrm{in}}{R}</math>
:<math>
which is just [[Ohm's law|Ohm's Law]].
I \approx \frac{V_{in}}{R}
</math> which is just [[Ohm's Law]].
 
Now,
:<math>V_C = \frac{1}{C}\int_{0}^{t}I\,dt\,,</math>
:<math>
V_C = \frac{1}{C}\int_{0}^{t}Idt
</math>
so
:<math>V_C \approx \frac{1}{RC}\int_{0}^{t}V_\mathrm{in}\,dt\,.</math>
:<math>
Therefore, the voltage ''across the capacitor'' acts approximately like an [[integrator]] of the input voltage for high frequencies.
V_C \approx \frac{1}{RC}\int_{0}^{t}V_{in}dt
</math>,
which is an [[integrator]] ''across the capacitor''.
 
====Differentiator====
Consider the output across the resistor at ''low'' frequency i.e.
:<math>
\omega << \frac{1}{RC}
</math>.
 
Consider the output across the resistor at ''low'' frequency i.e.,
This means that the capacitor has time to charge up until its voltage is almost equal to the source's voltage. Considering the expression for <math>I</math> again, when
:<math>\omega \ll \frac{1}{RC}\,.</math>
:<math>
 
R << \frac{1}{\omega C}
This means that the capacitor has time to charge up until its voltage is almost equal to the source's voltage. Considering the expression for {{mvar|I}} again, when
</math>,
:<math>R \ll \frac{1}{\omega C}\,,</math>
so
:<math>\begin{align} I &\approx \frac{V_\mathrm{in}}\frac{1}{j\omega C} \\ V_\mathrm{in} &\approx \frac{I}{j\omega C} = V_C \,.\end{align}</math>
:<math>
I \approx \frac{V_{in}}{1/j\omega C}
</math>
:<math>
V_{in} \approx \frac{I}{j\omega C} \approx V_C
</math>
 
Now,
:<math>\begin{align} V_R &= IR = C\frac{dV_C}{dt}R \\ V_R &\approx RC\frac{dV_{in}}{dt}\,. \end{align}</math>
:<math>
Therefore, the voltage ''across the resistor'' acts approximately like a [[differentiator]] of the input voltage for low frequencies.
V_R = IR = C\frac{dV_C}{dt}R
 
</math>
[[integral|Integration]] and [[derivative|differentiation]] can also be achieved by placing resistors and capacitors as appropriate on the input and [[feedback]] loop of [[operational amplifier]]s (see ''[[Operational amplifier applications#Inverting integrator|operational amplifier integrator]]'' and ''[[Operational amplifier applications#Inverting differentiator|operational amplifier differentiator]]'').
:<math>
 
V_R \approx RC\frac{dV_{in}}{dt}
</math>
which is a [[derivative|differentiator]] ''across the resistor''.
 
More accurate [[integral|integration]] and [[derivative|differentiation]] can be achieved by placing resistors and capacitors as appropriate on the input and [[feedback]] loop of [[operational amplifier]]s.
 
==Parallel circuit==
[[image:parallel-RC.svg|thumb|right|250px|[[series and parallel circuits#Parallel circuits|Parallel]] RC circuit]]
 
[[File:RC Parallel Filter (with I Labels).svg|thumb|right|250px|[[series and parallel circuits#Parallel circuits|Parallel]] RC circuit]]
The parallel RC circuit is generally of less interest than the series circuit. This is largely because the output voltage <math>V_{out}</math> is equal to the input voltage <math>V_{in}</math> &mdash; as a result, this circuit does not act as a filter on the input signal unless fed by a [[current source]].
 
The parallel RC circuit is generally of less interest than the series circuit. This is largely because the output voltage {{math|''V''<sub>out</sub>}} is equal to the input voltage {{math|''V''<sub>in</sub>}} — as a result, this circuit acts as a filter on a current input instead of a voltage input.
 
With complex impedances:
:<math>\begin{align} I_R &= \frac{V_\mathrm{in}}{R} \\ I_C &= j\omega C V_\mathrm{in}\,. \end{align}</math>
:<math>
I_R = \frac{V_{in}}{R}\,
</math>
and
:<math>
I_C = j\omega C V_{in}\,
</math>.
 
This shows that the capacitor current is 90° out of phase with the resistor (and source) current. Alternatively, the governing differential equations may be used:
:<math>\begin{align} I_R &= \frac{V_\mathrm{in}}{R} \\ I_C &= C\frac{dV_\mathrm{in}}{dt}\,. \end{align}</math>
:<math>
I_R = \frac{V_{in}}{R}
</math>
and
:<math>
I_C = C\frac{dV_{in}}{dt}
</math>.
 
When fed by a current source, the transfer function of a parallel RC circuit is:
For a step input (which is effectively a 0 [[Hertz|Hz]] or [[direct current|DC]] signal), the derivative of the input is an [[Dirac delta function|impulse]] at <math>t=0</math>. Thus, the capacitor reaches full charge very quickly and becomes an [[open circuit]] &mdash; the well-known DC behaviour of a capacitor.
:<math>\frac{V_\mathrm{out}}{I_\mathrm{in}} = \frac{R}{1+sRC}\,.</math>
 
== Synthesis ==
It is sometimes required to [[network synthesis|synthesise]] an RC circuit from a given [[rational function]] in ''s''. For synthesis to be possible in passive elements, the function must be a [[positive-real function]]. To synthesise as an RC circuit, all the critical frequencies ([[poles and zeroes]]) must be on the negative real axis and alternate between poles and zeroes with an equal number of each. Further, the critical frequency nearest the origin must be a pole, assuming the rational function represents an impedance rather than an admittance.
 
The synthesis can be achieved with a modification of the [[Foster synthesis]] or [[Cauer synthesis]] used to synthesise [[LC circuit]]s. In the case of Cauer synthesis, a [[ladder network]] of resistors and capacitors will result.<ref>Bakshi & Bakshi, pp. 3-30–3-37</ref>
 
== See also ==
*[[RC time constant]]
*[[RL circuit]]
*[[LC circuit]]
*[[RLC circuit]]
*[[Electrical network]]
*[[List of electronics topics]]
*{{Slink|Johnson–Nyquist noise|Thermal noise on capacitors}} – gives the derivation of ''kTC'' noise caused by a resistor with a capacitor to be:
:: <math>
V_\text{rms} = \sqrt{ k_\text{B} T \over C }.
</math>
*[[Step response]]
 
==External linksReferences==
{{reflist}}
*[http://www.muzique.com/schem/filter.htm RC Filter Calculator]
 
==Bibliography==
[[Category:Analog circuits]]
* Bakshi, U.A.; Bakshi, A.V., ''Circuit Analysis - II'', Technical Publications, 2009 {{ISBN|9788184315974}}.
* Horowitz, Paul; Hill, Winfield, ''The Art of Electronics'' (3rd edition), Cambridge University Press, 2015 {{ISBN|0521809266}}.
 
{{Authority control}}
[[de:RC-Glied]]
 
[[fr:Circuit RC]]
[[Category:Analog circuits]]
[[it:Circuito RC]]
[[Category:Electronic filter topology]]
[[he:מעגל RC]]
[[pt:Circuito RC]]