The creative potential of homo sapiens is the biological basis of his spirituality. To take into account factor of spirituality in analysis of global problems of demography and ecology used analogies of chemical kinetics. Stable in the historical time, population of people was modeled by open thermodynamic system, equilibrium state of which depends on climate and geophysics. The demography of creative potential was divided into two geographical zones - north and south. Process of society sapientation was formalized by introducing into logistic equation of Verhulst, in addition to a couple of parents, at least one more teacher from among educated people. Stationary solution of the modified kinetic equations determines optimal demography for sustainable development of population in accordance with its education index. The solution of the demographic, energy and environmental problems of mankind is determined by the level of world creative potential, the growth of which is currently limited by the consumption paradigm.