This document discusses the analysis of pharmaceuticals using x-ray crystallography. It begins by introducing how x-ray crystallography can determine the atomic arrangement within crystals by detecting the diffraction pattern of x-rays hitting the crystal. It then describes the instrumentation used, including the production of x-rays, collimation, monochromatization, and various detection methods. Finally, it discusses applications like determining minor/trace elements in kidney stones and provides an example analysis.