The wavelength filter synthesis problem in distributed feedback reflection filters is solved using variational optimization. Near ideal response is achieved by using appropriate window functions. These responses have the narrowest stopband widths for a particular side-lobe suppression level, In particular, an analytic design formula approximating these ideal windowing functions is given for filters requiring -30 dB to -60-dB sidelobe suppression.