Bragg's law
nλ = 2d sin(θ). A monochromatic X-ray beam diffracted off the parallel lattice planes of a crystal produces constructive interference only at angles where the path-length difference is an integer number of wavelengths. The single equation behind every powder XRD pattern in a crystallography lab.