The lock-in amplifier works by mixing the input signal with a reference signal of the same frequency. This process shifts the frequency of the desired signal to a lower frequency (near zero), while the noise, which is generally uncorrelated, is spread across a broad frequency range. By employing a low-pass filter, the amplifier can isolate and measure the signal of interest with high accuracy.