ArticleslgStudy

science

Digital filter

Digital filter is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Digital filter rather than just read about it. In short: In signal processing, a digital filter is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal. This is in contrast to the other major type of electronic filter, the analog filter, which is typically an electronic circuit operating on continuous-time analog signals.

Digital filter — main illustration
Digital filter — illustration

Key takeaways

  • Digital filter belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Digital filter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Digital filter from memory before moving on to harder problems.

Reference excerpt

In signal processing, a digital filter is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal. This is in contrast to the other major type of electronic filter, the analog filter, which is typically an electronic circuit operating on continuous-time analog signals. A digital filter system usually consists of an analog-to-digital converter (ADC) to sample the input signal, followed by a microprocessor and some peripheral components such as memory to store data and filter coefficients etc. Program Instructions (software) running on the microprocessor implement the digital filter by performing the necessary mathematical operations on the numbers received from the ADC. In some high performance applications, an FPGA or ASIC is used instead of a general purpose microprocessor, or a specialized digital signal processor (DSP) with specific paralleled architecture for expediting operations such as filtering. Digital filters may be more expensive than an equivalent analog filter due to their increased complexity, but they make practical many designs that are impractical or impossible as analog filters. Digital filters can often be made very high order, and are often finite impulse response filters, which allows for linear phase response. When used in the context of real-time analog systems, digital filters sometimes have problematic latency (the difference in time between the input and the response) due to the associated analog-to-digital and digital-to-analog conversions and anti-aliasing filters, or due to other delays in their implementation. Digital filters are commonplace and an essential element of everyday electronics such as radios, cellphones, and AV receivers.

Characterization A digital filter is characterized by its transfer function, or equivalently, its difference equation. Mathematical analysis of the transfer function can describe how it will respond to any input. As such, designing a filter consists of developing specifications appropriate to the problem (for example, a second-order low-pass filter with a specific cut-off frequency), and then producing a transfer function that meets the specifications. The transfer function for a linear, time-invariant, digital filter can be expressed as a transfer function in the Z-domain; if it is causal, then it has the form:

H(z)=B(z)A(z)=b0+b1z−1+b2z−2+⋯+bNz−N1+a1z−1+a2z−2+⋯+aMz−M, where the order of the filter is the greater of N or M. See Z-transform § Linear constant-coefficient difference equation for further discussion of this transfer function. This is the form for a recursive filter, which typically leads to an infinite impulse response (IIR) behaviour, but if the denominator is made equal to unity, i.e. no feedback, then this becomes a finite impulse response (FIR) filter.

Analysis techniques A variety of mathematical techniques may be employed to analyze the behavior of a given digital filter. Many of these analysis techniques may also be employed in designs, and often form the basis of a filter specification. Typically, one characterizes filters by calculating how they will respond to a simple input such as an impulse. One can then extend this information to compute the filter's response to more complex signals.

Impulse response The impulse response, often denoted h[k] or hk, is a measurement of how a filter will respond to the Kronecker delta function. For example, given a difference equation, one would set x0=1 and xk=0 for k≠0 and evaluate. The impulse response is a characterization of the filter's behavior. Digital filters are typically considered in two categories: infinite impulse response (IIR) and finite impulse response (FIR). In the case of linear time-invariant FIR filters, the impulse response is exactly equal to the sequence of filter coefficients, and thus:

yn=∑k=0Nbkxn−k=∑k=0Nhkxn−k IIR filters on the other hand are recursive, with the output depending on both current and previous inputs as well as previous outputs. The general form of an IIR filter is thus:

∑m=0Mamyn−m=∑k=0Nbkxn−k Plotting the impulse response reveals how a filter responds to a sudden, momentary disturbance. An IIR filter is always recursive. While it is possible for a recursive filter to have a finite impulse response, a non-recursive filter always has a finite impulse response. An example is the moving average (MA) filter, which can be implemented both recursively and non recursively.

Difference equation In discrete-time systems, the digital filter is often implemented by converting the transfer function to a linear constant-coefficient difference equation (LCCD) via the Z-transform. The discrete frequency-domain transfer function is written as the ratio of two polynomials. For example:

H(z)=(z+1)2(z−12)(z+34) This is expanded:

H(z)=z2+2z+1z2+14z−38 and to make the corresponding filter causal, the numerator and denominator are divided by the highest order of z:

H(z)=1+2z−1+z−21+14z−1−38z−2=Y(z)X(z) The coefficients of the denominator, ak, are the 'feed-backward' coefficients and the coefficients of the numerator are the 'feed-forward' coefficients, bk. The resultant linear difference equation is:

y[n]=−∑k=1Maky[n−k]+∑k=0Nbkx[n−k] or, for the example above:

Y(z)X(z)=1+2z−1+z−21+14z−1−38z−2 rearranging terms:

⇒(1+14z−1−38z−2)Y(z)=(1+2z−1+z−2)X(z) then by taking the inverse z-transform:

⇒y[n]+14y[n−1]−38y[n−2]=x[n]+2x[n−1]+x[n−2] and finally, by solving for y[n]:

y[n]=−14y[n−1]+38y[n−2]+x[n]+2x[n−1]+x[n−2] This equation shows how to compute the next output sample, y[n], in terms of the past outputs, y[n−p], the present input, x[n], and the past inputs, x[n−p]. Applying the filter to an input in this form is equivalent to a Direct Form I or II (see below) realization, depending on the exact order of evaluation. In plain terms, for example, as used by a computer programmer implementing the above equation in code, it can be described as follows: y = the output, or filtered value x = the input, or incoming value n = the sample number, iteration number, or time period number and therefore: y[n] = the current filtered (output) value y[n−1] = the last filtered (output) value y[n−2] = the 2nd-to-last filtered (output) value x[n] = the current input value x[n−1] = the last input value x[n−2] = the 2nd-to-last input value

Filter design

… excerpt ends here. Continue reading the full article.

Illustrations

Digital filter: A general finite impulse response filter with n stages, each with an independent delay, di, and amplification gain, ai.
A general finite impulse response filter with n stages, each with an independent delay, di, and amplification gain, ai.
Digital filter illustration
Digital filter illustration

Worked examples

Example 1 — a first encounter with Digital filter

Start with the simplest possible case. Write down what Digital filter claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Digital filter before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Digital filter ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Digital filter

In research
Digital filter appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Digital filter in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Digital filter is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital signal processing, Signal processing filter, Synthesiser modules, so understanding it makes those chapters shorter.
In everyday life
Look for Digital filter outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Digital filter” →

How to study Digital filter in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Digital filter means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Digital filter out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Digital filter in simple terms?

In signal processing, a digital filter is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal. This is in contrast to the other major type of electronic filter, the analog filter, which is typically an electronic circ…

Why does Digital filter matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Digital filter?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Digital filter.

Tags

  • Digital signal processing
  • Signal processing filter
  • Synthesiser modules

Keep exploring