Using Math to Study Ecology