Lock-in amplifiers work by mixing the input signal with a reference signal of the same frequency. The output is then filtered to remove high-frequency components, leaving a signal proportional to the original input. This technique takes advantage of the fact that noise is usually broadband, while the signal of interest is narrowband and at a known frequency.