A method of analysis by means of the spectrograph