Mathematical analysis of trophic interactions: From bacteria competition to lemming cycles