A low-pass filter is a filter that passes low-frequency signals but attenuates (reduces the amplitude of) signals with frequencies higher than the cutoff frequency. The actual amount of attenuation for each frequency varies from filter to filter. It is sometimes called a high-cut filter, or treble cut filter when used in audio applications.

The concept of a low-pass filter exists in many different forms, including electronic circuits (like a hiss filter used in audio), digital algorithms for smoothing sets of data, acoustic barriers, blurring of images, and so on. Low-pass filters play the same role in signal processing that moving averages do in some other fields, such as finance; both tools provide a smoother form of a signal which removes the short-term oscillations, leaving only the long-term trend.

Examples of low pass filters[edit | edit source]

File:Low pass filter.svg
Figure 1: A low-pass electronic filter realized by an RC circuit

Figure 1 shows a low pass RC filter for voltage signals, discussed in more detail below. Signal Vout retains unattenuated only frequencies below the cut-off frequency of the filter set by its RC time constant. For current signals, a similar circuit using a resistor and capacitor in parallel works the same way. See current divider.

Acoustic[edit | edit source]

A stiff physical barrier tends to reflect higher sound frequencies, and so acts as a low-pass filter for transmitting sound. When music is playing in another room, the low notes are easily heard, while the high notes are attenuated.

Electronic[edit | edit source]

Electronic low-pass filters are used to drive subwoofers and other types of loudspeakers, to block high pitches that they can't efficiently broadcast.

Radio transmitters use lowpass filters to block harmonic emissions which might cause interference with other communications.

An integrator is another example of a low-pass filter.

DSL splitters use low-pass and high-pass filters to separate DSL and POTS signals sharing the same pair of wires.

Low-pass filters also play a significant role in the sculpting of sound for electronic music as created by analogue synthesisers. See subtractive synthesis.

Ideal and real filters[edit | edit source]

An ideal low-pass filter completely eliminates all frequencies above the cut-off frequency while passing those below unchanged. The transition region present in practical filters does not exist in an ideal filter. An ideal low-pass filter can be realized mathematically (theoretically) by multiplying a signal by the rectangular function in the frequency domain or, equivalently, convolution with a sinc function in the time domain.

However, the ideal filter is impossible to realize without also having signals of infinite extent, and so generally needs to be approximated for real ongoing signals, because the sinc function's support region extends to all past and future times. The filter would therefore need to have infinite delay, or knowledge of the infinite future and past, in order to perform the convolution. It is effectively realizable for pre-recorded digital signals by assuming extensions of zero into the past and future, but even that is not typically practical.

Real filters for real-time applications approximate the ideal filter by truncating and windowing the infinite impulse response to make a finite impulse response; applying that filter requires delaying the signal for a moderate period of time, allowing the computation to "see" a little bit into the future. This delay is manifested as phase shift. Greater accuracy in approximation requires a longer delay.

The Whittaker–Shannon interpolation formula describes how to use a perfect low-pass filter to reconstruct a continuous signal from a sampled digital signal. Real digital-to-analog converters use real filter approximations.

Electronic low-pass filters[edit | edit source]

File:Butterworth response.png
The frequency response of a first-order filter

There are a great many different types of filter circuits, with different responses to changing frequency. The frequency response of a filter is generally represented using a Bode plot.

On any Butterworth filter, if one extends the horizontal line to the right and the diagonal line to the upper-left (the asymptotes of the function), they will intersect at exactly the "cutoff frequency". The frequency response at the cutoff frequency in a first-order filter is –3 dB below the horizontal line. The various types of filters — Butterworth filter, Chebyshev filter, Bessel filter, etc. — all have different-looking "knee curves". Many second-order filters are designed to have "peaking" or resonance, causing their frequency response at the cutoff frequency to be above the horizontal line. See electronic filter for other types.

The meanings of 'low' and 'high' — that is, the cutoff frequency — depend on the characteristics of the filter. The term "low-pass filter" merely refers to the shape of the filter's response; a high-pass filter could be built that cuts off at a lower frequency than any low-pass filter – it is their responses that set them apart. Electronic circuits can be devised for any desired frequency range, right up through microwave frequencies (above 1000 MHz) and higher.

Passive electronic realization[edit | edit source]

File:Rc divider.png
Passive, first order low-pass RC filter

One simple electrical circuit that will serve as a low-pass filter consists of a resistor in series with a load, and a capacitor in parallel with the load. The capacitor exhibits reactance, and blocks low-frequency signals, causing them to go through the load instead. At higher frequencies the reactance drops, and the capacitor effectively functions as a short circuit. The combination of resistance and capacitance gives you the time constant of the filter <math>\tau = RC </math> (represented by the Greek letter tau). The break frequency, also called the turnover frequency or cutoff frequency (in hertz), is determined by the time constant:

<math> f_\mathrm{c} = {1 \over 2 \pi \tau } = {1 \over 2 \pi R C} </math>

or equivalently (in radians per second):

<math> \omega_\mathrm{c} = {1 \over \tau} = { 1 \over R C}. </math>

One way to understand this circuit is to focus on the time the capacitor takes to charge. It takes time to charge or discharge the capacitor through that resistor:

Another way to understand this circuit is with the idea of reactance at a particular frequency:

It should be noted that the capacitor is not an "on/off" object (like the block or pass fluidic explanation above). The capacitor will variably act between these two extremes. It is the Bode plot and frequency response that show this variability.

Active electronic realization[edit | edit source]

File:Active lowpass filter.svg
An active low-pass filter

Another type of electrical circuit is an active low-pass filter.

In the operational amplifier circuit shown in the figure, the cutoff frequency (in hertz) is defined as:

<math> f_\mathrm{c} = {1 \over 2 \pi R_2 C } </math>

or equivalently (in radians per second):

<math> \omega_\mathrm{c} = \frac{1}{R_2 C} </math>

The gain in the passband is <math>\frac{-R_2}{R_1}</math>, and the stopband drops off at −6 dB per octave, as it is a first-order filter.

Sometimes, a simple gain amplifier (as opposed to the very-high-gain operation amplifier) is turned into a low-pass filter by simply adding a feedback capacitor C. This feedback decreases the frequency response at high frequencies via the Miller effect, and helps to avoid oscillation in the amplifier. For example, an audio amplifier can be made into a low-pass filter with cutoff frequency 100 kHz to reduce gain at frequencies which would otherwise oscillate. Since the audio band (what we can hear) only goes up to 20 kHz or so, the frequencies of interest fall entirely in the passband, and the amplifier behaves the same way as far as audio is concerned.

Laplace notation[edit | edit source]

Continuous-time filters can also be described in terms of the Laplace transform of their impulse response in a way that allows all of the characteristics of the filter to be easily analyzed by considering the pattern of poles and zeros of the Laplace transform in the complex plane (in discrete time, one can similarly consider the Z-transform of the impulse response).

A first-order low-pass filter can be described in Laplace notation as

<math>

\frac{\mathrm{Output}}{\mathrm{Input}} = \frac{1}{1 + s \tau} </math>

where s is the Laplace transform variable and τ is the filter time constant.

Digital simulation[edit | edit source]

The effect of a low-pass filter can be simulated on a computer by analyzing its behavior in the time domain, and then discretizing the model.

From the circuit diagram to the right, according to Kirchoff's Laws and the definition of capacitance:

<math>V_{in}(t) - V_{out}(t) = I(t) R</math>
<math>Q_c(t) = C V_{out}(t)</math>

Taking the time derivative of the second equation, <math>I(t) = C \frac{dV_{out}}{dt}</math>. Combining this with the first equation:

<math>V_{in}(t) - V_{out}(t) = C \left[\frac{dV_{out}}{dt}\right] R</math>

Now we may discretize the equation. Let us represent <math>V_{in}</math> by a series of samples <math>x_{1...n}</math>. We will likewise represent <math>V_{out}</math> by a series of sample <math>y_{1...n}</math> at the same points in time. For simplicity we assume that the samples are taken at evenly-spaced points in time separated by <math>\Delta t</math>. Making these substitutions:

<math>x_i - y_i = C \left[ \frac{y_{i}-y_{i-1}}{\Delta t} \right] R </math>

And rearranging terms:

<math>y_i = x_i \left( \frac{\Delta t}{RC + \Delta t} \right) + y_{i-1} \left( \frac{RC}{RC + \Delta t} \right)</math>

or more succinctly,

<math>y_n = \alpha x_n + (1 - \alpha) y_{n-1}\,</math>
where <math>\alpha = \frac{\Delta t}{RC + \Delta t}</math>

This gives us a way to determine the output samples in terms of the input samples and the preceding output. The following algorithm will simulate the effect of a low-pass filter on a series of digital samples:

 // Return RC low-pass filter output samples, given input samples,
 // time interval dt, and time constant RC
 function lowpass(real[0..n] x, real dt, real RC)
   var real[0..n] y
   var real alpha := dt / (RC + dt)
       y[0] := x[0]
   for i from 1 to n
       y[i] := alpha * x[i] + (1-alpha) * y[i-1]
   
   return y

Equivalently, more efficiently, and somewhat more intuitively (the change in filter output is proportional to the difference between the last output and the current input, which is the essence of exponential decay):

     for i from 1 to n
       y[i] := y[i-1] + alpha * (x[i] - y[i-1])

See also[edit | edit source]

Template:Portalpar

External links[edit | edit source]

cs:Dolní propusť da:Lavpasled de:Tiefpass id:Low-pass filter it:Filtro passa basso ms:Turas laluan rendah sv:Lågpassfilter uk:Фільтр низьких частот

Template:WS