An inverse problem in population dynamics