Another useful function of amplification and attenuation circuits is to filter signals, which means to remove unwanted frequencies or noise from a signal. One of the simplest ways to filter signals is to use a capacitor in series or parallel with a resistor. The capacitor acts as a frequency-dependent resistor that changes its resistance according to the frequency of the signal. The capacitor filter formula is: Xc = 1 / (2 * pi * f * C) where Xc is the capacitive reactance, f is the frequency, and C is the capacitance. The capacitive reactance is inversely proportional to the frequency, meaning that the capacitor offers less resistance to high-frequency signals and more resistance to low-frequency signals. Therefore, a capacitor in series with a resistor forms a high-pass filter, which passes high-frequency signals and attenuates low-frequency signals. A capacitor in parallel with a resistor forms a low-pass filter, which passes low-frequency signals and attenuates high-frequency signals.