Study of the mathematical principles according to which biological organisms and cultural ideas evolve