The purity of the compound can be identified by placing it under a ultraviolet spectrometer (UV spectrophotometer). The sample is compared with the standard methyl salicylate solution to get the absorbed wavelength (λ). It is substitued in the formula given by Beer-Lambert law to get the percent purity.