The evolution of the binary population in globular clusters: a full analytical computation