An introduction to mathematical ecology