 Herglotz studied Mathematics and Astronomy at the University of Vienna in 1899, and attended lectures by Ludwig Boltzmann.In this time of study, he had a friendship with his colleagues Paul Ehrenfest, Hans Hahn and Heinrich Tietze.In 1900 he went to the LMU Munich and achieved his Doctorate in 1902 under Hugo von Seeliger.