Mathematical Demonstration for the Ecological Effects of Environmental Factors on Grasshopper Community