How to Design a BandStop Filter to Reduce Line Noise
You might need to know how to build bandstop filters to reject line noise. In your stereo or entertainment system, you have unique sounds coming from your favorite music or movies. Special audio effects, different voices, and diverse instruments are synthesized to form a wide range of frequencies. You select, reject, or boost the bass, treble, and midrange frequencies by using an equalizer consisting of many different filters.
However, at times, an equalizer may not be able to get rid of unwanted noise.
Suppose the local movie theater just installed a new audio system. Unfortunately, an annoying 60hertz hum is getting through to the speaker system. Without degrading voice quality, you can implement a bandstop filter (or bandreject filter) to get rid of the 60hertz signal.
The following transfer function, which relates the output and input signals, gives you the bandstop filter:
T(s) is centered at 60 hertz, with a lower cutoff frequency of 40 hertz and an upper cutoff frequency of 80 hertz, rejecting frequencies between 40 and 80 hertz before they go to the speaker system.
To realize T(s), design a filter using resistors, capacitors, and an operational amplifier to get rid of the 60hertz signal. Follow these steps:

Break down T(s) into simpler, recognizable transfer functions.
The given transfer function is already written as the sum of two simpler transfer functions, so you can identify the lowpass filter T_{LPF}(s) and the highpass filter T_{HPF}(s) as follows:
T_{LPF}(s) passes signals below 40 hertz and rejects frequencies above 40 hertz, and T_{HPF}(s) passes signals above 80 hertz and rejects frequencies below 80 hertz. The filter outputs are summed, rejecting frequencies between 40 hertz and 80 hertz while passing signals outside this frequency range.

Design the lowpass filter T_{LPF}(s).
Start by rewriting T_{LPF}(s) using impedances of resistors and capacitors described in the Laplace domain:
The impedance for a capacitor is Z_{2}(s) = 1/(sC_{1}) = 1/s with C_{1} = 1 F, and the impedance for a resistor is Z_{1}(s) = R_{1} = 1/(2p ∙40) W (note that a resistor isn’t frequency dependent — the resistor associates with a constant value).
The equation has the form of a divider equation, which describes the relationship between the desired output variable and input signal as a ratio of the output impedance to the total impedance of a circuit.
These values of capacitance and resistance are impractical in real life, so you need to scale these values so they’re more realistic. Go ahead and scale them by multiplying the numerator and denominator of T_{LPF}(s) by a number k = 10^{6}:
These new values of capacitance and resistance are more realistic. The figure shows the final values of the lowpass design, where now C_{1} = C_{1new} and R_{1} = R_{1new}. In general, you have the new scaled values given as C_{1new} = C_{old}/k and R_{new} = kR_{old}.

Design the highpass filter T_{HPF}(s).
Rewriting T_{H}_{PF}(s) to show the impedances of resistors and capacitors produces the following equations, where C_{2} = 1 F (before scaling) and R_{2} = 1/(2p ∙ 80) Ω (before scaling):
Multiply T_{HPF}(s) as follows to scale the resistance and capacitance values:
The figure shows the final values of the highpass design, where now C_{2} = C_{2new} and R_{2} = R_{2new}.

Finalize the design of the bandstop filter.
You add up the filter outputs to obtain the bandstop filter by using an inverting summing operational amplifier (op amp). With highvalue resistors of 100 kW, you prevent loading effects of the highpass and lowpass filters. You can see what the final circuit looks like in the following figure.
Note that high values of resistors in an opamp circuit reduce the accuracy of an ideal opamp model. However, lower resistor values may involve undesired loading effects. You may need to add opamp voltage followers to reduce these loading effects. The additional voltage followers increase the complexity and cost of the circuit.