Filter Design
The filter is characterised by its cut-off frequency. So far we have assumed it to be a fixed value and checked how signals are changed by the filter. In practice, the procedure is exactly the other way round. You have signals and want to influence them with a particular filter.
The useful signal should pass the filter unchanged. We want to reduce the peak value of the interference signals as much as possible. Let us build a suitable filter for this. How must the cut-off frequency of the filter be chosen so that both conditions are optimally fulfilled? To answer this, we first look at an example and derive the general procedure from it.

In the Bode plot above you see on the left a y-axis for the transfer function |H(ω)| in red. On the right you see a further y-axis in blue for voltages. In one diagram we show peak values of signal voltages (blue) and a filter transfer function (red). In the first step we look only at the voltages. A useful signal with a peak value of 10 mV and angular frequency ωNutz = 1k 1/s is shown by the middle arrow. An interference signal with a peak value of 1 mV and angular frequency ωStör = 100k 1/s is shown by the right arrow (Nutz = useful, Stör = interference).
The signals are actually points, not arrows. The tips of the arrows point to the points that represent the peak values of the voltages on the right-hand axis.
Next we place a transfer function |H(ω)| in red in the diagram so that the filter lets the useful signal pass unchanged with |H(ωNutz)| = 1. Because the filter already has a gain of |H| ≈ 0.7 at the corner frequency, we always place the cut-off frequency of the filter at least a factor of 10 higher than the useful frequency.
Let us first set the cut-off frequency to ωg = 10k 1/s. The corresponding Bode plot looks like this:

The filter with the red Bode plot amplifies the useful signal with |H(ωNutz)| = 1 and the interference signal with |H(ωStör)| = 0.1. You can read this gain from the y-value of the left-hand axis at the respective signal frequencies.
Another filter with the cut-off frequency ωg = 100k 1/s looks like this:

This filter also amplifies the interference signal with |H(ωStör)| = 1 (with Bode approximation) or, more precisely, with |H| ≈ 0.7 (without Bode approximation). The peak value of the interference signal is hardly reduced by this filter. The filter with the cut-off frequency at ωg = 10k 1/s is more suitable. In general:
Calculating the gain
You use the Bode plot as a simplification so that you no longer have to calculate. You can still calculate the gain of a filter, though. To do so, insert into the transfer function the angular frequency ω at which you want to calculate the gain. We use a new example:
Attenuation
The attenuation is the reciprocal of the gain. The term has become established in measurement technology, although all effects can already be described with the gain. If a signal is amplified by a factor of 0.01, for example, we can also say that it is attenuated by a factor of 100. It is linguistically more catchy to say that a signal is attenuated by a factor of 100 than that it is amplified by 0.01. As a formula (D = Dämpfung, attenuation):
The attenuation – just like the gain – depends on the frequency. Attenuation is only a new word without any real new meaning.
Frequency and angular frequency
So far, all calculations have been carried out with the angular frequency ω. The angular frequency is not a very intuitive quantity. You can also carry out all filter considerations with the frequency f. The following applies:
In practice you will encounter both representations. If you choose the form with ω, calculating the cut-off frequency is easier, because the factor 2π is omitted. Frequencies are usually given as f. At the power socket, for example, f = 50 Hz is present. You can convert this frequency into an angular frequency of ω = 314 1/s. In the Bode plot, the values on the x-axis change by the factor 2π if you plot it over f. This is shown by the following Bode plot with the angular frequency ω and then with the frequency f on the x-axis. Look at the x-axes of the two following figures to see the difference.

