The Beer-Lambert law can be derived from an approximation for the absorption coefficient for a molecule by approximating the molecule by an opaque disk whose cross-sectional area, , represents the effective area seen by a photon of frequency w. If the frequency of the light is far from resonance, the area is approximately 0, and if w is close to resonance the area is a maximum. Taking an infinitesimal slab, dz, of sample: