Coherent Derivation of Equations for Differential Spectroscopy and Spatially Resolved Spectroscopy: An Undergraduate Tutorial