Describe the working of a phase-locked loop (PLL) in frequency modulation.
In frequency modulation, a phase-locked loop (PLL) maintains a constant phase relationship between the output of the loop and the input frequency. It dynamically adjusts to changes in the input frequency, making it ideal for demodulating frequency modulated signals by tracking and locking onto the carrier frequency.