Nuclear magnetic resonance (NMR) spectroscopy analyzes molecules by studying the interaction of radiofrequency electromagnetic radiation with spinning nuclei in a magnetic field, providing insights into the configuration of magnetically active atoms. The technique involves generating an NMR spectrum by fixing the frequency of radiofrequency radiation and varying the magnetic field to observe absorption signals, which correspond to different sets of equivalent protons. Essential concepts include spin quantum numbers, chemical shifts due to electron environments, and the use of reference compounds like tetramethylsilane (TMS) to standardize chemical shift measurements.