Mathematical Modeling of Extinction of Inhomogeneous Populations