The Theory of the Concave Grating