A spectrophotometer is an instrument that measures the intensity of light passing through a sample based on Beer's Law and Lambert's Law. It works by using a light source, monochromator, and detector to measure how much light is absorbed by a sample in a cuvette. The amount of light absorbed can then determine the presence, concentration, and purity of chemicals in samples and measure changes over time.