Human behavioral ecology (HBE) or human evolutionary ecology applies the principles of evolutionary theory and optimization to the study of human behavioral and cultural diversity. HBE examines the adaptive design of traits, behaviors, and life histories of humans in an ecological context. One aim of modern human behavioral ecology is to determine how ecological and social factors influence and shape behavioral flexibility within and between human populations. Among other things, HBE attempts to explain variation in human behavior as adaptive solutions to the competing life-history demands of growth, development, reproduction, parental care, and mate acquisition.