Single species dynamics in changing environments