Title: An introduction to spin density matrix formalism and its applications in the mathematical treatment of polarized thermal neutron scattering