Beer's theorem