One effect that I did not discuss yet in spectrographs is the slit compression effect. Up to now, I assumed in my posts that the image of the slit had the same size as the physical slit (provided that the same focal lengths are used for imaging) but reality is a bit different. I will derive the effect here for a diffraction grating.

The equation for the diffraction grating is

![](/images/articles/slit-compression/image001.png)

where m is the diffraction order, λ the wavelength, G the groove density and θ~in~/θ~out~ the input and output angles.

Because our slit is not a point source, it subtends an half angle âˆ†θ that is given by half of the size of the slit and the focal length of the optics used. What I will show here is that the output subtended angle is not equal to the input subtended angle.

We can rewrite our grating equation for the ray corresponding to the edge of the slit

![](/images/articles/slit-compression/image002.png)

We should now express âˆ†θ~out~ as a function of âˆ†θ~in~.

Let’s split the sine terms using a Taylor series expansion around θ~in~ and θ~out~

![](/images/articles/slit-compression/image003.png)

and therefore

![](/images/articles/slit-compression/image004.png)

By subtracting the initial grating equation

![](/images/articles/slit-compression/image005.png)

and we finally get

![](/images/articles/slit-compression/image006.png)

The input slit therefore appears magnified by a term cos(θ~in~)/cos(θ~out~) which is 1 only in the Littrow condition (θ~in~=θ~out~). When θ~in~>θ~out~ the slit appears smaller than its real size and when θ~in~<θ~out~ the slit appears larger than its real size.

In the [Raman spectroscopy setup](/article/diy-raman-spectroscopy/), the compression is about 0.7× smaller than the physical size so a slit of 20 µm will appear as it if were 14 µm.

You may want to take this into account when designing your own spectrographs.