In demodulation process, the detector performs following functions. (a) Rectification To convert all the negative going peaks into positive going peaks, effectively doubling the frequency of the carrier in modulated wave. (b) Filtering Separation of AC and DC.