An introduction to mathematical population dynamics