A resistor–capacitor circuit (RC circuit), or RC filter or RC network, is an electric circuit composed of resistors and capacitors. It may be driven by a 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 filters and low-pass filters; band-pass filters and band-stop filters usually require RLC filters, though crude ones can be made with RC filters.
There are three basic, linear passive lumped analog circuit components: the resistor (R), the capacitor (C), and the inductor (L). These may be combined in the RC circuit, the RL circuit, the LC circuit, and the RLC circuit, with the acronyms indicating which components are used. These circuits, among 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 passive filters. This article considers the RC circuit, in both series and parallel forms, as shown in the diagrams below.
The simplest RC circuit consists of a resistor and a charged capacitor connected to one another in a single loop, without an external voltage source. Once the circuit is closed, the capacitor begins to discharge its stored energy through the resistor. The voltage across the capacitor, which is time-dependent, can be found by using Kirchhoff's current law. The current through the resistor must be equal in magnitude (but opposite in sign) to the time derivative of the accumulated charge on the capacitor. This results in the linear differential equation
C | dV |
dt |
+
V | |
R |
=0,
Solving this equation for yields the formula for exponential decay:
V(t)=V0
| ||||
e |
,
where is the capacitor voltage at time .
The time required for the voltage to fall to is called the RC time constant and is given by,[1]
\tau=RC.
In this formula, is measured in seconds, in ohms and in farads.
The complex impedance, (in ohms) of a capacitor with capacitance (in farads) is
ZC=
1 | |
sC |
The complex frequency is, in general, a complex number,
s=\sigma+j\omega,
where
Sinusoidal steady state is a special case in which the input voltage consists of a pure sinusoid (with no exponential decay). As a result,
\sigma=0
ZC=
1 | |
j\omegaC |
=-
j | |
\omegaC |
.
By viewing the circuit as a voltage divider, the voltage across the capacitor is:
VC(s)=
| |||||
|
Vin(s)=
1 | |
1+RCs |
Vin(s)
and the voltage across the resistor is:
VR(s)=
R | |||||
|
Vin(s)=
RCs | |
1+RCs |
Vin(s).
The transfer function from the input voltage to the voltage across the capacitor is
HC(s)=
VC(s) | |
Vin(s) |
=
1 | |
1+RCs |
.
Similarly, the transfer function from the input to the voltage across the resistor is
HR(s)=
VR(s) | |
V\rm(s) |
=
RCs | |
1+RCs |
.
Both transfer functions have a single pole located at
s=-
1 | |
RC |
.
In addition, the transfer function for the voltage across the resistor has a zero located at the origin.
The magnitude of the gains across the two components are
GC=|HC(j\omega)|=\left|
VC(j\omega) | |
Vin(j\omega) |
\right|=
1 | |
\sqrt{1+\left(\omegaRC\right)2 |
GR=|HR(j\omega)|=\left|
VR(j\omega) | |
Vin(j\omega) |
\right|=
\omegaRC | |
\sqrt{1+\left(\omegaRC\right)2 |
and the phase angles are
\phiC=\angleHC(j\omega)=\tan-1\left(-\omegaRC\right)
\phiR=\angleHR(j\omega)=\tan-1\left(
1 | |
\omegaRC |
\right).
These expressions together may be substituted into the usual expression for the phasor representing the output:
\begin{align}VC&=GCVin
j\phiC | |
e |
\ VR&=GRVin
j\phiR | |
e |
.\end{align}
The current in the circuit is the same everywhere since the circuit is in series:
I(s)=
Vin(s) | |||||
|
=
Cs | |
1+RCs |
Vin(s).
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.
The impulse response for the capacitor voltage is
hC(t)=
1 | |
RC |
| ||||
e |
u(t)=
1 | |
\tau |
| ||||
e |
u(t),
where is the Heaviside step function and is the time constant.
Similarly, the impulse response for the resistor voltage is
hR(t)=\delta(t)-
1 | |
RC |
| ||||
e |
u(t)=\delta(t)-
1 | |
\tau |
| ||||
e |
u(t),
where is the Dirac delta function
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.
As :
GC\to0 and GR\to1.
As :
GC\to1 and GR\to0.
This shows that, if the output is taken across the capacitor, high frequencies are attenuated (shorted to ground) 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 attenuated (since the capacitor blocks the signal as its frequency approaches 0). In this configuration, the circuit behaves as a high-pass filter.
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
GC=GR=
1 | |
\sqrt2 |
Solving the above equation yields
\omegac=
1 | |
RC |
or fc=
1 | |
2\piRC |
Clearly, the phases also depend on frequency, although this effect is less interesting generally than the gain variations.
As :
\phiC\to0 and \phiR\to90\circ=
\pi | |
2 |
radians.
As :
\phiC\to-90\circ=-
\pi | |
2 |
radians and \phiR\to0.
So at DC (0 Hz), the capacitor voltage is in phase with the 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 signal and the resistor voltage comes to be in-phase with the signal.
This section relies on knowledge of, the natural logarithmic constant.
The most straightforward way to derive the time domain behaviour is to use the Laplace transforms of the expressions for and given above. This effectively transforms . Assuming a step input (i.e. before and then afterwards):
\begin{align} Vin(s)&=V ⋅
1 | |
s |
\\ VC(s)&=V ⋅
1 | ⋅ | |
1+sRC |
1 | |
s |
\\ VR(s)&=V ⋅
sRC | ⋅ | |
1+sRC |
1 | |
s |
. \end{align}
Partial fractions expansions and the inverse Laplace transform yield:
\begin{align}VC(t)&=V\left(1-
| ||||
e |
\right)\ VR(t)&=
| ||||
Ve |
.\end{align}
These equations are for calculating the voltage across the capacitor and resistor respectively while the capacitor is charging; for discharging, the equations are vice versa. These equations can be rewritten in terms of charge and current using the relationships and (see Ohm's law).
Thus, the voltage across the capacitor tends towards 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.
These equations show that a series RC circuit has a time constant, usually denoted being the time it takes the voltage across the component to either rise (across the capacitor) or fall (across the resistor) to within of its final value. That is, is the time it takes to reach and to reach .
The rate of change is a fractional per . Thus, in going from to, the voltage will have moved about 63.2% of the way from its level at toward its final value. So the capacitor will be charged to about 63.2% after, and essentially fully charged (99.3%) after about . When the voltage source is replaced with a short circuit, with the capacitor fully charged, the voltage across the capacitor drops exponentially with from towards 0. The capacitor will be discharged to about 36.8% after, and essentially fully discharged (0.7%) after about . Note that the current,, in the circuit behaves as the voltage across the resistor does, via Ohm's Law.
These results may also be derived by solving the differential equations describing the circuit:
\begin{align}
Vin-VC | |
R |
&=C
dVC | |
dt |
\ VR&=Vin-VC.\end{align}
Consider the output across the capacitor at high frequency, i.e.
\omega\gg
1 | |
RC |
.
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
I
I=
Vin | |||
|
,
\omegaC\gg
1 | |
R |
,
I ≈
Vin | |
R |
Now,
VC=
1 | |
C |
t | |
\int | |
0 |
Idt,
VC ≈
1 | |
RC |
t | |
\int | |
0 |
Vindt,
Consider the output across the resistor at low frequency i.e.,
\omega\ll
1 | |
RC |
.
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 again, when
R\ll
1 | |
\omegaC |
,
\begin{align}I& ≈
Vin | |||
|
\ Vin& ≈
I | |
j\omegaC |
=VC.\end{align}
Now,
\begin{align}VR&=IR=C
dVC | |
dt |
R\ VR& ≈ RC
dVin | |
dt |
,\end{align}
Integration and differentiation can also be achieved by placing resistors and capacitors as appropriate on the input and feedback loop of operational amplifiers (see operational amplifier integrator and operational amplifier differentiator).
The parallel RC circuit is generally of less interest than the series circuit. This is largely because the output voltage is equal to the input voltage — as a result, this circuit does not act as a filter on the input signal unless fed by a current source.
With complex impedances:
\begin{align}IR&=
Vin | |
R |
\ IC&=j\omegaCVin.\end{align}
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:
\begin{align}IR&=
Vin | |
R |
\ IC&=C
dVin | |
dt |
.\end{align}
When fed by a current source, the transfer function of a parallel RC circuit is:
Vout | |
Iin |
=
R | |
1+sRC |
.
It is sometimes required to 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 circuits. In the case of Cauer synthesis, a ladder network of resistors and capacitors will result.[2]