 
 
 
 
 
   
|  | (1) | 
The instantaneous phase of  is given by
 is given by
|  | (2) | 
|  | (3) | 
Using this approach, if the message is proportional to  , which is the phase deviation, then we have phase modulation.  If the message is proportional to
, which is the phase deviation, then we have phase modulation.  If the message is proportional to 
 , which is the frequency deviation, then we have frequency modulation.
, which is the frequency deviation, then we have frequency modulation.
In order to have phase modulation,
|  | (4) | 
 is known as the deviation constant.  For frequency modulation,
 is known as the deviation constant.  For frequency modulation,
|  | (5) | 
 is known as the frequency deviation constant. Consequently, an FM modulated signal is of the form
 is known as the frequency deviation constant. Consequently, an FM modulated signal is of the form
|  | (6) | 
An FM signal is shown in Figure 1
In order to implement the above the frequency discriminator, we need to design a differentiator. One way to implement a differentiator is using an optimal equiripple linear-phase FIR filter. This filter is optimal because the weighted approximation error between the desired frequency response and the actual frequency response is spread evenly across the passband and evenly across the stopband. This results in minimizing the maximum error. Remez algorithm may be used to generate this filter. Below are samples of the output generated using the firpm function.
 
 
 
 
