A Mathematical Study on the Emergence of Collective Differences from Individual Variation: The Complex Adaptive Dynamics of Eusocial-insect Colonies