Mathematical methods in ecology