Theory of inelastic x-ray scattering from condensed matter | Synapse